/* ========================================
   Shanghai Education Platform - Global Styles
   Primary Color: #1769E0 (鲜亮宝蓝·权威+活力 / 天青海蓝升级)
   Layout: Card-based, Responsive
   ======================================== */

/* === Reset & Base === */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #1769E0;          /* 鲜亮宝蓝：权威 + 活力 */
    --primary-light: #4D9BF2;    /* 轻盈天蓝 */
    --primary-dark: #0E4BA8;     /* 深宝蓝，保留层次（仍明快） */
    --primary-bg: #E8F1FD;       /* 浅蓝底纹（更亮更透） */
    --primary-bg-light: #F4F9FF;
    --accent: #FF8A1F;           /* 活力橙：能量点缀（热门/推荐/二维码描边） */
    --accent-light: #FFB45C;
    --festive: #C81623;          /* 金榜题名喜庆红（保留品牌红） */
    --festive-dark: #A0101C;     /* 喜庆红·深（按钮 hover） */
    --festive-light: #E23B45;    /* 喜庆红·亮（点缀） */
    --festive-bg: #FDECEC;       /* 喜庆红·浅底（标签/胶囊） */
    --text-primary: #16243A;
    --text-secondary: #475569;
    --text-muted: #8A98A8;
    --bg-page: #F5F9FE;
    --bg-card: #FFFFFF;
    --border: #E6EEF8;
    --border-light: #F1F7FC;
    --success: #15A06A;
    --danger: #C81623;
    --shadow-sm: 0 1px 3px rgba(23,105,224,0.08);
    --shadow-md: 0 6px 16px rgba(23,105,224,0.10);
    --shadow-lg: 0 12px 30px rgba(23,105,224,0.14);
    --radius: 12px;
    --radius-sm: 8px;
    --radius-lg: 18px;
    --transition: all 0.25s ease;
    --max-width: 1200px;
    --header-height: 78px;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
    background: var(--bg-page);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--primary-light);
}

img {
    max-width: 100%;
    display: block;
}

ul, ol {
    list-style: none;
}

/* === Header === */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    height: var(--header-height);
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary) 100%);
    box-shadow: 0 2px 10px rgba(23,105,224,0.20);
}

.header-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 14px;
    color: #fff;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-shadow: 0 1px 3px rgba(0,0,0,0.35);
}

.logo-img {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    display: block;
    object-fit: cover;
    flex: 0 0 auto;
    box-shadow: 0 0 0 3px #fff, 0 3px 12px rgba(0,0,0,0.32);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.logo:hover .logo-img {
    transform: scale(1.06);
    box-shadow: 0 0 0 3px #fff, 0 4px 16px rgba(0,0,0,0.42);
}

.logo-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1.2;
}

.logo-line {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.4rem;
    letter-spacing: 0.5px;
}
.logo-title {
    color: #fff;
    font-weight: 700;
}

.logo-sub {
    font-size: 0.56rem;
    font-weight: 400;
    letter-spacing: 0.2px;
    color: rgba(255, 255, 255, 0.78);
    text-shadow: none;
    margin-top: 2px;
    text-align: left;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav-menu a {
    color: rgba(255,255,255,0.9);
    font-size: 0.95rem;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.nav-menu a:hover,
.nav-menu a.active {
    color: #fff;
    background: rgba(255,255,255,0.15);
    box-shadow: inset 0 -3px 0 var(--festive-light);
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 4px 8px;
}

/* === Main Content === */
.main-content {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 36px 24px;
}

.page-banner {
    background:
        linear-gradient(90deg, rgba(23,105,224,0.92) 0%, rgba(23,105,224,0.80) 42%, rgba(14,75,168,0.50) 100%),
        url('../images/shanghai-pearl-banner.jpg') center 38% / cover no-repeat;
    color: #fff;
    border-radius: var(--radius-lg);
    padding: 46px 48px;
    margin-bottom: 34px;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.page-banner::after {
    content: '';
    position: absolute;
    right: -40px;
    top: -40px;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(200,22,35,0.22) 0%, rgba(200,22,35,0) 70%);
    border-radius: 50%;
}

.page-banner h1 {
    font-size: 2rem;
    margin-bottom: 8px;
    position: relative;
    z-index: 1;
    text-shadow: 0 1px 10px rgba(0,0,0,0.22);
    letter-spacing: 0.5px;
}

.page-banner p {
    font-size: 0.95rem;
    opacity: 0.9;
    position: relative;
    z-index: 1;
}

/* 金榜题名喜庆红点缀：胶囊标签 + 主按钮 */
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--festive);
    color: #fff;
    font-size: 0.82rem;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 999px;
    margin-bottom: 14px;
    position: relative;
    z-index: 1;
    box-shadow: 0 4px 14px rgba(200,22,35,0.35);
    letter-spacing: 0.5px;
}
.hero-badge::before { content: '\1F389'; margin-right: 2px; }

.btn-festive {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 18px;
    background: var(--festive);
    color: #fff;
    font-size: 0.98rem;
    font-weight: 700;
    padding: 12px 26px;
    border-radius: 999px;
    text-decoration: none;
    position: relative;
    z-index: 1;
    box-shadow: 0 6px 18px rgba(200,22,35,0.38);
    transition: var(--transition);
}
.btn-festive:hover {
    background: var(--festive-dark);
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(200,22,35,0.45);
}

/* === Section Title === */
.section-title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 24px;
    letter-spacing: 0.3px;
}

.section-title .bar {
    width: 4px;
    height: 22px;
    background: linear-gradient(180deg, var(--primary) 0%, var(--festive) 100%);
    border-radius: 2px;
}

.section-title .more {
    margin-left: auto;
    font-size: 0.85rem;
    font-weight: 400;
    color: var(--primary);
}

/* === Card === */
.card {
    background: var(--bg-card);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
    transition: var(--transition);
    overflow: hidden;
}

.card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.card-body {
    padding: 24px;
}

/* === Hero Section Cards (3 stages) === */
.stage-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 40px;
}

.stage-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
    overflow: hidden;
    transition: var(--transition);
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    display: block;
}

.stage-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
    color: inherit;
}

.stage-card-header {
    height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.stage-card:nth-child(1) .stage-card-header {
    background: linear-gradient(135deg, #0E4BA8 0%, #1769E0 100%);
}

.stage-card:nth-child(2) .stage-card-header {
    background: linear-gradient(135deg, #C81623, #E2453F);
}

.stage-card:nth-child(3) .stage-card-header {
    background: linear-gradient(135deg, #F57C00, #FF9E2C);
}

.stage-card-icon {
    font-size: 3rem;
    color: #fff;
    z-index: 1;
}

.stage-card-header::after {
    content: '';
    position: absolute;
    right: -30px;
    bottom: -30px;
    width: 120px;
    height: 120px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
}

.stage-card-body {
    padding: 24px;
}

.stage-card-body h3 {
    font-size: 1.3rem;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.stage-card-body p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.stage-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.stage-card-tag {
    font-size: 0.75rem;
    padding: 3px 10px;
    border-radius: 12px;
    background: var(--primary-bg);
    color: var(--primary);
}

.stage-card:nth-child(2) .stage-card-tag {
    background: #fdecec;
    color: #C81623;
}

.stage-card:nth-child(3) .stage-card-tag {
    background: #fff1e2;
    color: #F57C00;
}

.stage-card-arrow {
    margin-top: 16px;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    font-weight: 600;
}

.stage-card:nth-child(1) .stage-card-arrow { color: var(--primary); }
.stage-card:nth-child(2) .stage-card-arrow { color: #C81623; }
.stage-card:nth-child(3) .stage-card-arrow { color: #F57C00; }

/* === Timeline === */
.timeline {
    background: var(--bg-card);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
    padding: 28px;
    margin-bottom: 32px;
}

.timeline-track {
    position: relative;
    padding-left: 32px;
}

.timeline-track::before {
    content: '';
    position: absolute;
    left: 8px;
    top: 8px;
    bottom: 8px;
    width: 2px;
    background: linear-gradient(to bottom, var(--primary), var(--border));
}

.timeline-item {
    position: relative;
    padding-bottom: 24px;
}

.timeline-item:last-child {
    padding-bottom: 0;
}

.timeline-dot {
    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:not(.active) .timeline-dot {
    background: var(--border);
    box-shadow: 0 0 0 2px var(--border);
}

.timeline-date {
    font-size: 0.8rem;
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 4px;
}

.timeline-content {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.timeline-content strong {
    color: var(--text-primary);
}

/* === Info Grid === */
.info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 32px;
}

.info-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
    padding: 24px;
    transition: var(--transition);
}

.info-card:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--primary);
}

.info-card-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.info-card-title .icon {
    font-size: 1.3rem;
}

.info-card ul {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.info-card ul li {
    font-size: 0.88rem;
    color: var(--text-secondary);
    padding-left: 16px;
    position: relative;
}

.info-card ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--primary);
}

.info-card ul li a {
    color: var(--text-secondary);
}

.info-card ul li a:hover {
    color: var(--primary);
}

/* === Data Table === */
.data-table-wrapper {
    background: var(--bg-card);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
    overflow: hidden;
    margin-bottom: 32px;
}

.table-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

.table-header h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-primary);
}

.table-filters {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.filter-select {
    padding: 6px 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 0.82rem;
    color: var(--text-secondary);
    background: var(--bg-page);
    cursor: pointer;
    outline: none;
    transition: var(--transition);
}

.filter-select:focus,
.filter-select:hover {
    border-color: var(--primary);
}

.filter-input {
    padding: 6px 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 0.82rem;
    color: var(--text-secondary);
    background: var(--bg-page);
    outline: none;
    transition: var(--transition);
    min-width: 200px;
}

.filter-input:focus,
.filter-input:hover {
    border-color: var(--primary);
}

.table-scroll {
    overflow-x: auto;
}

table.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.88rem;
}

table.data-table thead th {
    background: var(--primary-bg);
    color: var(--primary-dark);
    font-weight: 600;
    text-align: left;
    padding: 12px 16px;
    white-space: nowrap;
    border-bottom: 2px solid var(--primary);
    position: sticky;
    top: 0;
}

table.data-table tbody td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-light);
    color: var(--text-secondary);
}

table.data-table tbody tr:hover {
    background: var(--primary-bg-light);
}

table.data-table tbody tr:last-child td {
    border-bottom: none;
}

.tag {
    display: inline-block;
    font-size: 0.72rem;
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 500;
}

.tag-blue { background: var(--primary-bg); color: var(--primary); }
.tag-green { background: #fdecec; color: #C81623; }
.tag-orange { background: #fff1e2; color: #F57C00; }
.tag-red { background: #fff0f0; color: #C81623; }
.tag-gray { background: #f0f1f3; color: #8898aa; }
.tag-weishu { background: #f3e8ff; color: #7c3aed; }

/* === Policy List === */
.policy-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.policy-item {
    background: var(--bg-card);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
    padding: 20px 24px;
    transition: var(--transition);
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.policy-item:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--primary);
}

.policy-date {
    flex-shrink: 0;
    text-align: center;
    width: 56px;
}

.policy-date .day {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary);
    line-height: 1.2;
}

.policy-date .month {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.policy-info {
    flex: 1;
    min-width: 0;
}

.policy-info h4 {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.policy-info p {
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-bottom: 8px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.policy-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.78rem;
    color: var(--text-muted);
}

.policy-meta .source {
    color: var(--primary);
}

/* === Alert Banner === */
.alert-banner {
    background: linear-gradient(135deg, #fff1e2 0%, #fffbf2 100%);
    border: 1px solid #f5c842;
    border-left: 4px solid #C81623;
    border-radius: var(--radius);
    padding: 16px 24px;
    margin-bottom: 28px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.alert-banner .icon {
    font-size: 1.3rem;
    flex-shrink: 0;
}

.alert-banner .text {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

.alert-banner .text strong {
    color: var(--text-primary);
}

/* === FAQ === */
.faq-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.faq-item {
    background: var(--bg-card);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
    overflow: hidden;
}

.faq-question {
    padding: 18px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
    transition: var(--transition);
}

.faq-question:hover {
    background: var(--primary-bg-light);
}

.faq-question .toggle {
    color: var(--primary);
    font-size: 1.2rem;
    transition: var(--transition);
}

.faq-item.open .faq-question .toggle {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    padding: 0 24px;
}

.faq-item.open .faq-answer {
    max-height: 500px;
    padding: 0 24px 18px;
}

.faq-answer p {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.8;
}

.faq-answer .source {
    margin-top: 8px;
    font-size: 0.78rem;
    color: var(--primary);
}

/* === Tabs === */
.tabs {
    display: flex;
    gap: 4px;
    border-bottom: 2px solid var(--border);
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.tab {
    padding: 10px 20px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    cursor: pointer;
    border: none;
    background: none;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    transition: var(--transition);
    text-decoration: none;
}

.tab:hover {
    color: var(--primary);
}

.tab.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
    font-weight: 600;
}

.tab-panel {
    display: none;
}

.tab-panel.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* === District Grid === */
.district-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 10px;
    margin-bottom: 24px;
}

.district-chip {
    text-align: center;
    padding: 10px 8px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    font-size: 0.85rem;
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition);
    background: var(--bg-card);
}

.district-chip:hover,
.district-chip.active {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

/* === Two Column Layout === */
.two-col {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 24px;
    margin-bottom: 32px;
}

.sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* === Disclaimer Box === */
.disclaimer-box {
    background: #fafbfc;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px 24px;
    margin-bottom: 24px;
}

.disclaimer-box h4 {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-secondary);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.disclaimer-box p {
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.7;
}

/* === Stats Bar === */
.stats-bar {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 32px;
}

.stat-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
    padding: 20px;
    text-align: center;
    transition: var(--transition);
}

.stat-card:hover {
    box-shadow: var(--shadow-md);
}

.stat-card .number {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--festive);
    margin-bottom: 4px;
}

.stat-card .label {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* === Quick Links === */
.quick-links {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
    margin-bottom: 32px;
}

.quick-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 18px;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    transition: var(--transition);
    color: var(--text-secondary);
    font-size: 0.88rem;
}

.quick-link:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--primary-bg-light);
    transform: translateX(4px);
}

.quick-link .icon {
    font-size: 1.2rem;
}

/* === About Page === */
.about-section {
    background: var(--bg-card);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
    padding: 32px;
    margin-bottom: 24px;
}

.about-section h2 {
    font-size: 1.2rem;
    color: var(--primary);
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--primary-bg);
}

.about-section h3 {
    font-size: 1rem;
    color: var(--text-primary);
    margin: 20px 0 10px;
}

.about-section p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 12px;
}

.about-section ol {
    list-style: decimal;
    padding-left: 20px;
    margin-bottom: 12px;
}

.about-section ol li {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 8px;
}

.about-section .highlight {
    background: var(--primary-bg);
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    border-left: 3px solid var(--primary);
    margin: 16px 0;
}

.about-section .highlight p {
    margin-bottom: 0;
    color: var(--primary-dark);
    font-weight: 500;
}

/* === Footer === */
.site-footer {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    color: #ffffff;
    padding: 40px 0 20px;
    margin-top: 40px;
}

.footer-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

.footer-top {
    display: grid;
    grid-template-columns: 1.6fr 1.4fr 1fr 1fr 1fr;
    gap: 28px;
    padding-bottom: 28px;
    border-bottom: 1px solid rgba(255,255,255,0.15);
}

.footer-brand {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}
.footer-brand-text {
    flex: 1;
    min-width: 0;
}
.footer-brand h4 {
    color: #ffffff;
    font-size: 1.1rem;
    margin-bottom: 12px;
}

.footer-brand p {
    color: rgba(255,255,255,0.82);
    font-size: 0.82rem;
    line-height: 1.8;
}

.footer-col h5 {
    color: #ffffff;
    font-size: 0.9rem;
    margin-bottom: 12px;
}

.footer-col ul li {
    margin-bottom: 8px;
}

.footer-col ul li a {
    color: rgba(255,255,255,0.78);
    font-size: 0.82rem;
}

.footer-col ul li a:hover {
    color: var(--accent);
}

.footer-bottom {
    padding-top: 20px;
    text-align: center;
    font-size: 0.78rem;
    color: rgba(255,255,255,0.6);
    line-height: 1.8;
}

.footer-bottom .icp {
    margin-top: 4px;
}

/* 底部扫码关注：小程序 / 公众号二维码，直接置于深蓝 footer（无白底卡片），两码上下分开 */
.footer-qr-col {
    text-align: center;
}
.footer-qr-col h5 {
    color: #ffffff;
    font-size: 0.9rem;
    margin-bottom: 16px;
}
.footer-qr {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    justify-content: center;
    gap: 20px;
    margin: 0;
}
.footer-qr .qr-item { text-align: center; }
.footer-qr .qr-img {
    width: 92px;
    height: 92px;
    background: #ffffff;
    border: 2px solid var(--accent);
    border-radius: 10px;
    padding: 6px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}
.footer-qr .qr-cap {
    color: rgba(255,255,255,0.9);
    font-size: 0.76rem;
    margin-top: 7px;
}
.footer-qr .qr-divider {
    width: 1px;
    height: 92px;
    background: rgba(255,255,255,0.2);
}

/* === Breadcrumb === */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.breadcrumb a {
    color: var(--text-secondary);
}

.breadcrumb a:hover {
    color: var(--primary);
}

.breadcrumb .sep {
    color: var(--border);
}

/* === Pagination === */
.pagination {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 24px;
}

.pagination button {
    min-width: 36px;
    height: 36px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--bg-card);
    color: var(--text-secondary);
    font-size: 0.85rem;
    cursor: pointer;
    transition: var(--transition);
    padding: 0 10px;
}

.pagination button:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.pagination button.active {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

.pagination button:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.pager-info {
    display: inline-flex;
    align-items: center;
    padding: 0 8px;
    font-size: 0.82rem;
    color: var(--text-muted);
    white-space: nowrap;
}

.pagination button.pager-ellipsis {
    border: none;
    background: transparent;
    cursor: default;
}

/* === Responsive === */
@media (max-width: 968px) {
    .stage-cards {
        grid-template-columns: 1fr;
    }

    .info-grid {
        grid-template-columns: 1fr;
    }

    .two-col {
        grid-template-columns: 1fr;
    }

    .stats-bar {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-top {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        display: none;
        position: absolute;
        top: var(--header-height);
        left: 0;
        right: 0;
        background: var(--primary-dark);
        flex-direction: column;
        padding: 12px;
        gap: 2px;
    }

    .nav-menu.open {
        display: flex;
    }

    .nav-menu a {
        width: 100%;
        padding: 12px 16px;
    }

    .mobile-toggle {
        display: block;
    }

    .logo-img {
        width: 46px;
        height: 46px;
    }

    .logo {
        font-size: 1.05rem;
        gap: 10px;
    }

    .main-content {
        padding: 20px 16px;
    }

    .page-banner {
        padding: 28px 24px;
    }

    .page-banner h1 {
        font-size: 1.5rem;
    }

    .stats-bar {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-top {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .section-title {
        font-size: 1.1rem;
    }

    .table-header {
        flex-direction: column;
        align-items: flex-start;
    }

    /* —— 移动端增强补丁（2026-09-28） —— */
    /* 头部账号区：窄屏隐藏配额文字、胶囊缩小，避免与 logo / 汉堡挤压 */
    .header-account { margin-left: 4px; gap: 6px; }
    .member-quota { display: none; }
    .account-pill { padding: 3px 4px 3px 10px; gap: 2px; }
    .ac-login, .ac-reg { padding: 5px 11px; font-size: 0.8rem; }
    /* logo 站名缩小，给右侧按钮腾空间 */
    .logo { font-size: 0.92rem; gap: 8px; }
    .logo-img { width: 42px; height: 42px; }

    /* hero 红胶囊 + 节日按钮：窄屏更紧凑、点击舒适 */
    .page-banner { padding: 26px 20px; }
    .hero-badge { font-size: 0.72rem; padding: 4px 12px; }
    .btn-festive { display: inline-block; font-size: 0.9rem; padding: 11px 22px; margin-top: 4px; }

    /* 热门数据快捷查询：手机两列紧凑网格（桌面 auto-fill 在窄屏会留白过大） */
    .quick-links { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .quick-link { padding: 11px 12px; font-size: 0.8rem; gap: 7px; }
    .quick-link .icon { font-size: 1.05rem; }

    /* footer 二维码：并排保持（用户要求平行），加最小宽度保护防溢出 */
    .footer-qr { gap: 16px; }
    .footer-qr .qr-img { width: 112px; height: 112px; }

    /* 区块标题副链接不挤 */
    .section-title .more { font-size: 0.78rem; }
}

@media (max-width: 480px) {
    .stats-bar {
        grid-template-columns: 1fr;
    }

    .stage-card-header {
        height: 100px;
    }

    .stage-card-icon {
        font-size: 2.2rem;
    }

    /* —— 超窄屏增强（2026-09-28） —— */
    .logo { font-size: 0.8rem; }
    .logo-img { width: 38px; height: 38px; }
    /* 超窄屏只留「注册」CTA，登录入口并入注册页，避免头部溢出 */
    .ac-login { display: none; }
    .quick-links { grid-template-columns: 1fr; }
    .page-banner h1 { font-size: 1.3rem; }
    .page-banner p { font-size: 0.85rem; }
    .footer-qr .qr-img { width: 100px; height: 100px; }
}

/* ========================================
   多级导航 / 侧边栏 / 子页面布局（扩展）
   一级：顶部学段入口
   二级：下拉面板分组（招生政策等）
   三级：分组内链接（市级政策等）
   四级：右侧飞出子菜单（16区/年份等）
   ======================================== */

/* --- 顶部多级导航 --- */
.nav-list {
    display: flex;
    align-items: center;
    gap: 2px;
    list-style: none;
}

.nav-item { position: relative; }

.nav-link {
    display: flex;
    align-items: center;
    gap: 4px;
    color: rgba(255,255,255,0.9);
    font-size: 0.95rem;
    font-weight: 500;
    padding: 8px 13px;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.nav-link .nav-caret { font-size: 0.55rem; opacity: 0.8; }

.nav-link:hover,
.nav-link.active {
    color: #fff;
    background: rgba(255,255,255,0.15);
}

/* 二级下拉面板 */
.has-mega::before {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    height: 12px;
}

.has-mega > .mega-panel {
    position: absolute;
    top: calc(100% + 12px);
    left: 0;
    z-index: 1100;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 14px 44px rgba(23,105,224,0.2);
    border: 1px solid var(--border);
    padding: 18px 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px 26px;
    min-width: 660px;
    max-width: 740px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
}

.has-mega:hover > .mega-panel,
.has-mega:focus-within > .mega-panel {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.mega-group { width: 198px; flex: 0 0 auto; }

.mega-group-title {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: 2px;
    padding: 6px 10px 8px;
    border-bottom: 1px solid var(--border-light);
    margin-bottom: 6px;
}

/* 带直达链接的二级分组标题：可点击跳转 */
a.mega-group-title {
    display: block;
    text-decoration: none;
    cursor: pointer;
    color: var(--primary);  /* 覆盖 .nav-menu a 的白色，白底浮层上方可见 */
    /* 与 .mega-group-title（分组头）同款字体：.nav-menu a 的 0.95rem/500 会覆盖标题的 0.78rem/700，这里显式拉回 */
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 2px;
    padding: 6px 10px 8px;
    border-bottom: 1px solid var(--border-light);
    margin-bottom: 6px;
    border-radius: 0;
}
a.mega-group-title:hover {
    color: var(--primary);
    opacity: 0.78;
}

.mega-group ul { list-style: none; }

.mega-group ul li a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    padding: 7px 10px;
    font-size: 0.85rem;
    color: var(--text-secondary);
    border-radius: var(--radius-sm);
}

.mega-group ul li a:hover {
    background: var(--primary-bg);
    color: var(--primary);
}

.fly-caret { color: var(--text-muted); font-size: 0.7rem; }

/* 四级飞出菜单 */
.has-fly { position: relative; }

.has-fly > .flyout {
    position: absolute;
    left: calc(100% + 6px);
    top: -10px;
    z-index: 1150;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 12px 32px rgba(23,105,224,0.18);
    border: 1px solid var(--border);
    padding: 8px;
    min-width: 152px;
    columns: 2;
    column-gap: 2px;
    max-height: 330px;
    overflow-y: auto;
    display: none;
}

.has-fly:hover > .flyout,
.has-fly:focus-within > .flyout { display: block; }

.flyout li a {
    display: block;
    padding: 6px 12px;
    font-size: 0.82rem;
    color: var(--text-secondary);
    white-space: nowrap;
    break-inside: avoid;
    border-radius: var(--radius-sm);
}

.flyout li a:hover {
    color: var(--primary);
    background: var(--primary-bg-light);
}

/* --- 子页面顶部面包屑条 --- */
.subpage-topbar {
    background: #fff;
    border-bottom: 1px solid var(--border-light);
}

.subpage-topbar .breadcrumb {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 12px 24px;
    margin-bottom: 0;
}

.breadcrumb .crumb-current {
    color: var(--text-primary);
    font-weight: 600;
}

/* --- 子页面标题区 --- */
.subpage-head {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    border-radius: var(--radius-lg);
    color: #fff;
    padding: 30px 34px;
    margin-bottom: 24px;
    position: relative;
    overflow: hidden;
}

.subpage-head::after {
    content: '';
    position: absolute;
    right: -30px;
    top: -30px;
    width: 160px;
    height: 160px;
    background: rgba(255,255,255,0.07);
    border-radius: 50%;
}

.subpage-head.pearl-banner {
    background:
        linear-gradient(90deg, rgba(23,105,224,0.92) 0%, rgba(23,105,224,0.80) 42%, rgba(14,75,168,0.50) 100%),
        url('../images/shanghai-pearl-banner.jpg') center 38% / cover no-repeat;
}
.subpage-head.pearl-banner::after {
    background: radial-gradient(circle, rgba(200,22,35,0.22) 0%, rgba(200,22,35,0) 70%);
}
.subpage-head h1 {
    font-size: 1.55rem;
    margin-bottom: 8px;
    position: relative;
    z-index: 1;
}

.subpage-head p {
    font-size: 0.9rem;
    opacity: 0.9;
    position: relative;
    z-index: 1;
}

/* --- 侧边栏 + 内容双栏布局 --- */
.page-with-side {
    display: grid;
    grid-template-columns: 250px minmax(0, 1fr);
    gap: 24px;
    align-items: start;
}

.page-body { min-width: 0; }

/* --- 侧边栏树形菜单 --- */
.side-tree-box {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    position: sticky;
    top: 84px;
}

.side-tree-head { background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%); }

.side-tree-head a {
    display: block;
    color: #fff;
    font-weight: 700;
    font-size: 0.95rem;
    padding: 14px 18px;
    letter-spacing: 0.5px;
}

.side-tree-head a:hover { color: #fff; opacity: 0.92; }

.tree-list {
    list-style: none;
    padding: 10px 8px;
    max-height: calc(100vh - 220px);
    overflow-y: auto;
}

.tree-group { margin-bottom: 2px; }

.tree-group-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    background: none;
    border: none;
    cursor: pointer;
    padding: 9px 10px;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-primary);
    border-radius: var(--radius-sm);
    font-family: inherit;
}

.tree-group-title:hover { background: var(--primary-bg-light); }

/* 带直达链接的叶子分组标题（如入学划片查询）：与同级标题同款，可点击跳转 */
a.tree-group-title {
    text-decoration: none;
    color: var(--text-primary);
    font-size: 0.85rem;
    font-weight: 700;
    font-family: inherit;
}
a.tree-group-title:hover { background: var(--primary-bg-light); color: var(--primary); }

.tree-caret {
    color: var(--text-muted);
    font-size: 0.7rem;
    transition: transform 0.25s ease;
}

.tree-group.open .tree-group-title .tree-caret { transform: rotate(180deg); }

.tree-sub {
    list-style: none;
    display: none;
    padding-left: 8px;
    margin-bottom: 6px;
}

.tree-group.open > .tree-sub { display: block; }

.tree-sub > li > a,
.tree-node-row > a {
    display: block;
    padding: 7px 10px;
    font-size: 0.84rem;
    color: var(--text-secondary);
    border-radius: var(--radius-sm);
}

.tree-sub > li > a:hover,
.tree-node-row > a:hover {
    background: var(--primary-bg);
    color: var(--primary);
}

.tree-sub > li > a.active,
.tree-node-row > a.active {
    background: var(--primary-bg);
    color: var(--primary);
    font-weight: 600;
}

.tree-node-row {
    display: flex;
    align-items: center;
    gap: 2px;
}

.tree-node-row > a { flex: 1; min-width: 0; }

.tree-caret-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 0.75rem;
    padding: 8px 10px 8px 6px;
    transition: var(--transition);
}

.tree-caret-btn:hover { color: var(--primary); }

.tree-node.open > .tree-node-row .tree-caret-btn { transform: rotate(90deg); }

.tree-sub-sub {
    list-style: none;
    display: none;
    padding-left: 26px;
}

.tree-node.open > .tree-sub-sub { display: block; }

.tree-sub-sub li a {
    display: block;
    padding: 6px 10px;
    font-size: 0.82rem;
    color: var(--text-secondary);
    border-radius: var(--radius-sm);
}

.tree-sub-sub li a:hover {
    color: var(--primary);
    background: var(--primary-bg-light);
}

.tree-sub-sub li a.active {
    color: var(--primary);
    font-weight: 600;
    background: var(--primary-bg);
}

/* --- 子页面内容块 --- */
.content-block {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    margin-bottom: 26px;
    overflow: hidden;
}

.content-block-head {
    padding: 16px 24px;
    border-bottom: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    gap: 10px;
    background: #fbfcfe;
}

.content-block-head .block-icon { font-size: 1.15rem; }

.content-block-head h2 {
    font-size: 1.08rem;
    font-weight: 700;
    color: var(--text-primary);
}

.content-block-head .block-note {
    margin-left: auto;
    font-size: 0.76rem;
    color: var(--text-muted);
}

.content-block-body { padding: 24px; }

.content-block-body > :last-child { margin-bottom: 0; }

.content-block-body h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary);
    margin: 4px 0 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border-light);
}

.content-block-body h4.sub {
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 18px 0 10px;
}

.content-block-body p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.85;
    margin-bottom: 12px;
}

.content-block-body ul.plain {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.content-block-body ul.plain li {
    font-size: 0.88rem;
    color: var(--text-secondary);
    padding-left: 16px;
    position: relative;
    line-height: 1.7;
}

.content-block-body ul.plain li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 9px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--primary);
}

/* --- 政策文件列表 --- */
.doc-list { list-style: none; }

.doc-list li {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 15px 0;
    border-bottom: 1px dashed var(--border-light);
}

.doc-list li:last-child { border-bottom: none; }

.doc-icon {
    width: 38px;
    height: 38px;
    flex-shrink: 0;
    background: var(--primary-bg);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
    color: var(--primary);
}

.doc-info { flex: 1; min-width: 0; }

.doc-title {
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 5px;
    line-height: 1.5;
}

.doc-summary {
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-bottom: 6px;
    line-height: 1.6;
}

.doc-meta {
    font-size: 0.76rem;
    color: var(--text-muted);
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
}

.doc-meta .source { color: var(--primary); }

/* --- 流程步骤 --- */
.step-flow { position: relative; }

.step-item {
    display: flex;
    gap: 16px;
    position: relative;
    padding-bottom: 26px;
}

.step-item:last-child { padding-bottom: 4px; }

.step-item::before {
    content: '';
    position: absolute;
    left: 17px;
    top: 40px;
    bottom: 2px;
    width: 2px;
    background: var(--border);
}

.step-item:last-child::before { display: none; }

.step-num {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.88rem;
    box-shadow: 0 0 0 4px var(--primary-bg);
}

.step-body { flex: 1; min-width: 0; padding-top: 4px; }

.step-body h4 {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.step-body .step-date {
    display: inline-block;
    font-size: 0.75rem;
    color: var(--primary);
    background: var(--primary-bg);
    border-radius: 10px;
    padding: 2px 10px;
    margin-bottom: 6px;
    font-weight: 600;
}

.step-body p {
    font-size: 0.86rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin: 0;
}

/* --- 详情信息网格（区详情/学校详情） --- */
.detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.detail-cell {
    background: #f8fafd;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    padding: 15px 18px;
}

.detail-cell h4 {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 600;
    margin-bottom: 7px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.detail-cell p {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin: 0;
}

.detail-cell.wide { grid-column: 1 / -1; }

/* --- 锚点快速导航条 --- */
.anchor-nav {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 26px;
}

.anchor-nav a {
    padding: 8px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    font-size: 0.84rem;
    color: var(--text-secondary);
}

.anchor-nav a:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--primary-bg-light);
}

/* --- 材料清单分组 --- */
.material-group {
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    margin-bottom: 16px;
    overflow: hidden;
}

.material-group-head {
    background: var(--primary-bg);
    padding: 12px 18px;
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--primary-dark);
    display: flex;
    align-items: center;
    gap: 8px;
}

.material-group ul {
    list-style: none;
    padding: 14px 18px;
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.material-group ul li {
    font-size: 0.86rem;
    color: var(--text-secondary);
    padding-left: 22px;
    position: relative;
    line-height: 1.6;
}

.material-group ul li::before {
    content: '\2713';
    position: absolute;
    left: 0;
    top: 0;
    color: var(--success);
    font-weight: 700;
    font-size: 0.8rem;
}

/* --- 数据说明条 --- */
.data-note {
    background: #fafbfc;
    border: 1px dashed var(--border);
    border-radius: var(--radius-sm);
    padding: 12px 16px;
    font-size: 0.78rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 24px;
}

.data-note strong { color: var(--text-secondary); }

/* --- 移动端多级导航适配 --- */
@media (max-width: 968px) {
    .page-with-side {
        grid-template-columns: 1fr;
    }

    .side-tree-box {
        position: static;
    }

    .tree-list {
        max-height: none;
    }

    .detail-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        display: none;
        position: absolute;
        top: var(--header-height);
        left: 0;
        right: 0;
        background: var(--primary-dark);
        padding: 10px;
        max-height: calc(100vh - var(--header-height));
        overflow-y: auto;
    }

    .nav-menu.open { display: block; }

    .nav-list {
        flex-direction: column;
        align-items: stretch;
        gap: 2px;
    }

    .nav-link {
        width: 100%;
        justify-content: space-between;
        padding: 12px 14px;
    }

    .has-mega > .mega-panel {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border: none;
        border-radius: 0;
        padding: 4px 0 4px 16px;
        display: none;
        min-width: 0;
        max-width: none;
        background: rgba(0,0,0,0.15);
        gap: 0;
    }

    .nav-item.expand > .mega-panel {
        display: flex;
        flex-direction: column;
    }

    .mega-group {
        width: 100%;
        padding: 4px 0;
    }

    .mega-group-title {
        color: rgba(255,255,255,0.65);
        border-bottom-color: rgba(255,255,255,0.12);
    }

    /* 移动端浮层为深色底，带链接的二级标题保持白色可见 */
    a.mega-group-title {
        color: rgba(255,255,255,0.65);
    }
    a.mega-group-title:hover {
        color: #fff;
        opacity: 1;
    }

    .mega-group ul li a {
        color: rgba(255,255,255,0.85);
        padding: 10px;
    }

    .mega-group ul li a:hover {
        background: rgba(255,255,255,0.08);
        color: #fff;
    }

    .fly-caret { color: rgba(255,255,255,0.5); }

    .has-fly > .flyout {
        position: static;
        display: none;
        columns: 1;
        max-height: none;
        box-shadow: none;
        border: none;
        padding: 0 0 0 14px;
        background: rgba(0,0,0,0.12);
        min-width: 0;
    }

    .has-fly.expand > .flyout { display: block; }

    .flyout li a {
        color: rgba(255,255,255,0.75);
        white-space: normal;
    }

    .flyout li a:hover {
        background: rgba(255,255,255,0.08);
        color: #fff;
    }

    .subpage-head {
        padding: 24px 22px;
    }

    .subpage-head h1 {
        font-size: 1.3rem;
    }

    .subpage-topbar .breadcrumb {
        padding: 10px 16px;
    }

    .content-block-head {
        flex-wrap: wrap;
    }

    .content-block-body {
        padding: 18px 16px;
    }
}

/* ========================================
   五级菜单（flyout2）与外链标识
   ======================================== */

/* 外链标识箭头 */
.ext-mark {
    font-size: 0.7em;
    opacity: 0.55;
    vertical-align: super;
    margin-left: 1px;
}

/* 含五级子菜单的四级列表：不做滚动裁剪，避免飞出被裁切 */
.flyout.deep {
    columns: 1;
    max-height: none;
    overflow: visible;
}

/* 五级飞出菜单 */
.has-fly2 { position: relative; }

.has-fly2 > .flyout2 {
    position: absolute;
    left: calc(100% + 6px);
    top: -6px;
    z-index: 1160;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 12px 32px rgba(23,105,224,0.2);
    border: 1px solid var(--border);
    padding: 8px;
    min-width: 168px;
    columns: 1;
    max-height: 380px;
    overflow-y: auto;
    display: none;
}

.flyout2.cols2 { columns: 2; column-gap: 2px; }

.has-fly2:hover > .flyout2,
.has-fly2:focus-within > .flyout2 { display: block; }

.flyout2 li a {
    display: block;
    padding: 6px 12px;
    font-size: 0.82rem;
    color: var(--text-secondary);
    white-space: nowrap;
    break-inside: avoid;
    border-radius: var(--radius-sm);
}

.flyout2 li a:hover {
    color: var(--primary);
    background: var(--primary-bg-light);
}

/* 侧边栏树第五级缩进 */
.tree-sub-sub .tree-sub-sub {
    padding-left: 14px;
    border-left: 1px dashed var(--border-light);
    margin-left: 6px;
}

.tree-sub-sub .tree-sub-sub li a {
    font-size: 0.8rem;
}

/* ========================================
   官方数据来源中心页（official.html）
   ======================================== */
.official-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.official-card {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    transition: box-shadow 0.2s, border-color 0.2s, transform 0.2s;
}

.official-card:hover {
    border-color: var(--primary);
    box-shadow: 0 8px 24px rgba(47,141,246,0.14);
    transform: translateY(-2px);
}

.official-card .oc-tag {
    align-self: flex-start;
    font-size: 0.72rem;
    padding: 3px 10px;
    border-radius: 999px;
    background: var(--primary-bg-light);
    color: var(--primary);
    font-weight: 600;
    letter-spacing: 0.5px;
}

.official-card h3 {
    font-size: 1rem;
    color: var(--text-primary);
}

.official-card p {
    font-size: 0.84rem;
    color: var(--text-secondary);
    line-height: 1.7;
    flex: 1;
}

.official-card .oc-link {
    font-size: 0.85rem;
    color: var(--primary);
    font-weight: 600;
    word-break: break-all;
}

.official-card .oc-link:hover { text-decoration: underline; }

/* 官方时间轴表 */
.timeline-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.88rem;
}

.timeline-table th {
    text-align: left;
    padding: 10px 14px;
    background: var(--primary-bg-light);
    color: var(--primary);
    font-weight: 600;
    white-space: nowrap;
}

.timeline-table td {
    padding: 10px 14px;
    border-bottom: 1px solid var(--border-light);
    color: var(--text-secondary);
    vertical-align: top;
}

.timeline-table tr:hover td { background: var(--bg-secondary); }

.timeline-table .tl-date {
    color: var(--primary);
    font-weight: 600;
    white-space: nowrap;
}

.timeline-table .tl-scope {
    display: inline-block;
    font-size: 0.72rem;
    padding: 2px 8px;
    border-radius: 999px;
    background: var(--primary-bg-light);
    color: var(--primary);
    white-space: nowrap;
}

/* 区教育局一览表 */
.gov-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.88rem;
}

.gov-table th {
    text-align: left;
    padding: 10px 14px;
    background: var(--primary-bg-light);
    color: var(--primary);
    font-weight: 600;
    white-space: nowrap;
}

.gov-table td {
    padding: 10px 14px;
    border-bottom: 1px solid var(--border-light);
    color: var(--text-secondary);
    vertical-align: middle;
}

.gov-table tr:hover td { background: var(--bg-secondary); }

.gov-table .gv-name {
    color: var(--text-primary);
    font-weight: 600;
    white-space: nowrap;
}

.gov-table a {
    color: var(--primary);
    word-break: break-all;
}

.gov-table a:hover { text-decoration: underline; }

/* 官方来源提示条（内容页用） */
.official-tip {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    background: linear-gradient(135deg, var(--primary-bg-light) 0%, #fff 100%);
    border: 1px solid var(--primary-light);
    border-left: 4px solid var(--primary);
    border-radius: var(--radius);
    padding: 14px 18px;
    margin-bottom: 20px;
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

.official-tip .ot-icon {
    font-size: 1.1rem;
    line-height: 1.4;
}

.official-tip strong { color: var(--primary); }

.official-tip a {
    color: var(--primary);
    font-weight: 600;
}

.official-tip a:hover { text-decoration: underline; }

/* 响应式：官方页 */
@media (max-width: 968px) {
    .official-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .official-grid { grid-template-columns: 1fr; }

    /* 五级菜单移动端折叠 */
    .has-fly2 > .flyout2 {
        position: static;
        display: none;
        columns: 1;
        max-height: none;
        box-shadow: none;
        border: none;
        padding: 0 0 0 14px;
        background: rgba(0,0,0,0.12);
        min-width: 0;
        overflow: visible;
    }

    .has-fly2.expand > .flyout2 { display: block; }

    .flyout2 li a {
        color: rgba(255,255,255,0.75);
        white-space: normal;
    }

    .flyout2 li a:hover {
        background: rgba(255,255,255,0.08);
        color: #fff;
    }

    .flyout.deep { overflow: visible; }
}

/* ================= 分数线搜索数据库页（score-search） ================= */
.search-step {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 16px 18px;
    margin-bottom: 14px;
}

.search-step-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 12px;
}

.step-no {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    font-size: 0.8rem;
    font-weight: 700;
    flex: 0 0 auto;
}

.step-hint {
    font-size: 0.78rem;
    font-weight: 400;
    color: var(--text-muted);
    margin-left: auto;
}

.search-select {
    width: 100%;
    max-width: 560px;
    padding: 10px 14px;
    font-size: 0.9rem;
    border-radius: var(--radius-sm);
}

.query-result {
    margin-top: 18px;
}

.score-big {
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.5px;
}

.score-big span {
    color: var(--text-muted);
}

@media (max-width: 768px) {
    .search-step { padding: 12px 14px; }
    .step-hint { display: block; margin-left: 32px; margin-top: 2px; }
    .search-select { max-width: 100%; }
}

/* === 会员系统（注册/登录/每日配额） === */
.header-account {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: 8px;
}
.member-quota {
    font-size: 0.78rem;
    color: rgba(255,255,255,0.85);
    white-space: nowrap;
}
.account-pill {
    display: flex;
    align-items: center;
    gap: 4px;
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.30);
    border-radius: 999px;
    padding: 4px 6px 4px 14px;
}
.ac-login {
    background: transparent;
    color: #fff;
    border: none;
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 0.85rem;
    cursor: pointer;
    white-space: nowrap;
    transition: background .15s ease;
}
.ac-login:hover { background: rgba(255,255,255,0.16); }
.ac-sep {
    width: 1px;
    height: 16px;
    background: rgba(255,255,255,0.35);
}
.ac-reg {
    background: #fff;
    color: var(--primary);
    border: none;
    padding: 6px 16px;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: background .15s ease;
}
.ac-reg:hover { background: #eaf1fb; }
.member-badge {
    background: var(--primary-bg);
    color: var(--primary);
    border: 1px solid var(--primary-light);
    border-radius: 999px;
    padding: 4px 12px;
    font-size: 0.82rem;
    font-weight: 600;
    white-space: nowrap;
}
.member-link {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 0.82rem;
    cursor: pointer;
    text-decoration: underline;
}
.member-link:hover { color: var(--primary); }

.member-modal {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.55);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 16px;
}
.member-card {
    position: relative;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    width: 100%;
    max-width: 360px;
    padding: 28px 24px 22px;
}
.member-close {
    position: absolute;
    top: 10px;
    right: 14px;
    background: none;
    border: none;
    font-size: 1.5rem;
    line-height: 1;
    color: var(--text-muted);
    cursor: pointer;
}
.member-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
    border-bottom: 1px solid var(--border);
}
.member-tabs .mtab {
    flex: 1;
    background: none;
    border: none;
    padding: 10px 0;
    font-size: 0.95rem;
    color: var(--text-muted);
    cursor: pointer;
    border-bottom: 2px solid transparent;
}
.member-tabs .mtab.active {
    color: #C81623;
    font-weight: 600;
    border-bottom-color: #C81623;
}
.member-input {
    width: 100%;
    padding: 11px 13px;
    margin-bottom: 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 0.92rem;
    outline: none;
    transition: var(--transition);
}
.member-input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-bg); }
.member-submit {
    width: 100%;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: var(--radius-sm);
    padding: 12px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}
.member-submit:hover { background: var(--primary-light); }
.member-msg {
    background: #fdecec;
    color: var(--danger);
    border-radius: var(--radius-sm);
    padding: 8px 10px;
    font-size: 0.82rem;
    margin-bottom: 12px;
}
.member-tip {
    margin-top: 14px;
    font-size: 0.76rem;
    color: var(--text-muted);
    line-height: 1.5;
}
.member-pane { margin-top: 2px; }
/* 验证码登录已移除，相关子标签 / 验证码样式一并清理 */
.member-info {
    background: var(--primary-bg);
    color: var(--primary);
    border-radius: var(--radius-sm);
    padding: 8px 10px;
    font-size: 0.8rem;
    margin-bottom: 12px;
    line-height: 1.4;
}

@media (max-width: 768px) {
    .header-account { margin-left: 0; }
    .member-quota { display: none; }
}
