/* ============================================================
   中国人民大学信息学院 MEM 2027 招生专题
   设计系统：人大红 × 烫金 × 米白 ｜ 思源宋体标题 × 无衬线正文
   ============================================================ */

:root {
  --red: #8C1F28;
  --red-deep: #5E141B;
  --red-dark: #3D0E12;
  --red-bright: #A32D2D;
  --gold: #C9A45C;
  --gold-light: #E7D3A4;
  --gold-deep: #A5813F;
  --cream: #FAF6EF;
  --cream-2: #F3ECDD;
  --cream-3: #EDE4D2;
  --ink: #2A2320;
  --ink-2: #5F5E5A;
  --muted: #8A7F76;
  --line: rgba(42, 35, 32, .14);
  --line-gold: rgba(201, 164, 92, .38);
  --white: #FFFFFF;

  --serif: "Songti SC", "STSong", "Source Han Serif SC", "Noto Serif SC", "SimSun", serif;
  --sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "Noto Sans SC", "Microsoft YaHei", "Segoe UI", sans-serif;

  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-xl: 28px;

  --ease: cubic-bezier(.22, .61, .36, 1);
  --ease-spring: cubic-bezier(.34, 1.4, .5, 1);

  --shadow-sm: 0 2px 10px rgba(42, 20, 16, .06);
  --shadow-md: 0 12px 34px rgba(42, 20, 16, .10);
  --shadow-lg: 0 24px 60px rgba(42, 20, 16, .16);

  --header-h: 68px;
  --container: 1200px;
}

/* ---------- Reset & Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.75;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
table { border-collapse: collapse; width: 100%; }

::selection { background: var(--red); color: var(--gold-light); }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0;
  margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.container {
  width: min(var(--container), 100% - 48px);
  margin-inline: auto;
}

/* ---------- Reading Progress ---------- */
.reading-progress {
  position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 200;
  background: transparent; pointer-events: none;
}
.reading-progress span {
  display: block; height: 100%; width: 0;
  background: linear-gradient(90deg, var(--gold-deep), var(--gold), var(--gold-light));
  transition: width .1s linear;
}

/* ---------- Topbar（网报氛围条） ---------- */
.topbar {
  background: var(--red-deep);
  color: var(--gold-light);
  font-size: 13.5px;
  letter-spacing: .02em;
  border-bottom: 1px solid rgba(201, 164, 92, .25);
}
.topbar-inner {
  display: flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 40px; padding-block: 6px;
}
.topbar-dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--gold);
  box-shadow: 0 0 0 0 rgba(201, 164, 92, .7);
  animation: pulse 2s infinite; flex: none;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(201, 164, 92, .65); }
  70% { box-shadow: 0 0 0 9px rgba(201, 164, 92, 0); }
  100% { box-shadow: 0 0 0 0 rgba(201, 164, 92, 0); }
}
.topbar-text b { color: #fff; font-weight: 600; }
.topbar-link {
  display: inline-flex; align-items: center; gap: 4px;
  color: #fff; border-bottom: 1px solid var(--line-gold); padding-bottom: 1px;
  transition: color .2s var(--ease);
  white-space: nowrap;
}
.topbar-link:hover { color: var(--gold); }

/* ---------- Navigation ---------- */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(250, 246, 239, .92);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.nav.is-scrolled { border-bottom-color: var(--line); box-shadow: var(--shadow-sm); }

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

.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand-mark {
  width: 40px; height: 40px; border-radius: 50%; flex: none;
  display: grid; place-items: center;
  background: var(--red); color: var(--gold-light);
  font-family: var(--serif); font-size: 20px; font-weight: 700;
  border: 1.5px solid var(--gold);
  box-shadow: inset 0 0 0 3px rgba(201, 164, 92, .22);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.3; }
.brand-text em {
  font-style: normal; font-family: var(--serif); font-weight: 700;
  font-size: 17px; color: var(--ink); letter-spacing: .04em;
}
.brand-text i {
  font-style: normal; font-size: 11.5px; color: var(--muted); letter-spacing: .18em;
}

.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a {
  position: relative; font-size: 15px; color: var(--ink-2);
  padding-block: 6px; transition: color .2s var(--ease);
}
.nav-links a::after {
  content: ""; position: absolute; left: 50%; bottom: 0;
  width: 0; height: 2px; background: var(--gold);
  transform: translateX(-50%); transition: width .25s var(--ease);
}
.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }
.nav-links a.active { color: var(--red); font-weight: 600; }

.nav-actions { display: flex; align-items: center; gap: 14px; }

.nav-toggle {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  width: 42px; height: 42px; border-radius: var(--r-sm);
  border: 1px solid var(--line); background: var(--white);
}
.nav-toggle span {
  display: block; width: 18px; height: 2px; margin-inline: auto;
  background: var(--ink); border-radius: 2px;
  transition: transform .3s var(--ease), opacity .2s var(--ease);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-drawer {
  display: none; overflow: hidden;
  background: var(--cream); border-bottom: 1px solid var(--line);
}
.nav-drawer.open {
  display: flex; flex-direction: column; gap: 4px;
  padding: 12px 24px 24px;
  animation: drawerIn .3s var(--ease);
}
@keyframes drawerIn { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
.nav-drawer a {
  padding: 13px 4px; font-size: 16px; color: var(--ink);
  border-bottom: 1px solid var(--line);
}
.nav-drawer .btn { margin-top: 14px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-size: 15px; font-weight: 600; letter-spacing: .04em;
  padding: 12px 26px; border-radius: 999px;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease),
              background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
  will-change: transform;
}
.btn:active { transform: scale(.97); }
.btn-sm { padding: 9px 20px; font-size: 14px; }
.btn-lg { padding: 16px 34px; font-size: 16px; }

.btn-gold {
  background: linear-gradient(135deg, #D9BC7C, var(--gold) 55%, #B48F4A);
  color: var(--red-dark);
  box-shadow: 0 6px 20px rgba(140, 31, 40, .22), inset 0 1px 0 rgba(255, 255, 255, .35);
}
.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(140, 31, 40, .3), inset 0 1px 0 rgba(255, 255, 255, .35);
}

.btn-ghost {
  border: 1.5px solid rgba(231, 211, 164, .55); color: var(--gold-light);
  background: rgba(255, 255, 255, .04);
}
.btn-ghost:hover { border-color: var(--gold); color: #fff; transform: translateY(-2px); }

.btn-outline { border: 1.5px solid rgba(231, 211, 164, .6); color: var(--gold-light); }
.btn-outline:hover { background: rgba(255, 255, 255, .08); color: #fff; transform: translateY(-2px); }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(1100px 520px at 12% -10%, rgba(201, 164, 92, .16), transparent 60%),
    radial-gradient(900px 700px at -10% 110%, rgba(61, 14, 18, .55), transparent 55%),
    linear-gradient(160deg, #701A22 0%, var(--red-deep) 46%, #480F14 100%);
  color: var(--cream);
  padding: clamp(64px, 9vw, 120px) 0 clamp(72px, 8vw, 110px);
}
.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.hero-glow {
  position: absolute; top: -180px; left: -120px; width: 560px; height: 560px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201, 164, 92, .14), transparent 65%);
}
.hero-grid-lines {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(201, 164, 92, .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(201, 164, 92, .05) 1px, transparent 1px);
  background-size: 72px 72px;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 30%, transparent 75%);
  mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 30%, transparent 75%);
}
/* 首屏校门照片：桌面端右侧全高图层，左缘弧线裁切（clip-path polygon 50 点拟合贝塞尔，全内核兼容） */
.hero-campus-picture {
  position: absolute; top: 0; bottom: 0; right: 0;
  width: 44%;
  pointer-events: none;
}
.hero-campus {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  -webkit-user-select: none; user-select: none;
}
.hero-campus--d {
  -webkit-clip-path: polygon(25.00% 0.00%, 24.71% 2.04%, 24.40% 4.08%, 24.08% 6.12%, 23.74% 8.16%, 23.39% 10.20%, 23.02% 12.24%, 22.64% 14.29%, 22.25% 16.33%, 21.84% 18.37%, 21.43% 20.41%, 21.00% 22.45%, 20.55% 24.49%, 20.10% 26.53%, 19.64% 28.57%, 19.17% 30.61%, 18.68% 32.65%, 18.19% 34.69%, 17.69% 36.73%, 17.18% 38.78%, 16.66% 40.82%, 16.13% 42.86%, 15.60% 44.90%, 15.06% 46.94%, 14.51% 48.98%, 13.96% 51.02%, 13.40% 53.06%, 12.84% 55.10%, 12.27% 57.14%, 11.70% 59.18%, 11.12% 61.22%, 10.54% 63.27%, 9.96% 65.31%, 9.37% 67.35%, 8.78% 69.39%, 8.20% 71.43%, 7.61% 73.47%, 7.01% 75.51%, 6.42% 77.55%, 5.83% 79.59%, 5.24% 81.63%, 4.65% 83.67%, 4.06% 85.71%, 3.47% 87.76%, 2.88% 89.80%, 2.30% 91.84%, 1.72% 93.88%, 1.14% 95.92%, 0.57% 97.96%, 0.00% 100.00%, 100% 100%, 100% 0%);
  clip-path: polygon(25.00% 0.00%, 24.71% 2.04%, 24.40% 4.08%, 24.08% 6.12%, 23.74% 8.16%, 23.39% 10.20%, 23.02% 12.24%, 22.64% 14.29%, 22.25% 16.33%, 21.84% 18.37%, 21.43% 20.41%, 21.00% 22.45%, 20.55% 24.49%, 20.10% 26.53%, 19.64% 28.57%, 19.17% 30.61%, 18.68% 32.65%, 18.19% 34.69%, 17.69% 36.73%, 17.18% 38.78%, 16.66% 40.82%, 16.13% 42.86%, 15.60% 44.90%, 15.06% 46.94%, 14.51% 48.98%, 13.96% 51.02%, 13.40% 53.06%, 12.84% 55.10%, 12.27% 57.14%, 11.70% 59.18%, 11.12% 61.22%, 10.54% 63.27%, 9.96% 65.31%, 9.37% 67.35%, 8.78% 69.39%, 8.20% 71.43%, 7.61% 73.47%, 7.01% 75.51%, 6.42% 77.55%, 5.83% 79.59%, 5.24% 81.63%, 4.65% 83.67%, 4.06% 85.71%, 3.47% 87.76%, 2.88% 89.80%, 2.30% 91.84%, 1.72% 93.88%, 1.14% 95.92%, 0.57% 97.96%, 0.00% 100.00%, 100% 100%, 100% 0%);
}
.hero-campus--m { display: none; }

.hero-grid {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1fr; gap: clamp(36px, 5vw, 72px);
  align-items: center;
}
.hero-copy { max-width: min(640px, 52%); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: 13px; font-weight: 600; letter-spacing: .28em;
  color: var(--gold); text-transform: uppercase;
}
.eyebrow::before { content: ""; width: 34px; height: 1px; background: var(--gold); }
.eyebrow-gold { color: var(--gold-light); }

.hero h1 {
  font-family: var(--serif);
  font-size: clamp(46px, 7.2vw, 92px);
  font-weight: 700; line-height: 1.08; letter-spacing: .02em;
  margin: 22px 0 26px; color: #fff;
  text-shadow: 0 4px 30px rgba(0, 0, 0, .25);
}
.hero h1 .h1-thin { color: var(--gold-light); font-weight: 600; }

.hero-sub {
  max-width: 560px; font-size: clamp(15px, 1.4vw, 17.5px);
  color: rgba(250, 246, 239, .82); line-height: 1.95;
}

.hero-badges {
  display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px;
}
.hero-badges li {
  font-size: 13px; letter-spacing: .08em; color: var(--gold-light);
  padding: 7px 16px; border-radius: 999px;
  border: 1px solid var(--line-gold);
  background: rgba(201, 164, 92, .08);
  transition: background-color .25s var(--ease), transform .25s var(--ease);
}
.hero-badges li:hover { background: rgba(201, 164, 92, .18); transform: translateY(-2px); }

.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 38px; }

.hero-meta {
  display: grid; grid-template-columns: repeat(4, auto);
  gap: clamp(18px, 3vw, 44px); margin-top: 46px;
  padding-top: 30px; border-top: 1px solid rgba(201, 164, 92, .22);
}
.hero-meta li { display: flex; flex-direction: column; gap: 2px; }
.hero-meta b {
  font-family: var(--serif); font-size: clamp(24px, 2.6vw, 32px);
  font-weight: 700; color: var(--gold-light); line-height: 1.2;
  font-variant-numeric: tabular-nums;
}
.hero-meta span { font-size: 12.5px; color: rgba(250, 246, 239, .62); letter-spacing: .06em; }

/* Hero card: countdown + QR（桌面端悬浮于照片之上的玻璃卡） */
.hero-card {
  position: absolute;
  right: clamp(32px, 5vw, 72px);
  bottom: clamp(28px, 2.8vw, 40px);
  width: min(430px, 42%);
  background: linear-gradient(165deg, rgba(94, 20, 27, .82), rgba(61, 14, 18, .88));
  -webkit-backdrop-filter: blur(18px) saturate(1.15);
  backdrop-filter: blur(18px) saturate(1.15);
  border: 1px solid rgba(201, 164, 92, .42);
  border-radius: var(--r-xl);
  padding: clamp(22px, 2.4vw, 30px);
  box-shadow: 0 24px 60px rgba(20, 6, 8, .45), inset 0 1px 0 rgba(255, 255, 255, .08);
  color: var(--cream);
  z-index: 2;
}
.hero-card::before {
  content: ""; position: absolute; inset: 10px; border-radius: calc(var(--r-xl) - 8px);
  border: 1px dashed rgba(201, 164, 92, .28); pointer-events: none;
}

.cd-label {
  display: flex; align-items: center; gap: 8px;
  font-size: 13.5px; font-weight: 600; letter-spacing: .12em; color: var(--gold-light);
}
.cd-label::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--gold-light); animation: pulse-red 1.6s infinite; }
@keyframes pulse-red {
  0% { box-shadow: 0 0 0 0 rgba(231, 211, 164, .5); }
  70% { box-shadow: 0 0 0 8px rgba(231, 211, 164, 0); }
  100% { box-shadow: 0 0 0 0 rgba(231, 211, 164, 0); }
}

.cd-digits {
  display: flex; align-items: center; justify-content: space-between; gap: 6px;
  margin: 20px 0 14px;
}
.cd-cell {
  flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px;
  background: linear-gradient(165deg, var(--red), var(--red-deep));
  border-radius: var(--r-md); padding: 14px 4px 10px;
  border: 1px solid rgba(201, 164, 92, .4);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12), 0 6px 16px rgba(93, 20, 27, .22);
  overflow: hidden; position: relative;
}
.cd-cell::after {
  content: ""; position: absolute; left: 8px; right: 8px; top: 50%;
  height: 1px; background: rgba(0, 0, 0, .18);
}
.cd-num {
  font-family: var(--serif); font-size: clamp(30px, 3.4vw, 42px); font-weight: 700;
  color: var(--gold-light); line-height: 1.1; font-variant-numeric: tabular-nums;
}
.cd-num.tick { animation: digitIn .45s var(--ease-spring); }
@keyframes digitIn {
  0% { transform: translateY(60%); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}
.cd-unit { font-size: 11px; color: rgba(250, 246, 239, .68); letter-spacing: .2em; }
.cd-sep {
  font-family: var(--serif); font-size: 26px; font-weight: 700; color: var(--gold-deep);
  padding-bottom: 14px; animation: sepBlink 1s steps(2) infinite;
}
@keyframes sepBlink { 50% { opacity: .25; } }

.cd-note {
  font-size: 12px; color: rgba(250, 246, 239, .68); line-height: 1.8; text-align: center;
  border-top: 1px dashed rgba(201, 164, 92, .28); padding-top: 12px;
}

.hero-card-foot { margin-top: 18px; }
.hero-card-qr {
  display: flex; align-items: center; gap: 16px;
  background: rgba(255, 255, 255, .95); border: 1px solid rgba(201, 164, 92, .3);
  border-radius: var(--r-md); padding: 12px;
  box-shadow: var(--shadow-sm);
}
.hero-card-qr img {
  width: 84px; height: 84px; flex: none; border-radius: var(--r-sm);
  border: 1px solid var(--line);
}
.hero-card-qr b { display: block; font-size: 15px; color: var(--ink); }
.hero-card-qr span { font-size: 12px; color: var(--muted); line-height: 1.6; }

.scroll-hint {
  position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%);
  width: 24px; height: 38px; border: 1.5px solid rgba(231, 211, 164, .5);
  border-radius: 999px; z-index: 1;
}
.scroll-hint span {
  position: absolute; left: 50%; top: 7px; width: 4px; height: 8px;
  border-radius: 4px; background: var(--gold);
  transform: translateX(-50%);
  animation: wheel 1.8s var(--ease) infinite;
}
@keyframes wheel {
  0% { opacity: 0; transform: translate(-50%, 0); }
  30% { opacity: 1; }
  100% { opacity: 0; transform: translate(-50%, 14px); }
}

/* ---------- Stats ---------- */
.stats { background: var(--cream-2); border-block: 1px solid var(--line); }
.stats-grid {
  display: grid; grid-template-columns: repeat(5, 1fr);
  gap: 24px; padding-block: clamp(40px, 5vw, 64px);
}
.stat { text-align: center; position: relative; }
.stat + .stat::before {
  content: ""; position: absolute; left: -12px; top: 20%; bottom: 20%;
  width: 1px; background: var(--line-gold);
}
.stat b {
  display: block; font-family: var(--serif);
  font-size: clamp(34px, 3.6vw, 48px); font-weight: 700; color: var(--red);
  line-height: 1.1; font-variant-numeric: tabular-nums;
}
.stat-label { font-size: 13px; color: var(--ink-2); line-height: 1.6; margin-top: 6px; }

/* ---------- Sections ---------- */
.section { padding: clamp(64px, 8.5vw, 116px) 0; }
.section:nth-of-type(even) { background: var(--cream); }
.section-head { max-width: 780px; margin: 0 auto clamp(44px, 5vw, 68px); text-align: center; }
.section-head .eyebrow { justify-content: center; }
.section-head .eyebrow::after { content: ""; width: 34px; height: 1px; background: var(--gold); }
.section-head h2 {
  font-family: var(--serif);
  font-size: clamp(30px, 4.2vw, 50px); font-weight: 700;
  line-height: 1.22; letter-spacing: .02em; color: var(--ink); margin: 18px 0 20px;
}
.section-head h2 em {
  font-style: normal; color: var(--red); position: relative;
  background: linear-gradient(transparent 72%, rgba(201, 164, 92, .35) 72%);
}
.section-lead { font-size: clamp(14.5px, 1.3vw, 16.5px); color: var(--ink-2); line-height: 2; }

.section-head-dark h2 { color: #fff; }
.section-head-dark h2 em { color: var(--gold-light); background: linear-gradient(transparent 72%, rgba(201, 164, 92, .3) 72%); }
.section-head-dark .section-lead { color: rgba(250, 246, 239, .78); }

/* ---------- Why ---------- */
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.why-card {
  position: relative; background: var(--white);
  border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 38px 32px 32px; overflow: hidden;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease);
}
.why-card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--gold-deep), var(--gold));
  transform: scaleX(0); transform-origin: left; transition: transform .4s var(--ease);
}
.why-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-md); border-color: var(--line-gold); }
.why-card:hover::before { transform: scaleX(1); }
.why-index {
  font-family: var(--serif); font-size: 15px; font-weight: 700; color: var(--gold-deep);
  letter-spacing: .1em; display: block; margin-bottom: 18px;
}
.why-card h3 {
  font-family: var(--serif); font-size: 24px; font-weight: 700;
  color: var(--ink); margin-bottom: 14px; letter-spacing: .02em;
}
.why-card p { font-size: 14.5px; color: var(--ink-2); line-height: 2; }
.why-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.why-tags li {
  font-size: 12px; color: var(--red); letter-spacing: .04em;
  padding: 5px 12px; border-radius: 999px;
  background: rgba(140, 31, 40, .06); border: 1px solid rgba(140, 31, 40, .14);
}

/* ---------- Directions ---------- */
.directions { background: linear-gradient(180deg, var(--cream) 0%, var(--cream-2) 100%); }
.dir-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.dir-card {
  display: flex; flex-direction: column;
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 34px 30px;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease);
}
.dir-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-md); border-color: var(--line-gold); }
.dir-no {
  font-family: var(--serif); font-size: 52px; font-weight: 700; line-height: 1;
  color: transparent; -webkit-text-stroke: 1.5px var(--gold);
  display: block; margin-bottom: 18px;
}
.dir-card h3 {
  font-family: var(--serif); font-size: 25px; font-weight: 700;
  color: var(--ink); letter-spacing: .02em;
}
.dir-slogan {
  font-size: 13px; color: var(--gold-deep); letter-spacing: .14em;
  margin: 6px 0 18px; font-weight: 600;
}
.dir-desc { font-size: 14px; color: var(--ink-2); line-height: 2; flex: 1; }
.dir-block {
  margin-top: 18px; padding: 14px 16px; border-radius: var(--r-sm);
  background: var(--cream); border-left: 3px solid var(--gold);
}
.dir-block b {
  display: block; font-size: 12px; color: var(--red);
  letter-spacing: .12em; margin-bottom: 4px; font-weight: 600;
}
.dir-block p { font-size: 13.5px; color: var(--ink); line-height: 1.7; }
.dir-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.dir-tags li {
  font-size: 12px; color: var(--ink-2);
  padding: 5px 12px; border-radius: 999px;
  border: 1px dashed var(--line-gold); background: rgba(201, 164, 92, .07);
}

/* ---------- Curriculum ---------- */
.curr-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; align-items: stretch; }
.curr-card {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 30px 28px;
  display: flex; flex-direction: column;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.curr-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.curr-card header {
  display: flex; align-items: baseline; justify-content: space-between;
  padding-bottom: 16px; margin-bottom: 18px;
  border-bottom: 1px solid var(--line);
}
.curr-kicker {
  font-family: var(--serif); font-size: 21px; font-weight: 700; color: var(--red);
  letter-spacing: .04em;
}
.curr-card header b {
  font-family: var(--serif); font-size: 15px; color: var(--gold-deep);
  border: 1px solid var(--line-gold); border-radius: 999px; padding: 3px 12px;
  font-weight: 600;
}
.curr-card-dark {
  background: linear-gradient(165deg, var(--red), var(--red-deep));
  border-color: rgba(201, 164, 92, .35);
}
.curr-card-dark .curr-kicker { color: var(--gold-light); }
.curr-card-dark header { border-bottom-color: rgba(201, 164, 92, .3); }
.curr-card-dark header b { color: var(--gold-light); border-color: var(--line-gold); }
.curr-list { display: flex; flex-direction: column; gap: 10px; flex: 1; }
.curr-list li {
  position: relative; font-size: 14px; color: var(--ink-2);
  padding-left: 20px; line-height: 1.7;
}
.curr-list li::before {
  content: ""; position: absolute; left: 0; top: .62em;
  width: 7px; height: 7px; border-radius: 2px;
  background: var(--gold); transform: rotate(45deg);
}
.curr-card-dark .curr-list li { color: rgba(250, 246, 239, .85); }
.curr-card-dark .curr-list li::before { background: var(--gold-light); }

.mech {
  margin-top: 34px; border: 1px solid var(--line-gold);
  border-radius: var(--r-lg); padding: clamp(26px, 3vw, 40px);
  background:
    radial-gradient(600px 200px at 50% 0%, rgba(201, 164, 92, .12), transparent 70%),
    var(--white);
}
.mech-title {
  font-family: var(--serif); font-size: 22px; font-weight: 700;
  color: var(--ink); text-align: center; letter-spacing: .06em;
}
.mech-title::after {
  content: ""; display: block; width: 44px; height: 2px;
  background: var(--gold); margin: 12px auto 0;
}
.mech-list {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 12px;
  margin: 26px 0 20px;
}
.mech-list li {
  font-size: 14.5px; font-weight: 600; color: var(--red);
  padding: 9px 22px; border-radius: 999px;
  background: var(--cream); border: 1px solid rgba(140, 31, 40, .16);
  transition: transform .25s var(--ease), background-color .25s var(--ease);
}
.mech-list li:hover { transform: translateY(-2px); background: rgba(140, 31, 40, .08); }
.mech-note {
  max-width: 760px; margin-inline: auto; text-align: center;
  font-size: 13.5px; color: var(--ink-2); line-height: 2;
}

/* ---------- Faculty ---------- */
.fac-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.fac-card {
  background: var(--white); border: 1px solid var(--line);
  border-top: 3px solid var(--gold);
  border-radius: var(--r-lg); padding: 32px 30px;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.fac-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.fac-card h3 {
  font-family: var(--serif); font-size: 30px; font-weight: 700;
  color: var(--ink); letter-spacing: .06em;
}
.fac-role {
  font-size: 13px; color: var(--red); font-weight: 600;
  letter-spacing: .04em; margin: 6px 0 14px;
}
.fac-card p:last-child { font-size: 14px; color: var(--ink-2); line-height: 2; }

.fac-table { margin-top: 34px; overflow-x: auto; border-radius: var(--r-md); border: 1px solid var(--line); background: var(--white); }
.fac-table table { min-width: 640px; }
.fac-table th {
  font-family: var(--sans); font-size: 13px; font-weight: 600; color: var(--gold-light);
  background: var(--red-deep); text-align: left;
  padding: 14px 20px; letter-spacing: .08em;
}
.fac-table td {
  font-size: 14px; color: var(--ink-2); padding: 15px 20px;
  border-bottom: 1px solid var(--line);
}
.fac-table tbody tr:last-child td { border-bottom: 0; }
.fac-table tbody tr { transition: background-color .2s var(--ease); }
.fac-table tbody tr:hover { background: var(--cream); }
.fac-table td:first-child {
  font-family: var(--serif); font-size: 17px; font-weight: 700; color: var(--ink);
}
.fac-table td:nth-child(3) { color: var(--red); white-space: nowrap; }

.fac-figures {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 34px;
}
.fac-figures li {
  text-align: center; padding: 26px 12px;
  border: 1px dashed var(--line-gold); border-radius: var(--r-md);
  background: rgba(201, 164, 92, .06);
}
.fac-figures b {
  display: block; font-family: var(--serif); font-size: 32px; font-weight: 700;
  color: var(--red); line-height: 1.15; font-variant-numeric: tabular-nums;
}
.fac-figures span { font-size: 12.5px; color: var(--ink-2); }

/* ---------- Industry (dark) ---------- */
.industry {
  background:
    radial-gradient(900px 480px at 85% 0%, rgba(201, 164, 92, .1), transparent 60%),
    linear-gradient(165deg, #59131A, var(--red-deep) 60%, #470E13);
  color: var(--cream);
}
.case-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.case-card {
  background: rgba(255, 255, 255, .045);
  border: 1px solid rgba(201, 164, 92, .3);
  border-radius: var(--r-lg); padding: 30px 28px;
  display: flex; flex-direction: column;
  transition: transform .35s var(--ease), background-color .35s var(--ease), border-color .35s var(--ease);
}
.case-card:hover {
  transform: translateY(-8px); background: rgba(255, 255, 255, .08);
  border-color: rgba(201, 164, 92, .55);
}
.case-tag {
  align-self: flex-start; font-size: 12px; letter-spacing: .16em; color: var(--red-dark);
  background: var(--gold); border-radius: 999px; padding: 4px 14px; font-weight: 700;
}
.case-card h3 {
  font-family: var(--serif); font-size: 21px; font-weight: 700;
  color: #fff; line-height: 1.5; margin: 16px 0 12px;
}
.case-card > p { font-size: 13.5px; color: rgba(250, 246, 239, .75); line-height: 2; flex: 1; }
.case-figs {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px;
  margin-top: 22px; padding-top: 18px;
  border-top: 1px dashed rgba(201, 164, 92, .35);
}
.case-figs li { text-align: center; }
.case-figs b {
  display: block; font-family: var(--serif); font-size: 18px; font-weight: 700;
  color: var(--gold-light); line-height: 1.3; font-variant-numeric: tabular-nums;
}
.case-figs span { font-size: 11.5px; color: rgba(250, 246, 239, .6); }

.partners { margin-top: 44px; text-align: center; }
.partners-title {
  font-size: 13px; font-weight: 600; letter-spacing: .22em;
  color: var(--gold); margin-bottom: 22px;
}
.partners-list {
  display: flex; flex-wrap: wrap; justify-content: center; gap: clamp(20px, 4vw, 52px);
}
.partners-list li {
  font-family: var(--serif); font-size: clamp(18px, 2vw, 23px); font-weight: 700;
  color: rgba(250, 246, 239, .85); letter-spacing: .08em;
  transition: color .25s var(--ease), transform .25s var(--ease);
  cursor: default;
}
.partners-list li:hover { color: var(--gold-light); transform: translateY(-3px); }

.career {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px;
  margin-top: 48px; padding-top: 40px;
  border-top: 1px solid rgba(201, 164, 92, .25);
}
.career-col h3 {
  font-family: var(--serif); font-size: 19px; font-weight: 700;
  color: var(--gold-light); margin-bottom: 16px; letter-spacing: .04em;
}
.career-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.career-tags li {
  font-size: 12.5px; color: rgba(250, 246, 239, .85);
  padding: 6px 14px; border-radius: 999px;
  border: 1px solid rgba(201, 164, 92, .35);
  transition: border-color .25s var(--ease), color .25s var(--ease);
}
.career-tags li:hover { border-color: var(--gold); color: #fff; }
.career-note { font-size: 13.5px; color: rgba(250, 246, 239, .75); line-height: 2; margin-bottom: 14px; }

/* ---------- Apply ---------- */
.timeline {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px;
  margin-bottom: clamp(40px, 5vw, 60px); position: relative;
}
.timeline::before {
  content: ""; position: absolute; top: 7px; left: 6%; right: 6%;
  height: 2px; background: var(--cream-3);
}
.tl-item { position: relative; padding-top: 34px; }
.tl-node {
  position: absolute; top: 0; left: 0;
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--cream); border: 2px solid var(--cream-3);
  transition: transform .3s var(--ease), border-color .3s var(--ease);
}
.tl-item:hover .tl-node { transform: scale(1.25); border-color: var(--gold); }
.tl-date {
  font-size: 13px; font-weight: 700; color: var(--gold-deep);
  letter-spacing: .04em; font-variant-numeric: tabular-nums;
}
.tl-item h3 {
  font-family: var(--serif); font-size: 18px; font-weight: 700;
  color: var(--ink); margin: 6px 0 6px; line-height: 1.4;
}
.tl-item p { font-size: 13px; color: var(--ink-2); line-height: 1.8; }
.tl-done .tl-node { background: var(--cream-3); }
.tl-done .tl-date { color: var(--muted); }
.tl-done h3, .tl-done p { color: var(--muted); }
.tl-active .tl-node {
  background: var(--gold); border-color: var(--gold-deep);
  box-shadow: 0 0 0 5px rgba(201, 164, 92, .22);
  animation: nodePulse 2s infinite;
}
@keyframes nodePulse {
  0% { box-shadow: 0 0 0 0 rgba(201, 164, 92, .45); }
  70% { box-shadow: 0 0 0 10px rgba(201, 164, 92, 0); }
  100% { box-shadow: 0 0 0 0 rgba(201, 164, 92, 0); }
}
.tl-active .tl-date { color: var(--red); }
.tl-active h3 { color: var(--red); }
.tl-flag {
  font-style: normal; font-size: 11px; color: #fff; background: var(--red);
  border-radius: 4px; padding: 2px 7px; margin-left: 8px;
  vertical-align: 2px; letter-spacing: .06em; font-weight: 600;
}

.apply-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.apply-card {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: clamp(26px, 3vw, 38px);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.apply-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.apply-card h3 {
  font-family: var(--serif); font-size: 23px; font-weight: 700;
  color: var(--ink); letter-spacing: .02em;
  padding-bottom: 14px; margin-bottom: 18px;
  border-bottom: 1px solid var(--line);
}
.apply-card-dark {
  background: linear-gradient(165deg, var(--red), var(--red-deep));
  border-color: rgba(201, 164, 92, .35);
}
.apply-card-dark h3 { color: #fff; border-bottom-color: rgba(201, 164, 92, .3); }
.apply-sub { font-size: 13.5px; color: var(--ink-2); margin-bottom: 16px; }
.apply-list { display: flex; flex-direction: column; gap: 14px; }
.apply-list li {
  position: relative; font-size: 14.5px; color: var(--ink-2);
  line-height: 1.9; padding-left: 24px;
}
.apply-list li::before {
  content: ""; position: absolute; left: 2px; top: .68em;
  width: 8px; height: 8px; border-radius: 50%;
  border: 2px solid var(--gold);
}
.apply-list b { color: var(--ink); }
.apply-card-dark .apply-list li { color: rgba(250, 246, 239, .85); }
.apply-card-dark .apply-list b { color: var(--gold-light); }
.apply-card-dark .apply-list li::before { border-color: var(--gold-light); }
.apply-note { font-size: 12.5px; color: var(--muted); line-height: 1.9; margin-top: 14px; }

.exam-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.exam-cell {
  text-align: center; padding: 22px 10px 18px;
  border: 1px solid var(--line-gold); border-radius: var(--r-md);
  background: linear-gradient(165deg, var(--cream), var(--cream-2));
}
.exam-code {
  display: block; font-family: var(--serif); font-size: 44px; font-weight: 700;
  color: var(--red); line-height: 1.1; font-variant-numeric: tabular-nums;
}
.exam-cell b { display: block; font-size: 14px; color: var(--ink); margin-top: 4px; }
.exam-score { font-size: 12px; color: var(--muted); }

.apply-cta {
  margin-top: 30px; border-radius: var(--r-lg);
  background:
    radial-gradient(700px 300px at 88% 20%, rgba(201, 164, 92, .16), transparent 65%),
    linear-gradient(120deg, var(--red), var(--red-deep));
  padding: clamp(30px, 4vw, 52px);
  display: flex; align-items: center; justify-content: space-between;
  gap: 30px; flex-wrap: wrap;
  border: 1px solid rgba(201, 164, 92, .4);
  box-shadow: var(--shadow-md);
}
.apply-cta-text h3 {
  font-family: var(--serif); font-size: clamp(22px, 2.4vw, 28px);
  font-weight: 700; color: #fff; letter-spacing: .02em;
}
.apply-cta-text p {
  font-size: 14px; color: rgba(250, 246, 239, .8); margin-top: 8px; max-width: 520px;
}
.apply-cta-actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- FAQ ---------- */
.faq-container { max-width: 880px; }
.faq-list { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); background: transparent; }
.faq-item summary {
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  cursor: pointer; list-style: none; padding: 22px 6px;
  font-size: clamp(15.5px, 1.6vw, 17.5px); font-weight: 600; color: var(--ink);
  transition: color .25s var(--ease);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--red); }
.faq-icon {
  position: relative; flex: none; width: 30px; height: 30px;
  border: 1px solid var(--line-gold); border-radius: 50%;
  transition: transform .35s var(--ease), background-color .3s var(--ease), border-color .3s var(--ease);
}
.faq-icon::before, .faq-icon::after {
  content: ""; position: absolute; left: 50%; top: 50%;
  background: var(--gold-deep); border-radius: 2px;
  transform: translate(-50%, -50%);
  transition: background-color .3s var(--ease);
}
.faq-icon::before { width: 12px; height: 1.5px; }
.faq-icon::after { width: 1.5px; height: 12px; }
.faq-item[open] summary { color: var(--red); }
.faq-item[open] .faq-icon {
  transform: rotate(45deg); background: var(--gold); border-color: var(--gold);
}
.faq-item[open] .faq-icon::before, .faq-item[open] .faq-icon::after { background: #fff; }
.faq-body {
  display: grid; grid-template-rows: 0fr; transition: grid-template-rows .4s var(--ease);
}
.faq-item[open] .faq-body { grid-template-rows: 1fr; }
.faq-body > div { overflow: hidden; }
.faq-body p {
  font-size: 14.5px; color: var(--ink-2); line-height: 2.1;
  padding: 0 40px 26px 6px;
}

/* ---------- Event ---------- */
.event { background: linear-gradient(180deg, var(--cream-2), var(--cream)); }
.event-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.event-guests, .event-agenda {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: clamp(28px, 3vw, 40px);
}
.event-guests h3, .event-agenda h3 {
  font-family: var(--serif); font-size: 22px; font-weight: 700; color: var(--ink);
  letter-spacing: .04em; padding-bottom: 16px; margin-bottom: 20px;
  border-bottom: 1px solid var(--line);
}
.event-guests ul { display: flex; flex-direction: column; gap: 16px; }
.event-guests li {
  display: flex; align-items: baseline; gap: 16px;
  padding-bottom: 14px; border-bottom: 1px dashed var(--line);
}
.event-guests li:last-child { border-bottom: 0; padding-bottom: 0; }
.event-guests b {
  font-family: var(--serif); font-size: 19px; font-weight: 700;
  color: var(--red); min-width: 68px; letter-spacing: .04em;
}
.event-guests span { font-size: 13.5px; color: var(--ink-2); line-height: 1.7; }
.event-agenda ol { display: flex; flex-direction: column; gap: 4px; counter-reset: agenda; }
.event-agenda li {
  display: flex; align-items: baseline; gap: 18px;
  padding: 13px 4px; border-radius: var(--r-sm);
  font-size: 15px; color: var(--ink);
  transition: background-color .25s var(--ease), padding-left .25s var(--ease);
}
.event-agenda li:hover { background: var(--cream); padding-left: 12px; }
.event-agenda li span {
  font-family: var(--serif); font-size: 14px; font-weight: 700; color: var(--gold-deep);
  font-variant-numeric: tabular-nums; min-width: 52px;
}
.event-note {
  margin-top: 20px; padding: 16px 18px; font-size: 13px;
  color: var(--ink-2); line-height: 2;
  background: var(--cream); border-left: 3px solid var(--gold); border-radius: 0 var(--r-sm) var(--r-sm) 0;
}

/* ---------- Final CTA ---------- */
.cta-final {
  position: relative; overflow: hidden;
  background:
    radial-gradient(1000px 500px at 78% 110%, rgba(201, 164, 92, .18), transparent 60%),
    linear-gradient(155deg, #701A22, var(--red-deep) 55%, #440D12);
  color: var(--cream);
  padding: clamp(72px, 9vw, 124px) 0;
}
.cta-final::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(201, 164, 92, .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(201, 164, 92, .05) 1px, transparent 1px);
  background-size: 72px 72px;
  -webkit-mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, #000 20%, transparent 75%);
}
.cta-final-inner {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.15fr .85fr;
  gap: clamp(40px, 6vw, 90px); align-items: center;
}
.cta-final-copy .eyebrow { color: var(--gold); }
.cta-final-copy h2 {
  font-family: var(--serif); font-size: clamp(40px, 5.6vw, 68px);
  font-weight: 700; line-height: 1.14; color: #fff; margin: 22px 0 24px;
  text-shadow: 0 4px 30px rgba(0, 0, 0, .25);
}
.cta-final-copy > p {
  font-size: clamp(14.5px, 1.4vw, 16.5px);
  color: rgba(250, 246, 239, .82); line-height: 2.05; max-width: 520px;
  margin-bottom: 36px;
}
.cta-final-qr { text-align: center; }
.qr-frame {
  position: relative; display: inline-block; padding: 18px;
  background: linear-gradient(165deg, #FBF8F1, var(--cream-2));
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
}
.qr-frame::before, .qr-frame::after {
  content: ""; position: absolute; width: 34px; height: 34px;
  border: 2.5px solid var(--gold); border-radius: 4px;
}
.qr-frame::before { top: -10px; left: -10px; border-right: 0; border-bottom: 0; }
.qr-frame::after { bottom: -10px; right: -10px; border-left: 0; border-top: 0; }
.qr-frame img { border-radius: var(--r-sm); }
.qr-caption { margin-top: 26px; }
.qr-caption b { display: block; font-size: 16px; color: var(--gold-light); letter-spacing: .08em; }
.qr-caption span { font-size: 12.5px; color: rgba(250, 246, 239, .6); }

/* ---------- Footer ---------- */
.footer { background: #24090C; color: rgba(250, 246, 239, .72); padding: 56px 0 44px; }
.footer-inner { display: flex; flex-direction: column; gap: 24px; }
.footer-brand { display: flex; align-items: center; gap: 14px; }
.footer-brand b {
  display: block; font-family: var(--serif); font-size: 18px;
  color: var(--gold-light); letter-spacing: .06em;
}
.footer-brand span { font-size: 12.5px; color: rgba(250, 246, 239, .55); }
.footer-links {
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px 26px;
  padding: 18px 0; border-block: 1px solid rgba(201, 164, 92, .2);
  font-size: 13.5px;
}
.footer-links-title { color: var(--gold); font-weight: 600; letter-spacing: .14em; font-size: 12.5px; }
.footer-links a {
  color: rgba(250, 246, 239, .78);
  transition: color .2s var(--ease);
  border-bottom: 1px solid transparent;
}
.footer-links a:hover { color: var(--gold-light); border-bottom-color: var(--line-gold); }
.footer-note { font-size: 12px; color: rgba(250, 246, 239, .45); line-height: 1.9; max-width: 860px; }
.footer-copy { font-size: 12.5px; color: rgba(250, 246, 239, .55); letter-spacing: .06em; }

/* ---------- Mobile Bar ---------- */
.mobile-bar {
  display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
  gap: 10px; padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  background: rgba(250, 246, 239, .94);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-top: 1px solid var(--line);
}
.mobile-bar-btn {
  flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  height: 48px; border-radius: 999px; font-size: 15px; font-weight: 600;
}
.mobile-bar-ghost {
  border: 1.5px solid rgba(140, 31, 40, .35); color: var(--red); background: var(--white);
}
.mobile-bar-solid {
  background: linear-gradient(135deg, #D9BC7C, var(--gold) 55%, #B48F4A);
  color: var(--red-dark);
  box-shadow: 0 4px 14px rgba(140, 31, 40, .2);
}

/* ---------- QR Modal ---------- */
.qr-modal { position: fixed; inset: 0; z-index: 300; display: grid; place-items: center; padding: 24px; }
.qr-modal[hidden] { display: none; }
.qr-modal-mask {
  position: absolute; inset: 0;
  background: rgba(36, 9, 12, .62);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  animation: fadeIn .3s var(--ease);
}
.qr-modal-card {
  position: relative; width: min(340px, 100%);
  background: linear-gradient(165deg, #FBF8F1, var(--cream-2));
  border: 1px solid var(--line-gold);
  border-radius: var(--r-xl);
  padding: 38px 30px 30px; text-align: center;
  box-shadow: var(--shadow-lg);
  animation: modalIn .4s var(--ease-spring);
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes modalIn {
  from { opacity: 0; transform: translateY(26px) scale(.94); }
  to { opacity: 1; transform: none; }
}
.qr-modal-close {
  position: absolute; top: 14px; right: 14px;
  width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center; color: var(--muted);
  border: 1px solid var(--line); background: var(--white);
  transition: color .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease);
}
.qr-modal-close:hover { color: var(--red); border-color: var(--red); transform: rotate(90deg); }
.qr-modal-card h3 {
  font-family: var(--serif); font-size: 22px; font-weight: 700;
  color: var(--ink); letter-spacing: .03em;
}
.qr-modal-img {
  margin: 22px auto 18px; padding: 14px; width: fit-content;
  background: var(--white); border: 1px solid var(--line-gold); border-radius: var(--r-md);
  box-shadow: var(--shadow-sm);
}
.qr-modal-card > p { font-size: 13.5px; color: var(--ink-2); line-height: 1.9; }
.qr-modal-tip {
  display: inline-block; margin-top: 16px; font-size: 11.5px;
  color: var(--gold-deep); letter-spacing: .18em;
  border-top: 1px dashed var(--line-gold); padding-top: 14px;
}

/* ---------- To Top ---------- */
.to-top {
  position: fixed; right: 22px; bottom: 26px; z-index: 95;
  width: 46px; height: 46px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--red); color: var(--gold-light);
  border: 1px solid var(--line-gold);
  box-shadow: var(--shadow-md);
  transition: transform .3s var(--ease), opacity .3s var(--ease), background-color .3s var(--ease);
}
.to-top:hover { transform: translateY(-4px); background: var(--red-deep); }
.to-top[hidden] { display: none; }

/* ---------- Reveal Animation ---------- */
.reveal { opacity: 0; transform: translateY(28px); }
.reveal.in {
  opacity: 1; transform: none;
  transition: opacity .8s var(--ease), transform .8s var(--ease);
}

/* ============================================================
   Responsive — Tablet (≤1024px)
   ============================================================ */
@media (max-width: 1024px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }

  .hero-grid { grid-template-columns: 1fr; gap: 44px; }
  .hero-card { max-width: 560px; }

  .stats-grid { grid-template-columns: repeat(3, 1fr); row-gap: 36px; }
  .stat:nth-child(4)::before, .stat:nth-child(5)::before { display: none; }

  .why-grid, .dir-grid, .curr-grid, .case-grid, .fac-grid, .career { grid-template-columns: 1fr 1fr; }
  .mech-list { gap: 10px; }

  .timeline { grid-template-columns: repeat(3, 1fr); row-gap: 30px; }
  .timeline::before { display: none; }

  .cta-final-inner { grid-template-columns: 1fr; text-align: center; }
  .cta-final-copy > p { margin-inline: auto; }
  .cta-final-copy .eyebrow { justify-content: center; }
}

/* ============================================================
   Responsive — Mobile (≤680px)
   ============================================================ */
@media (max-width: 680px) {
  body { font-size: 15px; padding-bottom: 76px; }
  .container { width: calc(100% - 40px); }

  .topbar-inner { gap: 8px; flex-wrap: wrap; justify-content: center; text-align: center; }
  .topbar-text { font-size: 12.5px; }

  .brand-text em { font-size: 15px; }
  .brand-text i { font-size: 10px; letter-spacing: .12em; }
  .brand-mark { width: 34px; height: 34px; font-size: 17px; }
  .nav-actions .btn-gold { display: none; }

  .hero { padding: 44px 0 110px; }
  .eyebrow { font-size: 11.5px; letter-spacing: .12em; gap: 8px; }
  .eyebrow::before { width: 22px; }
  .hero-meta { grid-template-columns: repeat(2, 1fr); gap: 22px; }
  .hero-card {
    position: static; width: auto;
    right: auto; bottom: auto;
    margin-top: 36px;
  }
  .cd-digits { gap: 4px; }
  .cd-cell { padding: 12px 2px 8px; border-radius: var(--r-sm); }
  .cd-num { font-size: 27px; }
  .cd-sep { font-size: 20px; padding-bottom: 10px; }
  .scroll-hint { display: none; }

  /* 移动端照片带：文档流内（文案→倒计时卡→照片带→底部操作栏），上缘拱形 */
  .hero-campus-picture {
    position: relative;
    top: auto; bottom: auto; left: auto; right: auto;
    width: auto; height: 212px;
    margin: 34px 0 0;
  }
  .hero-campus--d { display: none; }
  .hero-campus--m {
    display: block;
    -webkit-clip-path: polygon(0.00% 14.00%, 2.04% 13.94%, 4.08% 13.77%, 6.12% 13.50%, 8.16% 13.14%, 10.20% 12.70%, 12.24% 12.19%, 14.29% 11.62%, 16.33% 11.00%, 18.37% 10.33%, 20.41% 9.63%, 22.45% 8.92%, 24.49% 8.18%, 26.53% 7.45%, 28.57% 6.72%, 30.61% 6.01%, 32.65% 5.33%, 34.69% 4.69%, 36.73% 4.09%, 38.78% 3.54%, 40.82% 3.07%, 42.86% 2.66%, 44.90% 2.35%, 46.94% 2.13%, 48.98% 2.01%, 51.02% 2.01%, 53.06% 2.13%, 55.10% 2.35%, 57.14% 2.66%, 59.18% 3.07%, 61.22% 3.54%, 63.27% 4.09%, 65.31% 4.69%, 67.35% 5.33%, 69.39% 6.01%, 71.43% 6.72%, 73.47% 7.45%, 75.51% 8.18%, 77.55% 8.92%, 79.59% 9.63%, 81.63% 10.33%, 83.67% 11.00%, 85.71% 11.62%, 87.76% 12.19%, 89.80% 12.70%, 91.84% 13.14%, 93.88% 13.50%, 95.92% 13.77%, 97.96% 13.94%, 100.00% 14.00%, 100% 100%, 0% 100%);
    clip-path: polygon(0.00% 14.00%, 2.04% 13.94%, 4.08% 13.77%, 6.12% 13.50%, 8.16% 13.14%, 10.20% 12.70%, 12.24% 12.19%, 14.29% 11.62%, 16.33% 11.00%, 18.37% 10.33%, 20.41% 9.63%, 22.45% 8.92%, 24.49% 8.18%, 26.53% 7.45%, 28.57% 6.72%, 30.61% 6.01%, 32.65% 5.33%, 34.69% 4.69%, 36.73% 4.09%, 38.78% 3.54%, 40.82% 3.07%, 42.86% 2.66%, 44.90% 2.35%, 46.94% 2.13%, 48.98% 2.01%, 51.02% 2.01%, 53.06% 2.13%, 55.10% 2.35%, 57.14% 2.66%, 59.18% 3.07%, 61.22% 3.54%, 63.27% 4.09%, 65.31% 4.69%, 67.35% 5.33%, 69.39% 6.01%, 71.43% 6.72%, 73.47% 7.45%, 75.51% 8.18%, 77.55% 8.92%, 79.59% 9.63%, 81.63% 10.33%, 83.67% 11.00%, 85.71% 11.62%, 87.76% 12.19%, 89.80% 12.70%, 91.84% 13.14%, 93.88% 13.50%, 95.92% 13.77%, 97.96% 13.94%, 100.00% 14.00%, 100% 100%, 0% 100%);
  }

  .stats-grid { grid-template-columns: repeat(2, 1fr); row-gap: 30px; }
  .stat + .stat::before { display: none; }
  .stat:nth-child(odd) { border-right: 1px solid var(--line-gold); }

  .why-grid, .dir-grid, .curr-grid, .case-grid, .fac-grid, .career,
  .apply-grid, .event-grid, .fac-figures, .exam-row { grid-template-columns: 1fr; }

  .timeline { grid-template-columns: 1fr; gap: 8px; padding-left: 8px; }
  .tl-item {
    padding: 18px 0 18px 26px; border-left: 2px solid var(--cream-3);
    margin-left: 7px;
  }
  .tl-node { top: 24px; left: -9px; }
  .tl-active { border-left-color: var(--gold); }
  .tl-item:hover .tl-node { transform: scale(1.2); }

  .dir-no { font-size: 42px; }
  .fac-figures li { padding: 20px 12px; }

  .apply-cta { flex-direction: column; align-items: flex-start; }
  .apply-cta-actions { width: 100%; }
  .apply-cta-actions .btn { flex: 1; }

  .event-guests li { flex-direction: column; gap: 4px; }

  .mobile-bar { display: flex; }
  .to-top { bottom: 88px; right: 14px; width: 42px; height: 42px; }

  .qr-modal-card { padding: 32px 22px 24px; }
  .qr-modal-img img { width: 200px; height: 200px; }

  .faq-body p { padding-right: 10px; }
}

/* ---------- Reduced Motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}
