/* ============================================================
   CampusChina — Design System (Modern Crimson + Slate)
   Bespoke, framework-free CSS. Used by the redesigned pages.
   Legacy pages continue to use style.css until rolled over.
   ============================================================ */

/* ----------------------------- Tokens ----------------------------- */
:root {
    /* Brand */
    --crimson: #db0210;
    --crimson-dark: #b00109;
    --crimson-soft: #fdeaea;
    --slate: #1F3A5F;
    --slate-dark: #15293f;
    --gold: #C8A15A;

    /* Neutrals */
    --ink: #15202B;
    --body: #3d4b57;
    --muted: #6a7784;
    --line: #E3E8EF;
    --base: #F5F7FA;
    --surface: #FFFFFF;
    --surface-2: #fbfcfe;

    /* Effects */
    --shadow-sm: 0 1px 2px rgba(21,32,43,.06), 0 1px 3px rgba(21,32,43,.05);
    --shadow: 0 6px 24px rgba(21,32,43,.08);
    --shadow-lg: 0 20px 50px rgba(21,32,43,.14);
    --ring: 0 0 0 4px rgba(176,30,40,.15);

    /* Geometry */
    --r-sm: 8px;
    --r: 14px;
    --r-lg: 22px;
    --container: 1200px;

    /* Type */
    --f-head: 'Sora', 'Segoe UI', system-ui, sans-serif;
    --f-body: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
    --f-cn: 'Noto Serif SC', serif;

    scroll-behavior: smooth;
    scroll-padding-top: 96px;
}

/* ----------------------------- Reset ----------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
    font-family: var(--f-body);
    color: var(--body);
    background: var(--surface);
    line-height: 1.65;
    font-size: 1rem;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--crimson); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--crimson-dark); }
ul { margin: 0; padding: 0; }
h1, h2, h3, h4, h5 { font-family: var(--f-head); color: var(--ink); line-height: 1.15; margin: 0 0 .5em; font-weight: 700; letter-spacing: -.02em; }
p { margin: 0 0 1rem; }
:focus-visible { outline: none; box-shadow: var(--ring); border-radius: 6px; }

/* ----------------------------- Layout ----------------------------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 24px; }
.section { padding: 96px 0; }
.section-sm { padding: 64px 0; }
.bg-base { background: var(--base); }
.bg-ink { background: var(--slate-dark); color: #cdd7e2; }
.bg-crimson { background: var(--crimson); color: #fff; }
.text-center { text-align: center; }
.mx-auto { margin-inline: auto; }
.measure { max-width: 640px; }

/* Reveal-on-scroll animation */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
    .reveal { opacity: 1; transform: none; transition: none; }
    :root { scroll-behavior: auto; }
}

/* ----------------------------- Typography helpers ----------------------------- */
.eyebrow {
    display: inline-flex; align-items: center; gap: 8px;
    font-family: var(--f-body); font-weight: 600; font-size: .8rem;
    letter-spacing: .12em; text-transform: uppercase; color: var(--crimson);
    margin-bottom: 16px;
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--crimson); display: inline-block; }
.eyebrow.on-dark { color: var(--gold); }
.eyebrow.on-dark::before { background: var(--gold); }
.section-title { font-size: clamp(1.9rem, 3.4vw, 2.7rem); margin-bottom: 14px; }
.section-lead { font-size: 1.08rem; color: var(--muted); }
.cn { font-family: var(--f-cn); font-weight: 700; }

/* ----------------------------- Buttons ----------------------------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    font-family: var(--f-head); font-weight: 600; font-size: .98rem;
    padding: 14px 26px; border-radius: 999px; border: 1.5px solid transparent;
    cursor: pointer; transition: transform .15s ease, box-shadow .2s ease, background .2s ease, color .2s ease; white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn svg { width: 18px; height: 18px; }
.btn-primary { background: var(--crimson); color: #fff; box-shadow: 0 8px 20px rgba(176,30,40,.28); }
.btn-primary:hover { background: var(--crimson-dark); color: #fff; box-shadow: 0 12px 26px rgba(176,30,40,.36); transform: translateY(-2px); }
.btn-slate { background: var(--slate); color: #fff; }
.btn-slate:hover { background: var(--slate-dark); color: #fff; transform: translateY(-2px); }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-outline:hover { border-color: var(--slate); color: var(--slate); background: var(--surface); }
.btn-ghost-light { background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.35); backdrop-filter: blur(4px); }
.btn-ghost-light:hover { background: rgba(255,255,255,.22); color: #fff; }
.btn-lg { padding: 16px 32px; font-size: 1.05rem; }
.btn-sm { padding: 10px 18px; font-size: .9rem; }
.btn-block { width: 100%; }

/* ----------------------------- Announcement bar ----------------------------- */
.announce {
    background: linear-gradient(90deg, var(--slate-dark), var(--slate));
    color: #eef3f8; font-size: .9rem; position: relative; z-index: 60;
}
.announce .container { display: flex; align-items: center; justify-content: center; gap: 12px; padding-block: 9px; text-align: center; }
.announce a { color: #fff; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.announce .pin { color: var(--gold); font-weight: 700; }
.announce .close { position: absolute; right: 18px; top: 50%; transform: translateY(-50%); background: none; border: none; color: #cfd9e4; font-size: 1.2rem; cursor: pointer; line-height: 1; }
.announce .close:hover { color: #fff; }
.announce[hidden] { display: none; }

/* ----------------------------- Top contact bar (red) ----------------------------- */
.topbar { position: relative; z-index: 60; background: var(--crimson); color: #fff; font-size: .92rem; height: 56px; }
.topbar a { color: #fff; }
.topbar a:hover { color: #fff; opacity: .82; }
.topbar .container { height: 100%; display: flex; align-items: center; gap: 16px; padding: 0 24px; }
.topbar .tb-welcome { font-style: italic; font-weight: 600; font-size: 1.02rem; }
.topbar .tb-label { font-weight: 600; }
.topbar .tb-contacts { margin-inline: auto; display: flex; gap: 26px; }
.topbar .tb-contacts a { display: inline-flex; align-items: center; gap: 8px; }
.topbar .tb-contacts svg, .topbar .tb-social svg { width: 15px; height: 15px; }
.topbar .tb-social { display: flex; gap: 14px; }
@media (max-width: 992px) { .topbar { display: none; } }

/* ----------------------------- Header (transparent, two-row, over hero) ----------------------------- */
.site-header { position: absolute; top: 56px; left: 0; right: 0; z-index: 50; transition: background .25s ease, box-shadow .25s ease; }
/* On scroll: stick to top with a solid background so the nav stays visible */
.site-header.scrolled { position: fixed; top: 0; background: rgba(18,29,44,.96); -webkit-backdrop-filter: saturate(140%) blur(10px); backdrop-filter: saturate(140%) blur(10px); box-shadow: 0 6px 22px rgba(0,0,0,.25); }
.site-header.scrolled .container { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: 62px; padding-top: 0; }
.site-header.scrolled .brand { order: 1; height: auto; }
.site-header.scrolled .brand img { height: 40px; width: auto; }
.site-header.scrolled .nav-menu { order: 2; flex: 1; justify-content: center; gap: 12px; height: auto; }
.site-header.scrolled .nav-menu a.nav-link { padding: 8px 12px; }
.site-header.scrolled .nav-actions { order: 3; }
.site-header .container {
    display: grid; grid-template-columns: auto 1fr auto;
    grid-template-areas: "brand spacer actions" "nav nav nav"; align-items: center; padding-top: 6px;
}
.brand { grid-area: brand; display: flex; align-items: center; gap: 12px; height: 90px; }
.brand img { height: 76px; width: auto; max-width: 380px; }
.nav-actions { grid-area: actions; display: flex; align-items: center; gap: 10px; }

.nav-menu { grid-area: nav; display: flex; align-items: center; justify-content: space-between; gap: 2px; list-style: none; height: 46px; }
.nav-menu > li { position: relative; }
.nav-menu a.nav-link { display: flex; align-items: center; gap: 5px; padding: 8px 4px; color: #fff; font-family: var(--f-head); font-weight: 600; font-size: 1.02rem; }
.nav-menu a.nav-link:hover { color: #fff; opacity: .78; }
.nav-menu a.nav-link.active { color: #fff; }
.nav-menu .caret { width: 14px; height: 14px; transition: transform .2s ease; }

/* Compact header buttons (match reference) */
.nav-actions .btn-primary { height: 44px; padding: 0 26px; border-radius: 8px; font-size: .95rem; font-weight: 700; box-shadow: none; }
.nav-actions .btn-primary:hover { transform: none; }
.lang-switch { display: inline-flex; align-items: center; gap: 7px; height: 44px; border: 1px solid #fff; border-radius: 8px; padding: 0 16px; font-family: var(--f-head); font-weight: 700; font-size: .9rem; color: var(--ink); background: #fff; cursor: pointer; line-height: 1; }
.lang-switch svg { width: 15px; height: 15px; color: var(--slate); }
@media (max-width: 560px) { .lang-switch { display: none; } }

/* Dropdown */
.has-drop > .dropdown {
    position: absolute; top: calc(100% + 8px); left: 0; min-width: 260px;
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--r);
    box-shadow: var(--shadow-lg); padding: 10px; list-style: none;
    opacity: 0; visibility: hidden; transform: translateY(8px); transition: all .2s ease; z-index: 40;
}
.has-drop:hover > .dropdown, .has-drop:focus-within > .dropdown { opacity: 1; visibility: visible; transform: none; }
.has-drop:hover > .nav-link .caret { transform: rotate(180deg); }
.dropdown a { display: flex; gap: 12px; align-items: flex-start; padding: 10px 12px; border-radius: 10px; color: var(--ink); }
.dropdown a:hover { background: var(--base); }
.dropdown .d-ic { width: 34px; height: 34px; flex: 0 0 auto; border-radius: 9px; background: var(--crimson-soft); color: var(--crimson); display: grid; place-items: center; }
.dropdown .d-ic svg { width: 18px; height: 18px; }
.dropdown .d-t { font-weight: 600; font-size: .92rem; font-family: var(--f-head); }
.dropdown .d-d { font-size: .78rem; color: var(--muted); }

/* Mobile toggler */
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: #fff; margin: 5px 0; transition: .25s; border-radius: 2px; }
.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 992px) {
    .nav-toggle { display: block; }
    .site-header { top: 0; }
    .site-header .container { display: flex; align-items: center; justify-content: space-between; padding-top: 0; height: 64px; }
    .brand { height: auto; }
    .brand img { height: 48px; width: auto; max-width: 240px; }
    .nav-menu {
        position: fixed; inset: 0 0 0 auto; width: min(340px, 86vw); height: 100dvh;
        flex-direction: column; align-items: stretch; gap: 2px; background: var(--surface);
        padding: 92px 20px 32px; box-shadow: var(--shadow-lg); overflow-y: auto;
        transform: translateX(100%); transition: transform .3s cubic-bezier(.4,0,.2,1); z-index: 45; padding-top: 118px;
    }
    .nav-open .nav-menu { transform: none; }
    .nav-menu a.nav-link { padding: 14px 12px; font-size: 1.05rem; justify-content: space-between; }
    .has-drop > .dropdown {
        position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none;
        border: none; border-left: 2px solid var(--line); border-radius: 0; margin: 2px 0 8px 12px;
        min-width: 0; display: none; padding: 4px 0;
    }
    .has-drop.open > .dropdown { display: block; }
    .nav-backdrop { position: fixed; inset: 0; background: rgba(21,32,43,.45); opacity: 0; visibility: hidden; transition: .3s; z-index: 44; }
    .nav-open .nav-backdrop { opacity: 1; visibility: visible; }
    .nav-actions .btn.hide-sm { display: none; }
}

/* ----------------------------- Hero (fits one screen, header overlays) ----------------------------- */
.hero { position: relative; z-index: 1; min-height: calc(100vh - 56px); display: flex; align-items: center; background: #223449; color: #fff; overflow: hidden; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(13,21,33,.55) 0%, rgba(13,21,33,0) 28%), linear-gradient(90deg, rgba(13,21,33,.82) 0%, rgba(13,21,33,.52) 42%, rgba(13,21,33,.18) 100%); }
/* Hero background carousel */
.hero-slides { position: absolute; inset: 0; z-index: 0; }
.hero-slide { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: 0; transition: opacity 1.3s ease-in-out; will-change: opacity; }
.hero-slide.active { opacity: 1; }
.hero .container { position: relative; z-index: 2; width: 100%; max-width: none; margin-inline: 0; padding: 150px 24px 44px 48px; }
/* Align top bar + header to the hero's left edge (full-width, 48px inset) */
.topbar .container, .site-header .container { max-width: none; margin-inline: 0; padding-left: 48px; padding-right: 48px; }
@media (max-width: 640px) { .hero .container, .topbar .container, .site-header .container { padding-left: 24px; padding-right: 24px; } }
.hero-copy { max-width: 1180px; text-shadow: 0 2px 16px rgba(0,0,0,.32); }
@media (max-width: 560px) { .hero h1 br { display: none; } }
.hero-copy .eyebrow, .hero-copy .btn, .hero-copy .badge-pill { text-shadow: none; }
.hero h1 { color: #fff; font-size: clamp(2.4rem, 4.7vw, 4rem); line-height: 1.06; font-weight: 800; margin-bottom: 16px; }
.hero h1 .hl { color: #fff; background: linear-gradient(120deg, #ff5a67, #e0505b); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.hero .lead { font-size: 1.14rem; color: #e6edf4; max-width: 600px; margin-bottom: 24px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-cta .btn { padding: 12px 22px; font-size: .95rem; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.badge-pill { display: inline-flex; align-items: center; gap: 8px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.42); padding: 10px 16px; border-radius: 6px; font-family: var(--f-head); font-weight: 600; font-size: .88rem; }
.badge-pill svg { width: 15px; height: 15px; color: var(--gold); }

/* Hero eyebrow tuned toward the reference (rose) */
.hero .eyebrow.on-dark { color: #ff9aa4; font-size: .82rem; margin-bottom: 14px; letter-spacing: .12em; }
.hero .eyebrow.on-dark::before { background: #ff9aa4; }

@media (max-width: 992px) {
    .hero { min-height: 520px; }
    .hero .container { padding-block: 56px; }
}

/* ----------------------------- Trust marquee ----------------------------- */
.trust { border-bottom: 1px solid var(--line); background: var(--surface); }
.trust .container { padding-block: 26px; }
.trust .label { text-align: center; color: var(--muted); font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 16px; }
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee ul { display: flex; gap: 44px; width: max-content; list-style: none; animation: scroll-x 34s linear infinite; }
.marquee li { color: var(--slate); font-family: var(--f-head); font-weight: 600; font-size: 1.02rem; white-space: nowrap; opacity: .8; }
.marquee:hover ul { animation-play-state: paused; }
@keyframes scroll-x { to { transform: translateX(-50%); } }

/* ----------------------------- Cards / grids ----------------------------- */
.grid { display: grid; gap: 24px; }
.g-2 { grid-template-columns: repeat(2, 1fr); }
.g-3 { grid-template-columns: repeat(3, 1fr); }
.g-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 992px) { .g-3, .g-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .g-2, .g-3, .g-4 { grid-template-columns: 1fr; } }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 30px; transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; height: 100%; }
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
.card .ic { width: 52px; height: 52px; border-radius: 13px; display: grid; place-items: center; background: var(--crimson-soft); color: var(--crimson); margin-bottom: 18px; }
.card .ic svg { width: 26px; height: 26px; }
.card h3 { font-size: 1.2rem; margin-bottom: 8px; }
.card p { color: var(--muted); font-size: .95rem; margin: 0; }

/* Program cards (with media) */
.prog { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; display: flex; flex-direction: column; transition: transform .25s ease, box-shadow .25s ease; height: 100%; }
.prog:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.prog .media { position: relative; aspect-ratio: 16/10; overflow: hidden; }
.prog .media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.prog:hover .media img { transform: scale(1.06); }
.prog .tag { position: absolute; top: 14px; left: 14px; background: var(--crimson); color: #fff; font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 6px 12px; border-radius: 999px; }
.prog .body { padding: 22px 24px 24px; display: flex; flex-direction: column; flex: 1; }
.prog h3 { font-size: 1.16rem; margin-bottom: 8px; }
.prog p { color: var(--muted); font-size: .92rem; flex: 1; }
.prog .meta { display: flex; gap: 16px; color: var(--muted); font-size: .82rem; margin: 12px 0 16px; }
.prog .meta span { display: inline-flex; align-items: center; gap: 6px; }
.prog .meta svg { width: 15px; height: 15px; color: var(--slate); }
.arrow-link { display: inline-flex; align-items: center; gap: 8px; font-family: var(--f-head); font-weight: 600; color: var(--crimson); font-size: .95rem; }
.arrow-link svg { width: 16px; height: 16px; transition: transform .2s ease; }
.arrow-link:hover svg { transform: translateX(4px); }

/* ----------------------------- HSK band ----------------------------- */
.hsk-band { background: linear-gradient(135deg, var(--slate-dark), var(--slate)); color: #fff; border-radius: var(--r-lg); padding: 52px; display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: center; overflow: hidden; position: relative; }
.hsk-band h2 { color: #fff; font-size: clamp(1.7rem, 3vw, 2.3rem); }
.hsk-band p { color: #cdd8e4; }
.hsk-levels { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.hsk-lv { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16); border-radius: var(--r-sm); padding: 16px; text-align: center; transition: background .2s ease; }
.hsk-lv:hover { background: rgba(255,255,255,.16); }
.hsk-lv .lv { font-family: var(--f-head); font-weight: 700; font-size: 1.2rem; color: #fff; }
.hsk-lv .cap { font-size: .74rem; color: #b9c6d4; }
@media (max-width: 768px) { .hsk-band { grid-template-columns: 1fr; padding: 34px; } }

/* ----------------------------- Stats ----------------------------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.stat { text-align: center; padding: 10px; }
.stat .num { font-family: var(--f-head); font-weight: 700; font-size: clamp(2.2rem, 4vw, 3rem); color: #fff; line-height: 1; letter-spacing: -.03em; }
.stat .num .suf { color: var(--gold); }
.stat .cap { color: #aebccb; font-size: .92rem; margin-top: 8px; }
@media (max-width: 640px) { .stats { grid-template-columns: repeat(2, 1fr); gap: 30px 12px; } }

/* ----------------------------- Steps ----------------------------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; counter-reset: step; }
.step { position: relative; padding: 28px 24px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); }
.step::before { counter-increment: step; content: "0" counter(step); font-family: var(--f-head); font-weight: 800; font-size: 2.4rem; color: var(--crimson-soft); position: absolute; top: 14px; right: 18px; line-height: 1; }
.step .ic { width: 46px; height: 46px; border-radius: 12px; background: var(--slate); color: #fff; display: grid; place-items: center; margin-bottom: 14px; }
.step .ic svg { width: 22px; height: 22px; }
.step h3 { font-size: 1.06rem; margin-bottom: 6px; }
.step p { color: var(--muted); font-size: .9rem; margin: 0; }
@media (max-width: 992px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .steps { grid-template-columns: 1fr; } }

/* ----------------------------- Split feature ----------------------------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split .media img { border-radius: var(--r-lg); box-shadow: var(--shadow-lg); width: 100%; object-fit: cover; }
.check-list { list-style: none; display: grid; gap: 14px; margin-top: 20px; }
.check-list li { display: flex; gap: 12px; align-items: flex-start; }
.check-list .ck { width: 24px; height: 24px; flex: 0 0 auto; border-radius: 50%; background: var(--crimson); color: #fff; display: grid; place-items: center; margin-top: 2px; }
.check-list .ck svg { width: 14px; height: 14px; }
.check-list b { color: var(--ink); font-family: var(--f-head); }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; gap: 34px; } .split.reverse .media { order: -1; } }

/* ----------------------------- FAQ ----------------------------- */
.faq { max-width: 820px; margin-inline: auto; display: grid; gap: 12px; }
.faq-item { border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); overflow: hidden; }
.faq-q { width: 100%; text-align: left; background: none; border: none; cursor: pointer; padding: 20px 24px; font-family: var(--f-head); font-weight: 600; font-size: 1.03rem; color: var(--ink); display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.faq-q .pm { flex: 0 0 auto; width: 24px; height: 24px; position: relative; transition: transform .25s ease; }
.faq-q .pm::before, .faq-q .pm::after { content: ""; position: absolute; background: var(--crimson); border-radius: 2px; }
.faq-q .pm::before { top: 11px; left: 4px; right: 4px; height: 2px; }
.faq-q .pm::after { left: 11px; top: 4px; bottom: 4px; width: 2px; transition: transform .25s ease; }
.faq-item.open .pm::after { transform: scaleY(0); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.faq-a p { padding: 0 24px 20px; color: var(--muted); margin: 0; }

/* ----------------------------- CTA band ----------------------------- */
.cta {
    background: linear-gradient(135deg, var(--crimson) 0%, var(--crimson-dark) 100%);
    color: #fff; border-radius: var(--r-lg); padding: 56px; text-align: center; position: relative; overflow: hidden;
}
.cta::before { content: "华"; position: absolute; font-family: var(--f-cn); font-size: 20rem; right: -30px; top: -80px; color: rgba(255,255,255,.06); line-height: 1; }
.cta h2 { color: #fff; font-size: clamp(1.8rem, 3.4vw, 2.6rem); position: relative; }
.cta p { color: rgba(255,255,255,.9); max-width: 560px; margin-inline: auto; position: relative; }
.cta .btns { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 26px; position: relative; }
.cta .btn-primary { background: #fff; color: var(--crimson); box-shadow: 0 10px 30px rgba(0,0,0,.2); }
.cta .btn-primary:hover { background: #fff; color: var(--crimson-dark); }

/* ----------------------------- Footer ----------------------------- */
.site-footer { background: var(--slate-dark); color: #a9b7c6; padding: 72px 0 28px; }
.site-footer h4 { color: #fff; font-size: 1rem; margin-bottom: 18px; letter-spacing: .02em; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.4fr; gap: 40px; }
.footer-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.footer-brand img { height: 40px; width: auto; max-width: 180px; }
.footer-brand .fn { font-family: var(--f-head); font-weight: 700; color: #fff; font-size: 1.2rem; }
.site-footer p { font-size: .92rem; line-height: 1.7; }
.site-footer .cn-slogan { color: var(--gold); font-family: var(--f-cn); font-size: 1.05rem; }
.f-links { list-style: none; display: grid; gap: 10px; }
.f-links a { color: #a9b7c6; font-size: .93rem; }
.f-links a:hover { color: #fff; padding-left: 4px; }
.f-contact { display: grid; gap: 10px; font-size: .9rem; }
.f-contact .row { display: flex; gap: 10px; align-items: flex-start; }
.f-contact svg { width: 17px; height: 17px; flex: 0 0 auto; margin-top: 3px; color: var(--gold); }
.f-venue { border: 1px solid rgba(255,255,255,.12); border-radius: var(--r-sm); padding: 14px; margin-top: 6px; font-size: .82rem; line-height: 1.6; }
.f-venue strong { color: #fff; }
.f-social { display: flex; gap: 10px; margin-top: 18px; }
.f-social a { width: 38px; height: 38px; border-radius: 10px; background: rgba(255,255,255,.08); display: grid; place-items: center; color: #cdd8e4; }
.f-social a:hover { background: var(--crimson); color: #fff; }
.f-social svg { width: 18px; height: 18px; }
.newsletter { display: flex; gap: 8px; margin-top: 10px; }
.newsletter input { flex: 1; min-width: 0; padding: 12px 14px; border-radius: 10px; border: 1px solid rgba(255,255,255,.15); background: rgba(255,255,255,.06); color: #fff; font-family: var(--f-body); }
.newsletter input::placeholder { color: #8497a8; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 48px; padding-top: 22px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: .85rem; }
.footer-bottom a { color: var(--gold); }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

/* ----------------------------- Subpage hero + breadcrumb ----------------------------- */
.page-hero { position: relative; background: linear-gradient(150deg, rgba(23,43,69,.90) 0%, rgba(40,79,124,.82) 55%, rgba(52,97,154,.72) 100%), url('../images/b1.webp'); background-size: cover; background-position: center; color: #fff; overflow: hidden; }
.page-hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 85% 15%, rgba(176,30,40,.3), transparent 45%); }
.page-hero { position: relative; z-index: 1; }
.page-hero .container { position: relative; z-index: 2; padding: 152px 24px 60px; }
@media (max-width: 992px) { .hero .container, .page-hero .container { padding-top: 92px; } .hero { min-height: auto; } }
.page-hero h1 { color: #fff; font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 14px; }
.page-hero p { color: #d7e0ea; max-width: 640px; font-size: 1.1rem; margin: 0; }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; list-style: none; font-size: .86rem; color: #aebccb; margin-bottom: 18px; }
.breadcrumb a { color: #d7e0ea; }
.breadcrumb a:hover { color: #fff; }
.breadcrumb li::after { content: "/"; margin-left: 8px; color: #6a7d92; }
.breadcrumb li:last-child::after { content: ""; }
.breadcrumb li[aria-current] { color: var(--gold); }

/* ----------------------------- Prose (rich text) ----------------------------- */
.prose { max-width: 760px; }
.prose p { color: var(--body); font-size: 1.02rem; }
.prose h2 { font-size: 1.7rem; margin-top: 1.6em; }
.prose h3 { font-size: 1.25rem; margin-top: 1.4em; }
.prose ul, .prose ol { padding-left: 1.2em; margin: 0 0 1rem; }
.prose li { margin-bottom: .5rem; }
.prose strong { color: var(--ink); }
.lead-xl { font-size: 1.2rem; color: var(--muted); }

/* ----------------------------- Data table ----------------------------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); }
table.data { width: 100%; border-collapse: collapse; min-width: 560px; }
table.data th, table.data td { text-align: left; padding: 15px 18px; border-bottom: 1px solid var(--line); font-size: .95rem; }
table.data thead th { background: var(--base); font-family: var(--f-head); color: var(--ink); font-size: .82rem; text-transform: uppercase; letter-spacing: .05em; }
table.data tbody tr:last-child td { border-bottom: none; }
table.data tbody tr:hover { background: var(--surface-2); }
table.data a { font-weight: 600; color: var(--ink); }
table.data a:hover { color: var(--crimson); }
.pill { display: inline-block; font-size: .74rem; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: var(--crimson-soft); color: var(--crimson); }
.pill.slate { background: #e9eef5; color: var(--slate); }

/* Partner university row: logo + name + website CTA */
.uni-cell { display: flex; align-items: center; gap: 14px; }
.uni-logo { flex: 0 0 auto; width: 46px; height: 46px; border-radius: 10px; border: 1px solid var(--line); background: #fff; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.uni-logo img { max-width: 100%; max-height: 100%; object-fit: contain; }
.uni-logo-fallback { font-family: var(--f-head); font-weight: 700; color: var(--crimson); font-size: 1.05rem; }
.uni-name { font-weight: 600; color: var(--ink); }
table.data td.uni-action { text-align: right; white-space: nowrap; }
td.uni-action .btn-sm { padding: 8px 14px; font-size: .82rem; }
td.uni-action .btn-sm svg { width: 15px; height: 15px; }
@media (max-width: 640px) {
    .uni-logo { width: 38px; height: 38px; }
    td.uni-action .btn-sm { padding: 7px 10px; }
    td.uni-action .btn-sm svg { display: none; }
}

/* ----------------------------- Filter controls ----------------------------- */
.filters { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 36px; }
.filter-btn { font-family: var(--f-head); font-weight: 600; font-size: .9rem; padding: 10px 20px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer; transition: all .2s ease; }
.filter-btn:hover { border-color: var(--crimson); color: var(--crimson); }
.filter-btn.active { background: var(--crimson); border-color: var(--crimson); color: #fff; }
.search-row { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 20px; }
.search-row .field { flex: 1; min-width: 220px; }
.is-hidden { display: none !important; }

/* ----------------------------- Forms ----------------------------- */
.form-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow); padding: 32px; }
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.form-grid .col-full { grid-column: 1 / -1; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 6px; }
.field > label { font-family: var(--f-head); font-weight: 600; font-size: .86rem; color: var(--ink); }
.field .req { color: var(--crimson); }
.field .opt { color: var(--muted); font-weight: 500; }
.field .help { font-size: .78rem; color: var(--muted); }
.input, .select, .textarea {
    width: 100%; font-family: var(--f-body); font-size: .96rem; color: var(--ink);
    padding: 12px 14px; border: 1.5px solid var(--line); border-radius: var(--r-sm);
    background: var(--surface); transition: border-color .2s ease, box-shadow .2s ease;
}
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--crimson); box-shadow: var(--ring); }
.textarea { min-height: 130px; resize: vertical; }
select.select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='%236a7784' d='M3.2 5.3a.75.75 0 0 1 1.06 0L8 9.04l3.74-3.74a.75.75 0 1 1 1.06 1.06l-4.27 4.27a.75.75 0 0 1-1.06 0L3.2 6.36a.75.75 0 0 1 0-1.06z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 16px; padding-right: 38px; }
.radio-row { display: flex; gap: 20px; align-items: center; padding-top: 4px; }
.radio-row label { display: inline-flex; align-items: center; gap: 8px; font-size: .95rem; cursor: pointer; }
.form-card.was-validated .input:invalid, .form-card.was-validated .select:invalid, .form-card.was-validated .textarea:invalid { border-color: var(--crimson); }
.field-group-label { font-family: var(--f-head); font-weight: 600; font-size: .86rem; color: var(--ink); margin-bottom: 8px; display: block; }

/* Info / contact cards */
.info-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 28px; }
.info-row { display: flex; gap: 14px; align-items: flex-start; padding: 12px 0; border-bottom: 1px solid var(--line); }
.info-row:last-child { border-bottom: none; }
.info-row .ic { width: 42px; height: 42px; flex: 0 0 auto; border-radius: 11px; background: var(--crimson-soft); color: var(--crimson); display: grid; place-items: center; }
.info-row .ic svg { width: 20px; height: 20px; }
.info-row .k { font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.info-row .v { font-family: var(--f-head); font-weight: 600; color: var(--ink); }
.info-row .v a { color: var(--ink); }
.info-row .v a:hover { color: var(--crimson); }

/* Venue card */
.venue { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 26px; height: 100%; }
.venue h3 { font-size: 1.15rem; display: flex; align-items: center; gap: 10px; }
.venue h3 svg { width: 20px; height: 20px; color: var(--crimson); }
.venue .addr { color: var(--body); margin-bottom: 14px; }
.venue .times { border-top: 1px dashed var(--line); padding-top: 14px; margin-top: 4px; }
.venue .times .t { font-family: var(--f-head); font-weight: 600; color: var(--ink); font-size: .9rem; display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.venue .times ul { list-style: none; display: grid; gap: 6px; }
.venue .times li { color: var(--muted); font-size: .92rem; }
.alert-note { display: flex; gap: 12px; align-items: center; background: #fff7e6; border: 1px solid #f0dcb0; color: #7a5a12; border-radius: var(--r-sm); padding: 14px 18px; font-size: .95rem; }
.alert-note svg { width: 20px; height: 20px; flex: 0 0 auto; }

/* Simple two-column utility */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
@media (max-width: 768px) { .two-col { grid-template-columns: 1fr; } }
.mt-40 { margin-top: 40px; }
.mt-24 { margin-top: 24px; }

/* Testimonials */
.tstm { display: flex; flex-direction: column; gap: 14px; }
.tstm .stars { color: var(--gold); letter-spacing: 2px; }
.tstm p { font-style: italic; color: var(--body); margin: 0; }
.tstm .who { display: flex; align-items: center; gap: 12px; margin-top: auto; }
.tstm .av { width: 44px; height: 44px; border-radius: 50%; background: var(--crimson-soft); color: var(--crimson); display: grid; place-items: center; font-family: var(--f-head); font-weight: 700; }
.tstm .nm { font-family: var(--f-head); font-weight: 700; color: var(--ink); font-size: .95rem; }
.tstm .rl { font-size: .8rem; color: var(--muted); }

/* Fee / pricing card */
.price-card { text-align: center; border: 2px solid var(--crimson); }
.price-card .amt { font-family: var(--f-head); font-weight: 800; font-size: 2rem; color: var(--crimson); line-height: 1; margin: 6px 0; }
.price-card ul { list-style: none; display: grid; gap: 10px; margin: 18px 0; text-align: left; }
.price-card li { display: flex; gap: 10px; align-items: flex-start; color: var(--body); font-size: .95rem; }
.price-card li svg { width: 18px; height: 18px; color: var(--crimson); flex: 0 0 auto; margin-top: 2px; }

/* Download / study material items */
.download-item { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); }
.download-item .ic { width: 40px; height: 40px; flex: 0 0 auto; border-radius: 10px; background: var(--crimson-soft); color: var(--crimson); display: grid; place-items: center; }
.download-item .ic svg { width: 20px; height: 20px; }
.download-item .t { font-family: var(--f-head); font-weight: 600; color: var(--ink); }
.download-item .s { font-size: .8rem; color: var(--muted); }
.download-item .dl { margin-left: auto; }

/* ----------------------------- WhatsApp widget ----------------------------- */
.cc-wa-fab { position: fixed; left: 0; bottom: 0; z-index: 80; display: inline-flex; align-items: center; gap: 9px; height: 38px; padding: 0 18px 0 14px; border-radius: 0 19px 19px 0; border: none; background: var(--crimson); color: #fff; cursor: pointer; box-shadow: 2px -2px 16px rgba(0,0,0,.22); font-family: var(--f-head); font-weight: 600; font-size: .88rem; transition: background .2s ease; }
.cc-wa-fab svg { width: 22px; height: 22px; flex: 0 0 auto; }
.cc-wa-fab .cc-wa-txt { white-space: nowrap; }
.cc-wa-fab:hover { background: var(--crimson-dark); }
@media (max-width: 480px) { .cc-wa-fab .cc-wa-txt { display: none; } .cc-wa-fab { padding: 0 16px; } }
.cc-wa-overlay { position: fixed; inset: 0; z-index: 79; background: rgba(21,32,43,.4); display: none; }
.cc-wa-overlay.open { display: block; }
.cc-wa-panel { position: fixed; left: 16px; bottom: 48px; z-index: 81; width: 350px; max-width: calc(100vw - 32px); max-height: 72vh; background: #fff; border-radius: 16px; overflow: hidden; box-shadow: var(--shadow-lg); display: none; flex-direction: column; }
.cc-wa-panel.open { display: flex; animation: cc-wa-up .25s ease; }
@keyframes cc-wa-up { from { opacity: 0; transform: translateY(12px); } }
.cc-wa-head { background: linear-gradient(135deg, #1F3A5F, #15293f); color: #fff; padding: 20px; display: flex; align-items: center; gap: 12px; position: relative; }
.cc-wa-head img { height: 42px; width: auto; max-width: 150px; border-radius: 8px; background: #fff; padding: 4px; object-fit: contain; }
.cc-wa-head h6 { margin: 0; font-family: var(--f-head); font-weight: 700; font-size: 1.02rem; line-height: 1.25; }
.cc-wa-close { position: absolute; top: 10px; right: 14px; background: none; border: none; color: #fff; font-size: 22px; cursor: pointer; line-height: 1; }
.cc-wa-list { overflow-y: auto; padding: 6px 0; }
.cc-wa-item { display: flex; align-items: center; gap: 14px; padding: 12px 18px; color: var(--ink); transition: background .15s ease; }
.cc-wa-item:hover { background: var(--base); color: var(--ink); }
.cc-wa-avatar { width: 44px; height: 44px; flex: 0 0 auto; border-radius: 50%; background: #e8f7ef; color: #25D366; display: grid; place-items: center; }
.cc-wa-avatar svg { width: 22px; height: 22px; }
.cc-wa-city { font-family: var(--f-head); font-weight: 600; font-size: .98rem; }
.cc-wa-sub { font-size: .8rem; color: var(--muted); }

/* ----------------------------- Cookie-consent banner ----------------------------- */
.cookie-bar { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 90; max-width: 760px; margin-inline: auto; background: var(--slate-dark); color: #dbe4ee; border: 1px solid rgba(255,255,255,.12); border-radius: 14px; box-shadow: var(--shadow-lg); padding: 16px 20px; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; justify-content: space-between; transform: translateY(160%); transition: transform .4s cubic-bezier(.2,.7,.2,1); }
.cookie-bar.show { transform: none; }
.cookie-bar p { margin: 0; font-size: .9rem; line-height: 1.5; flex: 1; min-width: 240px; }
.cookie-bar a { color: var(--gold); text-decoration: underline; }
.cookie-bar .btn { flex: 0 0 auto; }
