/* ===== 网站全局样式 - 政府机关风格 ===== */

/* 重置与基础 */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { font-size: 14px; }
body { font-family: "SimSun", "STSong", "Microsoft YaHei", "PingFang SC", Arial, serif; color: #222; background: #f5f5f0; line-height: 1.8; }
a { text-decoration: none; color: #8b1a1a; transition: color 0.2s; }
a:hover { color: #5c1010; text-decoration: underline; }
img { max-width: 100%; }
ul, ol { list-style: none; }
.wrapper { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* ===== 顶部政务栏 ===== */
.top-bar { background: #8b1a1a; color: #fff; font-size: 12px; padding: 0; border-bottom: 3px solid #c8912e; }
.top-bar .wrapper { display: flex; justify-content: space-between; align-items: center; height: 32px; }
.top-bar .top-left { display: flex; align-items: center; gap: 20px; }
.top-bar .top-left .gov-badge { display: inline-block; padding: 0 8px; background: #c8912e; color: #fff; font-size: 11px; line-height: 20px; border-radius: 2px; }
.top-links a { color: rgba(255,255,255,0.85); margin-left: 16px; font-size: 12px; }
.top-links a:hover { color: #ffd700; text-decoration: none; }
#currentTime { letter-spacing: 0.3px; }

/* ===== 头部 ===== */
.header { background: #fff; border-bottom: 2px solid #8b1a1a; padding: 20px 0; position: relative; }
.header::after { content: ""; position: absolute; bottom: -2px; left: 0; width: 100%; height: 1px; background: #c8912e; }
.header .wrapper { display: flex; align-items: center; justify-content: space-between; }
.site-brand { display: flex; align-items: center; gap: 16px; }
.site-brand .gov-emblem { width: 56px; height: 56px; background: #8b1a1a; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #ffd700; font-size: 28px; font-weight: 700; font-family: "SimSun", serif; flex-shrink: 0; border: 2px solid #c8912e; }
.site-brand .site-title { border-left: 2px solid #8b1a1a; padding-left: 16px; }
.site-brand .site-title h1 { color: #8b1a1a; font-size: 24px; font-weight: 700; letter-spacing: 2px; font-family: "SimSun", "STSong", serif; }
.site-brand .site-title .en-name { color: #888; font-size: 12px; margin-top: 2px; letter-spacing: 0.5px; font-family: "Times New Roman", serif; }
.header-right { text-align: right; font-size: 12px; line-height: 2; color: #666; }
.header-right .issn { color: #8b1a1a; font-weight: 600; }

/* ===== 导航 ===== */
.nav { background: #fff; border-bottom: 2px solid #ddd; }
.nav .wrapper { display: flex; }
.nav a { padding: 10px 20px; color: #444; font-size: 14px; font-weight: 500; white-space: nowrap; transition: all 0.2s; border-bottom: 2px solid transparent; margin-bottom: -2px; }
.nav a:hover { color: #8b1a1a; border-bottom-color: #8b1a1a; background: #faf8f5; text-decoration: none; }
.nav a.active, .nav a.active:hover { color: #8b1a1a; border-bottom-color: #8b1a1a; background: #fff; font-weight: 600; }

/* ===== 面包屑 ===== */
.breadcrumb { padding: 10px 0; font-size: 12px; color: #999; border-bottom: 1px dashed #ddd; margin-bottom: 20px; }
.breadcrumb a { color: #8b1a1a; }
.breadcrumb span { margin: 0 6px; color: #ccc; }

/* ===== 主布局 ===== */
.main-content { padding: 20px 0; min-height: 500px; }
.main-layout { display: flex; gap: 24px; }
.content-left { flex: 1; min-width: 0; }
.content-right { width: 300px; flex-shrink: 0; }

/* ===== 面板 ===== */
.panel { background: #fff; border: 1px solid #ddd; margin-bottom: 20px; }
.panel-heading { background: #f8f6f2; color: #8b1a1a; padding: 10px 18px; font-size: 15px; font-weight: 700; font-family: "SimSun", "STSong", serif; border-bottom: 1px solid #ddd; letter-spacing: 0.5px; display: flex; align-items: center; justify-content: space-between; }
.panel-body { padding: 18px; }
.panel-body p { line-height: 2; color: #444; }
.panel-body ul li { padding: 8px 0; border-bottom: 1px dashed #eee; line-height: 1.8; display: flex; justify-content: space-between; align-items: center; }
.panel-body ul li:last-child { border-bottom: none; }
.panel-body ul li a { color: #333; }
.panel-body ul li a:hover { color: #8b1a1a; }
.panel-body ul li .date { color: #999; font-size: 12px; white-space: nowrap; margin-left: 8px; }

/* ===== 文章列表 ===== */
.article-list-enhanced .article-item { padding: 14px 0; border-bottom: 1px solid #eee; }
.article-list-enhanced .article-item:last-child { border-bottom: none; }
.article-list-enhanced .art-item { display: flex; align-items: flex-start; gap: 10px; }
.article-list-enhanced .art-index { color: #8b1a1a; font-weight: 700; font-size: 14px; white-space: nowrap; padding-top: 2px; }
.article-list-enhanced .art-content { flex: 1; }
.article-list-enhanced .art-header { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
.article-list-enhanced .art-category { font-size: 11px; color: #8b1a1a; background: #f8f0ec; padding: 1px 8px; font-family: "SimSun", serif; }
.article-list-enhanced h3 { font-size: 14px; margin-bottom: 4px; font-weight: 500; }
.article-list-enhanced h3 a { color: #222; }
.article-list-enhanced h3 a:hover { color: #8b1a1a; }
.article-list-enhanced .art-meta { font-size: 12px; color: #999; }
.article-list-enhanced .art-meta span { margin-right: 14px; }

/* ===== 搜索 ===== */
.search-box-modern { background: #f8f6f2; border: 1px solid #ddd; padding: 18px 20px; margin-bottom: 20px; }
.search-box-modern h3 { color: #8b1a1a; font-size: 14px; font-weight: 700; font-family: "SimSun", serif; margin-bottom: 10px; }
.search-box-modern .search-row { display: flex; gap: 10px; }
.search-box-modern select { padding: 6px 10px; border: 1px solid #ccc; font-size: 13px; outline: none; background: #fff; }
.search-box-modern input[type="text"] { flex: 1; padding: 6px 12px; border: 1px solid #ccc; font-size: 13px; outline: none; }
.search-box-modern input[type="text"]:focus { border-color: #8b1a1a; }
.search-box-modern input[type="submit"] { padding: 6px 24px; background: #8b1a1a; color: #fff; border: none; cursor: pointer; font-size: 13px; }
.search-box-modern input[type="submit"]:hover { background: #6b1515; }

/* ===== Hero 横幅 ===== */
.hero-banner { background: linear-gradient(135deg, #fff 0%, #f8f6f2 100%); border: 1px solid #ddd; padding: 24px 28px; margin-bottom: 20px; display: flex; align-items: center; justify-content: space-between; gap: 20px; border-left: 4px solid #8b1a1a; }
.hero-banner .hero-text h2 { font-size: 22px; color: #fff; font-weight: 700; font-family: "SimSun", serif; margin-bottom: 6px; }
.hero-banner .hero-text p { font-size: 13px; color: #666; line-height: 2; }
.hero-banner .hero-stats { display: flex; gap: 20px; flex-shrink: 0; }
.hero-banner .hero-stats .stat-item { text-align: center; padding: 0 10px; border-left: 1px solid #ddd; }
.hero-banner .hero-stats .stat-item:first-child { border-left: none; }
.hero-banner .hero-stats .stat-num { font-size: 24px; font-weight: 700; color: #ffd700; }
.hero-banner .hero-stats .stat-label { font-size: 11px; color: #999; margin-top: 2px; }

/* ===== 登录框 ===== */
.login-box { background: #fff; border: 1px solid #ddd; margin-bottom: 20px; }
.login-box .login-tabs { display: flex; background: #f8f6f2; border-bottom: 1px solid #ddd; }
.login-box .login-tabs a { flex: 1; text-align: center; padding: 8px; color: #888; font-size: 13px; border-bottom: 2px solid transparent; transition: all 0.2s; }
.login-box .login-tabs a.active { color: #8b1a1a; background: #fff; font-weight: 600; border-bottom-color: #8b1a1a; }
.login-box .login-tabs a:hover { color: #8b1a1a; }
.login-box .login-form { padding: 16px; }
.login-box .login-form .form-group { margin-bottom: 14px; }
.login-box .login-form label { display: block; margin-bottom: 4px; color: #555; font-size: 12px; }
.login-box .login-form input[type="text"],
.login-box .login-form input[type="password"] { width: 100%; padding: 7px 12px; border: 1px solid #ccc; font-size: 13px; outline: none; }
.login-box .login-form input:focus { border-color: #8b1a1a; }
.login-box .login-form input[type="submit"] { width: 100%; padding: 10px; background: #8b1a1a; color: #fff; border: none; cursor: pointer; font-size: 14px; font-weight: 600; letter-spacing: 2px; }
.login-box .login-form input[type="submit"]:hover { background: #6b1515; }
.login-box .login-form .register-link { text-align: center; margin-top: 10px; font-size: 12px; }
.login-box .login-form .register-link a { color: #8b1a1a; }

/* ===== 表单 ===== */
.contact-form .form-group { margin-bottom: 14px; }
.contact-form label { display: block; margin-bottom: 4px; color: #444; font-weight: 600; font-size: 13px; }
.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="password"],
.contact-form select,
.contact-form textarea { width: 100%; padding: 7px 12px; border: 1px solid #ccc; font-size: 13px; outline: none; background: #fafafa; }
.contact-form textarea { height: 100px; resize: vertical; line-height: 1.8; }
.contact-form input:focus, .contact-form textarea:focus, .contact-form select:focus { border-color: #8b1a1a; background: #fff; }

/* ===== 按钮 ===== */
.btn { display: inline-block; padding: 6px 18px; border: 1px solid #8b1a1a; cursor: pointer; font-size: 13px; font-weight: 500; transition: all 0.2s; line-height: 1.6; background: #fff; color: #8b1a1a; }
.btn:hover { background: #8b1a1a; color: #fff; text-decoration: none; }
.btn-primary { background: #8b1a1a; color: #fff; border-color: #8b1a1a; }
.btn-primary:hover { background: #6b1515; border-color: #6b1515; }
.btn-success { background: #2e7d32; color: #fff; border-color: #2e7d32; }
.btn-success:hover { background: #1b5e20; }
.btn-danger { background: #c62828; color: #fff; border-color: #c62828; }
.btn-danger:hover { background: #b71c1c; }
.btn-warning { background: #e65100; color: #fff; border-color: #e65100; }
.btn-warning:hover { background: #bf360c; }
.btn-sm { padding: 3px 10px; font-size: 12px; }

/* ===== 表格 ===== */
.table { width: 100%; border-collapse: collapse; }
.table th { padding: 8px 12px; background: #f8f6f2; color: #333; font-weight: 600; font-size: 13px; border-bottom: 2px solid #ddd; text-align: left; }
.table td { padding: 8px 12px; border-bottom: 1px solid #eee; font-size: 13px; color: #444; }
.table tr:hover td { background: #faf8f5; }

/* ===== 提示 ===== */
.alert { padding: 10px 16px; margin-bottom: 16px; font-size: 13px; border: 1px solid; }
.alert-success { background: #e8f5e9; color: #1b5e20; border-color: #c8e6c9; }
.alert-danger { background: #fce4ec; color: #b71c1c; border-color: #f8bbd0; }
.alert-info { background: #e3f2fd; color: #0d47a1; border-color: #bbdefb; }

/* ===== 页面内容 ===== */
.page-content { line-height: 2; color: #444; font-size: 14px; }
.page-content p { margin-bottom: 12px; text-indent: 2em; }
.page-content ul, .page-content ol { margin: 8px 0; padding-left: 22px; }
.page-content ul li, .page-content ol li { margin-bottom: 6px; }
.page-content h2 { font-size: 18px; color: #8b1a1a; margin: 24px 0 12px; padding-bottom: 8px; border-bottom: 1px solid #ddd; font-family: "SimSun", serif; }
.page-content h3 { font-size: 16px; color: #8b1a1a; margin: 18px 0 8px; font-family: "SimSun", serif; }

/* ===== 页脚 ===== */
.footer { background: #8b1a1a; color: rgba(255,255,255,0.7); padding: 20px 0; text-align: center; font-size: 12px; line-height: 2; margin-top: 30px; border-top: 3px solid #c8912e; }
.footer a { color: rgba(255,255,255,0.7); }
.footer a:hover { color: #ffd700; }
.footer .gov-org { font-weight: 600; color: rgba(255,255,255,0.9); }

/* ===== 后台 ====
/* ===== 后台布局增强 ===== */
.admin-layout { display: flex; gap: 20px; padding-top: 20px; }
.admin-sidebar { width: 220px; flex-shrink: 0; position: sticky; top: 20px; align-self: flex-start; max-height: calc(100vh - 40px); overflow-y: auto; }
.admin-main { flex: 1; min-width: 0; }
.panel-body h3 { font-size: 14px; color: #8b1a1a; margin-bottom: 8px; font-family: "SimSun", serif; }
.panel-body .info-row { padding: 6px 0; border-bottom: 1px dashed #eee; font-size: 13px; color: #444; display: flex; align-items: center; }
.panel-body .info-row:last-child { border-bottom: none; }
.panel-body .info-row .label { width: 80px; flex-shrink: 0; color: #888; }
.panel-body .info-row .value { flex: 1; }

/* 控制面板统计卡片增强 */
.admin-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 20px; }
.stat-card { background: #fff; padding: 18px 14px; text-align: center; border: 1px solid #ddd; transition: background 0.2s; }
.stat-card:hover { background: #f8f6f2; }
.stat-card h3 { font-size: 26px; color: #8b1a1a; margin-bottom: 4px; font-weight: 700; }
.stat-card p { color: #999; font-size: 12px; }
.stat-card .stat-icon { font-size: 28px; margin-bottom: 6px; }

/* 管理导航样式增强 */
.admin-nav-list { list-style: none; }
.admin-nav-list li { border-bottom: 1px solid #eee; }
.admin-nav-list li:last-child { border-bottom: none; }
.admin-nav-list li a { display: block; padding: 10px 16px; color: #444; font-size: 13px; border-left: 3px solid transparent; transition: all 0.2s; }
.admin-nav-list li a:hover, .admin-nav-list li a.active { background: #f8f6f2; color: #8b1a1a; border-left-color: #8b1a1a; font-weight: 600; }

@media (max-width: 900px) {
    .admin-layout { flex-direction: column; }
    .admin-sidebar { width: 100%; position: static; max-height: none; }
    .admin-stats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
    .admin-stats { grid-template-columns: 1fr; }
}
/* ===== 后台面板统一样式（覆盖旧版） ===== */
.admin-content .panel { border: 1px solid #e8ecf0; border-radius: 6px; margin-bottom: 18px; background: #fff; }
.admin-content .panel-heading { padding: 12px 18px; border-bottom: 1px solid #e8ecf0; background: none !important; color: #333 !important; font-size: 14px; font-weight: 600; font-family: "SimSun",serif; display: flex; justify-content: space-between; align-items: center; }
.admin-content .panel-body { padding: 12px 18px; }
.admin-content .table th { padding: 8px 10px; font-size: 12px; color: #888; font-weight: 600; text-align: left; border-bottom: 2px solid #e8ecf0; background: none !important; }
.admin-content .table td { padding: 8px 10px; font-size: 13px; color: #444; border-bottom: 1px solid #f0f2f5; }
.admin-content .table tr:hover td { background: #faf8f5; }
.admin-content .contact-form input[type="text"],
.admin-content .contact-form textarea { width: 100%; padding: 8px 12px; border: 1px solid #d0d4da; font-size: 13px; outline: none; background: #fafafa; }
.admin-content .contact-form input:focus,
.admin-content .contact-form textarea:focus { border-color: #8b1a1a; background: #fff; }
.admin-content select { padding: 8px 12px; border: 1px solid #d0d4da; font-size: 13px; outline: none; background: #fafafa; }