/* ==========================================================================
   一鸣艺术培训学校 · 新站样式
   Design tokens / Layout / Components / Responsive
   ========================================================================== */

:root {
  --ink: #241238;
  --ink-2: #2f1a4b;
  --ink-3: #3d2563;
  --paper: #ffffff;
  --cream: #f6f2fb;
  --cream-2: #ebe5f5;
  --line: #e6e1f0;
  --line-dark: rgba(255, 255, 255, .12);
  --text: #221b30;
  --text-2: #5f5670;
  --text-3: #918aa0;
  --red: #2a1442;
  --red-2: #e8640f;
  --red-soft: #f1ecfa;
  --gold: #b99055;
  --radius: 4px;
  --radius-lg: 10px;
  --shadow-sm: 0 2px 10px rgba(36, 18, 56, .07);
  --shadow: 0 18px 48px rgba(36, 18, 56, .12);
  --font: "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei", "Hiragino Sans GB", "Noto Sans SC", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-num: "DIN Alternate", "Bahnschrift", "Helvetica Neue", Arial, sans-serif;
  --header-h: 74px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: clip; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.85;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

img { max-width: 100%; display: block; border: 0; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, h5 { margin: 0; font-weight: 700; line-height: 1.28; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
button { font-family: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--red-2); outline-offset: 3px; }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: 900px; }
.section { padding: 96px 0; position: relative; }
.section-sm { padding: 64px 0; }
.section-cream { background: var(--cream); }
.section-ink { background: var(--ink); color: #eef1f5; }
.section-ink p { color: rgba(238, 241, 245, .72); }
.divider { height: 1px; background: var(--line); border: 0; margin: 0; }

/* ---------- Section heading ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: 12px; letter-spacing: .22em; text-transform: uppercase;
  color: var(--red); font-weight: 700; margin-bottom: 18px;
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: var(--red); display: block; }
.eyebrow.on-dark { color: #f2a35c; }
.eyebrow.on-dark::before { background: #f2a35c; }

.sec-title { font-size: clamp(26px, 3.2vw, 40px); letter-spacing: -.02em; }
.sec-title .thin { font-weight: 300; color: var(--text-3); }
.section-ink .sec-title .thin { color: rgba(255, 255, 255, .38); }
.sec-lead { margin-top: 16px; max-width: 640px; color: var(--text-2); font-size: 15.5px; }
.section-ink .sec-lead { color: rgba(238, 241, 245, .66); }

.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; margin-bottom: 48px; }
.sec-head .link-more { flex: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 50px; padding: 0 28px; border: 1px solid transparent; border-radius: 2px;
  font-size: 15px; font-weight: 600; letter-spacing: .04em;
  transition: all .3s var(--ease); white-space: nowrap;
}
.btn-primary { background: linear-gradient(135deg, #f5821f, #e8640f); color: #fff; }
.btn-primary:hover { background: linear-gradient(135deg, #e8640f, #cf5305); transform: translateY(-2px); box-shadow: 0 10px 24px rgba(232, 100, 15, .3); }
.btn-ghost { border-color: rgba(255, 255, 255, .28); color: #fff; }
.btn-ghost:hover { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .6); }
.btn-outline { border-color: var(--line); color: var(--text); background: #fff; }
.btn-outline:hover { border-color: var(--ink); background: var(--ink); color: #fff; }
.btn-sm { height: 40px; padding: 0 18px; font-size: 13.5px; }
.btn-lg { height: 56px; padding: 0 36px; font-size: 16px; }

.link-more {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13.5px; font-weight: 600; letter-spacing: .06em; color: var(--text-2);
  border-bottom: 1px solid var(--line); padding-bottom: 4px; transition: all .25s var(--ease);
}
.link-more:hover { color: var(--red); border-color: var(--red); gap: 12px; }
.link-more.on-dark { color: rgba(255, 255, 255, .66); border-color: rgba(255, 255, 255, .24); }
.link-more.on-dark:hover { color: #fff; border-color: #fff; }

/* ---------- Top bar + Header ---------- */
.topbar {
  background: #1c0e30; color: rgba(255, 255, 255, .6);
  font-size: 12.5px; letter-spacing: .04em;
}
.topbar .container { display: flex; align-items: center; justify-content: space-between; height: 38px; gap: 20px; }
.topbar a:hover { color: #fff; }
.topbar .tb-left { display: flex; align-items: center; gap: 18px; overflow: hidden; white-space: nowrap; }
.topbar .tb-right { display: flex; align-items: center; gap: 18px; }
.topbar .dot { width: 6px; height: 6px; border-radius: 50%; background: #46c17a; display: inline-block; margin-right: 7px; }

.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, .96);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 6px 18px rgba(36, 18, 56, .05);
  transition: background .3s var(--ease), height .3s var(--ease);
}
.site-header .container { display: flex; align-items: center; height: var(--header-h); gap: 32px; }
.brand { display: flex; align-items: center; gap: 12px; flex: none; }
.brand img { height: 60px; width: auto; }
.brand-txt { color: #fff; line-height: 1.2; display: none; }
.brand-txt strong { display: block; font-size: 15.5px; letter-spacing: .12em; font-weight: 700; }
.brand-txt span { display: block; font-size: 9.5px; letter-spacing: .26em; color: rgba(255, 255, 255, .42); margin-top: 3px; }

.nav { display: flex; align-items: center; gap: 2px; margin-left: auto; }
.nav > li { position: relative; }
.nav > li > a {
  display: flex; align-items: center; height: var(--header-h); white-space: nowrap;
  padding: 0 13px; font-size: 14px; color: rgba(34, 27, 48, .78);
  letter-spacing: .04em; transition: color .2s var(--ease); position: relative;
}
.nav > li > a::after {
  content: ""; position: absolute; left: 13px; right: 13px; bottom: 20px; height: 2px;
  background: var(--red-2); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease);
}
.nav > li > a:hover, .nav > li.active > a { color: var(--ink); }
.nav > li.active > a::after, .nav > li > a:hover::after { transform: scaleX(1); }

.header-cta { display: flex; align-items: center; gap: 14px; flex: none; margin-left: 12px; }
.header-tel { color: var(--ink); text-align: right; line-height: 1.2; }
.header-tel span { display: block; font-size: 10.5px; color: var(--text-3); letter-spacing: .12em; }
.header-tel strong { font-family: var(--font-num); font-size: 18px; letter-spacing: .02em; }

.burger { display: none; width: 44px; height: 44px; border: 0; background: transparent; padding: 0; margin-left: auto; }
.burger span { display: block; width: 22px; height: 1.5px; background: var(--ink); margin: 5px auto; transition: all .3s var(--ease); }
.burger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* mobile drawer */
.drawer-wrap { position: fixed; inset: 0; z-index: 200; overflow: hidden; pointer-events: none; }
.drawer {
  position: absolute; top: 0; right: 0; bottom: 0; width: min(86vw, 380px);
  background: var(--ink); color: #fff; transform: translateX(101%);
  transition: transform .4s var(--ease); display: flex; flex-direction: column;
  padding: 28px 26px 32px; overflow-y: auto; pointer-events: auto;
  box-shadow: -20px 0 50px rgba(0, 0, 0, .4);
}
.drawer.open { transform: translateX(0); }
.drawer-mask {
  position: absolute; inset: 0; background: rgba(0, 0, 0, .55);
  opacity: 0; pointer-events: none; transition: opacity .35s var(--ease);
}
.drawer-mask.open { opacity: 1; pointer-events: auto; }
.drawer-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 26px; }
.drawer .brand-txt { display: block; }
.drawer .brand-txt strong { font-size: 16px; }
.drawer-close { width: 40px; height: 40px; border: 1px solid rgba(255, 255, 255, .2); background: none; color: #fff; font-size: 20px; line-height: 1; }
.drawer nav a {
  display: flex; align-items: center; justify-content: space-between;
  padding: 15px 0; border-bottom: 1px solid rgba(255, 255, 255, .09);
  font-size: 16px; color: rgba(255, 255, 255, .82);
}
.drawer nav a.active, .drawer nav a:hover { color: #fff; }
.drawer nav a span { font-size: 11px; color: rgba(255, 255, 255, .3); font-family: var(--font-num); }
.drawer-contact { margin-top: 26px; font-size: 13.5px; color: rgba(255, 255, 255, .55); line-height: 2.1; }
.drawer-contact strong { color: #fff; font-family: var(--font-num); font-size: 17px; letter-spacing: .02em; }

/* ---------- Hero（首页主视觉幻灯片） ---------- */
.hero { position: relative; background: var(--ink); color: #fff; overflow: hidden; }
.hero-slides { position: absolute; inset: 0; }
.hero-slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.1s ease; }
.hero-slide.is-on { opacity: 1; }
.hero-slide img {
  width: 100%; height: 100%; object-fit: cover;
  opacity: .66; filter: saturate(.96) contrast(1.04);
  transform: scale(1.02);
}
.hero-slide.is-on img { animation: heroZoom 9s ease-out both; }
@keyframes heroZoom { from { transform: scale(1.02); } to { transform: scale(1.1); } }
.hero-slide::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(24, 12, 44, .32), rgba(24, 12, 44, .05) 44%, rgba(24, 12, 44, .36));
}
.hero-slides::after {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(820px 460px at 82% 22%, rgba(232, 100, 15, .3), transparent 66%),
    linear-gradient(100deg, rgba(20, 10, 34, .9) 22%, rgba(20, 10, 34, .62) 50%, rgba(20, 10, 34, .12) 100%);
}
.hero .container { position: relative; z-index: 2; padding-top: 116px; padding-bottom: 116px; }
.hero-stack { display: grid; max-width: 720px; }
.hero-pane {
  grid-area: 1 / 1; opacity: 0; visibility: hidden; transform: translateY(16px);
  transition: opacity .65s ease, transform .65s ease, visibility .65s;
}
.hero-pane.is-on { opacity: 1; visibility: visible; transform: none; }
.hero-tag {
  display: inline-flex; align-items: center; gap: 10px; padding: 7px 14px;
  border: 1px solid rgba(255, 255, 255, .22); border-radius: 100px;
  font-size: 12px; letter-spacing: .14em; color: rgba(255, 255, 255, .86);
}
.hero-tag i { width: 5px; height: 5px; border-radius: 50%; background: var(--red-2); font-style: normal; }
.hero .hero-h {
  font-size: clamp(34px, 5.6vw, 66px); line-height: 1.16; margin: 26px 0 22px;
  letter-spacing: .02em; font-weight: 800;
}
.hero .hero-h em {
  font-style: normal;
  background: linear-gradient(100deg, #ffb27a, #e8640f 60%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-sub { font-size: 16.5px; line-height: 2; color: rgba(255, 255, 255, .72); max-width: 560px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }
.hero-points { display: flex; flex-wrap: wrap; gap: 14px 34px; margin-top: 46px; padding-top: 28px; border-top: 1px solid rgba(255, 255, 255, .12); }
.hero-points div { font-size: 13.5px; color: rgba(255, 255, 255, .62); display: flex; align-items: center; gap: 9px; }
.hero-points div::before { content: ""; width: 5px; height: 5px; background: var(--red-2); display: block; transform: rotate(45deg); }

/* hero 幻灯片控件 */
.hero-ctrl { position: absolute; left: 0; right: 0; bottom: 30px; z-index: 4; }
.hero .hero-ctrl .container { padding: 0; display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.hero-dots { display: flex; align-items: center; gap: 6px; }
.hero-dot { position: relative; width: 38px; height: 26px; padding: 0; border: 0; background: none; cursor: pointer; }
.hero-dot span {
  position: absolute; left: 0; right: 0; top: 50%; margin-top: -1px; height: 2px;
  background: rgba(255, 255, 255, .26); transition: background .3s;
}
.hero-dot:hover span { background: rgba(255, 255, 255, .62); }
.hero-dot.is-on span { background: var(--red-2); }
.hero-meta { display: flex; align-items: center; gap: 18px; }
.hero-idx { font-family: var(--font-num); font-size: 12px; letter-spacing: .18em; color: rgba(255, 255, 255, .45); }
.hero-idx b { color: #fff; font-size: 15px; font-weight: 600; }
.hero-arrows { display: flex; gap: 8px; }
.hero-arrow {
  width: 42px; height: 42px; display: grid; place-items: center;
  border: 1px solid rgba(255, 255, 255, .22); border-radius: 50%;
  background: rgba(255, 255, 255, .02); color: #fff; cursor: pointer;
  transition: background .25s, border-color .25s;
}
.hero-arrow:hover { background: rgba(255, 255, 255, .14); border-color: rgba(255, 255, 255, .5); }

/* hero stat strip */
.hero-stats { position: relative; z-index: 3; background: #1c0e30; border-top: 1px solid rgba(255, 255, 255, .08); }
.hero-stats .container { display: grid; grid-template-columns: repeat(4, 1fr); }
.hero-stats .item { padding: 26px 10px; text-align: center; border-right: 1px solid rgba(255, 255, 255, .07); }
.hero-stats .item:last-child { border-right: 0; }
.hero-stats b { display: block; font-family: var(--font-num); font-size: clamp(24px, 3vw, 34px); color: #fff; letter-spacing: .01em; line-height: 1.2; }
.hero-stats b small { font-size: 13px; font-weight: 400; color: rgba(255, 255, 255, .45); margin-left: 4px; letter-spacing: .06em; }
.hero-stats span { display: block; font-size: 12.5px; color: rgba(255, 255, 255, .45); letter-spacing: .1em; margin-top: 6px; }

/* ---------- Page hero (sub pages) ---------- */
.page-hero { position: relative; background: var(--ink); color: #fff; overflow: hidden; }
.page-hero .bg { position: absolute; inset: 0; }
.page-hero .bg img { width: 100%; height: 100%; object-fit: cover; opacity: .44; filter: brightness(1.22) saturate(1.05); }
.page-hero .bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, #241238 6%, rgba(36, 18, 56, .92) 48%, rgba(36, 18, 56, .58)); }
.page-hero .container { position: relative; z-index: 2; padding-top: 76px; padding-bottom: 64px; }
.page-hero h1 { font-size: clamp(28px, 4vw, 46px); letter-spacing: .01em; }
.page-hero .sub { margin-top: 14px; color: rgba(255, 255, 255, .62); font-size: 15px; max-width: 680px; }
.crumb { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 12.5px; color: rgba(255, 255, 255, .44); margin-bottom: 22px; letter-spacing: .04em; }
.crumb a:hover { color: #fff; }
.crumb i { font-style: normal; opacity: .4; }

/* ---------- Major cards ---------- */
.major-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.major-card {
  position: relative; display: block; background: #fff; border: 1px solid var(--line);
  overflow: hidden; transition: all .4s var(--ease);
}
.major-card .thumb { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--cream-2); }
.major-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.major-card:hover .thumb img { transform: scale(1.06); }
.major-card .thumb::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(36, 18, 56, .5), transparent 55%); }
.major-card .badge {
  position: absolute; left: 16px; top: 16px; z-index: 2; padding: 4px 10px; font-size: 11px;
  letter-spacing: .12em; background: rgba(255, 255, 255, .92); color: var(--ink); font-weight: 600;
}
.major-card .body { padding: 22px 22px 24px; }
.major-card h3 { font-size: 19px; display: flex; align-items: center; justify-content: space-between; }
.major-card h3 span { font-family: var(--font-num); font-size: 12px; color: var(--text-3); font-weight: 400; }
.major-card p { margin-top: 10px; font-size: 13.5px; color: var(--text-2); line-height: 1.85; min-height: 50px; }
.major-card .tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; }
.major-card .tags span { font-size: 11.5px; color: var(--text-3); border: 1px solid var(--line); padding: 2px 8px; }
.major-card:hover { border-color: #cfc6b8; transform: translateY(-4px); box-shadow: var(--shadow); }
.major-card.is-dz { background: var(--ink); border-color: var(--ink); color: #fff; }
.major-card.is-dz p { color: rgba(255, 255, 255, .6); }
.major-card.is-dz .tags span { color: rgba(255, 255, 255, .55); border-color: rgba(255, 255, 255, .16); }
.major-card.is-dz h3 span { color: rgba(255, 255, 255, .4); }

/* ---------- Feature / value ---------- */
.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.feature { background: #fff; padding: 34px 26px 32px; transition: background .3s var(--ease); }
.feature:hover { background: var(--cream); }
.feature .num { font-family: var(--font-num); font-size: 12px; color: var(--red); letter-spacing: .16em; }
.feature h3 { font-size: 17px; margin: 14px 0 10px; }
.feature p { font-size: 13.5px; color: var(--text-2); line-height: 1.9; }

/* ---------- Split block (text + image) ---------- */
.split { display: grid; grid-template-columns: 1.05fr .95fr; gap: 64px; align-items: center; }
.split.reverse > .split-media { order: -1; }
.split-media { position: relative; }
.split-media img { width: 100%; aspect-ratio: 4 / 3.2; object-fit: cover; }
.split-media .float-card {
  position: absolute; left: -28px; bottom: -28px; background: #fff; padding: 20px 24px;
  box-shadow: var(--shadow); min-width: 190px; border-left: 3px solid var(--red);
}
.split-media .float-card b { font-family: var(--font-num); font-size: 30px; display: block; line-height: 1.1; }
.split-media .float-card span { font-size: 12.5px; color: var(--text-3); letter-spacing: .06em; }

.stat-row { display: flex; flex-wrap: wrap; gap: 40px; margin-top: 34px; padding-top: 28px; border-top: 1px solid var(--line); }
.stat-row div b { font-family: var(--font-num); font-size: 30px; display: block; line-height: 1.2; color: var(--red); }
.stat-row div span { font-size: 12.5px; color: var(--text-3); letter-spacing: .06em; }

/* ---------- Checklist ---------- */
.check-list li { position: relative; padding-left: 26px; margin-bottom: 12px; font-size: 14.5px; color: var(--text-2); line-height: 1.8; }
.check-list li::before {
  content: ""; position: absolute; left: 2px; top: 9px; width: 8px; height: 8px;
  border-left: 2px solid var(--red); border-bottom: 2px solid var(--red); transform: rotate(-45deg);
}
.section-ink .check-list li { color: rgba(238, 241, 245, .7); }
.section-ink .check-list li::before { border-color: #f2a35c; }

/* ---------- Teachers ---------- */
.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 36px; }
.tab {
  padding: 9px 20px; border: 1px solid var(--line); background: #fff; font-size: 13.5px;
  color: var(--text-2); transition: all .25s var(--ease); border-radius: 100px;
}
.tab:hover { border-color: var(--ink); color: var(--ink); }
.tab.active { background: var(--ink); border-color: var(--ink); color: #fff; }

.teacher-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.teacher {
  background: #fff; border: 1px solid var(--line); padding: 26px 22px 24px;
  transition: all .35s var(--ease); position: relative; overflow: hidden;
}
.teacher::after { content: ""; position: absolute; left: 0; top: 0; width: 100%; height: 2px; background: var(--red); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease); }
.teacher:hover { box-shadow: var(--shadow-sm); border-color: #d8d0c2; }
.teacher:hover::after { transform: scaleX(1); }
.teacher .mono {
  width: 54px; height: 54px; display: grid; place-items: center; border-radius: 50%;
  background: linear-gradient(140deg, #f3ece1, #e6dccd); color: #8a7355;
  font-size: 21px; font-weight: 700; margin-bottom: 16px; letter-spacing: .02em;
}
.teacher.grp-16 .mono { background: linear-gradient(140deg, #fdeee9, #f7d9cf); color: #b1543a; }
.teacher.grp-17 .mono { background: linear-gradient(140deg, #eceff7, #d9e0ef); color: #4d6389; }
.teacher.grp-29 .mono { background: linear-gradient(140deg, #f0edf7, #e0d8f0); color: #6b5590; }
.teacher.grp-30 .mono { background: linear-gradient(140deg, #eef4ef, #d9e8de); color: #4b7a5f; }
.teacher h3 { font-size: 16.5px; }
.teacher .role { font-size: 12px; color: var(--red); letter-spacing: .08em; margin-top: 6px; }
.teacher p { font-size: 13px; color: var(--text-2); line-height: 1.85; margin-top: 12px; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.teacher .more { display: none; }

/* ---------- Student / achievement ---------- */
.student-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.student {
  background: #fff; border: 1px solid var(--line); padding: 24px 20px; position: relative;
  transition: all .35s var(--ease);
}
.student:hover { border-color: #cfc6b8; transform: translateY(-3px); box-shadow: var(--shadow-sm); }
.student .score { font-family: var(--font-num); font-size: 12px; color: var(--red); letter-spacing: .08em; }
.student h3 { font-size: 17px; margin: 8px 0 4px; }
.student .from { font-size: 12.5px; color: var(--text-3); }
.student .to { margin-top: 14px; padding-top: 12px; border-top: 1px dashed var(--line); font-size: 13px; color: var(--text-2); }
.student .to b { display: block; font-size: 14.5px; color: var(--ink); margin-bottom: 2px; }

.logo-wall { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.logo-wall .cell { background: #fff; padding: 28px 18px; display: grid; place-items: center; min-height: 104px; transition: background .3s; }
.logo-wall .cell:hover { background: var(--cream); }
.logo-wall .cell span { font-size: 13.5px; color: var(--text-2); letter-spacing: .04em; }
.logo-wall .cell img { max-height: 44px; width: auto; opacity: .8; }

/* ---------- Gallery ---------- */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.gallery a { display: block; position: relative; overflow: hidden; background: var(--cream-2); aspect-ratio: 4 / 3; }
.gallery a img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease), filter .4s; }
.gallery a:hover img { transform: scale(1.05); }
.gallery a.tall { grid-row: span 2; aspect-ratio: 1 / 1.54; }
.gallery a figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 16px 12px; color: #fff;
  font-size: 12.5px; background: linear-gradient(to top, rgba(12, 16, 21, .72), transparent);
  opacity: 0; transform: translateY(6px); transition: all .35s var(--ease);
}
.gallery a:hover figcaption { opacity: 1; transform: none; }

/* lightbox */
.lightbox { position: fixed; inset: 0; z-index: 300; background: rgba(8, 11, 15, .94); display: none; place-items: center; padding: 40px; }
.lightbox.open { display: grid; }
.lightbox img { max-width: 92vw; max-height: 84vh; object-fit: contain; }
.lightbox button { position: absolute; top: 24px; right: 28px; width: 44px; height: 44px; background: none; border: 1px solid rgba(255, 255, 255, .3); color: #fff; font-size: 20px; }

/* ---------- News / article cards ---------- */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.post {
  display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line);
  transition: all .35s var(--ease); overflow: hidden;
}
.post:hover { border-color: #cfc6b8; box-shadow: var(--shadow-sm); transform: translateY(-3px); }
.post .body { padding: 24px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.post .meta { display: flex; align-items: center; gap: 12px; font-size: 11.5px; color: var(--text-3); letter-spacing: .08em; }
.post .meta .cat { color: var(--red); font-weight: 600; }
.post h3 { font-size: 16.5px; margin: 12px 0 10px; line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.post p { font-size: 13px; color: var(--text-2); line-height: 1.85; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.post .arrow { margin-top: auto; padding-top: 18px; font-size: 12px; color: var(--text-3); letter-spacing: .1em; }

/* news list rows */
.post-list { border-top: 1px solid var(--line); }
.post-row {
  display: grid; grid-template-columns: 96px 1fr 120px; gap: 24px; align-items: baseline;
  padding: 26px 0; border-bottom: 1px solid var(--line); transition: background .25s;
}
.post-row:hover { background: var(--cream); }
.post-row .date { font-family: var(--font-num); font-size: 13px; color: var(--text-3); letter-spacing: .04em; }
.post-row h3 { font-size: 16.5px; font-weight: 600; line-height: 1.6; }
.post-row:hover h3 { color: var(--red); }
.post-row p { font-size: 13px; color: var(--text-2); margin-top: 6px; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.post-row .cat { font-size: 11.5px; color: var(--text-3); text-align: right; letter-spacing: .08em; }
.post-row .cat b { color: var(--red); font-weight: 600; }

/* article detail */
.article-body { max-width: 800px; margin: 0 auto; }
.article-body h1 { font-size: clamp(24px, 3.4vw, 34px); line-height: 1.45; margin-bottom: 18px; }
.article-meta { display: flex; flex-wrap: wrap; gap: 16px; font-size: 12.5px; color: var(--text-3); padding-bottom: 22px; border-bottom: 1px solid var(--line); margin-bottom: 34px; letter-spacing: .04em; }
.prose { font-size: 16px; line-height: 2.05; color: #262b33; }
.prose p { margin: 0 0 1.25em; }
.prose img { margin: 24px auto; max-width: 100%; height: auto; }
.prose h2, .prose h3, .prose h4 { margin: 1.8em 0 .8em; font-size: 20px; }
.prose table { width: 100%; border-collapse: collapse; margin: 22px 0; font-size: 14px; }
.prose td, .prose th { border: 1px solid var(--line); padding: 9px 12px; }
.prose ul, .prose ol { margin: 0 0 1.2em; padding-left: 1.4em; list-style: revert; }
.prose li { margin-bottom: .4em; }
.prose a { color: var(--red); border-bottom: 1px solid rgba(42, 20, 66, .3); }
.prose blockquote { margin: 22px 0; padding: 16px 22px; background: var(--cream); border-left: 3px solid var(--red); color: var(--text-2); }
.prose span, .prose font { color: inherit !important; background: transparent !important; font-size: inherit !important; font-family: inherit !important; }

/* ---------- Table ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); background: #fff; }
table.data { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 620px; }
table.data th, table.data td { padding: 14px 18px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; line-height: 1.8; }
table.data thead th { background: var(--cream); font-size: 13px; letter-spacing: .06em; color: var(--text-2); font-weight: 600; }
table.data tbody tr:last-child td { border-bottom: 0; }
table.data tbody tr:hover { background: #fdfcfa; }
table.data td b { color: var(--red); }

/* ---------- Timeline ---------- */
.timeline { position: relative; padding-left: 28px; }
.timeline::before { content: ""; position: absolute; left: 5px; top: 8px; bottom: 8px; width: 1px; background: var(--line); }
.timeline li { position: relative; padding-bottom: 26px; }
.timeline li::before { content: ""; position: absolute; left: -28px; top: 8px; width: 11px; height: 11px; border-radius: 50%; background: #fff; border: 2px solid var(--red); }
.timeline h4 { font-size: 15px; }
.timeline p { font-size: 13.5px; color: var(--text-2); margin-top: 4px; }
.section-ink .timeline::before { background: rgba(255, 255, 255, .16); }
.section-ink .timeline li::before { background: var(--ink); border-color: #f2a35c; }
.section-ink .timeline p { color: rgba(238, 241, 245, .62); }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.step { background: #fff; border: 1px solid var(--line); padding: 30px 26px; position: relative; }
.step .n { font-family: var(--font-num); font-size: 40px; line-height: 1; color: var(--cream-2); position: absolute; right: 20px; top: 18px; font-weight: 700; }
.step h3 { font-size: 16.5px; margin-bottom: 10px; position: relative; }
.step p { font-size: 13.5px; color: var(--text-2); line-height: 1.9; }

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q {
  width: 100%; background: none; border: 0; text-align: left; padding: 22px 44px 22px 0;
  font-size: 16px; font-weight: 600; color: var(--text); position: relative; line-height: 1.7;
}
.faq-q::after { content: "+"; position: absolute; right: 8px; top: 50%; transform: translateY(-50%); font-size: 22px; font-weight: 300; color: var(--text-3); transition: transform .3s var(--ease); }
.faq-item.open .faq-q::after { transform: translateY(-50%) rotate(45deg); color: var(--red); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .4s var(--ease); }
.faq-a > div { padding: 0 60px 24px 0; font-size: 14.5px; color: var(--text-2); line-height: 1.95; }

/* ---------- CTA band ---------- */
.cta-band { background: var(--ink); color: #fff; position: relative; overflow: hidden; }
.cta-band::before {
  content: ""; position: absolute; width: 720px; height: 720px; right: -180px; top: -320px;
  background: radial-gradient(circle, rgba(232, 100, 15, .35), transparent 66%);
}
.cta-band .container { position: relative; z-index: 2; padding: 84px 24px; display: grid; grid-template-columns: 1.3fr .7fr; gap: 48px; align-items: center; }
.cta-band h2 { font-size: clamp(24px, 3.2vw, 36px); line-height: 1.35; }
.cta-band p { color: rgba(255, 255, 255, .62); margin-top: 14px; font-size: 15px; }
.cta-actions { display: flex; flex-direction: column; gap: 12px; align-items: stretch; }

/* ---------- Contact / form ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; }
.info-list li { display: grid; grid-template-columns: 84px 1fr; gap: 16px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.info-list dt, .info-list .k { font-size: 12.5px; color: var(--text-3); letter-spacing: .1em; padding-top: 3px; }
.info-list .v { font-size: 15px; line-height: 1.9; }
.info-list .v strong { font-family: var(--font-num); font-size: 20px; letter-spacing: .02em; }
.info-list .v small { display: block; font-size: 12.5px; color: var(--text-3); }

.form-card { background: #fff; border: 1px solid var(--line); padding: 34px; box-shadow: var(--shadow-sm); }
.form-card h3 { font-size: 19px; }
.form-card .hint { font-size: 13px; color: var(--text-3); margin-top: 6px; }
.field { margin-top: 18px; }
.field label { display: block; font-size: 12.5px; color: var(--text-2); letter-spacing: .06em; margin-bottom: 7px; }
.field input, .field select, .field textarea {
  width: 100%; border: 1px solid var(--line); background: #fbfaff; padding: 12px 14px;
  font-size: 14.5px; font-family: inherit; color: var(--text); border-radius: 2px; transition: border-color .2s, background .2s;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--red); background: #fff; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-msg { margin-top: 14px; font-size: 13.5px; color: var(--red); display: none; }
.form-msg.show { display: block; }
.form-note { font-size: 12px; color: var(--text-3); margin-top: 14px; line-height: 1.8; }

.map-card { border: 1px solid var(--line); background: var(--cream); padding: 0; overflow: hidden; }
.map-card .inner { padding: 40px 34px; }
.map-card .inner h3 { font-size: 18px; }
.map-card .inner p { font-size: 13.5px; color: var(--text-2); margin-top: 8px; }

/* ---------- Footer ---------- */
.site-footer { background: #1c0e30; color: rgba(255, 255, 255, .55); font-size: 13.5px; padding: 72px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 48px; padding-bottom: 48px; }
.footer-grid h4 { color: #fff; font-size: 14px; letter-spacing: .1em; margin-bottom: 20px; font-weight: 600; }
.footer-grid li { margin-bottom: 10px; }
.footer-grid a:hover { color: #fff; }
.footer-brand img { height: 50px; width: auto; margin-bottom: 18px; }
.footer-brand p { font-size: 13px; line-height: 1.9; color: rgba(255, 255, 255, .42); max-width: 300px; }
.footer-qr { display: flex; gap: 14px; margin-top: 20px; }
.footer-qr img { width: 92px; height: 92px; object-fit: cover; background: #fff; padding: 4px; }
.footer-qr div span { display: block; font-size: 11.5px; color: rgba(255, 255, 255, .4); margin-top: 6px; text-align: center; }
.footer-contact strong { color: #fff; font-family: var(--font-num); font-size: 15px; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .08); padding: 22px 0; display: flex; flex-wrap: wrap; gap: 10px 24px; align-items: center; justify-content: space-between; font-size: 12px; color: rgba(255, 255, 255, .32); }

/* ---------- Floating mobile bar ---------- */
.mobile-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 90; display: none;
  background: rgba(28, 14, 48, .97); border-top: 1px solid rgba(255, 255, 255, .1);
  padding: 8px 10px calc(8px + env(safe-area-inset-bottom));
  grid-template-columns: repeat(3, 1fr); gap: 8px;
}
.mobile-bar a {
  display: flex; flex-direction: column; align-items: center; gap: 3px; justify-content: center;
  color: rgba(255, 255, 255, .8); font-size: 11.5px; padding: 6px 0; letter-spacing: .04em;
}
.mobile-bar a.hl { background: linear-gradient(135deg, #f5821f, #e8640f); color: #fff; }
.mobile-bar svg { width: 17px; height: 17px; stroke: currentColor; fill: none; stroke-width: 1.7; }

.to-top {
  position: fixed; right: 24px; bottom: 28px; z-index: 80; width: 44px; height: 44px;
  background: #fff; border: 1px solid var(--line); color: var(--text-2); display: grid; place-items: center;
  opacity: 0; pointer-events: none; transition: all .3s var(--ease); box-shadow: var(--shadow-sm);
}
.to-top.show { opacity: 1; pointer-events: auto; }
.to-top:hover { background: var(--ink); color: #fff; border-color: var(--ink); }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
  .hero-slide, .hero-pane { transition: none; }
  .hero-slide.is-on img { animation: none; transform: none; }
}

/* ---------- Breadcrumb / anchor sub-nav ---------- */
.anchor-nav { position: sticky; top: var(--header-h); z-index: 60; background: rgba(255, 255, 255, .96); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.anchor-nav .container { display: flex; gap: 28px; overflow-x: auto; height: 54px; align-items: center; scrollbar-width: none; }
.anchor-nav .container::-webkit-scrollbar { display: none; }
.anchor-nav a { font-size: 13.5px; color: var(--text-2); white-space: nowrap; letter-spacing: .04em; padding: 4px 0; border-bottom: 1px solid transparent; }
.anchor-nav a:hover { color: var(--red); border-color: var(--red); }

/* ---------- Misc ---------- */
.note { font-size: 12.5px; color: var(--text-3); line-height: 1.9; margin-top: 18px; }
.badge-soft { display: inline-block; padding: 3px 10px; background: var(--red-soft); color: var(--red); font-size: 11.5px; letter-spacing: .08em; }
.center { text-align: center; }
.mt-0 { margin-top: 0; } .mt-8 { margin-top: 8px; } .mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; } .mt-40 { margin-top: 40px; } .mt-56 { margin-top: 56px; }
.mb-0 { margin-bottom: 0; }

.pagination { display: flex; gap: 8px; justify-content: center; margin-top: 44px; }
.pagination a, .pagination span {
  min-width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid var(--line);
  font-size: 13.5px; color: var(--text-2); padding: 0 12px;
}
.pagination .cur { background: var(--ink); border-color: var(--ink); color: #fff; }
.pagination a:hover { border-color: var(--ink); color: var(--ink); }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1100px) {
  .nav > li > a { padding: 0 11px; font-size: 14px; }
  .teacher-grid, .student-grid { grid-template-columns: repeat(3, 1fr); }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
  .footer-grid > div:last-child { grid-column: span 3; }
  .split { gap: 44px; }
  .hero .container { padding-top: 84px; padding-bottom: 90px; }
}

@media (max-width: 960px) {
  :root { --header-h: 64px; }
  .brand img { height: 46px; }
  .topbar { display: none; }
  .nav, .header-tel { display: none; }
  .burger { display: block; }
  .header-cta .btn { display: none; }
  .section { padding: 68px 0; }
  .sec-head { flex-direction: column; align-items: flex-start; gap: 18px; margin-bottom: 34px; }
  .major-grid, .news-grid, .steps { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; gap: 40px; }
  .split.reverse > .split-media { order: 0; }
  .split-media .float-card { left: 16px; bottom: -20px; }
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .cta-band .container { grid-template-columns: 1fr; padding: 60px 24px; gap: 28px; }
  .gallery { grid-template-columns: repeat(3, 1fr); }
  .logo-wall { grid-template-columns: repeat(3, 1fr); }
  .hero .container { padding-top: 76px; padding-bottom: 76px; }
  .hero-ctrl { display: none; }
  .hero-stats .container { grid-template-columns: repeat(2, 1fr); }
  .hero-stats .item:nth-child(2) { border-right: 0; }
  .hero-stats .item:nth-child(1), .hero-stats .item:nth-child(2) { border-bottom: 1px solid rgba(255, 255, 255, .07); }
  .mobile-bar { display: grid; }
  .to-top { bottom: 86px; right: 16px; }
  body { padding-bottom: 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 34px; }
  .footer-grid > div:last-child { grid-column: span 2; }
  .anchor-nav { top: var(--header-h); }
}

@media (max-width: 680px) {
  body { font-size: 15.5px; }
  .container { padding: 0 18px; }
  .section { padding: 56px 0; }
  .section-sm { padding: 44px 0; }
  .major-grid, .news-grid, .steps, .teacher-grid, .student-grid { grid-template-columns: 1fr; }
  .feature-grid { grid-template-columns: 1fr; }
  .logo-wall { grid-template-columns: repeat(2, 1fr); }
  .gallery { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .gallery a.tall { grid-row: span 1; aspect-ratio: 4 / 3; }
  .hero .hero-h { font-size: 30px; }
  .hero-sub { font-size: 14.5px; }
  .hero-actions .btn { flex: 1; }
  .hero-points { gap: 10px 18px; }
  .post-row { grid-template-columns: 1fr; gap: 6px; padding: 20px 0; }
  .post-row .date { font-size: 12px; }
  .post-row .cat { text-align: left; }
  .field-row { grid-template-columns: 1fr; }
  .form-card { padding: 24px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-grid > div:last-child { grid-column: auto; }
  .article-body h1 { font-size: 22px; }
  .prose { font-size: 15.5px; }
  .info-list li { grid-template-columns: 1fr; gap: 4px; }
  .stat-row { gap: 24px; }
  .stat-row div b { font-size: 24px; }
  .page-hero .container { padding-top: 48px; padding-bottom: 44px; }
  .sec-title { font-size: 24px; }
  .cta-band .container { padding: 48px 18px; }
  .teacher p { -webkit-line-clamp: 5; }
}

/* print */
@media print {
  .site-header, .mobile-bar, .to-top, .cta-band, .topbar, .anchor-nav { display: none; }
}

/* ==========================================================================
   Component additions: major detail cards / compare table
   ========================================================================== */
.m-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.m-card { background: #fff; border: 1px solid var(--line); padding: 30px 28px; transition: box-shadow .35s var(--ease), border-color .35s; }
.m-card:hover { border-color: #d9d1ea; box-shadow: var(--shadow-sm); }
.m-card h3 { font-size: 18px; display: flex; align-items: baseline; gap: 10px; }
.m-card h3 .idx { font-family: var(--font-num); font-size: 12px; color: var(--red); letter-spacing: .1em; }
.m-card .goal { font-size: 13.5px; color: var(--text-2); line-height: 1.9; margin-top: 12px; }
.m-card .k { display: block; font-size: 11.5px; letter-spacing: .14em; color: var(--text-3); margin: 20px 0 10px; padding-bottom: 6px; border-bottom: 1px dashed var(--line); }
.m-card ul.req li { position: relative; padding-left: 14px; font-size: 13.5px; color: var(--text-2); line-height: 1.85; margin-bottom: 5px; }
.m-card ul.req li::before { content: ""; position: absolute; left: 0; top: .78em; width: 4px; height: 4px; background: var(--red); border-radius: 50%; }
.m-card .chip { display: inline-block; font-size: 12px; border: 1px solid var(--line); padding: 3px 10px; margin: 0 6px 6px 0; color: var(--text-2); background: #fbfaff; }
.section-ink .m-card { background: #2f1a4b; border-color: rgba(255,255,255,.1); }
.section-ink .m-card .goal, .section-ink .m-card ul.req li { color: rgba(238,241,245,.66); }
.section-ink .m-card .chip { color: rgba(255,255,255,.6); border-color: rgba(255,255,255,.14); background: transparent; }
.section-ink .m-card .k { color: rgba(255,255,255,.4); border-color: rgba(255,255,255,.12); }

@media (max-width: 860px) { .m-grid { grid-template-columns: 1fr; } .m-card { padding: 24px 20px; } }
@media (max-width: 1240px) { .header-tel { display: none; } }
