/* =========================================================
   第一轮“双一流”查询系统 - 公共样式
   设计参考：高考雷达主站（白色导航、绿色强调、深色页脚）
   说明：只使用系统字体与本地 SVG 图标，不依赖前端框架。
   ========================================================= */

:root {
    --primary-50: #ecfdf5;
    --primary-100: #d1fae5;
    --primary-200: #a7f3d0;
    --primary-500: #10b981;
    --primary-600: #059669;
    --primary-700: #047857;

    --slate-50: #f8fafc;
    --slate-100: #f1f5f9;
    --slate-200: #e2e8f0;
    --slate-300: #cbd5e1;
    --slate-400: #94a3b8;
    --slate-500: #64748b;
    --slate-600: #475569;
    --slate-700: #334155;
    --slate-800: #1e293b;
    --slate-900: #0f172a;

    --blue-50: #eff6ff;
    --blue-500: #3b82f6;
    --amber-50: #fffbeb;
    --amber-500: #f59e0b;
    --purple-50: #faf5ff;
    --purple-500: #a855f7;
    --rose-50: #fff1f2;
    --rose-500: #f43f5e;
    --teal-50: #f0fdfa;
    --teal-500: #14b8a6;

    --white: #ffffff;
    --max-width: 1280px;
    --radius-sm: 10px;
    --radius-md: 14px;
    --radius-lg: 18px;
    --shadow-soft: 0 10px 40px -10px rgba(15, 23, 42, 0.10);
    --shadow-card: 0 4px 20px -4px rgba(15, 23, 42, 0.08);
}

/* ---------- 基础重置 ---------- */
* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-width: 320px;
    color: var(--slate-700);
    background: var(--slate-50);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
                 "Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei",
                 sans-serif;
    font-size: 16px;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
select {
    font: inherit;
}

button,
summary,
a {
    -webkit-tap-highlight-color: transparent;
}

img {
    display: block;
    max-width: 100%;
}

.container {
    width: min(calc(100% - 32px), var(--max-width));
    margin: 0 auto;
}

.icon-svg {
    width: 1em;
    height: 1em;
}

/* ---------- 顶部导航 ---------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.94);
    border-bottom: 1px solid var(--slate-100);
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
    backdrop-filter: blur(14px);
}

.header-row {
    min-height: 80px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.site-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.brand-icon {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    color: var(--white);
    background: linear-gradient(135deg, var(--primary-500), var(--primary-600));
    box-shadow: 0 0 22px rgba(16, 185, 129, 0.18);
}

.brand-icon img {
    width: 25px;
    height: 25px;
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1;
}

.brand-name {
    color: var(--slate-800);
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.brand-name .brand-accent {
    color: var(--primary-600);
}

.brand-slogan {
    margin-top: 7px;
    color: var(--slate-500);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.08em;
}

.main-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.main-nav a {
    padding: 10px 18px;
    border-radius: 999px;
    color: var(--slate-600);
    font-weight: 600;
    transition: color .2s ease, background .2s ease, transform .2s ease,
                box-shadow .2s ease;
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--primary-700);
    background: var(--primary-50);
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.10);
    transform: translateY(-1px);
}

.mobile-nav {
    display: none;
}

.mobile-nav summary {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    cursor: pointer;
    list-style: none;
    border-radius: 10px;
    color: var(--slate-600);
}

.mobile-nav summary::-webkit-details-marker {
    display: none;
}

.mobile-nav summary img {
    width: 24px;
    height: 24px;
}

.mobile-nav .close-icon {
    display: none;
}

.mobile-nav[open] .menu-icon {
    display: none;
}

.mobile-nav[open] .close-icon {
    display: block;
}

.mobile-menu-panel {
    position: absolute;
    top: 80px;
    left: 0;
    right: 0;
    padding: 14px 16px 18px;
    background: var(--white);
    border-top: 1px solid var(--slate-100);
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.08);
}

.mobile-menu-panel a {
    display: block;
    margin: 4px 0;
    padding: 11px 14px;
    border-radius: 10px;
    color: var(--slate-600);
    font-weight: 600;
}

.mobile-menu-panel a.active,
.mobile-menu-panel a:hover {
    color: var(--primary-700);
    background: var(--primary-50);
}

/* ---------- 首页主视觉 ---------- */
.home-hero {
    position: relative;
    overflow: hidden;
    padding: 72px 0 96px;
    background: var(--white);
    border-bottom: 1px solid var(--slate-100);
}

.home-hero::before {
    content: "";
    position: absolute;
    top: -250px;
    left: 50%;
    width: 1000px;
    height: 620px;
    transform: translateX(-50%);
    border-radius: 50%;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.15) 0%,
                                       rgba(255, 255, 255, 0) 68%);
    pointer-events: none;
}

/* 用户截图中红框区域：整个标题、说明、搜索框均居中 */
.hero-inner {
    position: relative;
    z-index: 1;
    max-width: 980px;
    margin: 0 auto;
    text-align: center;
}

.hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
    padding: 6px 13px;
    border: 1px solid var(--primary-100);
    border-radius: 999px;
    color: var(--primary-700);
    background: rgba(236, 253, 245, 0.78);
    font-size: 13px;
    font-weight: 700;
}

.home-hero h1 {
    margin: 0;
    color: var(--slate-800);
    font-size: clamp(36px, 5vw, 58px);
    line-height: 1.16;
    letter-spacing: -0.04em;
    font-weight: 800;
}

.home-hero h1 .accent {
    color: var(--primary-600);
}

.hero-description {
    max-width: 820px;
    margin: 22px auto 0;
    color: var(--slate-500);
    font-size: 18px;
    line-height: 1.85;
}

.hero-search {
    position: relative;
    max-width: 760px;
    margin: 32px auto 0;
}

.hero-search .search-icon {
    position: absolute;
    left: 18px;
    top: 50%;
    width: 23px;
    height: 23px;
    transform: translateY(-50%);
    color: var(--slate-400);
    pointer-events: none;
}

.hero-search input {
    width: 100%;
    height: 64px;
    padding: 0 148px 0 54px;
    border: 1px solid var(--slate-200);
    border-radius: 16px;
    outline: none;
    color: var(--slate-800);
    background: var(--white);
    box-shadow: var(--shadow-soft);
    transition: border-color .2s ease, box-shadow .2s ease;
}

.hero-search input:focus {
    border-color: var(--primary-500);
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.10), var(--shadow-soft);
}

.hero-search button {
    position: absolute;
    top: 7px;
    right: 7px;
    bottom: 7px;
    min-width: 128px;
    padding: 0 20px;
    border: 0;
    border-radius: 12px;
    color: var(--white);
    background: var(--primary-600);
    font-weight: 700;
    cursor: pointer;
    transition: background .2s ease, transform .2s ease;
}

.hero-search button:hover {
    background: var(--primary-700);
    transform: translateY(-1px);
}

.hero-shortcuts {
    margin-top: 16px;
    color: var(--slate-500);
    font-size: 13px;
}

.hero-shortcuts a {
    margin: 0 4px;
    color: var(--primary-700);
    font-weight: 700;
}

.hero-shortcuts a:hover {
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* ---------- 首页统计卡片 ---------- */
.stats-wrap {
    position: relative;
    z-index: 10;
    margin-top: -48px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.stat-card {
    padding: 26px 24px;
    border: 1px solid var(--slate-100);
    border-radius: 16px;
    background: var(--white);
    box-shadow: var(--shadow-soft);
}

.stat-card strong {
    display: block;
    margin-bottom: 4px;
    color: var(--slate-900);
    font-size: 34px;
    line-height: 1.1;
    font-weight: 800;
}

.stat-card span {
    display: block;
    color: var(--slate-600);
    font-weight: 600;
}

.stat-card small {
    display: block;
    margin-top: 9px;
    color: var(--slate-400);
    font-size: 13px;
}

/* ---------- 公共区块 ---------- */
.section {
    padding: 58px 0;
}

.section-white {
    background: var(--white);
}

.section-heading {
    margin-bottom: 24px;
    text-align: center;
}

.section-heading.align-left {
    text-align: left;
}

.section-heading h2 {
    margin: 0;
    color: var(--slate-800);
    font-size: 30px;
    line-height: 1.35;
}

.section-heading p {
    max-width: 780px;
    margin: 10px auto 0;
    color: var(--slate-500);
}

.section-heading.align-left p {
    margin-left: 0;
}

/* ---------- 首页分类入口 ---------- */
.category-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.category-card {
    position: relative;
    min-height: 190px;
    padding: 26px;
    overflow: hidden;
    border: 1px solid var(--slate-100);
    border-radius: 18px;
    background: var(--white);
    box-shadow: var(--shadow-card);
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.category-card:hover {
    transform: translateY(-4px);
    border-color: var(--primary-100);
    box-shadow: 0 14px 34px -8px rgba(16, 185, 129, 0.18);
}

.category-icon {
    width: 52px;
    height: 52px;
    display: grid;
    place-items: center;
    margin-bottom: 18px;
    border-radius: 14px;
}

.category-icon img {
    width: 27px;
    height: 27px;
}

.icon-blue { color: var(--blue-500); background: var(--blue-50); }
.icon-green { color: var(--primary-600); background: var(--primary-50); }
.icon-amber { color: var(--amber-500); background: var(--amber-50); }
.icon-purple { color: var(--purple-500); background: var(--purple-50); }
.icon-rose { color: var(--rose-500); background: var(--rose-50); }
.icon-teal { color: var(--teal-500); background: var(--teal-50); }

.category-card h3 {
    margin: 0 0 7px;
    color: var(--slate-800);
    font-size: 20px;
}

.category-card p {
    margin: 0;
    color: var(--slate-500);
    font-size: 14px;
}

.category-card .category-count {
    margin-top: 14px;
    color: var(--primary-700);
    font-size: 14px;
    font-weight: 700;
}

.category-card .arrow {
    position: absolute;
    right: 22px;
    bottom: 23px;
    width: 20px;
    height: 20px;
    color: var(--slate-400);
}

.category-card:hover .arrow {
    color: var(--primary-600);
}

/* ---------- 省份快速入口 ---------- */
.province-panel {
    padding: 28px;
    border: 1px solid var(--slate-100);
    border-radius: 18px;
    background: var(--white);
    box-shadow: var(--shadow-card);
}

.province-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.province-tags a {
    padding: 7px 12px;
    border: 1px solid var(--slate-200);
    border-radius: 999px;
    color: var(--slate-600);
    background: var(--white);
    font-size: 13px;
    transition: all .2s ease;
}

.province-tags a:hover,
.province-tags a.featured {
    color: var(--primary-700);
    border-color: var(--primary-200);
    background: var(--primary-50);
}

/* ---------- 数据说明 ---------- */
.data-note {
    padding: 22px 24px;
    border: 1px solid var(--primary-100);
    border-left: 4px solid var(--primary-500);
    border-radius: 12px;
    color: var(--slate-600);
    background: linear-gradient(135deg, var(--primary-50), #ffffff);
}

.data-note strong {
    color: var(--slate-800);
}

/* 首页底部背景与数据口径说明：使用较小字号，避免说明文字视觉过重 */
.data-note-small {
    font-size: 14px;
    line-height: 1.9;
}

.data-note.with-top-margin {
    margin-top: 22px;
}

.center-link-note {
    margin-top: 20px;
    text-align: center;
}

/* ---------- 内页通用头部 ---------- */
.page-hero {
    padding: 42px 0 34px;
    background: var(--white);
    border-bottom: 1px solid var(--slate-100);
}

.breadcrumb {
    margin-bottom: 13px;
    color: var(--slate-400);
    font-size: 13px;
}

.breadcrumb a:hover {
    color: var(--primary-600);
}

.page-title-row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
}

.page-hero h1 {
    margin: 0;
    color: var(--slate-800);
    font-size: clamp(30px, 4vw, 42px);
    line-height: 1.28;
    letter-spacing: -0.025em;
}

.page-hero p {
    max-width: 820px;
    margin: 10px 0 0;
    color: var(--slate-500);
}

.page-badge {
    display: inline-flex;
    padding: 6px 11px;
    border-radius: 999px;
    color: var(--primary-700);
    background: var(--primary-50);
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

/* ---------- 筛选面板 ---------- */
.filter-section {
    padding: 30px 0 10px;
}

.filter-panel {
    padding: 20px;
    border: 1px solid var(--slate-200);
    border-radius: 16px;
    background: var(--white);
    box-shadow: var(--shadow-card);
}

.quick-filter-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.quick-filter-label {
    margin-right: 4px;
    color: var(--slate-500);
    font-size: 13px;
    line-height: 34px;
}

.filter-chip {
    padding: 7px 12px;
    border: 1px solid var(--slate-200);
    border-radius: 999px;
    color: var(--slate-600);
    background: var(--white);
    font-size: 13px;
    cursor: pointer;
    transition: all .2s ease;
}

.filter-chip:hover,
.filter-chip.active {
    color: var(--primary-700);
    border-color: var(--primary-200);
    background: var(--primary-50);
}

.filter-grid {
    display: grid;
    grid-template-columns: 1.4fr .75fr .9fr auto auto;
    gap: 10px;
}

.filter-grid.three-columns {
    grid-template-columns: 1.5fr .8fr auto;
}

.filter-grid.compact-three {
    grid-template-columns: 1fr 1fr auto;
}

.form-control {
    width: 100%;
    min-height: 46px;
    padding: 10px 12px;
    border: 1px solid var(--slate-200);
    border-radius: 10px;
    outline: none;
    color: var(--slate-700);
    background: var(--white);
}

.form-control:focus {
    border-color: var(--primary-500);
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.08);
}

.button {
    min-height: 46px;
    padding: 0 18px;
    border: 0;
    border-radius: 10px;
    font-weight: 700;
    cursor: pointer;
}

.button-primary {
    color: var(--white);
    background: var(--primary-600);
}

.button-primary:hover {
    background: var(--primary-700);
}

.button-light {
    color: var(--slate-600);
    background: var(--slate-100);
}

.button-light:hover {
    color: var(--slate-800);
    background: var(--slate-200);
}

.result-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 18px 2px 12px;
    color: var(--slate-500);
    font-size: 14px;
}

.result-bar strong {
    color: var(--slate-800);
}

.result-link {
    color: var(--primary-700);
    font-weight: 700;
}

.result-link:hover {
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* ---------- 高校列表 ---------- */
.card-list {
    display: grid;
    gap: 12px;
}

.school-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 20px;
    align-items: center;
    padding: 20px 22px;
    border: 1px solid var(--slate-100);
    border-radius: 14px;
    background: var(--white);
    transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.school-card:hover {
    border-color: var(--primary-100);
    box-shadow: var(--shadow-card);
    transform: translateY(-1px);
}

.school-card h2,
.school-card h3 {
    margin: 0 0 8px;
    color: var(--slate-800);
    font-size: 19px;
}

.meta-line {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
    color: var(--slate-500);
    font-size: 13px;
}

.tag {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 3px 8px;
    border: 1px solid var(--slate-200);
    border-radius: 7px;
    color: var(--slate-600);
    background: var(--slate-50);
    font-size: 12px;
}

.tag.green {
    color: var(--primary-700);
    border-color: var(--primary-100);
    background: var(--primary-50);
}

.tag.amber {
    color: #9a6504;
    border-color: #fde68a;
    background: var(--amber-50);
}

.school-action {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--primary-700);
    font-weight: 700;
    white-space: nowrap;
}

.school-action img {
    width: 17px;
    height: 17px;
}

.empty-state {
    display: none;
    padding: 42px 20px;
    border: 1px dashed var(--slate-300);
    border-radius: 14px;
    color: var(--slate-500);
    background: var(--white);
    text-align: center;
}

/* ---------- 详情页 ---------- */
.detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 310px;
    gap: 24px;
    padding-top: 30px;
}

.fact-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-bottom: 22px;
    overflow: hidden;
    border: 1px solid var(--slate-200);
    border-radius: 14px;
    background: var(--slate-200);
    gap: 1px;
}

.fact-item {
    padding: 17px 18px;
    background: var(--white);
}

.fact-item span {
    display: block;
    margin-bottom: 5px;
    color: var(--slate-400);
    font-size: 12px;
}

.fact-item strong {
    color: var(--slate-800);
    font-size: 15px;
}

.content-card,
.side-card {
    border: 1px solid var(--slate-100);
    border-radius: 15px;
    background: var(--white);
    box-shadow: var(--shadow-card);
}

.content-card {
    padding: 24px;
}

.side-card {
    padding: 20px;
    margin-bottom: 14px;
}

.content-card h2,
.side-card h2,
.side-card h3 {
    margin: 0;
    color: var(--slate-800);
}

.content-card h2 {
    font-size: 23px;
}

.side-card h3 {
    margin-bottom: 11px;
    font-size: 16px;
}

.content-intro {
    margin: 7px 0 20px;
    color: var(--slate-500);
    font-size: 14px;
}

.subject-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.subject-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
    border: 1px solid var(--slate-200);
    border-radius: 10px;
    color: var(--slate-700);
    background: var(--white);
    transition: all .2s ease;
}

.subject-link:hover {
    color: var(--primary-700);
    border-color: var(--primary-200);
    background: var(--primary-50);
}

.subject-link img {
    width: 15px;
    height: 15px;
    color: var(--slate-400);
}

.side-list {
    margin: 0;
    padding-left: 19px;
    color: var(--slate-500);
    font-size: 14px;
}

.side-list li + li {
    margin-top: 6px;
}

.side-links a {
    display: block;
    padding: 8px 0;
    border-bottom: 1px solid var(--slate-100);
    color: var(--slate-600);
    font-size: 14px;
}

.side-links a:last-child {
    border-bottom: 0;
}

.side-links a:hover {
    color: var(--primary-700);
}

/* ---------- 学科列表 ---------- */
.subject-card-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.subject-card {
    display: block;
    padding: 20px;
    border: 1px solid var(--slate-100);
    border-radius: 14px;
    background: var(--white);
    transition: all .2s ease;
}

.subject-card:hover {
    border-color: var(--primary-100);
    box-shadow: var(--shadow-card);
    transform: translateY(-2px);
}

.subject-card h2,
.subject-card h3 {
    margin: 0 0 7px;
    color: var(--slate-800);
    font-size: 18px;
}

.subject-card p {
    margin: 0;
    color: var(--slate-500);
    font-size: 13px;
}

.subject-card .subject-count {
    display: inline-block;
    margin-top: 11px;
    color: var(--primary-700);
    font-size: 13px;
    font-weight: 700;
}

/* ---------- 表格 ---------- */
.table-wrap {
    overflow-x: auto;
    border: 1px solid var(--slate-200);
    border-radius: 14px;
    background: var(--white);
}

.data-table {
    width: 100%;
    min-width: 760px;
    border-collapse: collapse;
}

.data-table th,
.data-table td {
    padding: 14px 16px;
    border-bottom: 1px solid var(--slate-100);
    text-align: left;
}

.data-table th {
    color: var(--slate-500);
    background: var(--slate-50);
    font-size: 13px;
}

.data-table td {
    color: var(--slate-600);
    font-size: 14px;
}

.data-table tr:last-child td {
    border-bottom: 0;
}

.data-table .school-link {
    color: var(--slate-800);
    font-weight: 700;
}

.data-table .school-link:hover {
    color: var(--primary-700);
}

/* ---------- 省份页 ---------- */
.province-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 22px;
}

.mini-stat {
    padding: 18px;
    border: 1px solid var(--slate-100);
    border-radius: 13px;
    background: var(--white);
}

.mini-stat strong {
    display: block;
    color: var(--slate-800);
    font-size: 27px;
}

.mini-stat span {
    color: var(--slate-500);
    font-size: 13px;
}

/* ---------- 页脚 ---------- */
.site-footer {
    margin-top: 64px;
    padding: 56px 0 28px;
    color: var(--slate-300);
    background: var(--slate-900);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 34px;
    padding-bottom: 36px;
}

.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 16px;
}

.footer-brand .brand-icon {
    width: 34px;
    height: 34px;
    border-radius: 9px;
}

.footer-brand .brand-icon img {
    width: 21px;
    height: 21px;
}

.footer-brand strong {
    color: var(--white);
    font-size: 20px;
}

.footer-intro {
    max-width: 460px;
    margin: 0;
    color: var(--slate-400);
    font-size: 14px;
}

.footer-column h2 {
    margin: 0 0 14px;
    color: var(--white);
    font-size: 15px;
}

.footer-column a {
    display: block;
    width: fit-content;
    margin: 9px 0;
    color: var(--slate-400);
    font-size: 13px;
    transition: color .2s ease;
}

.footer-column a:hover {
    color: #34d399;
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
    padding-top: 26px;
    border-top: 1px solid var(--slate-800);
    color: var(--slate-500);
    font-size: 12px;
}

.footer-bottom p {
    margin: 0;
}

.footer-bottom a:hover {
    color: #34d399;
}

.footer-notes {
    display: flex;
    align-items: center;
    gap: 10px;
    text-align: right;
}

/* ---------- 响应式 ---------- */
@media (max-width: 1024px) {
    .main-nav {
        display: none;
    }

    .mobile-nav {
        display: block;
    }

    .category-grid,
    .subject-card-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .filter-grid {
        grid-template-columns: 1fr 1fr;
    }

    .filter-grid .search-wide {
        grid-column: 1 / -1;
    }

    .detail-layout {
        grid-template-columns: 1fr;
    }

    .subject-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .footer-grid {
        grid-template-columns: 2fr 1fr 1fr;
    }

    .footer-column:last-child {
        grid-column: 2 / -1;
    }
}

@media (max-width: 760px) {
    .container {
        width: min(calc(100% - 24px), var(--max-width));
    }

    .header-row {
        min-height: 70px;
    }

    .brand-icon {
        width: 38px;
        height: 38px;
    }

    .brand-name {
        font-size: 21px;
    }

    .brand-slogan {
        font-size: 10px;
    }

    .mobile-menu-panel {
        top: 70px;
    }

    .home-hero {
        padding: 48px 0 78px;
    }

    .home-hero h1 {
        font-size: 34px;
    }

    .hero-description {
        font-size: 16px;
    }

    .hero-search input {
        height: 58px;
        padding-right: 112px;
        font-size: 14px;
    }

    .hero-search button {
        min-width: 96px;
        padding: 0 13px;
        font-size: 14px;
    }

    .stats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .stat-card {
        padding: 18px;
    }

    .stat-card strong {
        font-size: 28px;
    }

    .section {
        padding: 44px 0;
    }

    .section-heading h2 {
        font-size: 25px;
    }

    .category-grid,
    .subject-card-grid {
        grid-template-columns: 1fr;
    }

    .category-card {
        min-height: 0;
    }

    .page-title-row {
        display: block;
    }

    .page-badge {
        margin-top: 14px;
    }

    .filter-grid,
    .filter-grid.three-columns,
    .filter-grid.compact-three {
        grid-template-columns: 1fr;
    }

    .filter-grid .search-wide {
        grid-column: auto;
    }

    .school-card {
        grid-template-columns: 1fr;
    }

    .school-action {
        justify-self: start;
    }

    .fact-grid,
    .province-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .subject-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .footer-brand-col {
        grid-column: 1 / -1;
    }

    .footer-column:last-child {
        grid-column: auto;
    }

    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
    }

    .footer-notes {
        flex-direction: column;
        align-items: flex-start;
        gap: 3px;
        text-align: left;
    }
}

@media (max-width: 460px) {
    .brand-slogan {
        display: none;
    }

    .home-hero h1 {
        font-size: 30px;
    }

    .stats-grid,
    .fact-grid,
    .province-stats,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .footer-column:last-child,
    .footer-brand-col {
        grid-column: auto;
    }
}


/* ---------- 全量静态页补充样式 ---------- */
/* 强制遵守HTML hidden属性，避免卡片自身display规则覆盖浏览器默认隐藏行为。 */
[hidden] {
    display: none !important;
}

.self-title-link {
    color: inherit;
    text-decoration: none;
}

.self-title-link:hover,
.self-title-link:focus,
.self-title-link:visited {
    color: inherit;
    text-decoration: none;
}

.subject-name-row {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 7px;
}

.self-defined-mark {
    display: inline-flex;
    align-items: center;
    padding: 1px 6px;
    border: 1px solid #fde68a;
    border-radius: 6px;
    color: #9a6504;
    background: var(--amber-50);
    font-size: 11px;
    line-height: 1.6;
    white-space: nowrap;
}

.province-card-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.province-card {
    display: block;
    padding: 20px;
    border: 1px solid var(--slate-100);
    border-radius: 14px;
    background: var(--white);
    transition: all .2s ease;
}

.province-card:hover {
    border-color: var(--primary-100);
    box-shadow: var(--shadow-card);
    transform: translateY(-2px);
}

.province-card h2,
.province-card h3 {
    margin: 0 0 7px;
    color: var(--slate-800);
    font-size: 18px;
}

.province-card p {
    margin: 0;
    color: var(--slate-500);
    font-size: 13px;
}

.province-card .province-count {
    display: inline-block;
    margin-top: 11px;
    color: var(--primary-700);
    font-size: 13px;
    font-weight: 700;
}

.special-note {
    margin-top: 10px;
    color: var(--slate-500);
    font-size: 12px;
}

@media (max-width: 1024px) {
    .province-card-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .province-card-grid {
        grid-template-columns: 1fr;
    }
}
