/* ============================================================
   英专Online · 设计系统
   像素风 + 星露谷风 + 冷蓝主调 + 夏日citypop
   ============================================================ */

/* ---------- 字体 ---------- */

/* Cubic 11 · 中文像素位图字体 (OFL 免费商用) — 圆润干净的像素中文 */
@font-face {
  font-family: 'Cubic11';
  src: url('../fonts/Cubic_11.woff2') format('woff2');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

:root {
  /* 冷蓝色板 */
  --ink:        #0a1a2f;   /* 深墨蓝 - 文字/边框 */
  --navy:       #122c4d;   /* 海军蓝 */
  --steel:      #1e4170;   /* 钢蓝 */
  --sky:        #4cc9f0;   /* 天青 - 主强调 */
  --ice:        #ade8f4;   /* 冰青 - 高亮 */
  --mist:       #cfe8f5;   /* 雾蓝 */
  --frost:      #eaf4fb;   /* 霜白 - 内容背景 */
  --paper:      #f6fafd;   /* 纸白 - 页面背景 */
  /* 暖点缀 (citypop 落日，极少量) */
  --sunset:     #ff9e7d;   /* 落日粉橙 */
  --dusk:       #f72585;   /* 霓虹粉 */

  /* 像素尺寸 */
  --px: 4px;
  --border: 4px solid var(--ink);
  --shadow-hard: 6px 6px 0 var(--ink);
  --shadow-soft: 4px 4px 0 var(--steel);

  /* 字体 — Cubic11 优先:中英同一字体,大小/基线一致 (已移除 Google Fonts 外链,走本地+系统兜底) */
  --font-pixel: 'Cubic11', monospace;
  --font-retro: 'Cubic11', monospace;
  --font-sans: 'Cubic11', 'PingFang SC', 'Microsoft YaHei', system-ui, sans-serif;
}

/* ---------- 重置 ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { image-rendering: pixelated; max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

/* ---------- 像素工具类 ---------- */
/* 像素网格地平线 (citypop 复古地面) */
.pixel-grid {
  background-image:
    linear-gradient(var(--steel) 1px, transparent 1px),
    linear-gradient(90deg, var(--steel) 1px, transparent 1px);
  background-size: 24px 24px;
  opacity: 0.18;
}

/* ---------- 导航栏 ---------- */
.navbar {
  position: sticky; top: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 28px;
  background: var(--ink);
  border-bottom: 4px solid var(--sky);
  box-shadow: 0 4px 0 rgba(0,0,0,0.25);
}
.nav-logo {
  display: flex; align-items: center; gap: 10px;
}
.nav-logo-mark {
  width: 48px; height: 48px;
  background: transparent;
  border: none;
  box-shadow: none;
  display: grid; place-items: center;
  overflow: visible;
  flex-shrink: 0;
  filter: drop-shadow(2px 2px 0 rgba(0,0,0,0.35));
}
.nav-logo-mark .logo-svg { width: 44px; height: 44px; }
/* 导航滚动进度条 — 地球Online主题色(蓝白绿)+ 像素小猫引领 */
.nav-progress {
  position: absolute; left: 0; right: 0; bottom: -6px;
  height: 8px; background: var(--frost);
  border-top: 1px solid var(--ink);
  overflow: visible;
}
.nav-progress-fill {
  position: relative;
  height: 100%; width: 0;
  background: linear-gradient(90deg, var(--sky) 0%, #6fbf5e 40%, var(--sky) 80%, var(--ice) 100%);
  transition: width 0.12s steps(6);
  overflow: visible;
  box-shadow: 0 0 4px rgba(76,201,240,0.4);
}
.nav-progress-cat {
  position: absolute; right: -4px; top: -16px;
  width: 16px; height: 16px;
  image-rendering: pixelated;
  animation: catmarch 0.5s steps(2) infinite;
}
@keyframes catmarch {
  0%, 100% { transform: translateY(0) translateX(0); }
  50% { transform: translateY(-1px) translateX(-1px); }
}
.nav-title {
  font-family: var(--font-pixel);
  font-size: 13px; color: var(--ice);
  letter-spacing: 1px;
}
.nav-title small {
  display: block;
  font-family: var(--font-sans); font-size: 9px; font-weight: 400;
  color: var(--mist); letter-spacing: 2px; margin-top: 2px;
}
.nav-links { display: flex; align-items: center; gap: 6px; }
.nav-link {
  font-size: 13px; font-weight: 500; color: var(--mist);
  padding: 8px 14px;
  border: 2px solid transparent;
  transition: all 0.15s steps(3);
}
.nav-link:hover, .nav-link.active {
  color: var(--ink);
  background: var(--sky);
  border-color: var(--ice);
  box-shadow: 3px 3px 0 var(--steel);
}
.lang-toggle {
  display: flex; align-items: center; gap: 0;
  border: 2px solid var(--steel);
  background: var(--navy);
}
.lang-btn {
  font-family: var(--font-pixel); font-size: 9px;
  padding: 7px 10px; color: var(--mist);
  background: transparent; border: none; cursor: pointer;
  transition: all 0.15s steps(2);
}
.lang-btn.active { background: var(--sky); color: var(--ink); }

/* 移动端汉堡按钮 (桌面端隐藏) */
.nav-toggle {
  display: none;
  flex-direction: column; justify-content: center; gap: 4px;
  width: 44px; height: 44px;
  padding: 11px;
  background: var(--navy);
  border: 2px solid var(--steel);
  cursor: pointer;
  flex-shrink: 0;
}
.nav-toggle span { display: block; height: 3px; width: 100%; background: var(--ice); }
.nav-toggle:hover, .nav-toggle[aria-expanded="true"] { border-color: var(--sky); }

/* ---------- HERO (地球Online · 白天) ---------- */
.hero {
  position: relative;
  min-height: 86vh;
  background: linear-gradient(180deg, #6fb6e8 0%, #a9def0 55%, #d8f3df 88%, #bfe9c4 100%);
  overflow: hidden;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 60px 24px 90px;
}
/* 像素太阳 */
.pixel-sun {
  position: absolute; top: 48px; right: 12%; z-index: 2;
  width: 88px; height: 88px;
  filter: drop-shadow(3px 3px 0 #0a1a2f);
}
.pixel-sun .sun-disc {
  width: 64px; height: 64px; margin: 12px;
  background: #ffd76a;
  border: 4px solid #f0a93f;
  border-radius: 0;
}
/* 像素云 */
.pixel-clouds { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.px-cloud {
  position: absolute; width: 48px; height: 16px;
  background: #fff;
  box-shadow:
    -8px -8px 0 #fff, 8px -8px 0 #fff,
    -16px 0 0 #fff, 16px 0 0 #eef6fb,
    -8px 8px 0 #eef6fb;
  border: 4px solid #cfe8f5;
  animation: drift 30s linear infinite;
}
.px-cloud.c2 { animation-duration: 42s; animation-delay: -10s; transform: scale(0.7); }
.px-cloud.c3 { animation-duration: 52s; animation-delay: -26s; transform: scale(1.25); opacity: 0.9; }
@keyframes drift {
  0%   { transform: translateX(-25vw); }
  100% { transform: translateX(125vw); }
}
/* 像素草地 + 地面网格 */
.hero-ground {
  position: absolute; left: 0; right: 0; bottom: 0; height: 26%;
  background: linear-gradient(180deg, #9bdc8b 0%, #6fbf5e 100%);
  border-top: 4px solid var(--ink);
  z-index: 1;
}
.hero-grid {
  position: absolute; left: 0; right: 0; bottom: 0; height: 26%;
  background-image:
    linear-gradient(#1e4170 1px, transparent 1px),
    linear-gradient(90deg, #1e4170 1px, transparent 1px);
  background-size: 40px 40px;
  transform: perspective(340px) rotateX(62deg);
  transform-origin: bottom;
  opacity: 0.22;
  mask-image: linear-gradient(180deg, transparent 0%, #000 30%, #000 100%);
  z-index: 2;
}
/* 像素小猫向导 (全站统一吉祥物) */
.cat-mascot { display: inline-block; image-rendering: pixelated; vertical-align: middle; }
.cat-mascot.idle { animation: catbob 2.4s steps(6) infinite; }
@keyframes catbob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
.cat-eye { transform-box: fill-box; transform-origin: center; animation: blink 5s steps(1,end) infinite; }
@keyframes blink { 0%,88%,100% { transform: scaleY(1);} 91%,96% { transform: scaleY(0.15);} }
.hero-cat {
  position: absolute; bottom: 4%; right: 8%;
  width: 96px; z-index: 4;
  filter: drop-shadow(3px 3px 0 #0a1a2f);
}
.hero-speech {
  position: absolute; bottom: calc(4% + 104px); right: 6%;
  background: #fff; border: 4px solid var(--ink); box-shadow: 3px 3px 0 var(--steel);
  padding: 9px 16px; font-family: var(--font-pixel); font-size: 9px; color: var(--ink);
  z-index: 5; white-space: nowrap;
}
.hero-speech::after {
  content: ""; position: absolute; bottom: -12px; right: 24px;
  width: 0; height: 0;
  border: 8px solid transparent; border-top-color: var(--ink);
}
/* 浮动像素地球 */
.hero-earth {
  position: absolute; top: 16%; left: 9%;
  width: 72px; z-index: 2;
  filter: drop-shadow(3px 3px 0 rgba(10,26,47,0.4));
  animation: earthbob 4s steps(8) infinite;
}
@keyframes earthbob { 0%,100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-8px) rotate(2deg); } }

.hero-content { position: relative; z-index: 5; text-align: center; max-width: 760px; }
.hero-kicker {
  font-family: var(--font-pixel); font-size: 10px; color: var(--ink);
  letter-spacing: 3px; margin-bottom: 22px;
  background: #fff; display: inline-block; padding: 6px 12px;
  border: 3px solid var(--ink); box-shadow: 3px 3px 0 var(--steel);
}
.hero-title {
  font-family: var(--font-pixel);
  font-size: clamp(28px, 6vw, 64px);
  color: #fff;
  line-height: 1.15;
  text-shadow: 4px 4px 0 var(--ink), 8px 8px 0 rgba(30,65,112,0.6);
  margin-bottom: 18px;
}
.hero-sub {
  font-family: var(--font-retro);
  font-size: clamp(20px, 3vw, 30px);
  color: var(--navy);
  letter-spacing: 1px;
  margin-bottom: 36px;
  text-shadow: 2px 2px 0 rgba(255,255,255,0.6);
}
.hero-cta {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-pixel); font-size: 11px;
  padding: 16px 28px;
  background: var(--sky); color: var(--ink);
  border: 4px solid var(--ice);
  box-shadow: 5px 5px 0 var(--ink);
  cursor: pointer;
  transition: transform 0.1s steps(2), box-shadow 0.1s steps(2);
}
.hero-cta:hover { transform: translate(2px, 2px); box-shadow: 3px 3px 0 var(--ink); }
.hero-cta:active { transform: translate(5px, 5px); box-shadow: 0 0 0 var(--ink); }

.hero-scroll-hint {
  position: absolute; bottom: 18px; left: 50%; transform: translateX(-50%);
  font-family: var(--font-pixel); font-size: 9px; color: var(--ink);
  background: #fff; padding: 6px 10px;
  border: 3px solid var(--ink); box-shadow: 2px 2px 0 var(--steel);
  z-index: 6; letter-spacing: 2px;
  animation: bob 1.6s steps(4) infinite;
}
@keyframes bob { 0%,100% { transform: translate(-50%,0); } 50% { transform: translate(-50%,6px); } }

/* ---------- 板块通用 ---------- */
.section { padding: 72px 24px; max-width: 1240px; margin: 0 auto; }
.section-head { text-align: center; margin-bottom: 48px; }
.section-eyebrow {
  font-family: var(--font-pixel); font-size: 9px; color: var(--sky);
  letter-spacing: 3px; margin-bottom: 14px;
}
.section-title {
  font-family: var(--font-pixel);
  font-size: clamp(22px, 4vw, 38px);
  color: var(--ink);
  text-shadow: 3px 3px 0 var(--ice);
  line-height: 1.2;
}
.section-desc {
  font-size: 15px; color: var(--steel); max-width: 640px;
  margin: 16px auto 0;
}

/* ---------- 四模块入口卡片 ---------- */
.module-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}
.module-card {
  position: relative;
  background: #fff;
  border: var(--border);
  box-shadow: var(--shadow-hard);
  padding: 28px 26px 26px;
  cursor: pointer;
  transition: transform 0.12s steps(3), box-shadow 0.12s steps(3);
  display: flex; flex-direction: column; gap: 14px;
  overflow: hidden;
}
.module-card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 8px;
}
.module-card[data-color="blue"]::before   { background: var(--sky); }
.module-card[data-color="green"]::before  { background: #5dcaa5; }
.module-card[data-color="coral"]::before  { background: var(--sunset); }
.module-card[data-color="amber"]::before  { background: #fac775; }
.module-card:hover {
  transform: translate(-3px, -3px);
  box-shadow: 9px 9px 0 var(--ink);
}
.module-card:active {
  transform: translate(3px, 3px);
  box-shadow: 3px 3px 0 var(--ink);
}
.mc-icon {
  width: 56px; height: 56px;
  border: 3px solid var(--ink);
  box-shadow: 3px 3px 0 var(--steel);
  display: grid; place-items: center;
  font-family: var(--font-pixel); font-size: 18px;
  margin-bottom: 4px;
}
.module-card[data-color="blue"]  .mc-icon { background: var(--sky); color: var(--ink); }
.module-card[data-color="green"] .mc-icon { background: #5dcaa5; color: var(--ink); }
.module-card[data-color="coral"] .mc-icon { background: var(--sunset); color: var(--ink); }
.module-card[data-color="amber"] .mc-icon { background: #fac775; color: var(--ink); }
.mc-title {
  font-family: var(--font-pixel); font-size: 15px; color: var(--ink);
  line-height: 1.3;
}
.mc-sub {
  font-family: var(--font-retro); font-size: 19px; color: var(--steel);
  letter-spacing: 0.5px;
}
.mc-desc { font-size: 14px; color: var(--steel); line-height: 1.6; }
.mc-foot {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: auto; padding-top: 12px;
  border-top: 2px dashed var(--mist);
}
.mc-count { font-family: var(--font-pixel); font-size: 9px; color: var(--steel); }
.mc-go {
  font-family: var(--font-pixel); font-size: 9px; color: var(--sky);
  letter-spacing: 1px;
}

/* ---------- 占位内容块 ---------- */
.stub-block {
  background: #fff;
  border: var(--border);
  box-shadow: var(--shadow-soft);
  padding: 40px 32px;
  text-align: center;
  margin-bottom: 28px;
}
.stub-block h3 {
  font-family: var(--font-pixel); font-size: 13px; color: var(--ink);
  margin-bottom: 12px;
}
.stub-block p { color: var(--steel); font-size: 14px; }

/* ---------- 真实时间轴(带证书筹码) ---------- */
.timeline {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 12px;
  background: var(--frost);
  border: var(--border);
  box-shadow: var(--shadow-soft);
  padding: 24px 16px;
  overflow-x: auto;
}
.tl-col {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  min-width: 110px;
}
.tl-sem {
  font-family: var(--font-pixel); font-size: 9px; color: #fff;
  background: var(--steel); padding: 6px 10px;
  border: 2px solid var(--ink); box-shadow: 2px 2px 0 var(--ink);
  letter-spacing: 1px; white-space: nowrap;
}
.tl-chips { display: flex; flex-direction: column; gap: 6px; align-items: center; }
.tl-chip {
  font-size: 11px; line-height: 1.3; color: var(--ink);
  background: #fff; border: 2px solid var(--ink);
  padding: 5px 8px; box-shadow: 2px 2px 0 var(--steel);
  cursor: pointer; transition: transform 0.1s steps(2);
  text-align: center; width: 100%;
}
.tl-chip:hover { transform: translate(-1px,-1px); box-shadow: 3px 3px 0 var(--sky); }
.tl-chip[data-tier="core"]   { background: var(--ice); }
.tl-chip[data-tier="pro"]    { background: #c9f7e2; }
.tl-chip[data-tier="abroad"] { background: #ffd9c9; }
.tl-chip[data-tier="opt"]    { background: #fff3cf; }

/* ---------- 词汇量坐标条 ---------- */
.vocab-axis {
  background: var(--ink);
  border: var(--border);
  box-shadow: var(--shadow-soft);
  padding: 28px 24px;
}
.va-track {
  position: relative; height: 40px;
  background: linear-gradient(90deg, var(--navy), var(--steel) 50%, var(--sky));
  border: 3px solid var(--ink);
  margin: 36px 0 12px;
}
.va-mark {
  position: absolute; top: -6px; width: 3px; height: 52px;
  background: var(--ice);
}
.va-mark::after {
  content: attr(data-label);
  position: absolute; top: -22px; left: 50%; transform: translateX(-50%);
  font-family: var(--font-pixel); font-size: 9px; color: var(--ice);
  white-space: nowrap; text-shadow: 1px 1px 0 var(--ink);
}
.va-mark[data-tier="core"] { background: var(--ice); }
.va-mark[data-tier="pro"]  { background: var(--sunset); }
.va-axis-labels {
  display: flex; justify-content: space-between;
  font-family: var(--font-pixel); font-size: 9px; color: var(--mist);
  margin-top: 8px;
}
.vocab-tests {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px; margin-top: 28px;
}
.vt-card {
  background: #fff; border: 3px solid var(--ink);
  box-shadow: 3px 3px 0 var(--steel);
  padding: 14px 16px; display: flex; flex-direction: column; gap: 6px;
}
.vt-card[data-rank="main"]  { border-color: var(--sky); box-shadow: 3px 3px 0 var(--sky); }
.vt-name { font-family: var(--font-pixel); font-size: 11px; color: var(--ink); }
.vt-tag  { font-family: var(--font-pixel); font-size: 9px; }
.vt-desc { font-size: 12px; color: var(--steel); line-height: 1.5; }
.vt-link {
  font-family: var(--font-pixel); font-size: 9px; color: var(--sky);
  margin-top: 4px; letter-spacing: 1px;
}

/* ---------- 证书卡网格 ---------- */
.cert-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 18px;
}
.cert-card {
  position: relative; background: #fff;
  border: var(--border); box-shadow: var(--shadow-soft);
  padding: 18px 16px; cursor: pointer;
  transition: transform 0.1s steps(2), box-shadow 0.1s steps(2);
  display: flex; flex-direction: column; gap: 8px;
  min-height: 150px;
}
.cert-card:hover { transform: translate(-2px,-2px); box-shadow: 6px 6px 0 var(--sky); }
.cert-card .cc-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; }
.cc-name { font-family: var(--font-pixel); font-size: 12px; color: var(--ink); line-height: 1.3; }
.cc-en   { font-family: var(--font-retro); font-size: 16px; color: var(--steel); }
.cc-badges { display: flex; flex-wrap: wrap; gap: 4px; }
.cc-badge {
  font-family: var(--font-pixel); font-size: 9px; padding: 3px 6px;
  border: 2px solid var(--ink); letter-spacing: 0.5px;
}
.cc-badge[data-kind="tier"]   { background: var(--ice); color: var(--ink); }
.cc-badge[data-kind="vocab"]  { background: var(--steel); color: var(--ice); }
.cc-badge[data-kind="stop"]   { background: #ffb4a8; color: var(--ink); }
.cc-badge[data-kind="year"]   { background: #cdeedd; color: var(--ink); }
.cc-foot { margin-top: auto; font-family: var(--font-pixel); font-size: 9px; color: var(--sky); }

/* BEC 停考横幅 */
.bec-warn {
  background: #fff3cf; border: 3px solid #ba7517;
  box-shadow: 3px 3px 0 #854f0b;
  padding: 12px 16px; margin-bottom: 16px;
  font-size: 13px; color: #412402; line-height: 1.5;
}
.bec-warn strong { font-family: var(--font-pixel); font-size: 9px; color: #854f0b; letter-spacing: 1px; }

/* ---------- 详情弹窗 ---------- */
.modal-overlay {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(10,26,47,0.82);
  display: none; align-items: center; justify-content: center;
  padding: 20px;
}
.modal-overlay.open { display: flex; }
.modal-box {
  background: var(--paper); border: var(--border);
  box-shadow: 8px 8px 0 var(--ink);
  max-width: 760px; width: 100%; max-height: 88vh; overflow-y: auto;
  position: relative;
}
.modal-head {
  background: var(--ink); color: var(--ice);
  padding: 18px 22px; border-bottom: 4px solid var(--sky);
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  position: sticky; top: 0; z-index: 2;
}
.modal-title { font-family: var(--font-pixel); font-size: 14px; }
.modal-close {
  font-family: var(--font-pixel); font-size: 12px; color: var(--ice);
  background: var(--steel); border: 2px solid var(--ice);
  padding: 6px 10px; cursor: pointer;
  box-shadow: 2px 2px 0 var(--ink); transition: transform 0.1s steps(2);
}
.modal-close:hover { transform: translate(1px,1px); box-shadow: 1px 1px 0 var(--ink); }
.modal-body { padding: 24px 22px 28px; }
.mb-row { display: grid; grid-template-columns: 90px 1fr; gap: 8px 16px; padding: 8px 0; border-bottom: 2px dashed var(--mist); font-size: 14px; }
.mb-row:last-child { border-bottom: none; }
.mb-label { font-family: var(--font-pixel); font-size: 9px; color: var(--steel); padding-top: 2px; }
.mb-val { color: var(--ink); line-height: 1.6; }
.mb-h { font-family: var(--font-pixel); font-size: 11px; color: var(--sky); margin: 18px 0 8px; padding-bottom: 6px; border-bottom: 2px solid var(--ice); }
.mb-p { color: var(--ink); font-size: 14px; line-height: 1.7; margin-bottom: 8px; }
.mb-ul { padding-left: 18px; }
.mb-ul li { font-size: 14px; color: var(--ink); line-height: 1.7; margin-bottom: 4px; }
.mb-link {
  display: inline-block; margin-top: 8px;
  font-family: var(--font-pixel); font-size: 9px; color: var(--ink);
  background: var(--sky); padding: 8px 14px;
  border: 3px solid var(--ink); box-shadow: 3px 3px 0 var(--steel);
  text-decoration: none;
}
.mb-link:hover { transform: translate(1px,1px); box-shadow: 2px 2px 0 var(--steel); }

/* 隐藏的详情数据容器(内容写在HTML里,JS只切换显示) */
.cert-detail { display: none; }

/* ---------- 资源页组件 ---------- */
.res-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 22px; }
.res-card {
  background: #fff; border: var(--border); box-shadow: var(--shadow-soft);
  padding: 22px 20px; display: flex; flex-direction: column; gap: 12px;
}
.res-card[data-color="blue"]   { border-top: 6px solid var(--sky); }
.res-card[data-color="green"]  { border-top: 6px solid #5dcaa5; }
.res-card[data-color="coral"]  { border-top: 6px solid var(--sunset); }
.res-card[data-color="amber"]  { border-top: 6px solid #fac775; }
.res-title { font-family: var(--font-pixel); font-size: 13px; color: var(--ink); }
.res-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.res-tag {
  font-size: 13px; color: var(--ink); background: var(--frost);
  border: 2px solid var(--steel); padding: 4px 10px; box-shadow: 2px 2px 0 var(--mist);
  cursor: pointer; text-decoration: none; transition: transform 0.1s steps(2);
}
.res-tag:hover { transform: translate(-1px,-1px); box-shadow: 3px 3px 0 var(--sky); }
.res-list { padding-left: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; }
.res-list li { font-size: 14px; color: var(--ink); line-height: 1.6; padding-left: 14px; position: relative; }
.res-list li::before { content: "▸"; position: absolute; left: 0; color: var(--sky); font-family: var(--font-pixel); font-size: 10px; }
.res-note { font-size: 12px; color: var(--steel); margin-top: 4px; line-height: 1.6; }
.show-tag { cursor: default; }
.show-tip {
  position: fixed; z-index: 9999; max-width: 280px;
  background: #fff; border: 2px solid var(--ink);
  box-shadow: 4px 4px 0 var(--mist); padding: 12px 14px;
  display: none; pointer-events: none;
}
.show-tip.show { display: block; }
.tip-rating { font-family: var(--font-pixel); font-size: 12px; color: var(--sunset); margin-bottom: 6px; }
.tip-desc { font-size: 13px; color: var(--ink); line-height: 1.6; margin-bottom: 8px; }
.tip-kws { display: flex; flex-wrap: wrap; gap: 6px; }
.tip-kw { font-size: 11px; color: var(--steel); background: var(--frost); border: 1px solid var(--steel); padding: 2px 7px; }

/* ---------- 页脚 ---------- */
.footer {
  background: var(--frost);
  border-top: 4px solid var(--sky);
  padding: 40px 24px 28px;
  text-align: center;
}
.footer-mark {
  font-family: var(--font-pixel); font-size: 12px; color: var(--ink);
  margin-bottom: 8px;
  display: flex; align-items: center; justify-content: center; gap: 10px;
}
.footer-mark .cat-mascot { width: 40px; height: 40px; }
.footer-note { font-size: 12px; color: var(--steel); margin-bottom: 4px; }
.footer-tiny { font-family: var(--font-pixel); font-size: 9px; color: var(--steel); letter-spacing: 2px; }
.footer-copy {
  margin-top: 16px; padding-top: 14px;
  border-top: 1px dashed var(--mist);
  font-size: 11px; color: var(--steel); letter-spacing: 0.5px;
}
.footer-copy p { margin: 0; }

/* ---------- 子页面通用 ---------- */
.page-hero {
  background: linear-gradient(180deg, var(--ink), var(--navy));
  border-bottom: 4px solid var(--sky);
  padding: 56px 24px 48px;
  text-align: center;
  position: relative; overflow: hidden;
}
.page-hero .pixel-grid {
  height: 100%; opacity: 0.12; transform: perspective(300px) rotateX(60deg);
}
.page-hero h1 {
  font-family: var(--font-pixel);
  font-size: clamp(22px, 4vw, 40px);
  color: var(--ice);
  text-shadow: 3px 3px 0 var(--ink);
  position: relative; z-index: 2;
}
.page-hero p {
  font-family: var(--font-retro); font-size: 22px; color: var(--mist);
  margin-top: 12px; position: relative; z-index: 2;
}

.breadcrumb {
  display: flex; gap: 8px; align-items: center;
  font-family: var(--font-pixel); font-size: 9px; color: var(--steel);
  padding: 16px 24px; max-width: 1240px; margin: 0 auto;
}
.breadcrumb a { color: var(--steel); }
.breadcrumb a:hover { color: var(--sky); }
.breadcrumb span.sep { opacity: 0.5; }

/* ---------- 显隐动画 ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.5s steps(8), transform 0.5s steps(8); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- 升学页组件 ---------- */
/* 板块内子标题 */
.subhead {
  display: flex; align-items: baseline; justify-content: space-between;
  flex-wrap: wrap; gap: 8px;
  margin: 52px 0 20px;
  padding-bottom: 12px;
  border-bottom: 2px dashed var(--mist);
}
.subhead h3 {
  font-family: var(--font-pixel); font-size: 14px; color: var(--ink);
  text-shadow: 2px 2px 0 var(--ice);
  letter-spacing: 1px;
}
.subhead p { font-size: 13px; color: var(--steel); }

/* 专业方向卡片 */
.major-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 16px;
}
.major-card {
  position: relative; background: #fff;
  border: var(--border); box-shadow: var(--shadow-soft);
  padding: 16px 14px; cursor: pointer;
  transition: transform 0.1s steps(2), box-shadow 0.1s steps(2);
  display: flex; flex-direction: column; gap: 6px;
  min-height: 92px;
}
.major-card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 6px;
  background: var(--sunset);
}
.major-card:hover { transform: translate(-2px,-2px); box-shadow: 6px 6px 0 var(--sunset); }
.major-card .major-name { font-family: var(--font-pixel); font-size: 12px; color: var(--ink); line-height: 1.3; }
.major-card .major-en { font-family: var(--font-retro); font-size: 14px; color: var(--steel); }
.major-card .major-foot { margin-top: auto; font-family: var(--font-pixel); font-size: 9px; color: var(--sunset); letter-spacing: 1px; }

/* 院校小卡片（考研板块） */
.school-cards {
  display: flex; flex-wrap: wrap; gap: 8px;
}
.school-card {
  display: inline-flex; align-items: center;
  background: #fff;
  border: 2px solid var(--steel);
  box-shadow: 2px 2px 0 var(--mist);
  padding: 6px 12px;
  cursor: pointer;
  font-size: 13px;
  transition: transform 0.1s steps(2), box-shadow 0.1s steps(2), border-color 0.1s steps(2);
}
.school-card:hover {
  transform: translate(-1px,-1px);
  box-shadow: 3px 3px 0 var(--sky);
  border-color: var(--sky);
}

/* 院校 hover 浮窗（复用 .show-tip）评级徽章 */
.tip-rate {
  display: inline-block; font-family: var(--font-pixel); font-size: 10px;
  background: var(--sky); color: var(--ink);
  border: 2px solid var(--ink); padding: 2px 6px;
  box-shadow: 2px 2px 0 var(--steel); margin-bottom: 6px;
}
/* 层次标签徽章（985/211/双一流） */
.tip-tag {
  display: inline-block; font-family: var(--font-pixel); font-size: 9px;
  background: var(--frost); color: var(--ink);
  border: 1px solid var(--steel); padding: 2px 6px;
  margin: 0 0 6px 6px; letter-spacing: 0.5px; vertical-align: top;
}
/* 弹窗内院校层次小标签 */
.lvl {
  display: inline-block; font-family: var(--font-pixel); font-size: 8px;
  color: var(--steel); background: var(--frost);
  border: 1px solid var(--steel); padding: 1px 5px;
  margin-left: 6px; letter-spacing: 0.5px; vertical-align: middle; line-height: 1.4;
}
/* 浮窗内可点击的官网链接 */
.tip-link {
  display: inline-block; margin-top: 10px;
  font-family: var(--font-pixel); font-size: 9px; color: var(--ink);
  background: var(--sky); padding: 7px 12px;
  border: 2px solid var(--ink); box-shadow: 2px 2px 0 var(--steel);
  text-decoration: none; letter-spacing: 1px;
  transition: transform 0.1s steps(2), box-shadow 0.1s steps(2);
}
.tip-link:hover { transform: translate(1px,1px); box-shadow: 1px 1px 0 var(--steel); }
/* 院校浮窗允许点击（覆盖 .show-tip 的 pointer-events:none） */
#school-tip { pointer-events: auto; }

/* ---------- 响应式 ---------- */
@media (max-width: 760px) {
  .module-grid { grid-template-columns: 1fr; }
  .nav-toggle { display: flex; }
  .nav-links {
    display: none;
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column;
    background: var(--ink);
    border-bottom: 4px solid var(--sky);
    padding: 8px 16px 16px;
    gap: 4px;
    box-shadow: 0 4px 0 rgba(0,0,0,0.25);
  }
  .nav-links.open { display: flex; }
  .nav-link { width: 100%; padding: 12px 14px; }
  .navbar { padding: 10px 16px; }
  .section { padding: 56px 16px; }
}

/* ---------- 双语切换 ---------- */
html[lang="en"] .zh-only, html[lang="zh"] .en-only { display: none; }

/* 减弱动效偏好 */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
