/* ==========================================================================
   Audit_Station 门户 · 共享样式（清新浅色主题）
   设计令牌（CSS 变量，方便统一换肤）：
     主色 sky #0284c7 · hover #0369a1 · 辅助 #0ea5e9
     浅色底 #f8fafc · 卡片白 #fff · 正文 #334155 · 弱化 #64748b
     logo 金色天平（stroke #d4a843）
   断点：768px / 480px
   ========================================================================== */

:root {
    --bg: #f8fafc;
    --surface: #ffffff;
    --primary: #0284c7;
    --primary-hover: #0369a1;
    --accent: #0ea5e9;
    --primary-tint: #f0f9ff;
    --primary-soft: #bae6fd;
    --heading: #0f172a;
    --text: #334155;
    --muted: #64748b;
    --border: #e2e8f0;
    --gold: #d4a843;
    --radius: 14px;
    --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.05);
    --shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    font-family: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Microsoft YaHei', 'Segoe UI', sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

/* ==========================================================================
   Header（固定顶栏，多页共享）
   ========================================================================== */
.site-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.86);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
}

.nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 13px 24px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    font-size: 18px;
    font-weight: 700;
    color: var(--heading);
    white-space: nowrap;
    transition: color 0.15s;
}
.brand:hover { color: var(--primary); }
.brand .logo { width: 1em; height: 1em; flex-shrink: 0; }

.nav-links {
    display: flex;
    align-items: center;
    gap: 26px;
}
.nav-links a {
    position: relative;
    padding: 4px 0;
    font-size: 15px;
    color: #475569;
    text-decoration: none;
    white-space: nowrap;
    transition: color 0.15s;
}
.nav-links a:hover { color: var(--primary); }
.nav-links a.active { color: var(--primary); font-weight: 600; }
.nav-links a.active::after {
    content: '';
    position: absolute;
    left: 0; right: 0; bottom: -2px;
    height: 2px;
    border-radius: 2px;
    background: var(--primary);
}

/* 注册/登录：与其他导航链接样式一致（纯文本） */

/* 汉堡按钮（仅移动端） */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 40px; height: 40px;
    padding: 8px;
    background: none;
    border: 1px solid var(--border);
    border-radius: 8px;
    cursor: pointer;
}
.nav-toggle span {
    display: block;
    height: 2px;
    width: 100%;
    border-radius: 2px;
    background: #475569;
    transition: transform 0.2s, opacity 0.2s;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ==========================================================================
   页面骨架
   ========================================================================== */
.page { min-height: 100vh; padding-top: 66px; }

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

.page-hero { padding: 72px 0 44px; text-align: center; }
.page-hero .eyebrow {
    display: inline-block;
    font-size: 13px;
    letter-spacing: 2px;
    color: var(--primary);
    background: var(--primary-tint);
    border: 1px solid var(--primary-soft);
    padding: 6px 18px;
    border-radius: 50px;
    margin-bottom: 18px;
}
.page-hero h1 { font-size: 42px; font-weight: 800; letter-spacing: 2px; color: var(--heading); }
.page-hero p { font-size: 17px; color: var(--muted); margin-top: 14px; max-width: 640px; margin-left: auto; margin-right: auto; }

.section { padding: 40px 0 72px; }
.section-title { font-size: 28px; font-weight: 700; text-align: center; color: var(--heading); margin-bottom: 8px; }
.section-sub { font-size: 14px; color: var(--muted); text-align: center; margin-bottom: 36px; }

/* 卡片网格 */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.card-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }

.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 26px 22px;
    box-shadow: var(--shadow-sm);
    transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--primary-soft); }
.card .icon { font-size: 34px; margin-bottom: 12px; }
.card .title { font-size: 18px; font-weight: 600; color: var(--heading); margin-bottom: 6px; }
.card .desc { font-size: 13px; color: var(--muted); line-height: 1.6; }

/* 标签 */
.tag-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.tag {
    font-size: 12px;
    color: var(--primary);
    background: var(--primary-tint);
    border: 1px solid var(--primary-soft);
    padding: 3px 10px;
    border-radius: 20px;
}

/* 按钮 */
.btn {
    display: inline-block;
    padding: 11px 28px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: all 0.15s;
}
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 4px 14px rgba(2, 132, 199, 0.25); }
.btn-primary:hover { background: var(--primary-hover); }
.btn-ghost { background: var(--surface); color: var(--text); border: 1px solid var(--border); }
.btn-ghost:hover { border-color: var(--primary); color: var(--primary); }
.btn-block { width: 100%; text-align: center; }

/* 占位二维码框 */
.qr-placeholder {
    width: 180px; height: 180px;
    margin: 0 auto;
    background: var(--surface);
    border: 1px dashed var(--primary-soft);
    border-radius: 14px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    color: var(--muted);
    font-size: 13px;
}
.qr-placeholder .qricon { font-size: 44px; }

/* 列表分区（法规等） */
.list-section { margin-bottom: 40px; }
.list-section .ls-head {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 20px;
    font-weight: 700;
    color: var(--heading);
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
}
.list-section .ls-head .ls-icon { font-size: 22px; }
.list-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 16px;
    margin-bottom: 8px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 10px;
    transition: border-color 0.15s, box-shadow 0.15s;
}
.list-item:hover { border-color: var(--primary-soft); box-shadow: var(--shadow-sm); }
.list-item .li-title { font-size: 15px; color: var(--heading); }
.list-item .li-meta { font-size: 12px; color: var(--muted); margin-top: 2px; }
.list-item .li-badge { font-size: 12px; color: var(--primary); white-space: nowrap; }

/* 联系方式条目 */
.contact-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.contact-card { text-align: center; padding: 32px 22px; }
.contact-card .icon { font-size: 38px; margin-bottom: 12px; }
.contact-card .title { font-size: 16px; font-weight: 600; color: var(--heading); margin-bottom: 6px; }
.contact-card .value { font-size: 14px; color: var(--muted); word-break: break-all; }
.contact-card .value a { color: var(--primary); text-decoration: none; }

/* 表单（联系我们反馈占位） */
.form-field { margin-bottom: 16px; text-align: left; }
.form-field label { display: block; font-size: 13px; font-weight: 500; color: var(--text); margin-bottom: 6px; }
.form-field input,
.form-field textarea {
    width: 100%;
    padding: 11px 14px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--surface);
    color: var(--heading);
    font-size: 15px;
    font-family: inherit;
    outline: none;
    transition: border-color 0.15s, box-shadow 0.15s;
}
.form-field input:focus,
.form-field textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-tint); }
.form-field textarea { resize: vertical; min-height: 120px; }

/* ==========================================================================
   Footer（ICP 备案，不可省略）
   ========================================================================== */
.site-footer {
    text-align: center;
    padding: 22px 16px;
    background: var(--surface);
    border-top: 1px solid var(--border);
}
.site-footer a {
    color: var(--muted);
    font-size: 12px;
    text-decoration: none;
    margin: 0 8px;
    transition: color 0.15s;
}
.site-footer a:hover { color: var(--primary); }
.site-footer .beian-inline { display: inline-flex; align-items: center; gap: 4px; }
.site-footer .beian-inline img { width: 14px; height: 14px; }

/* ==========================================================================
   响应式
   ========================================================================== */
@media (max-width: 768px) {
    .nav-inner { padding: 12px 16px; }
    .nav-toggle { display: flex; }

    .nav-links {
        position: absolute;
        top: 100%; left: 0; right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 8px 16px 16px;
        background: #fff;
        border-bottom: 1px solid var(--border);
        box-shadow: 0 12px 24px rgba(15, 23, 42, 0.08);
        display: none;
    }
    .nav-links.nav-open { display: flex; }
    .nav-links a {
        padding: 14px 4px;
        font-size: 16px;
        border-bottom: 1px solid var(--border);
    }
    .nav-links a:last-child { border-bottom: none; }
    .nav-links a.active::after { display: none; }

    .page-hero h1 { font-size: 30px; letter-spacing: 1px; }
    .page-hero p { font-size: 15px; }
    .card-grid,
    .card-grid.cols-2,
    .card-grid.cols-4,
    .contact-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
    .card { padding: 18px 16px; }
    .section { padding: 32px 0 56px; }
    .section-title { font-size: 22px; }
}

@media (max-width: 480px) {
    .card-grid,
    .card-grid.cols-2,
    .card-grid.cols-4,
    .contact-grid { grid-template-columns: 1fr; }
    .page-hero { padding: 52px 0 32px; }
    .page-hero h1 { font-size: 26px; }
    .brand { font-size: 16px; }
}

/* ── 注册/登录下拉菜单 ── */
.dropdown { position: relative; display: inline-block; }
.dropdown-btn { background: none; border: none; color: inherit; font-size: 15px; cursor: pointer; padding: 8px 4px; font-family: inherit; }
.dropdown-btn:hover { color: var(--primary); }
.caret { font-size: 11px; margin-left: 2px; }
.dropdown-menu { display: none; position: absolute; top: 100%; right: 0; background: #fff; border: 1px solid #e2e8f0; border-radius: 8px; box-shadow: 0 6px 20px rgba(0,0,0,.12); min-width: 160px; z-index: 100; padding: 6px 0; }
.dropdown-menu a { display: block; padding: 10px 16px; color: #1a1a2e; text-decoration: none; white-space: nowrap; font-size: 14px; }
.dropdown-menu a:hover { background: #f5f7fa; color: var(--primary); }
.dropdown.open .dropdown-menu { display: block; }
