/* ========== 基础变量与重置 ========== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --primary-deep: #1a365d;
    --primary: #2b6cb0;
    --primary-light: #2a4365;
    --text-dark: #2c3e50;
    --text-gray: #4a5568;
    --text-light: #718096;
    --border-light: #e2e8f0;
    --bg-page: #f4f7fa;
    --bg-white: #ffffff;
    --bg-dark-footer: #1a202c;
    --footer-text: #a0aec0;
    --shadow-sm: 0 4px 6px rgba(0,0,0,0.02);
    --shadow-card: 0 10px 25px -5px rgba(0,0,0,0.03);
    --radius: 8px;
}

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

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ========== 导航栏（与首页完全一致） ========== */
header {
    background: var(--bg-white);
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    padding: 15px 0;
}

.logo-area {
    flex-shrink: 0;
}

.logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--primary-deep);
    font-size: 22px;
    font-weight: 700;
    gap: 10px;
    white-space: nowrap;
}

.logo-link img {
    vertical-align: middle;
}

.menu-area {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.menu-area a {
    color: var(--text-gray);
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
    padding: 5px 0;
    border-bottom: 2px solid transparent;
    transition: color 0.2s, border-color 0.2s;
}

.menu-area a:hover,
.menu-area a.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

/* ========== 页面Hero区 ========== */
.page-hero {
    background: linear-gradient(135deg, #1a365d 0%, #2a4365 100%);
    color: #fff;
    padding: 60px 0;
    text-align: center;
}

.page-hero h1 {
    font-size: 32px;
    font-weight: 700;
    letter-spacing: -0.5px;
    margin-bottom: 15px;
    line-height: 1.3;
}

.hero-sub {
    font-size: 18px;
    max-width: 700px;
    margin: 0 auto;
    color: #e2e8f0;
    opacity: 0.95;
}

/* ========== 主内容区 ========== */
main {
    padding: 50px 0;
}

.category-cards {
    background: var(--bg-white);
    padding: 35px 30px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    margin-bottom: 40px;
    border: 1px solid var(--border-light);
}

.section-title {
    font-size: 24px;
    color: var(--primary-deep);
    margin: 0 0 25px 0;
    padding-left: 12px;
    border-left: 4px solid var(--primary);
    font-weight: 700;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.cat-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background: #f9fbfd;
    border-radius: var(--radius);
    padding: 25px 15px;
    border: 1px solid var(--border-light);
    text-decoration: none;
    color: var(--text-dark);
    transition: all 0.25s ease;
    scroll-margin-top: 100px;
}

.cat-card:hover {
    border-color: var(--primary);
    box-shadow: 0 12px 24px rgba(43, 108, 176, 0.06);
    transform: translateY(-3px);
}

.cat-icon {
    font-size: 36px;
    margin-bottom: 15px;
}

.cat-card h3 {
    font-size: 18px;
    color: var(--primary-deep);
    margin: 0 0 8px 0;
}

.cat-card p {
    font-size: 13px;
    color: var(--text-light);
    margin: 0;
}

/* ========== FAQ列表 ========== */
.faq-section {
    background: var(--bg-white);
    padding: 35px 30px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    margin-bottom: 40px;
    border: 1px solid var(--border-light);
}

.faq-item {
    border-bottom: 1px solid var(--border-light);
}

.faq-item:last-child {
    border-bottom: none;
}

.faq-item summary {
    padding: 22px 15px;
    font-weight: 600;
    font-size: 16px;
    color: var(--primary-deep);
    cursor: pointer;
    outline: none;
    list-style: none;
    transition: background 0.2s, color 0.2s;
    display: flex;
    align-items: center;
    scroll-margin-top: 80px;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::before {
    content: "Q";
    color: var(--primary);
    font-weight: 700;
    font-size: 18px;
    margin-right: 12px;
    flex-shrink: 0;
}

.faq-item summary:hover {
    background: #f0f5fa;
}

.faq-item[open] summary {
    background: #f0f5fa;
    color: var(--primary);
    border-bottom: 1px solid var(--border-light);
}

.faq-q {
    flex: 1;
}

.faq-answer {
    padding: 0 20px 20px;
    font-size: 14px;
    color: var(--text-gray);
    line-height: 1.8;
}

.faq-answer p {
    margin: 0 0 12px 0;
}

.faq-answer ol,
.faq-answer ul {
    margin: 0 0 12px 0;
    padding-left: 20px;
}

.faq-answer li {
    margin-bottom: 6px;
}

.faq-answer code {
    background: #edf2f7;
    padding: 2px 6px;
    border-radius: 3px;
    font-family: "Cascadia Code", monospace;
    font-size: 13px;
    color: #2b6cb0;
}

/* ========== CTA 区域 ========== */
.cta-section {
    text-align: center;
    padding: 25px;
    background: var(--bg-white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    border: 1px dashed var(--primary);
    color: var(--text-gray);
    font-size: 16px;
}

.cta-section a {
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
    border-bottom: 1px solid var(--primary);
    transition: opacity 0.2s;
}

.cta-section a:hover {
    opacity: 0.8;
}

/* ========== 页脚（与首页完全一致） ========== */
footer {
    background: var(--bg-dark-footer);
    color: var(--footer-text);
    padding: 50px 0 0;
    border-top: 4px solid var(--primary);
    font-size: 14px;
}

.footer-table {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 30px;
    padding-bottom: 30px;
}

.footer-row {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    gap: 30px;
}

.footer-cell {
    flex: 1 1 200px;
    min-width: 160px;
}

.footer-cell h4 {
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 20px;
    letter-spacing: 0.3px;
}

.footer-cell ul {
    list-style: none;
}

.footer-cell ul li {
    margin-bottom: 12px;
}

.footer-cell ul li a {
    color: var(--footer-text);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-cell ul li a:hover {
    color: #fff;
}

.footer-bottom {
    border-top: 1px solid #2d3748;
    padding: 20px 0;
    text-align: center;
    font-size: 13px;
    color: var(--footer-text);
    line-height: 1.8;
}

/* ========== 响应式设计 ========== */
@media (max-width: 768px) {
    .nav-wrapper {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    .menu-area {
        justify-content: center;
    }
    .page-hero h1 {
        font-size: 26px;
    }
    .hero-sub {
        font-size: 16px;
    }
    .category-cards,
    .faq-section {
        padding: 20px;
    }
    .card-grid {
        grid-template-columns: 1fr 1fr;
    }
    .faq-item summary {
        font-size: 15px;
    }
    .footer-row {
        flex-direction: column;
    }
}