/* ============================================================
   备考分队 EXAM SQUAD · 绝区零 (ZZZ) 风格设计系统
   黄黑强对比 · 巨型浓缩字 · 警示条纹 · 故障艺术 · CRT 电视
   显示字体: Anton   数据字体: IBM Plex Mono
   ============================================================ */

@import url("https://fonts.loli.net/css2?family=Anton&family=IBM+Plex+Mono:wght@400;600&display=swap");

:root {
  --black: #0d0d0f;
  --black-2: #17171b;
  --paper: #f2efe6;
  --paper-2: #e7e3d5;
  --yellow: #ffd91f;
  --yellow-deep: #f0c808;
  --red: #ff3b30;
  --green: #3ddc64;
  --line-d: rgba(242, 239, 230, 0.14);

  --font-display: "Anton", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, Consolas, monospace;
  --font-body: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei",
    -apple-system, "Segoe UI", sans-serif;

  --max-width: 1140px;
  --text-width: 720px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background: var(--black);
  color: var(--paper);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* 全局噪点氛围 */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 2000;
  pointer-events: none;
  opacity: 0.5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.035 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

a {
  color: var(--yellow);
  text-decoration: none;
}

a:hover {
  color: #fff;
}

/* ---------- 警示条纹（通用） ---------- */
.stripes {
  height: 16px;
  background: repeating-linear-gradient(
    -45deg,
    var(--yellow) 0,
    var(--yellow) 16px,
    var(--black) 16px,
    var(--black) 32px
  );
}

/* ---------- 跑马灯横幅 ---------- */
.marquee {
  background: var(--yellow);
  color: var(--black);
  overflow: hidden;
  padding: 10px 0;
  border-top: 3px solid var(--black);
  border-bottom: 3px solid var(--black);
  position: relative;
  z-index: 1;
}

.marquee-track {
  display: flex;
  gap: 48px;
  width: max-content;
  animation: marquee 24s linear infinite;
}

.marquee span {
  font-family: var(--font-display);
  font-size: 20px;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---------- 导航 ---------- */
/* ---------- 导航 · 基础（Apple 式玻璃条） ---------- */
html {
  scroll-padding-top: 76px;
}

.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: 54px;
  background: rgba(16, 16, 19, 0.72);
  -webkit-backdrop-filter: saturate(1.8) blur(20px);
  backdrop-filter: saturate(1.8) blur(20px);
  border-bottom: 1px solid rgba(242, 239, 230, 0.1);
}

.nav-inner {
  max-width: var(--max-width);
  height: 100%;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 18px;
  letter-spacing: 0.04em;
  color: var(--paper);
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  white-space: nowrap;
}

.nav-logo .logo-mark {
  color: var(--black);
  background: var(--yellow);
  padding: 1px 7px;
  margin-right: 8px;
}

.nav-logo:hover {
  color: var(--paper);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 2px;
  list-style: none;
}

.nav-item > a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: rgba(242, 239, 230, 0.72);
  padding: 8px 14px;
  white-space: nowrap;
  border-radius: 8px;
  transition: color 0.18s ease, background 0.18s ease;
}

.nav-item > a:hover {
  color: var(--paper);
  background: rgba(242, 239, 230, 0.07);
}

.nav-item > a.active {
  color: var(--yellow);
}

.nav-item.nav-on > a {
  color: var(--paper);
  background: rgba(242, 239, 230, 0.09);
}

.chev {
  width: 9px;
  height: 6px;
  opacity: 0.55;
  transition: transform 0.26s ease;
}

.nav-item.nav-on .chev {
  transform: rotate(180deg);
  opacity: 0.9;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.nav-icon-btn {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  border-radius: 50%;
  color: rgba(242, 239, 230, 0.72);
  cursor: pointer;
  transition: color 0.18s ease, background 0.18s ease;
}

.nav-icon-btn svg {
  width: 16px;
  height: 16px;
}

.nav-icon-btn:hover {
  color: var(--paper);
  background: rgba(242, 239, 230, 0.09);
}

.nav-burger {
  display: none;
  width: 34px;
  height: 34px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  border-radius: 8px;
  cursor: pointer;
}

.nav-burger span {
  display: block;
  width: 16px;
  height: 1.6px;
  background: var(--paper);
  border-radius: 2px;
  transition: transform 0.25s ease;
}

body.mobile-open .nav-burger span:first-child {
  transform: translateY(3.3px) rotate(45deg);
}

body.mobile-open .nav-burger span:last-child {
  transform: translateY(-3.3px) rotate(-45deg);
}

/* ---------- 通用 Section ---------- */
.section {
  position: relative;
  z-index: 1;
  padding: 90px 24px;
}

.section-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

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

.section-head .head-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: var(--black);
  background: var(--yellow);
  padding: 4px 12px;
  transform: rotate(-1.5deg);
  margin-bottom: 14px;
}

.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(30px, 4.6vw, 48px);
  letter-spacing: 0.02em;
  line-height: 1.1;
  text-transform: uppercase;
}

.section-head p {
  color: rgba(242, 239, 230, 0.62);
  font-size: 15.5px;
  margin-top: 8px;
}

/* ============================================================
   HERO · 巨型排版 + 故障标题 + 电视倒计时
   ============================================================ */
.hero {
  position: relative;
  z-index: 1;
  padding: 140px 24px 72px;
}

/* CRT 扫描线覆盖层 */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(
    to bottom,
    transparent 0,
    transparent 3px,
    rgba(0, 0, 0, 0.16) 3px,
    rgba(0, 0, 0, 0.16) 4px
  );
  opacity: 0.5;
}

.hero-inner {
  position: relative;
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 48px;
  align-items: center;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: var(--black);
  background: var(--red);
  color: #fff;
  padding: 5px 14px;
  transform: rotate(-1.2deg);
  margin-bottom: 22px;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(52px, 8.6vw, 104px);
  line-height: 0.98;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}

.hero-title .row-en {
  display: block;
  color: var(--yellow);
  text-shadow: 4px 4px 0 var(--red);
}

.hero-title .row-cn {
  display: block;
  color: var(--paper);
  -webkit-text-stroke: 2px var(--paper);
}

.hero-title .row-cn.fill {
  -webkit-text-stroke: 0;
  color: var(--paper);
}

/* 故障文字 */
.glitch {
  position: relative;
  display: inline-block;
}

.glitch::before,
.glitch::after {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.glitch::before {
  color: var(--red);
  z-index: -1;
  animation: glitch-a 3.2s infinite steps(1);
}

.glitch::after {
  color: #35d0ff;
  z-index: -2;
  animation: glitch-b 2.7s infinite steps(1);
}

@keyframes glitch-a {
  0%, 92% { transform: translate(0); clip-path: inset(0 0 0 0); }
  93% { transform: translate(-4px, 2px); clip-path: inset(12% 0 58% 0); }
  95% { transform: translate(3px, -1px); clip-path: inset(62% 0 8% 0); }
  97% { transform: translate(-2px, 1px); clip-path: inset(30% 0 40% 0); }
  99% { transform: translate(0); clip-path: inset(0 0 0 0); }
}

@keyframes glitch-b {
  0%, 90% { transform: translate(0); clip-path: inset(0 0 0 0); }
  91% { transform: translate(4px, -2px); clip-path: inset(48% 0 22% 0); }
  94% { transform: translate(-3px, 2px); clip-path: inset(8% 0 74% 0); }
  96% { transform: translate(2px, 1px); clip-path: inset(70% 0 4% 0); }
  98% { transform: translate(0); clip-path: inset(0 0 0 0); }
}

.hero-sub {
  color: rgba(242, 239, 230, 0.66);
  font-size: 16px;
  margin: 22px 0 30px;
  max-width: 460px;
}

.hero-cta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.btn-primary {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 17px;
  letter-spacing: 0.08em;
  color: var(--black);
  background: var(--yellow);
  padding: 13px 30px;
  border: 3px solid var(--yellow);
  box-shadow: 5px 5px 0 var(--red);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn-primary:hover {
  color: var(--black);
  transform: translate(-2px, -2px);
  box-shadow: 8px 8px 0 var(--red);
}

.btn-ghost {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 17px;
  letter-spacing: 0.08em;
  color: var(--paper);
  padding: 13px 26px;
  border: 3px solid var(--paper);
  transition: all 0.15s ease;
}

.btn-ghost:hover {
  color: var(--black);
  background: var(--paper);
}

/* ---------- 电视框倒计时 ---------- */
.tv {
  position: relative;
  background: var(--black-2);
  border: 4px solid var(--paper);
  outline: 4px solid var(--black);
  box-shadow: 10px 10px 0 rgba(255, 217, 31, 0.9);
}

/* 四角螺丝装饰 */
.tv::before,
.tv::after {
  content: "✚";
  position: absolute;
  font-size: 13px;
  color: var(--paper);
  opacity: 0.7;
}

.tv::before { top: 4px; left: 7px; }
.tv::after { top: 4px; right: 7px; }

.tv-screen {
  position: relative;
  padding: 22px 24px 20px;
  overflow: hidden;
}

/* 屏内扫描线 */
.tv-screen::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(
    to bottom,
    transparent 0,
    transparent 2px,
    rgba(0, 0, 0, 0.22) 2px,
    rgba(0, 0, 0, 0.22) 3px
  );
}

.tv-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.tv-rec {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--red);
}

.tv-rec i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--red);
  animation: rec-blink 1.1s steps(1) infinite;
}

@keyframes rec-blink {
  50% { opacity: 0.15; }
}

.tv-date {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  color: var(--yellow);
  border: 2px solid var(--yellow);
  padding: 2px 10px;
}

.tv-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  color: rgba(242, 239, 230, 0.55);
  margin-bottom: 6px;
}

.tv-units {
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.tv-unit {
  text-align: center;
}

.cd-num {
  font-family: var(--font-display);
  font-size: clamp(44px, 5.6vw, 66px);
  line-height: 1;
  color: var(--yellow);
  text-shadow: 0 0 22px rgba(255, 217, 31, 0.4);
  font-variant-numeric: tabular-nums;
}

.cd-num.tick {
  animation: digit-flip 0.45s cubic-bezier(0.3, 0.7, 0.3, 1);
}

@keyframes digit-flip {
  0% { transform: rotateX(0); opacity: 1; }
  45% { transform: rotateX(86deg); opacity: 0.15; }
  55% { transform: rotateX(-86deg); opacity: 0.15; }
  100% { transform: rotateX(0); opacity: 1; }
}

.cd-unit-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: rgba(242, 239, 230, 0.5);
  margin-top: 4px;
}

.tv-colon {
  font-family: var(--font-display);
  font-size: clamp(30px, 4vw, 46px);
  color: var(--red);
  animation: rec-blink 1s steps(1) infinite;
  transform: translateY(-6px);
}

/* 进度条：警示条纹风 */
.tv-progress {
  position: relative;
  height: 14px;
  margin-top: 18px;
  border: 2px solid var(--paper);
  background: rgba(242, 239, 230, 0.08);
}

.cd-progress-bar {
  height: 100%;
  width: 0%;
  background: repeating-linear-gradient(
    -45deg,
    var(--yellow) 0,
    var(--yellow) 8px,
    var(--yellow-deep) 8px,
    var(--yellow-deep) 16px
  );
  transition: width 1.2s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.cd-progress-spark {
  position: absolute;
  top: 50%;
  left: 0%;
  width: 10px;
  height: 22px;
  margin: -11px 0 0 -5px;
  background: var(--red);
  transition: left 1.2s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.tv-meta {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  color: rgba(242, 239, 230, 0.45);
  margin-top: 8px;
}

.tv-quote {
  margin-top: 14px;
  padding: 10px 12px;
  border-left: 4px solid var(--yellow);
  background: rgba(255, 217, 31, 0.07);
  font-size: 13.5px;
  color: rgba(242, 239, 230, 0.85);
  transition: opacity 0.45s ease, transform 0.45s ease;
}

.tv-quote.quote-fade {
  opacity: 0;
  transform: translateY(6px);
}

/* ============================================================
   学科模块 · 纸面卡片 + 贴纸
   ============================================================ */
.subject-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.subject-card {
  position: relative;
  display: block;
  background: var(--paper);
  color: var(--black);
  padding: 24px 22px 22px;
  border: 3px solid var(--black);
  box-shadow: 6px 6px 0 var(--card-accent, var(--yellow));
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.subject-card:hover {
  transform: translate(-3px, -3px) rotate(-0.6deg);
  box-shadow: 10px 10px 0 var(--card-accent, var(--yellow));
  color: var(--black);
}

.card-math { --card-accent: var(--yellow); }
.card-politics { --card-accent: var(--red); }
.card-english { --card-accent: #35d0ff; }
.card-major { --card-accent: var(--green); }

/* 顶部胶带 */
.subject-card::before {
  content: "";
  position: absolute;
  top: -12px;
  left: 22px;
  width: 74px;
  height: 22px;
  background: var(--card-accent, var(--yellow));
  opacity: 0.9;
  transform: rotate(-4deg);
}

.subject-card .card-index {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: #6f6a58;
  margin-bottom: 12px;
}

.subject-card .card-icon {
  position: absolute;
  top: 18px;
  right: 18px;
  font-size: 26px;
  line-height: 1;
  background: var(--black);
  color: var(--card-accent, var(--yellow));
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: rotate(6deg);
}

.subject-card h3 {
  font-family: var(--font-display);
  font-size: 26px;
  letter-spacing: 0.02em;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.subject-card .subject-desc {
  font-size: 13px;
  color: #4c4838;
  line-height: 1.65;
  min-height: 64px;
}

.subject-card .subject-meta {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  background: var(--black);
  color: var(--paper);
  padding: 3px 9px;
  margin-top: 12px;
}

.subject-card .subject-more {
  display: block;
  margin-top: 10px;
  font-family: var(--font-display);
  font-size: 14px;
  letter-spacing: 0.1em;
  color: var(--black);
}

.subject-card .subject-more::after {
  content: " ▸▸";
  color: var(--red);
}

/* ---------- 宣言区：警示条纹包边 ---------- */
.manifesto {
  background: var(--yellow);
  color: var(--black);
  text-align: center;
  padding: 70px 24px;
  position: relative;
  z-index: 1;
}

.manifesto .m-quote {
  font-family: var(--font-display);
  font-size: clamp(26px, 4.2vw, 44px);
  line-height: 1.3;
  letter-spacing: 0.02em;
  max-width: 820px;
  margin: 0 auto 14px;
  text-transform: uppercase;
}

.manifesto .m-sub {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: rgba(13, 13, 15, 0.65);
}

/* ============================================================
   学科页
   ============================================================ */
.page-hero {
  position: relative;
  z-index: 1;
  padding: 140px 24px 30px;
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(
    to bottom,
    transparent 0,
    transparent 3px,
    rgba(0, 0, 0, 0.14) 3px,
    rgba(0, 0, 0, 0.14) 4px
  );
  opacity: 0.4;
}

.page-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: #fff;
  background: var(--red);
  padding: 5px 14px;
  transform: rotate(-1.2deg);
  margin-bottom: 16px;
}

.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(46px, 7vw, 84px);
  line-height: 1;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  text-shadow: 4px 4px 0 rgba(255, 217, 31, 0.85);
}

.page-hero p {
  color: rgba(242, 239, 230, 0.62);
  font-size: 15.5px;
  max-width: 620px;
  margin-top: 12px;
}

/* ---------- 分区 ---------- */
.unit-block {
  margin-bottom: 60px;
}

.unit-block:last-child {
  margin-bottom: 0;
}

.unit-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
}

.unit-head h2 {
  font-family: var(--font-display);
  font-size: 24px;
  letter-spacing: 0.03em;
  background: var(--yellow);
  color: var(--black);
  padding: 4px 14px;
  transform: rotate(-0.8deg);
}

.unit-head .unit-note {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: rgba(242, 239, 230, 0.5);
}

/* ---------- 章节卡片 ---------- */
.chapter-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.chapter-card {
  background: var(--black-2);
  border: 2px solid var(--line-d);
  padding: 16px 18px;
  transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}

.chapter-card:hover {
  transform: translate(-2px, -2px);
  border-color: var(--yellow);
  box-shadow: 4px 4px 0 rgba(255, 217, 31, 0.75);
}

.chapter-card .ch-num {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: rgba(242, 239, 230, 0.42);
}

.chapter-card h4 {
  font-size: 15.5px;
  font-weight: 600;
  margin: 5px 0 10px;
  line-height: 1.4;
}

.status-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 2px 9px;
  border: 1.5px solid;
}

.status-chip::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
}

.chip-empty {
  color: rgba(242, 239, 230, 0.45);
  border-color: rgba(242, 239, 230, 0.25);
}

.chip-empty::before {
  background: rgba(242, 239, 230, 0.4);
}

.chip-ready {
  color: var(--green);
  border-color: rgba(61, 220, 100, 0.5);
  background: rgba(61, 220, 100, 0.08);
}

.chip-ready::before {
  background: var(--green);
  box-shadow: 0 0 8px rgba(61, 220, 100, 0.9);
  animation: rec-blink 1.6s steps(1) infinite;
}

/* ---------- 空状态 ---------- */
.empty-state {
  text-align: center;
  padding: 48px 24px;
  border: 3px dashed rgba(242, 239, 230, 0.3);
  background: rgba(23, 23, 27, 0.6);
}

.empty-state .empty-icon {
  font-size: 36px;
  margin-bottom: 12px;
}

.empty-state h3 {
  font-family: var(--font-display);
  font-size: 19px;
  letter-spacing: 0.04em;
  color: var(--yellow);
  margin-bottom: 6px;
}

.empty-state p {
  font-size: 14px;
  color: rgba(242, 239, 230, 0.6);
}

/* ============================================================
   文章正文页
   ============================================================ */
.article-hero {
  position: relative;
  z-index: 1;
  padding: 140px 24px 36px;
  text-align: center;
}

.article-hero .article-tag {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: var(--yellow);
}

.article-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(30px, 4.8vw, 50px);
  line-height: 1.15;
  max-width: 820px;
  margin: 12px auto 0;
}

.article-hero .article-meta {
  margin-top: 16px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: rgba(242, 239, 230, 0.45);
}

.article-body {
  position: relative;
  z-index: 1;
  max-width: var(--text-width);
  margin: 0 auto;
  padding: 24px 24px 80px;
  font-size: 17px;
  line-height: 1.85;
  color: rgba(242, 239, 230, 0.82);
}

.article-body h2 {
  font-family: var(--font-display);
  font-size: 24px;
  letter-spacing: 0.03em;
  color: var(--paper);
  margin: 42px 0 14px;
  padding-left: 12px;
  border-left: 6px solid var(--yellow);
}

.article-body h3 {
  font-size: 19px;
  font-weight: 700;
  color: var(--paper);
  margin: 30px 0 10px;
}

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

.article-body ul,
.article-body ol {
  margin: 0 0 18px 22px;
}

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

.article-body blockquote {
  margin: 26px 0;
  padding: 14px 18px;
  background: rgba(255, 217, 31, 0.08);
  border-left: 5px solid var(--yellow);
  color: var(--paper);
}

.article-body pre {
  background: var(--black-2);
  border: 2px solid var(--line-d);
  padding: 18px 20px;
  overflow-x: auto;
  font-size: 14px;
  line-height: 1.6;
  margin: 20px 0;
}

.article-body code {
  font-family: var(--font-mono);
}

.article-body p code,
.article-body li code {
  background: rgba(255, 217, 31, 0.12);
  color: var(--yellow);
  padding: 2px 7px;
  font-size: 0.86em;
}

.back-link {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
}

/* ============================================================
   关于页
   ============================================================ */
.about-block {
  position: relative;
  z-index: 1;
  max-width: var(--text-width);
  margin: 0 auto;
  padding: 24px 24px 64px;
}

.about-block h2 {
  font-family: var(--font-display);
  font-size: 23px;
  letter-spacing: 0.03em;
  margin: 42px 0 12px;
  color: var(--yellow);
}

.about-block p {
  font-size: 16px;
  color: rgba(242, 239, 230, 0.78);
  line-height: 1.85;
}

.skill-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  list-style: none;
  margin-top: 10px;
}

.skill-chips li {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  color: var(--black);
  background: var(--yellow);
  padding: 5px 14px;
  transform: rotate(-1deg);
}

.skill-chips li:nth-child(even) {
  transform: rotate(1.2deg);
}

/* ============================================================
   页脚
   ============================================================ */
.site-footer {
  position: relative;
  z-index: 1;
  border-top: 3px solid var(--yellow);
  padding: 34px 24px;
  background: var(--black);
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  font-family: var(--font-mono);
  font-size: 12px;
  color: rgba(242, 239, 230, 0.45);
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  padding-bottom: 14px;
  border-bottom: 1px dashed var(--line-d);
  margin-bottom: 14px;
}

.footer-nav a {
  color: rgba(242, 239, 230, 0.75);
  font-weight: 600;
}

.footer-nav a:hover {
  color: var(--yellow);
}

.copyright {
  line-height: 1.9;
}

/* ---------- 渐入动画 ---------- */
.fade-in {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.65s ease, transform 0.65s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.fade-in.show {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   动效增强：开场幕 / 背景巨字 / 装饰贴纸 / 信号条 / 电视干扰 / 流动条纹 / 交错入场
   ============================================================ */

/* ---------- 开场加载幕 ---------- */
.intro {
  position: fixed;
  inset: 0;
  z-index: 3000;
  background: var(--black);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  animation: intro-out 0.5s ease 1s forwards;
}

.intro-logo {
  font-family: var(--font-display);
  font-size: clamp(28px, 7vw, 40px);
  letter-spacing: 0.06em;
  color: var(--yellow);
  text-shadow: 3px 3px 0 var(--red);
}

.intro-bar {
  width: min(220px, 60vw);
  height: 10px;
  border: 2px solid var(--paper);
  padding: 1px;
}

.intro-bar i {
  display: block;
  height: 100%;
  width: 0;
  background: repeating-linear-gradient(-45deg, var(--yellow) 0, var(--yellow) 6px, var(--yellow-deep) 6px, var(--yellow-deep) 12px);
  animation: intro-load 0.9s cubic-bezier(0.3, 0.8, 0.4, 1) forwards;
}

.intro-text {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.3em;
  color: rgba(242, 239, 230, 0.55);
  animation: rec-blink 0.8s steps(1) infinite;
}

@keyframes intro-load {
  to { width: 100%; }
}

@keyframes intro-out {
  to { opacity: 0; visibility: hidden; }
}

/* ---------- 背景巨型描边滚动字 ---------- */
.bg-word {
  position: absolute;
  bottom: -26px;
  left: 0;
  right: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.bg-word span {
  display: inline-block;
  white-space: nowrap;
  font-family: var(--font-display);
  font-size: clamp(100px, 16vw, 190px);
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(242, 239, 230, 0.08);
  animation: bg-word-move 36s linear infinite;
}

@keyframes bg-word-move {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---------- 装饰贴纸 ---------- */
.hero-deco {
  position: absolute;
  z-index: 2;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  padding: 5px 12px;
  pointer-events: none;
  animation: deco-float 4.5s ease-in-out infinite alternate;
}

.deco-1 {
  top: 17%;
  right: 5%;
  color: var(--yellow);
  border: 2px solid var(--yellow);
  transform: rotate(7deg);
}

.deco-2 {
  bottom: 16%;
  left: 3%;
  color: #fff;
  background: var(--red);
  transform: rotate(-5deg);
  animation-delay: -1.6s;
}

.deco-3 {
  top: 62%;
  right: 11%;
  color: rgba(242, 239, 230, 0.6);
  border: 2px dashed rgba(242, 239, 230, 0.35);
  transform: rotate(-3deg);
  animation-delay: -3s;
}

@keyframes deco-float {
  from { margin-top: 0; }
  to { margin-top: -14px; }
}

/* ---------- 信号均衡器 ---------- */
.eq {
  display: inline-flex;
  align-items: flex-end;
  gap: 2.5px;
  height: 13px;
  margin-left: 4px;
}

.eq i {
  width: 3px;
  height: 100%;
  background: var(--yellow);
  transform-origin: bottom;
  animation: eq-jump 0.85s ease-in-out infinite;
}

.eq i:nth-child(2) { animation-delay: 0.15s; }
.eq i:nth-child(3) { animation-delay: 0.3s; }
.eq i:nth-child(4) { animation-delay: 0.45s; }

@keyframes eq-jump {
  0%, 100% { transform: scaleY(0.25); }
  50% { transform: scaleY(1); }
}

/* ---------- 电视信号干扰 ---------- */
.tv.zap {
  animation: tv-zap 0.22s steps(2);
}

@keyframes tv-zap {
  0% { filter: none; transform: translateX(0); }
  50% { filter: brightness(1.7) contrast(1.5); transform: translateX(3px); }
  100% { filter: none; transform: translateX(0); }
}

/* ---------- 流动警示条纹 ---------- */
.stripes-anim {
  animation: stripes-slide 1.1s linear infinite;
}

@keyframes stripes-slide {
  to { background-position: 45.25px 0; }
}

/* ---------- 交错入场 ---------- */
.d1 { transition-delay: 0.05s; }
.d2 { transition-delay: 0.14s; }
.d3 { transition-delay: 0.23s; }
.d4 { transition-delay: 0.32s; }

/* ---------- 按钮故障悬停 ---------- */
.btn-primary {
  position: relative;
}

.btn-primary:active {
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0 var(--red);
}

/* ============================================================
   响应式
   ============================================================ */
@media (max-width: 1000px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .subject-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .hero {
    padding: 108px 18px 56px;
  }
  .section {
    padding: 56px 18px;
  }
  .subject-grid {
    grid-template-columns: 1fr;
  }
  .chapter-grid {
    grid-template-columns: 1fr;
  }
  .tv-units {
    gap: 4px;
  }
  .unit-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  .bg-word {
    bottom: -14px;
  }
}

/* ---------- 小屏手机（≤480px）重点适配 ---------- */
@media (max-width: 480px) {
  /* 导航：汉堡菜单模式 */
  .site-nav {
    height: 48px;
  }
  .nav-inner {
    padding: 0 14px;
  }
  .nav-logo {
    font-size: 15px;
  }
  .nav-logo .logo-mark {
    font-size: 10px;
    padding: 1px 5px;
    margin-right: 5px;
  }
  .nav-menu {
    display: none;
  }
  .nav-burger {
    display: flex;
  }
  .nav-icon-btn {
    width: 32px;
    height: 32px;
  }
  .nav-mega {
    display: none;
  }

  /* Hero */
  .hero {
    padding: 96px 16px 52px;
  }
  .hero-tag {
    font-size: 10px;
    padding: 4px 10px;
    margin-bottom: 16px;
  }
  .hero-title {
    font-size: clamp(40px, 11.6vw, 56px);
  }
  .hero-sub {
    font-size: 14.5px;
    margin: 16px 0 22px;
  }
  .hero-cta {
    gap: 10px;
  }
  .btn-primary,
  .btn-ghost {
    font-size: 15px;
    padding: 11px 22px;
  }
  .hero-deco {
    display: none;
  }

  /* 电视倒计时：小屏防溢出 */
  .tv {
    box-shadow: 6px 6px 0 rgba(255, 217, 31, 0.9);
  }
  .tv-screen {
    padding: 16px 12px 14px;
  }
  .tv-top {
    margin-bottom: 10px;
  }
  .tv-rec {
    font-size: 10.5px;
  }
  .tv-date {
    font-size: 10.5px;
    padding: 2px 7px;
  }
  .cd-num {
    font-size: clamp(28px, 8.6vw, 42px);
  }
  .tv-colon {
    font-size: clamp(18px, 5.6vw, 28px);
    transform: translateY(-3px);
  }
  .cd-unit-label {
    font-size: 10px;
  }
  .tv-quote {
    font-size: 12.5px;
    padding: 8px 10px;
  }

  /* 跑马灯与区块 */
  .marquee {
    padding: 8px 0;
  }
  .marquee span {
    font-size: 16px;
  }
  .section-head {
    margin-bottom: 30px;
  }
  .section-head h2 {
    font-size: clamp(26px, 7.6vw, 34px);
  }
  .section-head .head-tag {
    font-size: 11px;
  }

  /* 学科卡 */
  .subject-card {
    padding: 22px 18px 20px;
  }
  .subject-card h3 {
    font-size: 24px;
  }
  .subject-card .card-icon {
    width: 40px;
    height: 40px;
    font-size: 22px;
  }

  /* 宣言区 */
  .manifesto {
    padding: 52px 18px;
  }
  .manifesto .m-quote {
    font-size: clamp(21px, 6.6vw, 30px);
  }
  .manifesto .m-sub {
    font-size: 11px;
  }

  /* 学科页 */
  .page-hero {
    padding: 104px 16px 24px;
  }
  .page-tag {
    font-size: 11px;
  }
  .page-hero h1 {
    font-size: clamp(40px, 11.4vw, 58px);
  }
  .page-hero p {
    font-size: 14.5px;
  }
  .unit-head h2 {
    font-size: 20px;
  }
  .unit-head .unit-note {
    font-size: 11px;
  }

  /* 页脚：适配全面屏底部安全区 */
  .site-footer {
    padding-bottom: calc(28px + env(safe-area-inset-bottom, 0px));
  }
}

/* ---------- 超小屏（≤360px）兼容 ---------- */
@media (max-width: 360px) {
  .nav-logo {
    font-size: 14px;
  }
  .hero-title {
    font-size: 38px;
  }
  .cd-num {
    font-size: 26px;
  }
  .tv-colon {
    font-size: 17px;
  }
  .tv-screen {
    padding: 14px 9px 12px;
  }
  .marquee span {
    font-size: 14px;
  }
}

/* ---------- 减少动态偏好 ---------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ============================================================
   碎片粒子倒计时 · SHATTER PARTICLE COUNTDOWN
   ============================================================ */
.cd-stage {
  position: relative;
  height: clamp(140px, 24vw, 196px);
  margin-top: 4px;
  cursor: crosshair;
  touch-action: pan-y;
}

.cd-stage canvas {
  display: block;
}

/* 无 canvas / 减少动态偏好时的纯数字兜底 */
.cd-fallback {
  display: none;
  height: 100%;
  align-items: center;
  justify-content: center;
  gap: 14px;
}

.cd-fallback.show {
  display: flex;
}

.cd-fallback .cd-days-text {
  font-family: var(--font-display);
  font-size: clamp(88px, 15vw, 148px);
  line-height: 1;
  color: var(--yellow);
  text-shadow: 0 0 26px rgba(255, 217, 31, 0.45);
  font-variant-numeric: tabular-nums;
}

.cd-fallback .cd-fallback-unit {
  font-family: var(--font-display);
  font-size: 26px;
  color: var(--paper);
}

.cd-sub {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 10px;
  margin-top: 8px;
}

.cd-sub-unit {
  font-family: var(--font-display);
  font-size: 22px;
  letter-spacing: 0.3em;
  color: var(--paper);
}

.cd-sub-en {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  color: rgba(242, 239, 230, 0.5);
}

.cd-hint {
  margin-top: 8px;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  color: rgba(255, 217, 31, 0.6);
  animation: hint-pulse 2.6s ease-in-out infinite;
}

@keyframes hint-pulse {
  50% { opacity: 0.35; }
}

/* ============================================================
   打卡作战室 · SCHEDULE / CHECK-IN
   ============================================================ */
.sch-panel {
  position: relative;
  background: var(--black-2);
  border: 4px solid var(--paper);
  outline: 4px solid var(--black);
  box-shadow: 10px 10px 0 rgba(255, 217, 31, 0.9);
  padding: 20px 22px 18px;
  overflow: hidden;
}

/* 屏内扫描线 */
.sch-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(
    to bottom,
    transparent 0,
    transparent 2px,
    rgba(0, 0, 0, 0.22) 2px,
    rgba(0, 0, 0, 0.22) 3px
  );
}

.sch-panel-top {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}

.sch-now-badge {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  padding: 4px 10px;
  background: var(--paper);
  color: var(--black);
}

.sch-now-badge.t-study { background: var(--yellow); color: var(--black); }
.sch-now-badge.t-rest { background: var(--green); color: var(--black); }
.sch-now-badge.t-life { background: var(--paper); color: var(--black); }
.sch-now-badge.t-fun { background: var(--red); color: #fff; }
.sch-now-badge.t-idle { background: transparent; color: rgba(242, 239, 230, 0.6); border: 1px dashed rgba(242, 239, 230, 0.4); }

.sch-now-name {
  font-family: var(--font-display);
  font-size: clamp(20px, 3vw, 28px);
  letter-spacing: 0.03em;
  color: var(--paper);
}

.sch-now-range {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  color: var(--yellow);
  border: 2px solid var(--yellow);
  padding: 2px 10px;
}

/* 安静数字时钟：等宽大字，只有变化的位轻微淡入，冒号缓慢呼吸 */
.sch-clock {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  align-items: baseline;
  padding: 26px 0 14px;
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: clamp(52px, 8.5vw, 108px);
  line-height: 1;
  letter-spacing: 0.04em;
  color: var(--yellow);
  text-shadow: 0 0 24px rgba(255, 217, 31, 0.25);
  font-variant-numeric: tabular-nums;
  user-select: none;
}

.sch-clock .d {
  display: inline-block;
  min-width: 0.62em;
  text-align: center;
}

.sch-clock .d.shift {
  animation: sch-digit 0.22s ease;
}

@keyframes sch-digit {
  0% { opacity: 0.25; transform: translateY(3px); }
  100% { opacity: 1; transform: translateY(0); }
}

.sch-clock .c {
  color: var(--red);
  padding: 0 0.04em;
  animation: sch-colon 1s ease-in-out infinite;
}

@keyframes sch-colon {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

.sch-sub {
  text-align: center;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  color: rgba(242, 239, 230, 0.5);
  margin-top: 6px;
}

.sch-progress {
  position: relative;
  height: 14px;
  margin-top: 14px;
  border: 2px solid var(--paper);
  background: rgba(242, 239, 230, 0.08);
  z-index: 1;
}

.sch-progress-bar {
  height: 100%;
  width: 0%;
  background: repeating-linear-gradient(
    -45deg,
    var(--yellow) 0,
    var(--yellow) 8px,
    var(--yellow-deep) 8px,
    var(--yellow-deep) 16px
  );
  transition: width 0.5s linear;
}

.sch-progress-spark {
  position: absolute;
  top: 50%;
  left: 0%;
  width: 10px;
  height: 22px;
  margin: -11px 0 0 -5px;
  background: var(--red);
  transition: left 0.5s linear;
}

.sch-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  color: rgba(242, 239, 230, 0.45);
  margin-top: 8px;
  position: relative;
  z-index: 1;
}

/* ---------- 打卡区 ---------- */
.sch-checkin-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 20px;
}

.sch-checkin-card,
.sch-note-card {
  position: relative;
  background: var(--paper);
  color: var(--black);
  padding: 26px 24px;
  border: 3px solid var(--black);
  box-shadow: 8px 8px 0 var(--red);
}

.sch-note-card {
  box-shadow: 8px 8px 0 var(--yellow);
}

.ci-btn {
  display: block;
  width: 100%;
  font-family: var(--font-display);
  font-size: clamp(24px, 3.4vw, 34px);
  letter-spacing: 0.1em;
  color: var(--black);
  background: var(--yellow);
  border: 4px solid var(--black);
  padding: 22px 10px;
  cursor: pointer;
  box-shadow: 6px 6px 0 var(--black);
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.2s ease;
}

.ci-btn:hover {
  transform: translate(-2px, -2px);
  box-shadow: 9px 9px 0 var(--black);
}

.ci-btn:active {
  transform: translate(3px, 3px);
  box-shadow: 2px 2px 0 var(--black);
}

.ci-btn.done {
  background: var(--green);
  cursor: default;
}

/* 盖章动画 */
.ci-btn.stamp {
  animation: ci-stamp 0.55s cubic-bezier(0.2, 1.6, 0.4, 1);
}

@keyframes ci-stamp {
  0% { transform: scale(2.2) rotate(-14deg); opacity: 0.2; }
  60% { transform: scale(0.94) rotate(2deg); opacity: 1; }
  100% { transform: scale(1) rotate(0); }
}

.ci-stats {
  display: flex;
  gap: 16px;
  margin-top: 20px;
}

.ci-stat {
  flex: 1;
  text-align: center;
  border: 2px dashed rgba(13, 13, 15, 0.35);
  padding: 12px 8px;
}

.ci-stat b {
  display: block;
  font-family: var(--font-display);
  font-size: 42px;
  line-height: 1;
  color: var(--red);
}

.ci-stat span {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: rgba(13, 13, 15, 0.6);
}

.ci-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: rgba(13, 13, 15, 0.65);
  margin-bottom: 10px;
}

.sch-note-card textarea {
  width: 100%;
  resize: vertical;
  min-height: 96px;
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--black);
  background: #fff;
  border: 2px solid var(--black);
  padding: 10px 12px;
  outline: none;
}

.sch-note-card textarea:focus {
  border-color: var(--red);
  box-shadow: 4px 4px 0 rgba(255, 59, 48, 0.35);
}

.sch-note-card textarea:disabled {
  background: var(--paper-2);
  color: rgba(13, 13, 15, 0.4);
}

.ci-note-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
}

.ci-save {
  font-family: var(--font-display);
  font-size: 15px;
  letter-spacing: 0.08em;
  color: var(--paper);
  background: var(--black);
  border: 3px solid var(--black);
  padding: 9px 22px;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease;
}

.ci-save:hover:not(:disabled) {
  background: var(--red);
  transform: translate(-1px, -1px);
}

.ci-save:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.ci-hint {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: rgba(13, 13, 15, 0.55);
}

/* 历史记录 */
.ci-history {
  margin-top: 22px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.ci-empty {
  grid-column: 1 / -1;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: rgba(242, 239, 230, 0.5);
  border: 2px dashed var(--line-d);
  padding: 18px;
  text-align: center;
}

.ci-card {
  background: var(--black-2);
  border: 2px solid var(--line-d);
  border-left: 5px solid var(--yellow);
  padding: 14px 16px;
}

.ci-card-head {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.ci-date {
  font-family: var(--font-display);
  font-size: 17px;
  color: var(--yellow);
  letter-spacing: 0.04em;
}

.ci-time {
  font-family: var(--font-mono);
  font-size: 11px;
  color: rgba(242, 239, 230, 0.5);
}

.ci-del {
  margin-left: auto;
  background: none;
  border: none;
  color: rgba(242, 239, 230, 0.35);
  font-size: 13px;
  cursor: pointer;
  padding: 2px 6px;
}

.ci-del:hover { color: var(--red); }

.ci-note {
  margin-top: 8px;
  font-size: 13.5px;
  color: rgba(242, 239, 230, 0.85);
  white-space: pre-wrap;
  word-break: break-word;
}

.ci-note-empty { color: rgba(242, 239, 230, 0.35); }

/* ---------- 课表 ---------- */
.sch-tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 14px;
}

.sch-tabs button {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: rgba(242, 239, 230, 0.6);
  background: transparent;
  border: 2px solid var(--line-d);
  padding: 7px 18px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.sch-tabs button:hover { border-color: var(--paper); color: var(--paper); }

.sch-tabs button.active {
  background: var(--yellow);
  border-color: var(--yellow);
  color: var(--black);
}

.sch-table {
  width: 100%;
  border-collapse: collapse;
  border: 3px solid var(--paper);
  background: var(--black-2);
}

.sch-table th {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--black);
  background: var(--yellow);
  padding: 10px 12px;
  text-align: left;
}

.sch-table td {
  padding: 10px 12px;
  border-top: 1px solid var(--line-d);
  font-size: 14px;
  color: rgba(242, 239, 230, 0.88);
}

.sch-table .sch-time {
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--paper);
  white-space: nowrap;
}

/* 当前时段行高亮 */
.sch-table tr.now td {
  background: rgba(255, 217, 31, 0.14);
  color: var(--yellow);
}

.sch-table tr.now td:first-child::before {
  content: "▶";
  color: var(--red);
  margin-right: 6px;
  animation: rec-blink 1.1s steps(1) infinite;
}

.sch-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  padding: 2px 9px;
}

.sch-tag-study { background: var(--yellow); color: var(--black); }
.sch-tag-rest { background: var(--green); color: var(--black); }
.sch-tag-life { background: transparent; border: 1px solid rgba(242, 239, 230, 0.4); color: rgba(242, 239, 230, 0.7); }
.sch-tag-fun { background: var(--red); color: #fff; }

.sch-foot {
  margin-top: 14px;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: rgba(242, 239, 230, 0.45);
}

@media (max-width: 1000px) {
  .sch-checkin-grid { grid-template-columns: 1fr; }
  .ci-history { grid-template-columns: 1fr; }
  .sch-now-range { margin-left: 0; }
}


/* ============================================================
   NAV · Apple 式 Mega Menu（悬停展开）
   ============================================================ */
.nav-mega {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: rgba(16, 16, 19, 0.86);
  -webkit-backdrop-filter: saturate(1.6) blur(28px);
  backdrop-filter: saturate(1.6) blur(28px);
  border-bottom: 1px solid rgba(242, 239, 230, 0.1);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.45);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  pointer-events: none;
  transition: opacity 0.28s ease, transform 0.28s ease, visibility 0s linear 0.28s;
}

.nav-mega.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
  transition: opacity 0.28s ease, transform 0.28s ease;
}

.mega-inner {
  max-width: 980px;
  margin: 0 auto;
  padding: 30px 24px 34px;
}

/* 笔记库：四科卡片 */
.mega-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.mega-tile {
  padding: 16px 16px 14px;
  border-radius: 14px;
  border: 1px solid transparent;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.mega-tile:hover {
  background: rgba(242, 239, 230, 0.055);
}

.mega-tile.cur {
  border-color: rgba(255, 217, 31, 0.4);
  background: rgba(255, 217, 31, 0.05);
}

.mega-tile-head {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 12px;
}

.mega-icon {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 9px;
  font-family: var(--font-display);
  font-size: 18px;
  color: var(--black);
}

.ic-math { background: var(--yellow); }
.ic-politics { background: var(--red); color: #fff; }
.ic-english { background: var(--paper); }
.ic-major { background: var(--green); }

.mega-tile-txt {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.mega-name {
  font-weight: 700;
  font-size: 14.5px;
  color: var(--paper);
}

.mega-tagline {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  color: rgba(242, 239, 230, 0.42);
}

.mega-list {
  list-style: none;
  display: grid;
  gap: 1px;
}

.mega-list a {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  padding: 6px 9px;
  margin: 0 -9px;
  border-radius: 8px;
  font-size: 13px;
  color: rgba(242, 239, 230, 0.66);
  transition: color 0.15s ease, background 0.15s ease;
}

.mega-list a i {
  font-style: normal;
  font-family: var(--font-mono);
  font-size: 10px;
  color: rgba(242, 239, 230, 0.32);
  letter-spacing: 0.06em;
  flex-shrink: 0;
}

.mega-list a:hover {
  color: var(--paper);
  background: rgba(242, 239, 230, 0.06);
}

.mega-foot {
  display: flex;
  gap: 26px;
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px solid rgba(242, 239, 230, 0.08);
}

.mega-foot a {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  color: var(--yellow);
  opacity: 0.85;
  transition: opacity 0.15s ease;
}

.mega-foot a:hover {
  opacity: 1;
}

/* 作战资源：三列链接 */
.mega-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.mega-col h5 {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: rgba(242, 239, 230, 0.4);
  margin-bottom: 10px;
}

.mega-col .mega-list a {
  justify-content: flex-start;
  font-size: 13.5px;
  padding: 7px 9px;
  margin: 0 -9px;
}

/* 页面压暗层 */
.nav-dim {
  position: fixed;
  inset: 0;
  z-index: 99;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s ease, visibility 0s linear 0.3s;
}

body.nav-open .nav-dim {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition: opacity 0.3s ease;
}

/* ============================================================
   NAV · 移动端全屏菜单
   ============================================================ */
.mobile-menu {
  position: fixed;
  top: 48px;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 99;
  background: rgba(13, 13, 15, 0.96);
  -webkit-backdrop-filter: blur(24px);
  backdrop-filter: blur(24px);
  padding: 10px 28px 40px;
  overflow-y: auto;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0s linear 0.3s;
}

body.mobile-open .mobile-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.mm-list {
  list-style: none;
}

.mm-item {
  border-bottom: 1px solid rgba(242, 239, 230, 0.09);
}

.mm-item > a,
.mm-acc-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 17px 2px;
  font-size: 21px;
  font-weight: 600;
  color: var(--paper);
  background: none;
  border: none;
  text-align: left;
  cursor: pointer;
}

.mm-item > a:active {
  color: var(--yellow);
}

.mm-acc-btn .chev {
  width: 12px;
  height: 8px;
}

.mm-acc.open .mm-acc-btn .chev {
  transform: rotate(180deg);
}

.mm-sub {
  display: grid;
  gap: 2px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.32s ease;
}

.mm-acc.open .mm-sub {
  max-height: 420px;
  padding-bottom: 12px;
}

.mm-sub a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 10px;
  margin: 0 -10px;
  border-radius: 10px;
}

.mm-sub a:active {
  background: rgba(242, 239, 230, 0.07);
}

.mm-ic {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  font-family: var(--font-display);
  font-size: 16px;
  color: var(--black);
}

.mm-txt {
  display: flex;
  flex-direction: column;
}

.mm-txt b {
  font-size: 15.5px;
  font-weight: 600;
  color: var(--paper);
}

.mm-txt i {
  font-style: normal;
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: rgba(242, 239, 230, 0.4);
  letter-spacing: 0.08em;
  margin-top: 1px;
}

.mm-search-row {
  border-bottom: none;
}

.mm-search-row button {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 17px 2px;
  background: none;
  border: none;
  color: rgba(242, 239, 230, 0.55);
  font-size: 17px;
  cursor: pointer;
}

.mm-search-row svg {
  width: 17px;
  height: 17px;
}

/* ============================================================
   NAV · 站内搜索弹层
   ============================================================ */
.search-overlay {
  position: fixed;
  inset: 0;
  z-index: 1500;
  background: rgba(10, 10, 12, 0.66);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 13vh 20px 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.24s ease, visibility 0s linear 0.24s;
}

.search-overlay.open {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.24s ease;
}

.search-box {
  width: 100%;
  max-width: 560px;
  background: rgba(23, 23, 27, 0.94);
  border: 1px solid rgba(242, 239, 230, 0.13);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.55);
  transform: translateY(-8px) scale(0.99);
  transition: transform 0.24s ease;
}

.search-overlay.open .search-box {
  transform: translateY(0) scale(1);
}

.search-input-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 15px 18px;
  border-bottom: 1px solid rgba(242, 239, 230, 0.08);
}

.search-glyph {
  color: rgba(242, 239, 230, 0.45);
  display: inline-flex;
}

.search-glyph svg {
  width: 17px;
  height: 17px;
}

.search-input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  color: var(--paper);
  font-size: 15.5px;
  font-family: var(--font-body);
}

.search-input::placeholder {
  color: rgba(242, 239, 230, 0.3);
}

.search-close {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  color: rgba(242, 239, 230, 0.4);
  background: rgba(242, 239, 230, 0.07);
  border: 1px solid rgba(242, 239, 230, 0.12);
  border-radius: 6px;
  padding: 3px 8px;
  cursor: pointer;
  transition: color 0.15s ease, background 0.15s ease;
}

.search-close:hover {
  color: var(--paper);
  background: rgba(242, 239, 230, 0.12);
}

.search-results {
  max-height: 46vh;
  overflow-y: auto;
  padding: 8px;
}

.search-item {
  display: block;
  padding: 10px 12px;
  border-radius: 10px;
  cursor: pointer;
}

.search-item:hover,
.search-item.sel {
  background: rgba(255, 217, 31, 0.09);
}

.search-item .si-crumb {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  color: rgba(242, 239, 230, 0.38);
}

.search-item .si-title {
  font-size: 14px;
  color: var(--paper);
  margin-top: 2px;
}

.search-empty {
  padding: 26px 20px;
  text-align: center;
  color: rgba(242, 239, 230, 0.4);
  font-size: 13.5px;
}

.search-hint {
  padding: 10px 18px;
  border-top: 1px solid rgba(242, 239, 230, 0.08);
  display: flex;
  gap: 18px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  color: rgba(242, 239, 230, 0.32);
}

.search-hint b {
  font-weight: 600;
  color: rgba(242, 239, 230, 0.5);
}

body.no-scroll {
  overflow: hidden;
}

@media (max-width: 768px) {
  .nav-menu {
    display: none;
  }
  .nav-burger {
    display: flex;
  }
  .nav-mega {
    display: none;
  }
  .mobile-menu {
    top: 48px;
  }
  .site-nav {
    height: 48px;
  }
  html {
    scroll-padding-top: 70px;
  }
}

/* ============================================================
   资料库 · 文件下载卡片
   ============================================================ */
.file-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.file-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  background: var(--black-2);
  border: 2px solid var(--line-d);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.file-card:hover {
  border-color: var(--yellow);
  box-shadow: 4px 4px 0 rgba(255, 217, 31, 0.22);
  transform: translate(-2px, -2px);
}

.file-type {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--yellow);
  border: 1.5px solid var(--yellow);
  padding: 3px 7px;
  flex-shrink: 0;
}

.file-info {
  flex: 1;
  min-width: 0;
}

.file-info h4 {
  font-size: 16px;
  color: var(--paper);
  line-height: 1.3;
}

.file-info p {
  font-size: 12.5px;
  color: rgba(242, 239, 230, 0.5);
  margin-top: 3px;
}

.file-size {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: rgba(255, 217, 31, 0.75);
  margin-top: 7px;
}

.file-dl {
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--black);
  background: var(--yellow);
  border: 2px solid var(--yellow);
  padding: 9px 16px;
  flex-shrink: 0;
  white-space: nowrap;
  transition: background 0.18s ease, color 0.18s ease;
}

.file-dl:hover {
  background: transparent;
  color: var(--yellow);
}

@media (max-width: 640px) {
  .file-grid {
    grid-template-columns: 1fr;
  }
}

/* 加载幕 CSS 保底：即使 main.js 失效，最多 4.5s 后自动消失，绝不困住访客 */
.intro {
  animation: intro-vanish 0.4s ease 4.5s forwards;
}

@keyframes intro-vanish {
  to {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
  }
}

/* ============================================================
   联机大厅
   ============================================================ */
.mc-status-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  padding: 26px 28px;
  background: var(--black-2);
  border: 2px solid var(--green);
  box-shadow: 6px 6px 0 rgba(61, 220, 100, 0.25);
}

.mc-status-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.mc-dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  flex-shrink: 0;
  background: #555;
}

.mc-dot.on { background: var(--green); box-shadow: 0 0 14px rgba(61, 220, 100, 0.8); }
.mc-dot.off { background: var(--red); }
.mc-dot.na { background: #777; }

.mc-state {
  font-weight: 700;
  font-size: 17px;
  color: var(--paper);
}

.mc-sub {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: rgba(242, 239, 230, 0.45);
  margin-top: 4px;
}

.mc-addr-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.mc-addr {
  font-family: var(--font-mono);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--yellow);
  background: rgba(255, 217, 31, 0.07);
  border: 1.5px dashed rgba(255, 217, 31, 0.5);
  padding: 10px 18px;
}

.btn-copy {
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--black);
  background: var(--yellow);
  border: 2px solid var(--yellow);
  padding: 11px 18px;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease;
}

.btn-copy:hover {
  background: transparent;
  color: var(--yellow);
}

.mc-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.mc-step {
  display: flex;
  gap: 14px;
  padding: 18px;
  background: var(--black-2);
  border: 2px solid var(--line-d);
}

.mc-step b {
  font-family: var(--font-display);
  font-size: 26px;
  color: var(--yellow);
  line-height: 1;
  flex-shrink: 0;
}

.mc-step h4 {
  font-size: 15px;
  color: var(--paper);
  margin-bottom: 6px;
}

.mc-step p {
  font-size: 13px;
  line-height: 1.65;
  color: rgba(242, 239, 230, 0.55);
}

.mc-step p b {
  font-size: 13px;
  color: var(--yellow);
  font-family: var(--font-mono);
}

@media (max-width: 860px) {
  .mc-steps { grid-template-columns: 1fr; }
  .mc-status-card { flex-direction: column; align-items: flex-start; }
}

/* 联机大厅图标色 */
.ic-mc { background: var(--green); }
.ic-dst { background: #b07cff; color: var(--black); }
.mega-grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 860px) { .mega-grid-2 { grid-template-columns: 1fr; } }


/* 手机日历订阅板块 */
.ics-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.ics-card {
  padding: 20px 22px;
  background: var(--black-2);
  border: 2px solid var(--line-d);
}

.ics-card h4 {
  font-size: 16px;
  color: var(--yellow);
  margin-bottom: 12px;
}

.ics-card ol {
  padding-left: 18px;
  display: grid;
  gap: 8px;
}

.ics-card li {
  font-size: 13px;
  line-height: 1.65;
  color: rgba(242, 239, 230, 0.68);
}

.ics-card li b {
  color: var(--paper);
}

.ics-card p {
  font-size: 13px;
  color: rgba(242, 239, 230, 0.55);
}

.ics-note {
  margin-top: 10px;
  font-size: 11.5px !important;
  color: rgba(242, 239, 230, 0.38) !important;
}

@media (max-width: 860px) {
  .ics-grid { grid-template-columns: 1fr; }
}


/* ============ 30 讲笔记体系 ============ */
.lec-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.lec-desc {
  font-size: 12px;
  color: rgba(242, 239, 230, 0.5);
  line-height: 1.5;
}

.lnotes {
  margin-top: 4px;
  border-top: 1px dashed rgba(255, 217, 31, 0.35);
  padding-top: 8px;
}

.lnotes summary {
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--yellow);
  list-style: none;
  user-select: none;
}

.lnotes summary::-webkit-details-marker { display: none; }

.lnotes summary::before {
  content: "▸ ";
}

.lnotes[open] summary::before {
  content: "▾ ";
}

.lnotes[open] {
  padding-bottom: 6px;
}

/* 笔记正文样式 */
.nb h5 {
  font-size: 13px;
  font-weight: 700;
  color: var(--yellow);
  margin: 14px 0 6px;
  letter-spacing: 0.04em;
}

.nb h5:first-child { margin-top: 6px; }

.nb p, .nb li {
  font-size: 12.8px;
  line-height: 1.72;
  color: rgba(242, 239, 230, 0.78);
}

.nb ol, .nb ul {
  padding-left: 18px;
  display: grid;
  gap: 5px;
  margin-bottom: 6px;
}

.nb b { color: var(--paper); }

.nb sup, .nb sub { font-size: 9.5px; }

.nb-loc {
  font-size: 12.5px !important;
  color: rgba(242, 239, 230, 0.62) !important;
  border-left: 3px solid var(--yellow);
  padding-left: 10px;
  margin-bottom: 10px !important;
}

.nb-tip {
  font-size: 12.2px !important;
  background: rgba(255, 217, 31, 0.07);
  border: 1px dashed rgba(255, 217, 31, 0.4);
  padding: 8px 10px;
  margin-top: 10px !important;
  color: rgba(242, 239, 230, 0.72) !important;
}


.lec-link {
  display: inline-block;
  margin-top: 6px;
  font-family: ui-monospace, Consolas, monospace;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: #0d0d0f;
  background: #ffd91f;
  border: 2px solid #ffd91f;
  padding: 6px 12px;
  text-decoration: none;
  transition: background 0.18s, color 0.18s;
}

.lec-link:hover {
  background: transparent;
  color: #ffd91f;
}

.fml-head { font-family: ui-monospace, Consolas, monospace; font-size: 11.5px; font-weight: 700; letter-spacing: 0.12em; color: #3ddc64; margin-bottom: 8px; }
.fml-sep { border: none; border-top: 1px dashed rgba(242, 239, 230, 0.18); margin: 14px 0; }

/* ============================================================
   番茄专注 · TOMODORO EMBED
   ============================================================ */
.pomo-panel { padding: 14px; }

.pomo-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  position: relative;
  z-index: 1;
}

.pomo-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--red);
  animation: rec-blink 1.6s ease infinite;
  flex-shrink: 0;
}

.pomo-bar-title {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: rgba(242, 239, 230, 0.55);
}

.pomo-open {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--black);
  background: var(--yellow);
  border: 2px solid var(--yellow);
  padding: 6px 12px;
  text-decoration: none;
  transition: background 0.15s ease;
}

.pomo-open:hover {
  background: var(--yellow-deep);
  border-color: var(--yellow-deep);
}

.pomo-frame {
  position: relative;
  z-index: 1;
  border: 2px solid var(--line-d);
  background: #222233;
}

.pomo-frame iframe {
  display: block;
  width: 100%;
  height: clamp(520px, 72vh, 700px);
  border: 0;
}

.pomo-tips {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 16px;
}

.pomo-tip {
  background: var(--black-2);
  border: 2px solid var(--line-d);
  padding: 14px 16px;
}

.pomo-tip b {
  display: block;
  font-size: 14px;
  color: var(--yellow);
  margin-bottom: 6px;
}

.pomo-tip span {
  font-size: 12.5px;
  color: rgba(242, 239, 230, 0.65);
  line-height: 1.6;
}

@media (max-width: 1000px) {
  .pomo-tips { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .pomo-tips { grid-template-columns: 1fr; }
  .pomo-frame iframe { height: 78vh; }
}

/* ============================================================
   上岸排行榜 · RANKING
   ============================================================ */
.rk-mine-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
}

.rk-mine-card {
  background: var(--black-2);
  border: 2px solid var(--line-d);
  text-align: center;
  padding: 20px 10px;
}

.rk-mine-card b {
  display: block;
  font-family: var(--font-display);
  font-size: 38px;
  color: var(--yellow);
  line-height: 1.1;
}

.rk-mine-card span {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  color: rgba(242, 239, 230, 0.5);
}

.rk-mine-score {
  border-color: var(--yellow);
}

.rk-medal {
  font-size: 20px;
  white-space: nowrap;
}

.rk-num {
  font-family: var(--font-mono);
  font-weight: 700;
  color: rgba(242, 239, 230, 0.6);
}

.rk-name {
  font-weight: 700;
  color: var(--paper);
  white-space: nowrap;
}

.rk-badge {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  background: var(--red);
  color: #fff;
  padding: 2px 7px;
  margin-left: 6px;
  vertical-align: 1px;
}

.rk-badge-me {
  background: var(--green);
}

.rk-me td {
  background: rgba(255, 217, 31, 0.1);
}

.rk-score {
  font-family: var(--font-display);
  font-size: 18px;
  color: var(--yellow);
}

.rk-act {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  background: transparent;
  border: 1.5px solid rgba(242, 239, 230, 0.35);
  color: var(--paper);
  padding: 4px 10px;
  cursor: pointer;
  margin-right: 6px;
}

.rk-act:hover {
  border-color: var(--yellow);
  color: var(--yellow);
}

.rk-act-danger {
  border-color: rgba(255, 59, 48, 0.5);
  color: #ff6b64;
}

.rk-act-danger:hover {
  border-color: var(--red);
  color: var(--red);
}

@media (max-width: 900px) {
  .rk-mine-grid { grid-template-columns: repeat(2, 1fr); }
  .rank-table td, .rank-table th { padding: 8px 6px; font-size: 12.5px; }
}

/* ============================================================
   首页站点导航卡片 · DIRECTORY CARDS
   ============================================================ */
.nc-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.nc-card {
  position: relative;
  display: block;
  background: var(--black-2);
  border: 3px solid var(--paper);
  box-shadow: 7px 7px 0 rgba(255, 217, 31, 0.85);
  padding: 22px 20px 18px;
  overflow: hidden;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.nc-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: -80%;
  width: 50%;
  height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255, 217, 31, 0.16), transparent);
  transform: skewX(-18deg);
  transition: left 0.45s ease;
}

.nc-card:hover::before { left: 130%; }

.nc-card:hover {
  transform: translateY(-6px) rotate(-0.4deg);
  border-color: var(--yellow);
  box-shadow: 10px 12px 0 rgba(255, 59, 48, 0.75);
}

.nc-icon {
  width: 74px;
  height: 74px;
  margin-bottom: 14px;
  animation: nc-float 3.6s ease-in-out infinite;
}

.nc-card:hover .nc-icon { animation: nc-wiggle 0.5s ease-in-out; }

.nc-icon svg { width: 100%; height: 100%; }

@keyframes nc-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

@keyframes nc-wiggle {
  0%, 100% { transform: rotate(-5deg) scale(1.1); }
  50% { transform: rotate(5deg) scale(1.1); }
}

.nc-card h3 {
  font-family: var(--font-display);
  font-size: 21px;
  color: var(--yellow);
  letter-spacing: 0.03em;
  margin-bottom: 6px;
}

.nc-card p {
  font-size: 12.5px;
  color: rgba(242, 239, 230, 0.6);
  margin-bottom: 12px;
}

.nc-arrow {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--paper);
  opacity: 0.55;
  transition: opacity 0.15s, transform 0.15s;
}

.nc-card:hover .nc-arrow { opacity: 1; color: var(--yellow); transform: translateX(5px); }

@media (max-width: 980px) {
  .nc-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 620px) {
  .nc-grid { grid-template-columns: 1fr; }
}
