/* =====================================================
   易优CMS 胶膜资讯门户模板 - 基础样式
   主色: 深藏蓝 #0f2d5e / 金色 #c9a45c
   ===================================================== */
:root {
    --primary: #0f2d5e;
    --primary-dark: #0a1f42;
    --primary-light: #1a3f7d;
    --accent: #c9a45c;
    --accent-dark: #b08d42;
    --bg: #f5f6f8;
    --card: #ffffff;
    --text: #333333;
    --text-light: #666666;
    --muted: #999999;
    --border: #e5e7eb;
    --up: #e03e3e;
    --down: #0aa05a;
    --radius: 6px;
    --shadow: 0 2px 8px rgba(15, 45, 94, 0.08);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
    font: 14px/1.7 -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
    color: var(--text);
    background: var(--bg);
}
a { color: var(--primary-light); text-decoration: none; transition: color .2s; }
a:hover { color: var(--accent-dark); }
img { max-width: 100%; height: auto; border: 0; display: block; }
ul, ol { list-style: none; }
h1, h2, h3, h4, h5, h6 { font-weight: 600; line-height: 1.4; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 16px; }

/* ---------- 按钮 ---------- */
.btn { display: inline-block; padding: 8px 20px; border-radius: var(--radius); font-size: 14px; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); color: #fff; }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: var(--accent-dark); color: #fff; }

/* ---------- 区块标题 ---------- */
.section-title {
    display: flex; align-items: center; justify-content: space-between;
    padding: 12px 0 10px; border-bottom: 2px solid var(--primary);
    margin-bottom: 14px;
}
.section-title h2 { font-size: 20px; color: var(--primary); }
.section-title h2::before {
    content: ""; display: inline-block; width: 4px; height: 18px;
    background: var(--accent); margin-right: 8px; vertical-align: -2px;
}
.section-title .more { font-size: 13px; color: var(--muted); }
.section-title .more:hover { color: var(--accent-dark); }

/* ---------- 面包屑 ---------- */
.breadcrumb { font-size: 13px; color: var(--muted); padding: 14px 0; }
.breadcrumb a { color: var(--primary-light); }
.breadcrumb a:hover { color: var(--accent-dark); }
.breadcrumb .cur { color: var(--text-light); }

/* ---------- 卡片 ---------- */
.card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px; }
.card + .card { margin-top: 16px; }

/* ---------- 侧边栏组件 ---------- */
.widget { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px; margin-bottom: 16px; }
.widget-title {
    font-size: 16px; color: var(--primary); padding-left: 10px;
    border-left: 3px solid var(--accent); margin-bottom: 12px; line-height: 1.4;
}
.widget-list li { padding: 7px 0; border-bottom: 1px dashed var(--border); }
.widget-list li:last-child { border-bottom: 0; }
.widget-list li a { color: var(--text); display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.widget-list li a:hover { color: var(--accent-dark); }
.widget-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.widget-tags a {
    padding: 3px 10px; font-size: 12px; color: var(--primary-light);
    background: #eef2f8; border-radius: 3px; border: 1px solid #dbe3f0;
}
.widget-tags a:hover { background: var(--primary); color: #fff; border-color: var(--primary); }

/* ---------- 分页 ---------- */
.pagination { padding: 24px 0 10px; text-align: center; }
.pagination ul { display: inline-flex; gap: 6px; }
.pagination li { display: inline-block; }
.pagination a, .pagination span {
    display: inline-block; min-width: 34px; height: 34px; line-height: 34px;
    padding: 0 12px; border: 1px solid var(--border); border-radius: 4px;
    background: #fff; color: var(--text-light); font-size: 13px;
}
.pagination .current a, .pagination a:hover { background: var(--primary); color: #fff; border-color: var(--primary); }

/* ---------- 布局 ---------- */
.main-layout { display: flex; gap: 20px; padding: 20px 0 40px; }
.main-content { flex: 1; min-width: 0; }
.sidebar { width: 300px; flex-shrink: 0; }

/* =====================================================
   顶部导航（深藏蓝 + 金色）
   ===================================================== */
.site-topbar {
    background: var(--primary-dark); color: #9fb0d0; font-size: 12px;
}
.site-topbar-inner { display: flex; justify-content: space-between; height: 34px; line-height: 34px; }
.site-topbar a { color: #9fb0d0; margin-left: 16px; }
.site-topbar a:hover { color: var(--accent); }

.site-header {
    background: var(--primary); position: sticky; top: 0; z-index: 100;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}
.header-inner { display: flex; align-items: center; height: 68px; gap: 30px; }
.site-logo { flex-shrink: 0; display: flex; align-items: center; gap: 10px; }
.site-logo img { max-height: 44px; width: auto; display: block; }
.site-logo .logo-text { color: #fff; font-size: 22px; font-weight: 700; letter-spacing: 1px; display: none; }
.site-logo .logo-sub { display: block; font-size: 11px; color: var(--accent); font-weight: 400; letter-spacing: 2px; }
.site-logo.no-img img { display: none; }
.site-logo.no-img .logo-text { display: block; }

.site-nav { flex: 1; display: flex; }
.site-nav .nav-list { display: flex; gap: 2px; }
.nav-item { position: relative; }
.nav-item > a {
    display: block; padding: 10px 16px; color: #e6ebf5; font-size: 15px;
    border-radius: 4px; white-space: nowrap;
}
.nav-item > a:hover { color: #fff; background: var(--primary-light); text-decoration: none; }
.nav-item.active > a { color: var(--accent); font-weight: 600; }
.nav-item.active > a::after {
    content: ""; position: absolute; left: 50%; bottom: 2px; transform: translateX(-50%);
    width: 20px; height: 2px; background: var(--accent);
}
.subnav {
    position: absolute; top: 100%; left: 0; min-width: 130px; background: #fff;
    border-radius: 0 0 6px 6px; box-shadow: 0 6px 16px rgba(0,0,0,.12);
    padding: 6px 0; display: none; z-index: 90;
}
.nav-item:hover .subnav { display: block; }
.subnav a { display: block; padding: 8px 18px; color: var(--text); font-size: 14px; }
.subnav a:hover { color: var(--accent-dark); background: #f7f9fc; }

.header-search { flex-shrink: 0; }
.header-search form { display: flex; background: #fff; border-radius: 22px; overflow: hidden; }
.header-search input {
    width: 200px; height: 38px; border: 0; outline: none; padding: 0 16px; font-size: 13px; color: var(--text);
}
.header-search button {
    width: 52px; border: 0; background: var(--accent); color: #fff; cursor: pointer; font-size: 14px;
}
.header-search button:hover { background: var(--accent-dark); }

/* 移动端菜单按钮 */
.nav-toggle { display: none; cursor: pointer; color: #fff; font-size: 22px; }

/* =====================================================
   底部
   ===================================================== */
.site-footer { background: var(--primary-dark); color: #9fb0d0; margin-top: 20px; }
.footer-grid {
    display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; padding: 40px 0 30px;
}
.footer-col h4 { color: #fff; font-size: 16px; margin-bottom: 14px; }
.footer-col h4::before { content: ""; display: inline-block; width: 4px; height: 14px; background: var(--accent); margin-right: 8px; vertical-align: -1px; }
.footer-about p { font-size: 13px; line-height: 2; }
.footer-col ul li { padding: 5px 0; }
.footer-col ul li a { color: #9fb0d0; font-size: 13px; }
.footer-col ul li a:hover { color: var(--accent); }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,.08); padding: 16px 0 20px;
    text-align: center; font-size: 12px; color: #7d8db0;
}
.footer-bottom a { color: #9fb0d0; margin: 0 6px; }
.footer-bottom a:hover { color: var(--accent); }

/* 回到顶部 */
.back-top {
    position: fixed; right: 24px; bottom: 40px; width: 42px; height: 42px; line-height: 40px;
    text-align: center; background: var(--primary); color: #fff; font-size: 20px;
    border-radius: 50%; box-shadow: 0 4px 12px rgba(15,45,94,.35); display: none; z-index: 99;
}
.back-top:hover { background: var(--accent); color: #fff; text-decoration: none; }

