/* ===== 全局变量 ===== */
:root {
    --primary: #1a56db;
    --primary-light: #3b82f6;
    --primary-dark: #1e40af;
    --zhongkao: #2563eb;
    --gaokao: #ea580c;
    --teaching: #059669;
    --other: #7c3aed;
    --bg: #f8fafc;
    --card-bg: #ffffff;
    --text: #1e293b;
    --text-light: #64748b;
    --border: #e2e8f0;
    --shadow: 0 1px 3px rgba(0,0,0,0.08);
    --shadow-lg: 0 4px 16px rgba(0,0,0,0.10);
    --radius: 12px;
    --radius-sm: 8px;
    --radius-lg: 20px;
    --max-width: 1200px;
}

/* ===== Reset ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

/* ===== 导航栏 ===== */
.navbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: 64px;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    z-index: 1000;
    display: flex;
    align-items: center;
    padding: 0 32px;
}
.navbar .nav-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.navbar .logo-area {
    display: flex;
    align-items: center;
    gap: 12px;
}
.navbar .logo-area img {
    height: 40px;
    width: auto;
}
.navbar .nav-links {
    display: flex;
    gap: 28px;
    align-items: center;
}
.navbar .nav-links a {
    font-size: 15px;
    font-weight: 500;
    color: var(--text);
    transition: color 0.2s;
    position: relative;
}
.navbar .nav-links a:hover { color: var(--primary); }
.navbar .nav-links a.active { color: var(--primary); font-weight: 600; }
.navbar .nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: -4px; left: 0; right: 0;
    height: 2px;
    background: var(--primary);
    border-radius: 2px;
}
.nav-mobile-toggle { display: none; font-size: 24px; background: none; border: none; cursor: pointer; }

/* ===== 通用容器 ===== */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}
.section { padding: 64px 0; }
.section-header { text-align: center; margin-bottom: 48px; }
.section-header h2 { font-size: 32px; font-weight: 700; margin-bottom: 12px; }
.section-header p { font-size: 16px; color: var(--text-light); }
.section-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 8px;
}
.section-subtitle {
    font-size: 15px;
    color: var(--text-light);
    margin-bottom: 32px;
}

/* ===== 首页 Hero ===== */
.hero {
    min-height: calc(100vh - 64px);
    margin-top: 64px;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(239,246,255,0.9) 0%, rgba(240,253,244,0.85) 50%, rgba(255,247,237,0.9) 100%), url('../images/banner-zhongkao.jpg');
    background-size: cover;
    background-position: center bottom;
    background-repeat: no-repeat;
    background-attachment: fixed;
}
.hero-inner {
    display: flex;
    align-items: center;
    gap: 48px;
    width: 100%;
}
.hero-text { flex: 1.2; }
.hero-text h1 {
    font-size: 48px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 16px;
    background: linear-gradient(135deg, var(--primary-dark), var(--gaokao));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.hero-text .subtitle {
    font-size: 18px;
    color: var(--text-light);
    margin-bottom: 32px;
    line-height: 1.6;
}
.hero-text .hero-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 32px;
}
.hero-text .hero-tag {
    padding: 6px 16px;
    border-radius: 100px;
    font-size: 13px;
    font-weight: 500;
    background: rgba(255,255,255,0.8);
    border: 1px solid var(--border);
}
.hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    background: var(--primary);
    color: #fff;
    border-radius: 100px;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
}
.hero-cta:hover { background: var(--primary-dark); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(26,86,219,0.3); }
.hero-image { flex: 1; display: flex; justify-content: center; }
.hero-image img {
    max-height: 480px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

/* ===== 四大板块卡片 ===== */
.modules-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}
.module-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 32px 24px;
    text-align: center;
    transition: all 0.3s;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}
.module-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    border-radius: var(--radius) var(--radius) 0 0;
}
.module-card[data-theme="zhongkao"]::before { background: var(--zhongkao); }
.module-card[data-theme="gaokao"]::before { background: var(--gaokao); }
.module-card[data-theme="teaching"]::before { background: var(--teaching); }
.module-card[data-theme="other"]::before { background: var(--other); }
.module-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}
.module-card[data-theme="zhongkao"]:hover { border-color: var(--zhongkao); }
.module-card[data-theme="gaokao"]:hover { border-color: var(--gaokao); }
.module-card[data-theme="teaching"]:hover { border-color: var(--teaching); }
.module-card[data-theme="other"]:hover { border-color: var(--other); }

.module-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin: 0 auto 20px;
}
.module-card[data-theme="zhongkao"] .module-icon { background: #dbeafe; color: var(--zhongkao); }
.module-card[data-theme="gaokao"] .module-icon { background: #ffedd5; color: var(--gaokao); }
.module-card[data-theme="teaching"] .module-icon { background: #d1fae5; color: var(--teaching); }
.module-card[data-theme="other"] .module-icon { background: #ede9fe; color: var(--other); }

.module-card h3 { font-size: 20px; font-weight: 700; margin-bottom: 8px; }
.module-card p { font-size: 14px; color: var(--text-light); margin-bottom: 16px; }
.module-card .module-items {
    text-align: left;
    margin-bottom: 20px;
}
.module-card .module-items li {
    font-size: 13px;
    color: var(--text-light);
    padding: 4px 0;
    padding-left: 16px;
    position: relative;
}
.module-card .module-items li::before {
    content: '';
    position: absolute;
    left: 0; top: 50%;
    transform: translateY(-50%);
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--text-light);
}
.module-card[data-theme="zhongkao"] .module-items li::before { background: var(--zhongkao); }
.module-card[data-theme="gaokao"] .module-items li::before { background: var(--gaokao); }
.module-card[data-theme="teaching"] .module-items li::before { background: var(--teaching); }
.module-card[data-theme="other"] .module-items li::before { background: var(--other); }

.module-link {
    display: inline-block;
    padding: 8px 20px;
    border-radius: 100px;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.2s;
}
.module-card[data-theme="zhongkao"] .module-link { background: #dbeafe; color: var(--zhongkao); }
.module-card[data-theme="gaokao"] .module-link { background: #ffedd5; color: var(--gaokao); }
.module-card[data-theme="teaching"] .module-link { background: #d1fae5; color: var(--teaching); }
.module-card[data-theme="other"] .module-link { background: #ede9fe; color: var(--other); }
.module-link:hover { opacity: 0.85; }

/* ===== 数据统计 ===== */
.stats-bar {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 32px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    box-shadow: var(--shadow);
}
.stat-item { text-align: center; }
.stat-item .stat-num {
    font-size: 36px;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.stat-item .stat-label { font-size: 14px; color: var(--text-light); margin-top: 4px; }

/* ===== 页面Banner ===== */
.page-banner {
    margin-top: 64px;
    padding: 48px 0;
    position: relative;
    overflow: hidden;
}
.page-banner .banner-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    gap: 32px;
}
.page-banner .banner-text { flex: 1; }
.page-banner .banner-mascot {
    width: 200px;
    height: 260px;
    flex-shrink: 0;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    background: #fff;
}
.page-banner .banner-mascot img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}
.page-banner[data-theme="zhongkao"] { 
    background: linear-gradient(135deg, rgba(239,246,255,0.85), rgba(219,234,254,0.85)), url('../images/banner-zhongkao.jpg');
    background-size: cover;
    background-position: center bottom;
    background-repeat: no-repeat;
}
.page-banner[data-theme="gaokao"] { 
    background: linear-gradient(135deg, rgba(255,247,237,0.85), rgba(255,237,213,0.85)), url('../images/banner-gaokao.jpg');
    background-size: cover;
    background-position: center bottom;
    background-repeat: no-repeat;
}
.page-banner[data-theme="teaching"] { 
    background: linear-gradient(135deg, rgba(236,253,245,0.85), rgba(209,250,229,0.85)), url('../images/banner-teaching.jpg');
    background-size: cover;
    background-position: center bottom;
    background-repeat: no-repeat;
}
.page-banner[data-theme="other"] { 
    background: linear-gradient(135deg, rgba(245,243,255,0.85), rgba(237,233,254,0.85)), url('../images/banner-other.jpg');
    background-size: cover;
    background-position: center bottom;
    background-repeat: no-repeat;
}
.page-banner h1 { font-size: 36px; font-weight: 800; margin-bottom: 8px; }
.page-banner p { font-size: 16px; color: var(--text-light); }
.page-banner .banner-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
}
.page-banner .banner-tag {
    padding: 4px 14px;
    border-radius: 100px;
    font-size: 13px;
    font-weight: 500;
    background: rgba(255,255,255,0.7);
    border: 1px solid var(--border);
}

@media (max-width: 640px) {
    .page-banner .banner-inner {
        flex-direction: column;
        text-align: center;
    }
    .page-banner .banner-tags { justify-content: center; }
    .page-banner .banner-mascot { width: 160px; height: 200px; }
}

/* ===== 子页面Tab导航 ===== */
.sub-nav {
    position: sticky;
    top: 64px;
    background: var(--card-bg);
    border-bottom: 1px solid var(--border);
    z-index: 100;
    padding: 0 24px;
}
.sub-nav-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    gap: 8px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.sub-nav-inner::-webkit-scrollbar { display: none; }
.sub-nav-item {
    padding: 14px 20px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-light);
    white-space: nowrap;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    transition: all 0.2s;
    flex-shrink: 0;
}
.sub-nav-item:hover { color: var(--text); }
.sub-nav-item.active {
    color: var(--primary);
    font-weight: 600;
    border-bottom-color: var(--primary);
}
.sub-nav[data-theme="zhongkao"] .sub-nav-item.active { color: var(--zhongkao); border-bottom-color: var(--zhongkao); }
.sub-nav[data-theme="gaokao"] .sub-nav-item.active { color: var(--gaokao); border-bottom-color: var(--gaokao); }
.sub-nav[data-theme="teaching"] .sub-nav-item.active { color: var(--teaching); border-bottom-color: var(--teaching); }
.sub-nav[data-theme="other"] .sub-nav-item.active { color: var(--other); border-bottom-color: var(--other); }

/* ===== 子页面内容区 ===== */
.sub-page { display: none; }
.sub-page.active { display: block; }

.content-block {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 32px;
    margin-bottom: 24px;
    box-shadow: var(--shadow);
}
.content-block h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--border);
}
.content-block h4 {
    font-size: 17px;
    font-weight: 600;
    margin: 24px 0 12px;
}
.content-block p, .content-block li {
    font-size: 15px;
    line-height: 1.8;
    color: var(--text);
    margin-bottom: 8px;
}
.content-block ul, .content-block ol {
    margin-left: 20px;
    margin-bottom: 16px;
}
.content-block ul li { list-style: disc; }
.content-block ol li { list-style: decimal; }
.content-block strong { font-weight: 600; color: var(--primary-dark); }

/* ===== 信息卡片 ===== */
.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin: 24px 0;
}
.info-card {
    background: #f8fafc;
    border-radius: var(--radius-sm);
    padding: 24px;
    border-left: 4px solid var(--primary);
}
.info-card h4 { font-size: 16px; font-weight: 600; margin-bottom: 8px; }
.info-card p { font-size: 14px; color: var(--text-light); }
.info-card[data-color="zhongkao"] { border-left-color: var(--zhongkao); }
.info-card[data-color="gaokao"] { border-left-color: var(--gaokao); }
.info-card[data-color="teaching"] { border-left-color: var(--teaching); }
.info-card[data-color="other"] { border-left-color: var(--other); }

/* ===== 时间轴 ===== */
.timeline {
    position: relative;
    padding-left: 32px;
    margin: 24px 0;
}
.timeline::before {
    content: '';
    position: absolute;
    left: 8px; top: 0; bottom: 0;
    width: 2px;
    background: var(--border);
}
.timeline-item {
    position: relative;
    padding-bottom: 24px;
}
.timeline-item::before {
    content: '';
    position: absolute;
    left: -28px; top: 4px;
    width: 12px; height: 12px;
    border-radius: 50%;
    background: var(--primary);
    border: 2px solid #fff;
    box-shadow: 0 0 0 2px var(--primary);
}
.timeline-item[data-color="zhongkao"]::before { background: var(--zhongkao); box-shadow: 0 0 0 2px var(--zhongkao); }
.timeline-item[data-color="gaokao"]::before { background: var(--gaokao); box-shadow: 0 0 0 2px var(--gaokao); }
.timeline-item[data-color="teaching"]::before { background: var(--teaching); box-shadow: 0 0 0 2px var(--teaching); }
.timeline-item .timeline-date { font-size: 20px; font-weight: 700; color: var(--primary); margin-bottom: 6px; }
.timeline-item .timeline-content { font-size: 15px; color: var(--text); margin-top: 4px; }

/* ===== 表格 ===== */
.data-table {
    width: 100%;
    border-collapse: collapse;
    margin: 16px 0;
    font-size: 14px;
}
.data-table th {
    background: #f1f5f9;
    padding: 12px 16px;
    text-align: left;
    font-weight: 600;
    font-size: 13px;
    color: var(--text-light);
    border-bottom: 2px solid var(--border);
}
.data-table td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
}
.data-table tr:hover td { background: #f8fafc; }

/* ===== Q&A手风琴 ===== */
.qa-item {
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    margin-bottom: 12px;
    overflow: hidden;
}
.qa-question {
    padding: 16px 20px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f8fafc;
    transition: background 0.2s;
}
.qa-question:hover { background: #f1f5f9; }
.qa-question .qa-icon {
    font-size: 18px;
    transition: transform 0.2s;
    color: var(--primary);
}
.qa-item.open .qa-icon { transform: rotate(45deg); }
.qa-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}
.qa-item.open .qa-answer { max-height: 800px; }
.qa-answer-inner {
    padding: 16px 20px;
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.8;
}

/* ===== 标签 ===== */
.tag {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 100px;
    font-size: 12px;
    font-weight: 500;
}
.tag-blue { background: #dbeafe; color: var(--zhongkao); }
.tag-orange { background: #ffedd5; color: var(--gaokao); }
.tag-green { background: #d1fae5; color: var(--teaching); }
.tag-purple { background: #ede9fe; color: var(--other); }
.tag-gray { background: #f1f5f9; color: var(--text-light); }

/* ===== 提示框 ===== */
.callout {
    padding: 16px 20px;
    border-radius: var(--radius-sm);
    margin: 16px 0;
    font-size: 14px;
}
.callout-info { background: #eff6ff; border-left: 4px solid var(--zhongkao); }
.callout-warning { background: #fff7ed; border-left: 4px solid var(--gaokao); }
.callout-success { background: #ecfdf5; border-left: 4px solid var(--teaching); }
.callout-tip { background: #f5f3ff; border-left: 4px solid var(--other); }

/* ===== 课程大纲表格特殊样式 ===== */
.course-table {
    width: 100%;
    border-collapse: collapse;
    margin: 16px 0;
    font-size: 13px;
}
.course-table th {
    background: linear-gradient(135deg, var(--teaching), #10b981);
    color: #fff;
    padding: 10px 12px;
    text-align: center;
    font-weight: 600;
}
.course-table td {
    padding: 10px 12px;
    border: 1px solid var(--border);
    text-align: center;
}
.course-table tr:nth-child(even) td { background: #f8fafc; }
.course-table .lesson-num {
    font-weight: 700;
    color: var(--teaching);
    font-size: 16px;
}

/* ===== 课程大纲导航 ===== */
.grade-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 24px 0 16px;
    justify-content: center;
}
.grade-nav-item {
    padding: 10px 24px;
    background: #fff;
    border: 2px solid var(--border);
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    font-size: 15px;
    color: var(--text-secondary);
    transition: all 0.3s;
}
.grade-nav-item:hover {
    border-color: var(--teaching);
    color: var(--teaching);
}
.grade-nav-item.active {
    background: var(--teaching);
    border-color: var(--teaching);
    color: #fff;
}

.subject-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 16px 0 24px;
    padding: 16px;
    background: #f0fdf4;
    border-radius: 12px;
    justify-content: center;
}
.subject-nav-item {
    padding: 8px 20px;
    background: #fff;
    border: 1.5px solid var(--teaching);
    border-radius: 20px;
    cursor: pointer;
    font-weight: 500;
    font-size: 14px;
    color: var(--teaching);
    transition: all 0.3s;
}
.subject-nav-item:hover {
    background: #d1fae5;
}
.subject-nav-item.active {
    background: var(--teaching);
    color: #fff;
}

.grade-panel { display: none; }
.grade-panel.active { display: block; }
.subject-panel { display: none; }
.subject-panel.active { display: block; }

.syllabus-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--teaching);
    display: inline-block;
}
.syllabus-desc {
    color: var(--text-secondary);
    margin-bottom: 16px;
    line-height: 1.7;
}

/* ===== 扁平化图标 ===== */
.flat-icon {
    display: inline-block;
    vertical-align: middle;
    width: 20px;
    height: 20px;
    margin-right: 6px;
}
.flat-icon-lg {
    width: 36px;
    height: 36px;
    margin-right: 0;
}
.module-icon svg {
    width: 48px;
    height: 48px;
    display: block;
}

/* ===== 页脚 ===== */
.footer {
    background: #1e293b;
    color: #94a3b8;
    padding: 48px 0 24px;
    margin-top: 64px;
}
.footer-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 32px;
}
.footer-brand h4 { color: #fff; font-size: 18px; margin-bottom: 8px; }
.footer-brand p { font-size: 13px; line-height: 1.6; }
.footer-col h5 { color: #fff; font-size: 14px; margin-bottom: 12px; }
.footer-col a { display: block; font-size: 13px; margin-bottom: 8px; color: #94a3b8; transition: color 0.2s; }
.footer-col a:hover { color: #fff; }
.footer-bottom {
    max-width: var(--max-width);
    margin: 32px auto 0;
    padding: 16px 24px 0;
    border-top: 1px solid #334155;
    text-align: center;
    font-size: 13px;
    color: #64748b;
}

/* ===== 回到顶部 ===== */
.back-to-top {
    position: fixed;
    bottom: 32px; right: 32px;
    width: 44px; height: 44px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    cursor: pointer;
    opacity: 0;
    transition: all 0.3s;
    z-index: 999;
    border: none;
}
.back-to-top.visible { opacity: 1; }
.back-to-top:hover { background: var(--primary-dark); transform: translateY(-2px); }

/* ===== 响应式 ===== */
@media (max-width: 968px) {
    .modules-grid { grid-template-columns: repeat(2, 1fr); }
    .hero-inner { flex-direction: column; text-align: center; }
    .hero-text .hero-tags { justify-content: center; }
    .stats-bar { grid-template-columns: repeat(2, 1fr); }
    .footer-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
    .modules-grid { grid-template-columns: 1fr; }
    .stats-bar { grid-template-columns: 1fr; }
    .navbar { padding: 0 16px; }
    .navbar .nav-links { display: none; }
    .nav-mobile-toggle { display: block; }
    .hero-text h1 { font-size: 32px; }
    .section-header h2 { font-size: 24px; }
    .footer-inner { grid-template-columns: 1fr; }
    .content-block { padding: 20px; }
}

/* ===== 动画 ===== */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
.fade-in { animation: fadeInUp 0.6s ease-out; }

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
.sub-page.active { animation: fadeIn 0.4s ease-out; }

/* ===== 流程图样式 ===== */
.flow-diagram {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0;
    margin: 24px 0;
}
.flow-step {
    text-align: center;
    padding: 16px 24px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 600;
    min-width: 120px;
}
.flow-arrow {
    font-size: 20px;
    color: var(--text-light);
    margin: 0 8px;
}

/* ===== 冰山图样式 ===== */
.iceberg-container {
    position: relative;
    width: 100%;
    max-width: 600px;
    margin: 24px auto;
    height: 400px;
}
.iceberg-top {
    background: linear-gradient(180deg, #dbeafe, #bfdbfe);
    border-radius: 8px 8px 0 0;
    padding: 20px;
    text-align: center;
    position: relative;
    z-index: 2;
}
.iceberg-bottom {
    background: linear-gradient(180deg, #bfdbfe, #1e40af);
    border-radius: 0 0 50% 50%;
    padding: 40px 20px 20px;
    text-align: center;
    margin-top: -4px;
    position: relative;
    z-index: 1;
}
.iceberg-label {
    font-weight: 600;
    color: #1e293b;
}
.iceberg-bottom .iceberg-label { color: #fff; }
.iceberg-items {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-top: 12px;
}
.iceberg-items span {
    background: rgba(255,255,255,0.2);
    padding: 4px 12px;
    border-radius: 100px;
    font-size: 12px;
    color: #fff;
}

/* ===== 性格色彩卡片 ===== */
.color-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin: 24px 0;
}
.color-card {
    border-radius: var(--radius-sm);
    padding: 20px;
    color: #fff;
}
.color-card[data-color="red"] { background: linear-gradient(135deg, #ef4444, #dc2626); }
.color-card[data-color="yellow"] { background: linear-gradient(135deg, #f59e0b, #d97706); }
.color-card[data-color="blue"] { background: linear-gradient(135deg, #3b82f6, #2563eb); }
.color-card[data-color="green"] { background: linear-gradient(135deg, #10b981, #059669); }
.color-card h4 { color: #fff; margin-bottom: 8px; }
.color-card p { font-size: 13px; opacity: 0.9; }

/* ===== 登录页 ===== */
.login-page {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif;
}
.login-container {
    display: flex;
    min-height: 100vh;
}
.login-left {
    flex: 1;
    background: linear-gradient(135deg, #3B82F6 0%, #1D4ED8 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px;
    position: relative;
    overflow: hidden;
}
.login-left::before {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    background: rgba(255,255,255,0.08);
    border-radius: 50%;
    top: -100px;
    right: -100px;
}
.login-left::after {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    background: rgba(255,255,255,0.06);
    border-radius: 50%;
    bottom: -80px;
    left: -80px;
}
.login-brand {
    color: #fff;
    max-width: 480px;
    position: relative;
    z-index: 1;
}
.login-logo {
    height: 44px;
    margin-bottom: 32px;
    filter: brightness(0) invert(1);
}
.login-brand h1 {
    font-size: 40px;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 20px;
}
.login-brand > p {
    font-size: 16px;
    line-height: 1.8;
    opacity: 0.9;
    margin-bottom: 36px;
}
.login-features {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.login-feature {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 15px;
}
.feature-dot {
    width: 8px;
    height: 8px;
    background: #fff;
    border-radius: 50%;
    flex-shrink: 0;
}
.login-right {
    flex: 0 0 480px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    background: #f9fafb;
}
.login-box {
    width: 100%;
    max-width: 380px;
    background: #fff;
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
}
.login-box h2 {
    font-size: 24px;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 8px;
}
.login-subtitle {
    color: #6b7280;
    font-size: 14px;
    margin-bottom: 28px;
}
.form-group {
    margin-bottom: 18px;
}
.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #374151;
    margin-bottom: 8px;
}
.form-group input,
.form-group select {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
    font-family: inherit;
}
.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #3B82F6;
    box-shadow: 0 0 0 3px rgba(59,130,246,0.1);
}
.form-group .required {
    color: #ef4444;
}
.btn-login {
    width: 100%;
    padding: 13px;
    background: linear-gradient(135deg, #3B82F6, #1D4ED8);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    margin-top: 8px;
}
.btn-login:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(59,130,246,0.3);
}
.btn-login:active {
    transform: translateY(0);
}
.login-error,
.form-error {
    color: #ef4444;
    font-size: 13px;
    margin-bottom: 12px;
    min-height: 18px;
}

/* ===== 后台管理页 ===== */
.admin-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 28px;
    flex-wrap: wrap;
    gap: 20px;
}
.admin-stats {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}
.admin-stat-card {
    background: #fff;
    border-radius: 12px;
    padding: 20px 32px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    text-align: center;
    min-width: 120px;
}
.admin-stat-card .stat-num {
    font-size: 32px;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 4px;
}
.admin-stat-card .stat-label {
    font-size: 13px;
    color: #6b7280;
}
.btn-primary {
    padding: 10px 22px;
    background: linear-gradient(135deg, #3B82F6, #1D4ED8);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    font-family: inherit;
}
.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(59,130,246,0.3);
}
.btn-secondary {
    padding: 10px 22px;
    background: #fff;
    color: #374151;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s;
    font-family: inherit;
}
.btn-secondary:hover {
    background: #f9fafb;
}
.btn-danger {
    padding: 10px 22px;
    background: #ef4444;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    font-family: inherit;
}
.btn-danger:hover {
    background: #dc2626;
}
.btn-link {
    background: none;
    border: none;
    color: #3B82F6;
    font-size: 13px;
    cursor: pointer;
    padding: 4px 8px;
    font-family: inherit;
}
.btn-link:hover {
    text-decoration: underline;
}
.btn-danger-link {
    color: #ef4444;
}
.action-col {
    white-space: nowrap;
}
.role-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}
.role-admin {
    background: #fef3c7;
    color: #92400e;
}
.role-user {
    background: #dbeafe;
    color: #1e40af;
}
.badge-current {
    display: inline-block;
    padding: 2px 8px;
    background: #d1fae5;
    color: #065f46;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 500;
    margin-left: 6px;
}
.table-wrap {
    overflow-x: auto;
}

/* 导航栏用户信息 */
.nav-user {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: 20px;
    padding-left: 20px;
    border-left: 1px solid rgba(255,255,255,0.2);
}
.user-name {
    color: #fff;
    font-size: 14px;
    font-weight: 500;
}
.user-role {
    color: rgba(255,255,255,0.7);
    font-size: 12px;
    padding: 2px 8px;
    background: rgba(255,255,255,0.15);
    border-radius: 4px;
}
.logout-btn {
    color: rgba(255,255,255,0.8) !important;
    font-size: 13px !important;
    padding: 0 !important;
    margin: 0 !important;
    background: none !important;
    border: none !important;
    cursor: pointer;
}
.logout-btn:hover {
    color: #fff !important;
    text-decoration: underline;
}

/* 弹窗 */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 20px;
}
.modal-box {
    background: #fff;
    border-radius: 12px;
    width: 100%;
    max-width: 440px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
    animation: modalIn 0.2s ease;
}
.modal-sm {
    max-width: 360px;
}
@keyframes modalIn {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}
.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid #f3f4f6;
}
.modal-header h3 {
    font-size: 18px;
    font-weight: 600;
    color: #1f2937;
    margin: 0;
}
.modal-close {
    font-size: 24px;
    color: #9ca3af;
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s;
}
.modal-close:hover {
    color: #374151;
}
.modal-body {
    padding: 24px;
}
.modal-body p {
    color: #374151;
    font-size: 14px;
    line-height: 1.6;
}
.modal-footer {
    padding: 16px 24px;
    border-top: 1px solid #f3f4f6;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

/* 响应式 - 登录页 */
@media (max-width: 900px) {
    .login-container {
        flex-direction: column;
    }
    .login-left {
        padding: 40px 30px;
        flex: none;
    }
    .login-brand h1 {
        font-size: 28px;
    }
    .login-right {
        flex: 1;
        padding: 30px;
    }
    .login-box {
        padding: 30px;
    }
}
@media (max-width: 640px) {
    .admin-toolbar {
        flex-direction: column;
    }
    .admin-stats {
        width: 100%;
    }
    .admin-stat-card {
        flex: 1;
        min-width: 0;
        padding: 16px;
    }
    .admin-stat-card .stat-num {
        font-size: 24px;
    }
}
