/* =====================================================================
   壹玖公考官网 · 前台样式
   自研轻量设计系统：无 Tailwind / 无 CDN 依赖，体积小、可离线、手机/平板/桌面自适应
   断点：≥1180 桌面宽屏；≤1180 桌面窄屏；≤900 平板；≤640 手机
   ===================================================================== */

:root {
    --ink: #0a1526;
    --ink-2: #12233c;
    --ink-3: #1b3153;
    --blue: #2f6bff;
    --blue-deep: #1a49c4;
    --blue-soft: #eef4ff;
    --gold: #e8b14b;
    --paper: #f6f8fc;
    --white: #ffffff;
    --text: #16243a;
    --text-2: #4a5c78;
    --text-3: #7a8aa5;
    --line: #e3e9f4;
    --line-dark: rgba(140, 175, 255, .16);
    --radius: 14px;
    --radius-sm: 9px;
    --shadow-sm: 0 2px 8px rgba(12, 30, 60, .06);
    --shadow: 0 10px 30px -12px rgba(12, 30, 60, .18);
    --shadow-lg: 0 26px 60px -26px rgba(12, 30, 60, .28);
    --max: 1200px;
    --nav-h: 68px;
    --ease: cubic-bezier(.22, .61, .36, 1);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
    font-size: 15px;
    line-height: 1.75;
    color: var(--text);
    background: var(--paper);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, p, ul, ol, figure, blockquote {
    margin: 0;
    padding: 0;
}

ul, ol {
    list-style: none;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color .2s var(--ease);
}

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

svg.ico {
    width: 20px;
    height: 20px;
    flex: 0 0 auto;
    display: inline-block;
    vertical-align: -3px;
}

svg.ico-sm {
    width: 16px;
    height: 16px;
}

svg.ico-lg {
    width: 34px;
    height: 34px;
}

button, input, select, textarea {
    font: inherit;
    color: inherit;
}

::selection {
    background: rgba(47, 107, 255, .22);
}

/* ---------------- 布局 ---------------- */
.container {
    width: 100%;
    max-width: var(--max);
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    padding: 82px 0;
}

.section-sm {
    padding: 56px 0;
}

.section-dark {
    background: var(--ink);
    color: #e9f0ff;
    position: relative;
    overflow: hidden;
}

.section-head {
    margin-bottom: 44px;
}

.section-head.center {
    text-align: center;
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12.5px;
    letter-spacing: 2.4px;
    text-transform: uppercase;
    color: var(--blue);
    font-weight: 600;
    margin-bottom: 14px;
}

.eyebrow::before {
    content: "";
    width: 22px;
    height: 2px;
    background: var(--blue);
    display: inline-block;
}

.section-head.center .eyebrow::before {
    display: none;
}

.h-xl {
    font-size: clamp(30px, 4.4vw, 52px);
    line-height: 1.18;
    font-weight: 800;
    letter-spacing: -.5px;
}

.h-lg {
    font-size: clamp(25px, 3vw, 36px);
    line-height: 1.28;
    font-weight: 750;
    letter-spacing: -.3px;
}

.h-md {
    font-size: clamp(19px, 2.2vw, 23px);
    line-height: 1.4;
    font-weight: 700;
}

.h-sm {
    font-size: 16.5px;
    line-height: 1.5;
    font-weight: 650;
}

.lead {
    font-size: 16px;
    color: var(--text-2);
    line-height: 1.85;
}

.muted {
    color: var(--text-3);
    font-size: 13.5px;
}

.section-dark .lead,
.section-dark .muted {
    color: #9db0cd;
}

.accent {
    color: var(--blue);
}

.gold {
    color: var(--gold);
}

.grid {
    display: grid;
    gap: 22px;
}

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

.g-3 {
    grid-template-columns: repeat(3, 1fr);
}

.g-4 {
    grid-template-columns: repeat(4, 1fr);
}

.flex {
    display: flex;
}

.between {
    justify-content: space-between;
}

.center-y {
    align-items: center;
}

.gap-8 {
    gap: 8px;
}

.gap-12 {
    gap: 12px;
}

.gap-16 {
    gap: 16px;
}

.wrap {
    flex-wrap: wrap;
}

.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mt-40 { margin-top: 40px; }

/* ---------------- 顶栏 ---------------- */
.topbar {
    background: var(--ink);
    color: #93a8c8;
    font-size: 12.5px;
    letter-spacing: .3px;
    border-bottom: 1px solid rgba(255, 255, 255, .07);
}

.topbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 36px;
    gap: 16px;
    overflow: hidden;
}

.topbar-left {
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.topbar-left .ico {
    width: 14px;
    height: 14px;
    opacity: .8;
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: 18px;
    white-space: nowrap;
}

.topbar-right a:hover {
    color: #fff;
}

/* ---------------- 导航 ---------------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 60;
    background: rgba(10, 21, 38, .86);
    backdrop-filter: saturate(160%) blur(14px);
    -webkit-backdrop-filter: saturate(160%) blur(14px);
    border-bottom: 1px solid rgba(255, 255, 255, .06);
    transition: background .3s var(--ease), box-shadow .3s var(--ease);
}

.site-header.is-scrolled {
    background: rgba(8, 17, 31, .96);
    box-shadow: 0 12px 30px -18px rgba(0, 0, 0, .7);
}

.nav {
    height: var(--nav-h);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 11px;
    color: #fff;
    flex: 0 0 auto;
}

.brand-mark {
    width: 42px;
    height: 42px;
    border-radius: 11px;
    background: linear-gradient(140deg, #3a78ff, #14409e);
    display: grid;
    place-items: center;
    font-weight: 800;
    font-size: 14px;
    letter-spacing: 1px;
    box-shadow: 0 6px 18px -6px rgba(47, 107, 255, .8);
    position: relative;
    overflow: hidden;
}

.brand-mark::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, rgba(255, 255, 255, .35), transparent 45%);
}

.brand-txt strong {
    display: block;
    font-size: 18px;
    letter-spacing: 1.5px;
    line-height: 1.2;
}

.brand-txt span {
    display: block;
    font-size: 10px;
    letter-spacing: 2px;
    color: #7f9cc4;
    text-transform: uppercase;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 4px;
    flex: 1;
    justify-content: center;
}

.nav-links a {
    position: relative;
    padding: 9px 15px;
    border-radius: 8px;
    color: #ccdaef;
    font-size: 14.5px;
    white-space: nowrap;
}

.nav-links a:hover {
    color: #fff;
    background: rgba(255, 255, 255, .07);
}

.nav-links a.is-active {
    color: #fff;
    font-weight: 600;
}

.nav-links a.is-active::after {
    content: "";
    position: absolute;
    left: 15px;
    right: 15px;
    bottom: 2px;
    height: 2px;
    border-radius: 2px;
    background: linear-gradient(90deg, var(--blue), var(--gold));
}

.nav-cta {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 0 0 auto;
}

.nav-phone {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: .4px;
}

.nav-phone .ico {
    color: var(--gold);
    width: 17px;
    height: 17px;
}

.nav-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, .18);
    background: rgba(255, 255, 255, .06);
    color: #fff;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

/* 移动端抽屉 */
.mobile-nav {
    position: fixed;
    inset: 0;
    z-index: 90;
    display: none;
}

.mobile-nav.is-open {
    display: block;
}

.mobile-nav-mask {
    position: absolute;
    inset: 0;
    background: rgba(4, 10, 20, .6);
    backdrop-filter: blur(3px);
}

.mobile-nav-panel {
    position: absolute;
    top: 0;
    right: 0;
    width: min(86vw, 340px);
    height: 100%;
    background: #0b1729;
    border-left: 1px solid rgba(120, 160, 255, .16);
    padding: 22px 22px 30px;
    overflow-y: auto;
    animation: slideIn .32s var(--ease);
    box-shadow: -20px 0 60px rgba(0, 0, 0, .5);
}

@keyframes slideIn {
    from { transform: translateX(30px); opacity: .6; }
    to { transform: translateX(0); opacity: 1; }
}

.mobile-nav-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 22px;
    color: #fff;
}

.mobile-nav a.m-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 2px;
    color: #c8d7ee;
    border-bottom: 1px solid rgba(255, 255, 255, .07);
    font-size: 15px;
}

.mobile-nav a.m-link.is-active {
    color: #fff;
    font-weight: 600;
}

.m-link .ico {
    width: 15px;
    height: 15px;
    opacity: .5;
}

.mobile-nav-foot {
    margin-top: 26px;
    display: grid;
    gap: 10px;
}

.mobile-nav-foot .btn-primary,
.mobile-nav-foot .btn-ghost {
    width: 100%;
    justify-content: center;
}

/* ---------------- Hero ---------------- */
.hero {
    position: relative;
    background: radial-gradient(1100px 520px at 78% 8%, rgba(47, 107, 255, .30), transparent 62%),
                radial-gradient(700px 460px at 8% 92%, rgba(232, 177, 75, .12), transparent 60%),
                linear-gradient(165deg, #071022 0%, #0a1a30 46%, #0c2247 100%);
    color: #eef4ff;
    overflow: hidden;
    padding: 76px 0 84px;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: linear-gradient(rgba(120, 165, 255, .055) 1px, transparent 1px),
                      linear-gradient(90deg, rgba(120, 165, 255, .055) 1px, transparent 1px);
    background-size: 58px 58px;
    mask-image: radial-gradient(circle at 50% 40%, #000 20%, transparent 76%);
    -webkit-mask-image: radial-gradient(circle at 50% 40%, #000 20%, transparent 76%);
    pointer-events: none;
}

.hero .container {
    position: relative;
    z-index: 2;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.06fr .94fr;
    gap: 54px;
    align-items: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 7px 15px 7px 9px;
    border-radius: 100px;
    background: rgba(255, 255, 255, .07);
    border: 1px solid rgba(140, 180, 255, .26);
    font-size: 13px;
    color: #cfdcf3;
    margin-bottom: 22px;
}

.hero-badge .dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #4ade80;
    box-shadow: 0 0 0 4px rgba(74, 222, 128, .18);
    margin-left: 4px;
}

.hero h1 {
    font-size: clamp(34px, 4.9vw, 57px);
    line-height: 1.14;
    font-weight: 800;
    letter-spacing: -1px;
    margin-bottom: 20px;
}

.hero h1 em {
    font-style: normal;
    background: linear-gradient(100deg, #6ea8ff, #cfdcff 42%, var(--gold) 96%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-sub {
    font-size: 16.5px;
    color: #a9bcd9;
    line-height: 1.9;
    max-width: 560px;
    margin-bottom: 30px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 36px;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    border-top: 1px solid rgba(255, 255, 255, .1);
    padding-top: 26px;
}

.hero-stat b {
    display: block;
    font-size: clamp(24px, 2.5vw, 31px);
    font-weight: 800;
    letter-spacing: -.5px;
    color: #fff;
    font-variant-numeric: tabular-nums;
    line-height: 1.2;
}

.hero-stat b small {
    font-size: 13px;
    font-weight: 600;
    color: var(--gold);
    margin-left: 2px;
}

.hero-stat span {
    display: block;
    font-size: 12.5px;
    color: #8299bb;
    margin-top: 5px;
    letter-spacing: .5px;
}

.hero-visual {
    position: relative;
}

.hero-shot {
    position: relative;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 40px 90px -40px rgba(0, 0, 0, .8);
    border: 1px solid rgba(150, 185, 255, .18);
}

.hero-shot img {
    width: 100%;
    aspect-ratio: 16 / 11;
    object-fit: cover;
    filter: saturate(1.05) contrast(1.02);
}

.hero-shot::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(7, 16, 34, .06) 30%, rgba(7, 16, 34, .62) 100%);
}

.hero-float {
    position: absolute;
    left: -18px;
    bottom: -22px;
    background: rgba(13, 28, 52, .92);
    border: 1px solid rgba(140, 180, 255, .22);
    border-radius: 14px;
    padding: 15px 18px;
    display: flex;
    align-items: center;
    gap: 13px;
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-lg);
    max-width: 280px;
}

.hero-float .ring {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: linear-gradient(140deg, rgba(232, 177, 75, .22), rgba(47, 107, 255, .22));
    border: 1px solid rgba(232, 177, 75, .4);
    color: var(--gold);
    flex: 0 0 auto;
}

.hero-float b {
    font-size: 14px;
    color: #fff;
    display: block;
}

.hero-float span {
    font-size: 12px;
    color: #93a8c8;
}

/* ---------------- 按钮 ---------------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 13px 25px;
    border-radius: 10px;
    font-size: 14.5px;
    font-weight: 600;
    letter-spacing: .3px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: transform .18s var(--ease), box-shadow .24s var(--ease), background .2s, color .2s;
    white-space: nowrap;
    line-height: 1.4;
}

.btn:active {
    transform: translateY(1px);
}

.btn-primary {
    background: linear-gradient(135deg, #3a77ff, #1c4ec9);
    color: #fff;
    box-shadow: 0 12px 26px -12px rgba(47, 107, 255, .8);
}

.btn-primary:hover {
    box-shadow: 0 16px 34px -12px rgba(47, 107, 255, .9);
    transform: translateY(-1px);
}

.btn-ghost {
    background: rgba(255, 255, 255, .07);
    border-color: rgba(150, 185, 255, .3);
    color: #e6eeff;
}

.btn-ghost:hover {
    background: rgba(255, 255, 255, .13);
    border-color: rgba(150, 185, 255, .5);
}

.btn-light {
    background: #fff;
    color: var(--ink);
    box-shadow: 0 10px 26px -14px rgba(0, 0, 0, .5);
}

.btn-light:hover {
    transform: translateY(-1px);
}

.btn-gold {
    background: linear-gradient(135deg, #f3c265, #d99a2b);
    color: #2a1a02;
    box-shadow: 0 12px 26px -14px rgba(232, 177, 75, .9);
}

.btn-outline {
    background: transparent;
    border-color: var(--line);
    color: var(--text);
}

.btn-outline:hover {
    border-color: var(--blue);
    color: var(--blue);
    background: var(--blue-soft);
}

.btn-sm {
    padding: 9px 16px;
    font-size: 13.5px;
    border-radius: 8px;
}

.btn-block {
    width: 100%;
}

/* ---------------- 卡片 ---------------- */
.card {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 26px;
    transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s;
}

.card-lift:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
    border-color: #cddcf7;
}

.card-dark {
    background: rgba(255, 255, 255, .045);
    border: 1px solid var(--line-dark);
    color: #e3ecff;
}

.card-dark:hover {
    background: rgba(255, 255, 255, .075);
    border-color: rgba(150, 190, 255, .3);
}

/* 优势卡 */
.feature {
    padding: 30px 26px;
    border-radius: var(--radius);
    background: var(--white);
    border: 1px solid var(--line);
    position: relative;
    overflow: hidden;
    transition: .25s var(--ease);
}

.feature::after {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 3px;
    height: 0;
    background: linear-gradient(180deg, var(--blue), var(--gold));
    transition: height .35s var(--ease);
}

.feature:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
    border-color: #cfddf6;
}

.feature:hover::after {
    height: 100%;
}

.feature-ico {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    background: linear-gradient(140deg, #eff5ff, #e2ecff);
    color: var(--blue);
    margin-bottom: 18px;
}

.feature .h-sm {
    margin-bottom: 9px;
}

.feature p {
    font-size: 13.8px;
    color: var(--text-2);
    line-height: 1.8;
}

/* 数字条 */
.metrics {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.metric {
    padding: 24px 22px;
    border-radius: 12px;
    background: rgba(255, 255, 255, .05);
    border: 1px solid var(--line-dark);
    text-align: center;
}

.metric b {
    display: block;
    font-size: 33px;
    font-weight: 800;
    color: #fff;
    font-variant-numeric: tabular-nums;
    letter-spacing: -1px;
    line-height: 1.2;
}

.metric b i {
    font-style: normal;
    font-size: 15px;
    color: var(--gold);
    margin-left: 2px;
}

.metric span {
    font-size: 12.5px;
    color: #8ea4c4;
    letter-spacing: .5px;
}

/* ---------------- 课程 ---------------- */
.tabs {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.tab {
    padding: 9px 18px;
    border-radius: 100px;
    border: 1px solid var(--line);
    background: #fff;
    color: var(--text-2);
    font-size: 14px;
    cursor: pointer;
    transition: .2s;
}

.tab:hover {
    border-color: #b9cdf3;
    color: var(--blue);
}

.tab.is-active {
    background: var(--ink);
    border-color: var(--ink);
    color: #fff;
    font-weight: 600;
}

.course-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.course-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: .28s var(--ease);
}

.course-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: #c9d9f5;
}

.course-cover {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: linear-gradient(135deg, #12294b, #0a172c);
}

.course-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s var(--ease);
}

.course-card:hover .course-cover img {
    transform: scale(1.05);
}

.course-cover .badge {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 2;
}

.course-body {
    padding: 20px 22px 22px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.course-meta {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 12.5px;
    color: var(--text-3);
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.course-meta span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.course-meta .ico {
    width: 14px;
    height: 14px;
    opacity: .75;
}

.course-title {
    font-size: 17px;
    font-weight: 700;
    line-height: 1.45;
    margin-bottom: 8px;
    color: var(--text);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 48px;
}

.course-sub {
    font-size: 13.3px;
    color: var(--text-2);
    line-height: 1.7;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 18px;
}

.course-foot {
    margin-top: auto;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 10px;
    padding-top: 16px;
    border-top: 1px dashed var(--line);
}

.price {
    font-size: 22px;
    font-weight: 800;
    color: #d8452f;
    letter-spacing: -.5px;
    font-variant-numeric: tabular-nums;
    line-height: 1.2;
}

.price small {
    font-size: 13px;
    font-weight: 600;
    margin-right: 1px;
}

.price-old {
    font-size: 12.5px;
    color: var(--text-3);
    text-decoration: line-through;
    margin-left: 6px;
    font-weight: 400;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 11.5px;
    font-weight: 600;
    letter-spacing: .5px;
    background: rgba(47, 107, 255, .1);
    color: var(--blue);
    border: 1px solid rgba(47, 107, 255, .22);
}

.badge-hot {
    background: linear-gradient(135deg, #ff6b4a, #e0301e);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 4px 12px -4px rgba(224, 48, 30, .7);
}

.badge-gold {
    background: rgba(232, 177, 75, .16);
    color: #a8791a;
    border-color: rgba(232, 177, 75, .4);
}

.chip {
    display: inline-flex;
    align-items: center;
    padding: 3px 9px;
    border-radius: 5px;
    background: #f0f4fb;
    color: var(--text-2);
    font-size: 11.8px;
    border: 1px solid #e3ebf8;
    white-space: nowrap;
}

/* ---------------- 名师 ---------------- */
.teacher-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
}

.teacher-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 28px 22px 24px;
    text-align: center;
    transition: .28s var(--ease);
    position: relative;
    overflow: hidden;
}

.teacher-card::before {
    content: "";
    position: absolute;
    top: -60px;
    left: 50%;
    transform: translateX(-50%);
    width: 180px;
    height: 120px;
    background: radial-gradient(circle, rgba(47, 107, 255, .14), transparent 70%);
    opacity: 0;
    transition: opacity .3s;
}

.teacher-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: #c9d9f5;
}

.teacher-card:hover::before {
    opacity: 1;
}

.teacher-avatar {
    width: 92px;
    height: 92px;
    border-radius: 50%;
    margin: 0 auto 16px;
    overflow: hidden;
    border: 3px solid #fff;
    box-shadow: 0 8px 24px -10px rgba(12, 30, 60, .35);
    position: relative;
    z-index: 1;
}

.teacher-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.initial-avatar {
    display: inline-grid;
    place-items: center;
    border-radius: 50%;
    color: #fff;
    font-weight: 700;
    letter-spacing: 1px;
}

.teacher-name {
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 4px;
}

.teacher-title {
    font-size: 12.5px;
    color: var(--blue);
    font-weight: 600;
    margin-bottom: 12px;
    letter-spacing: .3px;
}

.teacher-subject {
    display: inline-block;
    font-size: 12px;
    color: var(--text-3);
    margin-bottom: 12px;
}

.teacher-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: center;
    margin-top: 14px;
}

.teacher-card .teacher-tags .chip {
    font-size: 11px;
}

/* ---------------- 分校 ---------------- */
.campus-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.campus-card {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    min-height: 258px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 24px;
    color: #fff;
    isolation: isolate;
    background: #0c1a2e;
    transition: .3s var(--ease);
    border: 1px solid rgba(120, 160, 255, .16);
}

.campus-card img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
    transition: transform .55s var(--ease);
}

.campus-card::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(180deg, rgba(6, 14, 28, .18) 0%, rgba(6, 14, 28, .82) 62%, rgba(6, 14, 28, .96) 100%);
}

.campus-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.campus-card:hover img {
    transform: scale(1.06);
}

.campus-city {
    font-size: 11.5px;
    letter-spacing: 2px;
    color: var(--gold);
    text-transform: uppercase;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.campus-name {
    font-size: 19px;
    font-weight: 700;
    margin-bottom: 10px;
    letter-spacing: .3px;
}

.campus-addr {
    font-size: 12.8px;
    color: #a8bad4;
    line-height: 1.7;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 14px;
}

.campus-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 13px;
    border-top: 1px solid rgba(255, 255, 255, .14);
    font-size: 12.8px;
}

.campus-foot .tel {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #fff;
    font-weight: 600;
}

.campus-foot .ico {
    width: 15px;
    height: 15px;
    color: var(--gold);
}

.campus-more {
    display: grid;
    place-items: center;
    border-radius: var(--radius);
    border: 1px dashed #c3d4ef;
    background: #fff;
    color: var(--text-2);
    min-height: 258px;
    text-align: center;
    transition: .25s;
}

.campus-more:hover {
    border-color: var(--blue);
    color: var(--blue);
    background: var(--blue-soft);
}

/* ---------------- 口碑 ---------------- */
.quote-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 28px;
    position: relative;
}

.quote-card .qmark {
    color: rgba(47, 107, 255, .18);
    margin-bottom: 12px;
}

.quote-card p {
    font-size: 14.2px;
    color: var(--text-2);
    line-height: 1.9;
    min-height: 106px;
}

.quote-user {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px dashed var(--line);
}

.quote-user .initial-avatar {
    width: 40px;
    height: 40px;
    font-size: 15px;
}

.quote-user b {
    display: block;
    font-size: 14px;
}

.quote-user span {
    font-size: 12px;
    color: var(--text-3);
}

.stars {
    display: flex;
    gap: 2px;
    color: var(--gold);
}

.stars .ico {
    width: 13px;
    height: 13px;
}

/* ---------------- 资讯 ---------------- */
.news-layout {
    display: grid;
    grid-template-columns: 1.35fr 1fr;
    gap: 40px;
}

.news-item {
    display: grid;
    grid-template-columns: 92px 1fr;
    gap: 18px;
    padding: 20px 0;
    border-bottom: 1px solid var(--line);
    transition: .2s;
}

.news-item:first-child {
    padding-top: 0;
}

.news-date {
    text-align: center;
    border-right: 1px dashed var(--line);
    padding-right: 16px;
}

.news-date b {
    display: block;
    font-size: 22px;
    font-weight: 800;
    color: var(--ink);
    line-height: 1.2;
    font-variant-numeric: tabular-nums;
}

.news-date span {
    font-size: 11.5px;
    color: var(--text-3);
}

.news-body h4 {
    font-size: 15.5px;
    font-weight: 650;
    line-height: 1.55;
    margin-bottom: 6px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-item:hover h4 {
    color: var(--blue);
}

.news-body .muted {
    font-size: 12.8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-side {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 24px;
}

.news-side-title {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 16px;
    padding-bottom: 13px;
    border-bottom: 1px solid var(--line);
    display: flex;
    align-items: center;
    gap: 8px;
}

.news-side-title .ico {
    color: var(--blue);
    width: 17px;
    height: 17px;
}

.news-rank {
    counter-reset: rk;
    display: grid;
    gap: 2px;
}

.news-rank a {
    counter-increment: rk;
    display: grid;
    grid-template-columns: 22px 1fr;
    gap: 10px;
    align-items: baseline;
    padding: 10px 0;
    font-size: 13.4px;
    color: var(--text-2);
    border-bottom: 1px dashed #eef2f9;
}

.news-rank a:last-child {
    border-bottom: 0;
}

.news-rank a::before {
    content: counter(rk);
    font-size: 12px;
    font-weight: 700;
    color: var(--text-3);
    display: inline-grid;
    place-items: center;
    width: 22px;
    height: 22px;
    border-radius: 5px;
    background: #f4f7fc;
}

.news-rank a:nth-child(1)::before,
.news-rank a:nth-child(2)::before,
.news-rank a:nth-child(3)::before {
    background: rgba(232, 177, 75, .18);
    color: #a8791a;
}

.news-rank a:hover {
    color: var(--blue);
}

/* ---------------- 表单 ---------------- */
.form-field {
    margin-bottom: 16px;
}

.form-label {
    display: block;
    font-size: 13px;
    color: var(--text-2);
    margin-bottom: 7px;
    font-weight: 600;
}

.form-label .req {
    color: #e0483a;
    margin-left: 2px;
}

.input,
.textarea,
.select {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: #fff;
    font-size: 14px;
    color: var(--text);
    outline: none;
    transition: .2s;
    -webkit-appearance: none;
    appearance: none;
}

.input::placeholder,
.textarea::placeholder {
    color: #a3b2c9;
}

.input:focus,
.textarea:focus,
.select:focus {
    border-color: var(--blue);
    box-shadow: 0 0 0 3px rgba(47, 107, 255, .13);
}

.input.is-error,
.textarea.is-error {
    border-color: #e0483a;
    box-shadow: 0 0 0 3px rgba(224, 72, 58, .1);
}

.textarea {
    min-height: 104px;
    resize: vertical;
    line-height: 1.7;
}

.select {
    background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237a8aa5' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 15px;
    padding-right: 34px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.form-hint {
    font-size: 12px;
    color: var(--text-3);
    margin-top: 6px;
}

.form-alert {
    display: none;
    padding: 11px 14px;
    border-radius: 9px;
    font-size: 13px;
    margin-bottom: 14px;
    line-height: 1.6;
}

.form-alert.is-show {
    display: block;
}

.form-alert.ok {
    background: #edf9f1;
    color: #17784a;
    border: 1px solid #bfe8d1;
}

.form-alert.err {
    background: #fdf0ee;
    color: #b8342a;
    border: 1px solid #f4cbc5;
}

/* 咨询区块 */
.consult-wrap {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    background: radial-gradient(700px 300px at 88% 0%, rgba(47, 107, 255, .35), transparent 60%),
                linear-gradient(150deg, #0a1830, #0d2448);
    padding: 48px;
    display: grid;
    grid-template-columns: 1fr .92fr;
    gap: 46px;
    align-items: center;
    border: 1px solid rgba(120, 160, 255, .2);
    color: #fff;
}

.consult-wrap .form-box {
    background: #fff;
    border-radius: 16px;
    padding: 26px;
    box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .6);
    color: var(--text);
}

.consult-list {
    display: grid;
    gap: 14px;
    margin-top: 26px;
}

.consult-list li {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    font-size: 14px;
    color: #b8c9e2;
}

.consult-list .ico {
    color: var(--gold);
    width: 18px;
    height: 18px;
    margin-top: 2px;
}

/* ---------------- 页脚 ---------------- */
.site-footer {
    background: #070f1c;
    color: #8ba0bd;
    padding: 62px 0 0;
    font-size: 13.4px;
    border-top: 1px solid rgba(120, 160, 255, .1);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1.15fr;
    gap: 40px;
    padding-bottom: 44px;
}

.footer-brand .brand {
    margin-bottom: 16px;
}

.footer-brand p {
    color: #7d93b0;
    line-height: 1.9;
    max-width: 300px;
    margin-bottom: 18px;
}

.footer-social {
    display: flex;
    gap: 10px;
}

.footer-social a {
    width: 38px;
    height: 38px;
    border-radius: 9px;
    display: grid;
    place-items: center;
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 255, 255, .09);
    color: #a9bcd6;
}

.footer-social a:hover {
    background: var(--blue);
    color: #fff;
    border-color: var(--blue);
}

.footer-col h5 {
    color: #dfe8f6;
    font-size: 14px;
    font-weight: 650;
    margin-bottom: 16px;
    letter-spacing: .5px;
}

.footer-col ul {
    display: grid;
    gap: 10px;
}

.footer-col a:hover {
    color: #fff;
}

.footer-contact li {
    display: flex;
    gap: 10px;
    margin-bottom: 12px;
    line-height: 1.7;
}

.footer-contact .ico {
    color: var(--gold);
    width: 16px;
    height: 16px;
    margin-top: 3px;
    flex: 0 0 auto;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, .07);
    padding: 20px 0 26px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
    font-size: 12.5px;
    color: #6e829e;
}

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

/* 技术支持 */
.footer-support {
    display: flex;
    align-items: center;
    gap: 7px;
    flex-wrap: wrap;
    padding: 0 0 22px;
    font-size: 12.5px;
    color: #5d708b;
    letter-spacing: .2px;
}

.footer-support span {
    color: #4d5f78;
}

.footer-support a {
    color: #8698b3;
    transition: color .2s;
}

.footer-support a:hover {
    color: var(--gold, #e8b14b);
}

.footer-support i {
    font-style: normal;
    color: #3e4d63;
}

/* ---------------- 内页通用 ---------------- */
.page-hero {
    background: radial-gradient(900px 380px at 82% 0%, rgba(47, 107, 255, .26), transparent 62%),
                linear-gradient(160deg, #07101f, #0b1e3c 70%, #0d274e);
    color: #eef4ff;
    padding: 58px 0 62px;
    position: relative;
    overflow: hidden;
}

.page-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: linear-gradient(rgba(120, 165, 255, .05) 1px, transparent 1px),
                      linear-gradient(90deg, rgba(120, 165, 255, .05) 1px, transparent 1px);
    background-size: 52px 52px;
    mask-image: linear-gradient(180deg, #000, transparent 88%);
    -webkit-mask-image: linear-gradient(180deg, #000, transparent 88%);
}

.page-hero .container {
    position: relative;
    z-index: 1;
}

.page-hero h1 {
    font-size: clamp(27px, 3.4vw, 40px);
    font-weight: 800;
    letter-spacing: -.4px;
    margin-bottom: 12px;
}

.page-hero p {
    color: #a2b6d4;
    font-size: 15px;
    max-width: 680px;
    line-height: 1.85;
}

.crumb {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 12.5px;
    color: #7e94b4;
    margin-bottom: 18px;
}

.crumb a:hover {
    color: #cfe0ff;
}

.crumb .ico {
    width: 12px;
    height: 12px;
    opacity: .6;
}

/* 筛选栏 */
.filter-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    padding: 18px 22px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    margin-bottom: 28px;
}

.filter-bar .label {
    font-size: 12.5px;
    color: var(--text-3);
    margin-right: 4px;
}

/* 详情页 */
.detail-layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 36px;
    align-items: start;
}

.article-body {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 40px;
    font-size: 15.4px;
    line-height: 2;
    color: #26364f;
}

.article-body h2,
.article-body h3,
.article-body h4 {
    color: var(--ink);
    margin: 32px 0 12px;
    line-height: 1.45;
    font-weight: 700;
}

.article-body h2 {
    font-size: 20px;
}

.article-body h3 {
    font-size: 17px;
    padding-left: 12px;
    border-left: 3px solid var(--blue);
}

.article-body p {
    margin-bottom: 16px;
}

.article-body img {
    border-radius: 10px;
    margin: 18px 0;
}

.article-body ul,
.article-body ol {
    margin: 0 0 18px 4px;
    padding-left: 18px;
    list-style: revert;
}

.article-body li {
    margin-bottom: 8px;
}

.article-body blockquote {
    margin: 20px 0;
    padding: 16px 20px;
    background: #f5f8fd;
    border-left: 3px solid var(--blue);
    border-radius: 0 8px 8px 0;
    color: var(--text-2);
    font-size: 14px;
}

.article-body a {
    color: var(--blue);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.article-head {
    margin-bottom: 28px;
    padding-bottom: 22px;
    border-bottom: 1px solid var(--line);
}

.article-head h1 {
    font-size: clamp(22px, 2.6vw, 30px);
    line-height: 1.4;
    font-weight: 750;
    margin-bottom: 14px;
    letter-spacing: -.2px;
}

.article-info {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    font-size: 12.5px;
    color: var(--text-3);
    align-items: center;
}

.article-info span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.article-info .ico {
    width: 14px;
    height: 14px;
}

.article-summary {
    background: #f5f8fd;
    border: 1px solid #e6eefb;
    border-radius: 10px;
    padding: 16px 20px;
    font-size: 14px;
    color: var(--text-2);
    line-height: 1.85;
    margin-bottom: 26px;
}

.sidebar {
    display: grid;
    gap: 22px;
    position: sticky;
    top: calc(var(--nav-h) + 20px);
}

.sidebar-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 24px;
}

.sidebar-card h4 {
    font-size: 14.5px;
    font-weight: 700;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--line);
    display: flex;
    align-items: center;
    gap: 8px;
}

.sidebar-card h4 .ico {
    color: var(--blue);
    width: 16px;
    height: 16px;
}

.side-list a {
    display: flex;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px dashed #eef2f9;
    font-size: 13.4px;
    color: var(--text-2);
    line-height: 1.6;
}

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

.side-list a:hover {
    color: var(--blue);
}

.side-list .n {
    font-size: 11px;
    font-weight: 700;
    color: #fff;
    background: #dbe5f5;
    color: var(--text-3);
    width: 20px;
    height: 20px;
    border-radius: 4px;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    margin-top: 2px;
}

.side-list a:nth-child(1) .n,
.side-list a:nth-child(2) .n,
.side-list a:nth-child(3) .n {
    background: rgba(232, 177, 75, .2);
    color: #a8791a;
}

.side-cta {
    background: linear-gradient(150deg, #0d2140, #133164);
    color: #fff;
    border-color: rgba(120, 160, 255, .2);
    text-align: center;
}

.side-cta h4 {
    border-bottom-color: rgba(255, 255, 255, .14);
    justify-content: center;
}

.side-cta .tel {
    font-size: 22px;
    font-weight: 800;
    letter-spacing: .5px;
    margin: 10px 0 4px;
    font-variant-numeric: tabular-nums;
}

/* 老师详情 */
.teacher-profile {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 36px;
    align-items: start;
}

.teacher-portrait {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 30px 26px;
    text-align: center;
    position: sticky;
    top: calc(var(--nav-h) + 20px);
}

.teacher-portrait .teacher-avatar {
    width: 130px;
    height: 130px;
    margin-bottom: 18px;
}

.teacher-portrait h1 {
    font-size: 24px;
    font-weight: 750;
    margin-bottom: 6px;
}

.teacher-portrait .role {
    font-size: 13px;
    color: var(--blue);
    font-weight: 600;
    margin-bottom: 16px;
}

.portrait-meta {
    display: grid;
    gap: 10px;
    text-align: left;
    padding-top: 18px;
    border-top: 1px solid var(--line);
    font-size: 13px;
    color: var(--text-2);
}

.portrait-meta div {
    display: flex;
    justify-content: space-between;
    gap: 10px;
}

.portrait-meta b {
    font-weight: 600;
    color: var(--text-3);
    font-size: 12.5px;
}

/* 空状态 */
.empty {
    padding: 70px 20px;
    text-align: center;
    color: var(--text-3);
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

.empty .ico {
    width: 44px;
    height: 44px;
    color: #cfdaeb;
    margin-bottom: 12px;
}

/* 分页 */
.pager {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.pager-item {
    min-width: 38px;
    height: 38px;
    padding: 0 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: #fff;
    border: 1px solid var(--line);
    font-size: 13.5px;
    color: var(--text-2);
    transition: .2s;
}

.pager-item:hover {
    border-color: var(--blue);
    color: var(--blue);
}

.pager-item.is-active {
    background: var(--ink);
    border-color: var(--ink);
    color: #fff;
    font-weight: 600;
}

.pager-item.is-disabled {
    opacity: .45;
    pointer-events: none;
}

.pager-dot {
    color: var(--text-3);
    padding: 0 2px;
}

/* 右下咨询浮层 */
.float-cta {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 80;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.float-btn {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    background: #fff;
    border: 1px solid var(--line);
    color: var(--ink-2);
    box-shadow: 0 14px 30px -14px rgba(12, 30, 60, .4);
    cursor: pointer;
    transition: .2s;
    position: relative;
}

.float-btn:hover {
    transform: translateY(-2px);
    color: var(--blue);
    border-color: #bdd0f0;
}

.float-btn.is-main {
    background: linear-gradient(140deg, #3a77ff, #1a49c4);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 14px 30px -12px rgba(47, 107, 255, .75);
}

.float-btn .tip {
    position: absolute;
    right: 62px;
    top: 50%;
    transform: translateY(-50%) translateX(6px);
    background: var(--ink);
    color: #fff;
    font-size: 12px;
    padding: 6px 11px;
    border-radius: 7px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: .2s;
}

.float-btn:hover .tip {
    opacity: 1;
    transform: translateY(-50%) translateX(0);
}

/* 进场动画
   默认完全可见：无 JS、JS 报错、搜索引擎抓取、打印时都不会出现空白页。
   只有脚本主动给 <html> 加上 anim-ready 后，才进入「先隐藏、再进场」的状态。 */
.reveal {
    opacity: 1;
    transform: none;
}

html.anim-ready .reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity .7s var(--ease), transform .7s var(--ease);
    will-change: opacity, transform;
}

html.anim-ready .reveal.is-in {
    opacity: 1;
    transform: none;
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation: none !important;
        transition: none !important;
    }

    .reveal,
    html.anim-ready .reveal {
        opacity: 1;
        transform: none;
    }
}

/* ---------------- 响应式：≤1180 ---------------- */
@media (max-width: 1180px) {
    .nav-links a {
        padding: 9px 11px;
        font-size: 14px;
    }

    .nav-phone span {
        display: none;
    }

    .hero-grid {
        gap: 38px;
    }

    .teacher-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .footer-grid {
        grid-template-columns: 1.3fr 1fr 1fr;
        gap: 32px;
    }

    .footer-contact {
        grid-column: span 3;
    }

    .consult-wrap {
        padding: 40px;
        gap: 34px;
    }
}

/* ---------------- 响应式：≤900 平板 ---------------- */
@media (max-width: 900px) {
    :root {
        --nav-h: 62px;
    }

    .section {
        padding: 62px 0;
    }

    .section-sm {
        padding: 44px 0;
    }

    .nav-links,
    .nav-cta .nav-phone {
        display: none;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-cta .btn-primary {
        display: none;
    }

    .hero {
        padding: 54px 0 62px;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        gap: 42px;
    }

    .hero-visual {
        order: -1;
        max-width: 560px;
    }

    .hero-shot img {
        aspect-ratio: 16 / 10;
    }

    .hero-float {
        left: auto;
        right: 10px;
        bottom: -18px;
        padding: 12px 14px;
        max-width: 230px;
    }

    .hero-float .ring {
        width: 36px;
        height: 36px;
    }

    .hero-stats {
        padding-top: 22px;
    }

    .hero-stat b {
        font-size: 25px;
    }

    .g-3,
    .g-4,
    .course-list,
    .campus-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

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

    .news-layout {
        grid-template-columns: 1fr;
        gap: 30px;
    }

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

    .sidebar {
        position: static;
    }

    .teacher-profile {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .teacher-portrait {
        position: static;
        text-align: left;
        display: grid;
        grid-template-columns: 108px 1fr;
        gap: 18px;
        align-items: center;
    }

    .teacher-portrait .teacher-avatar {
        width: 108px;
        height: 108px;
        margin: 0;
    }

    .portrait-meta {
        grid-column: span 2;
    }

    .consult-wrap {
        grid-template-columns: 1fr;
        padding: 30px;
        gap: 26px;
    }

    .article-body {
        padding: 28px 24px;
        font-size: 15px;
    }

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

    .footer-contact {
        grid-column: span 2;
    }
}

/* ---------------- 响应式：≤640 手机 ---------------- */
@media (max-width: 640px) {
    body {
        font-size: 14.5px;
    }

    .container {
        padding: 0 16px;
    }

    .topbar .container {
        height: 32px;
        font-size: 11.5px;
    }

    .topbar-right {
        display: none;
    }

    .brand-mark {
        width: 36px;
        height: 36px;
        font-size: 12px;
        border-radius: 9px;
    }

    .brand-txt strong {
        font-size: 16px;
    }

    .brand-txt span {
        font-size: 9px;
    }

    .hero {
        padding: 40px 0 48px;
    }

    .hero h1 {
        font-size: 30px;
        letter-spacing: -.5px;
    }

    .hero-sub {
        font-size: 14.8px;
        margin-bottom: 24px;
    }

    .hero-actions {
        gap: 10px;
    }

    .hero-actions .btn {
        flex: 1;
        min-width: 140px;
        padding: 12px 16px;
    }

    .hero-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 18px 8px;
    }

    .hero-stat b {
        font-size: 23px;
    }

    .hero-float {
        display: none;
    }

    .section {
        padding: 46px 0;
    }

    .section-head {
        margin-bottom: 28px;
    }

    .g-2,
    .g-3,
    .g-4,
    .course-list,
    .campus-grid,
    .teacher-grid,
    .form-row {
        grid-template-columns: 1fr;
    }

    .metrics {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .metric {
        padding: 18px 14px;
    }

    .metric b {
        font-size: 25px;
    }

    .feature {
        padding: 22px 20px;
    }

    .course-title {
        font-size: 16px;
        min-height: auto;
    }

    .campus-card {
        min-height: 228px;
    }

    .news-item {
        grid-template-columns: 66px 1fr;
        gap: 12px;
    }

    .news-date b {
        font-size: 18px;
    }

    .consult-wrap {
        padding: 22px;
        border-radius: 14px;
    }

    .consult-wrap .form-box {
        padding: 20px;
    }

    .article-body {
        padding: 22px 18px;
        font-size: 14.8px;
        line-height: 1.95;
    }

    .article-head h1 {
        font-size: 21px;
    }

    .teacher-portrait {
        grid-template-columns: 84px 1fr;
        padding: 20px;
    }

    .teacher-portrait .teacher-avatar {
        width: 84px;
        height: 84px;
    }

    .teacher-portrait h1 {
        font-size: 20px;
    }

    .portrait-meta {
        grid-template-columns: 1fr;
    }

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

    .footer-contact {
        grid-column: span 1;
    }

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

    .float-cta {
        right: 12px;
        bottom: 12px;
        gap: 8px;
    }

    .float-btn {
        width: 46px;
        height: 46px;
        border-radius: 12px;
    }

    .float-btn .tip {
        display: none;
    }

    .tabs {
        gap: 6px;
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 4px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .tabs::-webkit-scrollbar {
        display: none;
    }

    .tab {
        flex: 0 0 auto;
        padding: 8px 15px;
        font-size: 13.5px;
    }

    .filter-bar {
        padding: 14px 16px;
        gap: 8px;
    }

    .form-field {
        margin-bottom: 13px;
    }

    .input,
    .textarea,
    .select {
        padding: 12px 13px;
        font-size: 15px; /* 手机端 ≥16px 可避免 iOS 聚焦缩放，这里用 15px 搭配 viewport 已禁用缩放 */
    }
}

/* 平板横屏 */
@media (min-width: 641px) and (max-width: 1024px) and (orientation: landscape) {
    .hero-grid {
        grid-template-columns: 1.05fr .95fr;
    }

    .hero-visual {
        order: 0;
    }

    .hero-float {
        display: flex;
    }
}

/* 打印 */
@media print {
    .site-header, .topbar, .float-cta, .site-footer, .hero-actions {
        display: none;
    }

    body {
        background: #fff;
    }
}
