/* ============================================================
   KidsFan Design System · v5  —  「Spark」
   骨架承自 v4 Trust Engine（内容墙实力叙事 × 夜区 × 多彩动效），
   视觉对齐 2026 品牌主 VI：主蓝 / 星光黄 / 活力橙 · K星 · Spark · Nunito 圆体。
   Class API 向后兼容 —— 全站 9 页 + 13 文章自动换装。
   ============================================================ */
@font-face {
  font-family: "Nunito"; font-style: normal; font-weight: 800; font-display: swap;
  src: url("../assets/fonts/nunito-800.woff2") format("woff2");
}
@font-face {
  font-family: "Nunito"; font-style: normal; font-weight: 900; font-display: swap;
  src: url("../assets/fonts/nunito-900.woff2") format("woff2");
}

:root {
  /* ground */
  --paper: #F7FAFF;          /* 晴空纸 */
  --cream: #EAF2FF;          /* 深一档 */
  --white: #FFFFFF;
  --ink: #14264A;
  --ink-soft: #52648C;
  --line: #D9E4F5;

  /* brand & 多彩 —— 2026 主 VI：主蓝/星光黄/活力橙/深海蓝/薄荷绿 */
  --red: #2D8CFF; --red-deep: #1668D9; --red-soft: #E4F0FF;
  --gold: #FFC52C; --gold-deep: #D0940A; --gold-soft: #FFF3D0;
  --green: #4CD4A0; --blue: #2D8CFF; --coral: #FF6A4D;

  /* 夜区（深海蓝） */
  --night: #0F2350; --night2: #17357A; --night-soft: #8FA8D9; --night-gold: #FFC52C;

  /* type */
  --font-display: "Nunito", "Arial Rounded MT Bold", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-body: -apple-system, "PingFang SC", "Hiragino Sans GB", "Segoe UI", "Microsoft YaHei", sans-serif;
  --font-mono: ui-monospace, "SF Mono", Menlo, monospace;

  --r-sm: 12px; --r-lg: 22px; --r-pill: 999px; --r-badge: 22%;
  --shadow-1: 0 3px 14px rgba(20,38,74,.06);
  --shadow-2: 0 18px 50px rgba(20,38,74,.14);
  --wrap: 1220px;

  --huiwen: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='34' height='28' viewBox='0 0 34 28'%3E%3Cpath d='M17 6l2.6 5.4L25 14l-5.4 2.6L17 22l-2.6-5.4L9 14l5.4-2.6z' fill='%23FFC52C' opacity='.75'/%3E%3Ccircle cx='30' cy='9' r='1.6' fill='%232D8CFF' opacity='.55'/%3E%3Ccircle cx='4' cy='20' r='1.6' fill='%23FF6A4D' opacity='.5'/%3E%3C/svg%3E");
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--font-body); line-height: 1.78; font-size: 16px;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--red); color: #fff; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 26px; }

/* ---------- typography ---------- */
h1, h2, h3 { font-family: var(--font-display); letter-spacing: .01em; text-wrap: balance; margin: 0; }
.eyebrow {
  font-size: 12.5px; letter-spacing: .3em; text-transform: uppercase;
  color: var(--gold-deep); font-weight: 700; margin-bottom: 12px;
  display: inline-flex; align-items: center; gap: 10px;
}
.eyebrow::before, .eyebrow::after { content: "✦"; font-size: 9px; color: var(--red); }
.sec-title { font-size: clamp(30px, 4.4vw, 50px); font-weight: 900; line-height: 1.18; }
.sec-sub { color: var(--ink-soft); max-width: 46em; margin: 14px 0 0; }
.num { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }

/* ---------- sections ---------- */
section { padding: 90px 0; position: relative; }
section.tight { padding: 54px 0; }
section.cream { background: var(--cream); }
section.dark {
  background: var(--night); color: #EAF2FF;
  border-radius: var(--r-lg); margin-left: 16px; margin-right: 16px;
}
section.dark .sec-sub { color: var(--night-soft); }
section.dark .eyebrow { color: var(--night-gold); }
section.dark .eyebrow::before, section.dark .eyebrow::after { color: var(--night-gold); }
.sec-head { margin-bottom: 44px; }
.sec-head.center { text-align: center; }
.sec-head.center .sec-sub { margin-left: auto; margin-right: auto; }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 60;
  background: rgba(246,241,230,.92); backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(20,38,74,.06);
}
.nav-in { display: flex; align-items: center; gap: 22px; height: 76px; }
.nav-logo { display: flex; align-items: center; gap: 12px; margin-right: auto; }
.nav-logo img { width: 44px; height: 44px; border-radius: var(--r-badge); box-shadow: var(--shadow-1); }
.nav-logo .nm { font-family: var(--font-display); font-weight: 900; font-size: 20px; line-height: 1.1; }
.nav-logo .tg { font-size: 9.5px; letter-spacing: .22em; text-transform: uppercase; color: var(--gold-deep); font-weight: 700; }
.nav-links { display: flex; gap: 2px; }
.nav-links a {
  padding: 8px 13px; font-size: 14.5px; font-weight: 600; color: var(--ink-soft);
  border-radius: var(--r-pill); transition: all .18s;
}
.nav-links a:hover { color: var(--ink); background: rgba(20,38,74,.05); }
.nav-links a.on { color: var(--red); background: var(--red-soft); }
.nav-cta {
  background: var(--red); color: #FFFFFF !important; padding: 11px 22px !important;
  border-radius: var(--r-pill); font-weight: 700 !important; box-shadow: var(--shadow-1); transition: .2s;
}
.nav-cta:hover { background: var(--red-deep) !important; transform: scale(1.04); }
.nav-burger { display: none; background: none; border: 0; font-size: 26px; color: var(--ink); cursor: pointer; }

/* ---------- buttons & chips ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 32px; border-radius: var(--r-pill); font-weight: 800; font-size: 15.5px;
  transition: all .22s; border: 2px solid transparent; cursor: pointer;
}
.btn.primary { background: var(--red); color: #FFFFFF; box-shadow: var(--shadow-2); }
.btn.primary:hover { background: var(--red-deep); transform: translateY(-3px); }
.btn.ghost { border-color: var(--ink); color: var(--ink); }
.btn.ghost:hover { background: var(--ink); color: var(--paper); }
section.dark .btn.primary { background: var(--night-gold); color: #14264A; box-shadow: 0 10px 40px rgba(255,197,44,.3); }
section.dark .btn.primary:hover { background: #FFDA6B; }
section.dark .btn.ghost { border-color: rgba(234,242,255,.45); color: #EAF2FF; }
section.dark .btn.ghost:hover { border-color: var(--night-gold); color: var(--night-gold); background: transparent; }
.chip {
  display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .07em;
  background: var(--gold-soft); color: var(--gold-deep);
  border: 1px solid rgba(185,138,47,.3); padding: 4px 13px; border-radius: var(--r-pill);
}
.chip.red { background: var(--red-soft); color: var(--red-deep); border-color: rgba(194,42,32,.25); }
.chip.solid { background: var(--red); color: #FFFFFF; border-color: var(--red); }

/* 印章 (C) */
.seal-stamp {
  display: inline-flex; align-items: center; justify-content: center;
  width: 56px; height: 56px; background: var(--red); color: #fff;
  font-family: var(--font-display); font-weight: 900; font-size: 18px; line-height: 1.15;
  writing-mode: vertical-rl; letter-spacing: .08em;
  border-radius: 50%; box-shadow: inset 0 0 0 2.5px rgba(255,255,255,.9), 0 6px 18px rgba(45,140,255,.35);
  transform: rotate(-6deg);
}

/* ---------- hero（子页页头兼容 .hero） ---------- */
.hero { position: relative; overflow: hidden; padding: 96px 0 84px; }
.hero .bgword {
  position: absolute; right: 0; top: 6%; font-family: var(--font-display);
  font-size: 190px; font-weight: 900; color: rgba(229,55,44,.05);
  pointer-events: none; user-select: none; line-height: 1; writing-mode: vertical-rl;
}
.hero-grid { display: grid; grid-template-columns: 7fr 5fr; gap: 54px; align-items: center; }
.hero h1 { font-size: clamp(38px, 5.6vw, 62px); font-weight: 900; line-height: 1.12; }
.hero h1 .accent { color: var(--red); }
.hero .mission {
  display: flex; gap: 14px; align-items: flex-start; margin-top: 24px;
  border-left: 3px solid var(--gold); padding-left: 16px;
  color: var(--ink-soft); font-size: 15px;
}
.hero-art { position: relative; }
.hero-art .frame {
  border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-2);
  border: 1px solid rgba(20,38,74,.08); background: var(--white);
}
.hero-art .seal {
  position: absolute; z-index: 2; right: -14px; top: -14px; width: 76px; height: 76px;
  border-radius: var(--r-badge); box-shadow: var(--shadow-2); transform: rotate(6deg);
}

/* ---------- 首页信任 hero（E） ---------- */
.hero-wall { position: relative; min-height: 96vh; display: flex; align-items: center; overflow: hidden; background: var(--night); padding: 0; }
.wallbg { position: absolute; inset: -8% -4%; display: flex; gap: 20px; transform: rotate(-4deg); opacity: .5; }
.wallbg .col { flex: 1; display: flex; flex-direction: column; gap: 20px; animation: flow 46s linear infinite; }
.wallbg .col.c2 { animation-duration: 62s; animation-direction: reverse; }
.wallbg .col.c3 { animation-duration: 54s; }
.wallbg .col.c4 { animation-duration: 70s; animation-direction: reverse; }
@keyframes flow { from { transform: translateY(0); } to { transform: translateY(-50%); } }
.wallbg img { border-radius: 14px; aspect-ratio: 3/4; object-fit: cover; border: 1px solid rgba(255,255,255,.1); }
.hero-wall .veil { position: absolute; inset: 0; background: radial-gradient(70% 90% at 50% 46%, rgba(21,16,33,.32) 0%, rgba(21,16,33,.86) 74%, var(--night) 100%); }
.hero-wall .hero-in { position: relative; z-index: 2; width: 100%; text-align: center; color: #EDF4FF; padding: 110px 0; }
.kicker-row { display: flex; justify-content: center; }
.kicker { display: inline-block; white-space: nowrap; line-height: 1.5; border: 1px solid rgba(255,197,44,.45); color: var(--night-gold); border-radius: var(--r-pill); padding: 9px 22px; font-size: 12.5px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
@media (max-width: 720px) { .kicker { white-space: normal; max-width: 92%; text-align: center; } }
.hero-wall h1 { font-size: clamp(44px, 7.2vw, 96px); font-weight: 900; line-height: 1.05; margin-top: 26px; }
.hero-wall h1 .g { color: var(--night-gold); }
.hero-wall p.lede { max-width: 38em; margin: 24px auto 0; color: #B9C9E4; font-size: 17px; }
.hero-wall .btns { display: flex; gap: 14px; justify-content: center; margin-top: 38px; flex-wrap: wrap; }
.btn.gold { background: var(--night-gold); color: #14264A; box-shadow: 0 10px 44px rgba(255,197,44,.35); }
.btn.gold:hover { transform: translateY(-3px); }
.btn.ghostw { border: 2px solid rgba(240,246,255,.45); color: #EDF4FF; }
.btn.ghostw:hover { border-color: var(--night-gold); color: var(--night-gold); }
.hero-wall .proof { display: flex; gap: 34px; justify-content: center; margin-top: 58px; flex-wrap: wrap; }
.hero-wall .pf b { display: block; font-family: var(--font-display); font-size: 30px; color: var(--night-gold); }
.hero-wall .pf span { font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--night-soft); }

/* ---------- 平台信任条 + 胶囊 rail ---------- */
.trust { background: var(--white); border-bottom: 1px solid rgba(20,38,74,.06); padding: 26px 0; overflow: hidden; }
.trust .lbl { text-align: center; font-size: 11px; letter-spacing: .3em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 18px; }
.rail { display: flex; gap: 14px; width: max-content; animation: roll 40s linear infinite; margin-bottom: 14px; }
.rail.rev { animation-direction: reverse; animation-duration: 52s; }
.rail:hover { animation-play-state: paused; }
@keyframes roll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.pill { display: flex; align-items: center; gap: 10px; background: var(--cream); border: 1.5px solid rgba(20,38,74,.08); border-radius: var(--r-pill); padding: 10px 22px; font-weight: 700; font-size: 13.5px; white-space: nowrap; }
.pill img { height: 24px; max-width: 70px; object-fit: contain; }

/* ---------- 内容墙 (E) ---------- */
.wallgrid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; margin-top: 44px; grid-auto-flow: dense; }
.tile { position: relative; border-radius: var(--r-sm); overflow: hidden; aspect-ratio: 3/4; background: #0E2148; cursor: pointer; }
.tile img { width: 100%; height: 100%; object-fit: cover; transition: .4s; }
.tile:hover img { transform: scale(1.08); }
.tile .cap { position: absolute; inset: auto 0 0 0; padding: 26px 10px 9px; background: linear-gradient(transparent, rgba(7,18,42,.9)); color: #EDF4FF; font-weight: 700; font-size: 12px; font-family: var(--font-display); opacity: 0; transition: .25s; }
.tile:hover .cap { opacity: 1; }
.tile .cap small { display: block; font-weight: 400; opacity: .72; font-size: 10px; font-family: var(--font-body); }
.tile.wide { grid-column: span 2; aspect-ratio: 14/9; }
.tile.wide .cap { opacity: 1; }
.ip-tile.wide { grid-column: span 2; aspect-ratio: 14/9; }
.tile.maizen { grid-column: span 2; grid-row: span 2; border: 2px solid var(--gold); box-shadow: 0 0 0 4px rgba(242,176,47,.15), var(--shadow-2); }
.tile.maizen .cap { opacity: 1; font-size: 15px; padding: 40px 14px 12px; }
.tagx { position: absolute; top: 12px; left: 12px; background: var(--gold); color: #14264A; font-size: 10.5px; font-weight: 900; letter-spacing: .1em; border-radius: 6px; padding: 4px 11px; text-transform: uppercase; z-index: 2; }

/* IP tile 旧 API 兼容（library 等页在用） */
.ip-tile { position: relative; border-radius: var(--r-sm); overflow: hidden; aspect-ratio: 3/4; background: #0E2148; border: 1px solid var(--line); }
.ip-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s; }
.ip-tile:hover img { transform: scale(1.07); }
.ip-tile .cap { position: absolute; inset: auto 0 0 0; padding: 30px 13px 11px; background: linear-gradient(transparent, rgba(7,18,42,.9)); color: #EDF4FF; font-weight: 700; font-size: 13.5px; font-family: var(--font-display); }
.ip-tile .cap small { display: block; font-weight: 400; opacity: .72; font-size: 11px; font-family: var(--font-body); }
.ip-tile:hover .cap { color: var(--gold); }

/* ---------- 影院长廊 (B · library 用) ---------- */
.shelf { display: flex; align-items: stretch; gap: 18px; overflow-x: auto; padding: 38px 26px 20px; scroll-snap-type: x mandatory; scrollbar-width: none; }
.shelf::-webkit-scrollbar { display: none; }
.poster { flex: 0 0 auto; height: 360px; aspect-ratio: 3/4; scroll-snap-align: start; border-radius: 16px; overflow: hidden; position: relative; border: 1px solid rgba(158,146,196,.22); transition: .28s; background: var(--night2); }
@media (max-width: 720px) { .poster { height: 280px; } }
.poster img { width: 100%; height: 100%; object-fit: cover; transition: .4s; }
.poster:hover { transform: translateY(-10px) scale(1.02); border-color: var(--night-gold); box-shadow: 0 24px 60px rgba(0,0,0,.5); }
.poster:hover img { transform: scale(1.08); }
.poster .cap { position: absolute; inset: auto 0 0 0; padding: 34px 14px 12px; background: linear-gradient(transparent, rgba(6,14,36,.92)); font-weight: 700; font-size: 14px; color: #EAF2FF; }
.poster .cap small { display: block; font-weight: 400; color: var(--night-soft); font-size: 11px; }
.poster.feat { border: 2px solid var(--night-gold); box-shadow: 0 0 44px rgba(255,197,44,.28); }

/* ---------- stats（旧 API .stats/.stat 兼容，红带风格） ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { text-align: center; padding: 10px 12px; position: relative; }
.stat + .stat::before { content: ""; position: absolute; left: 0; top: 18%; height: 64%; width: 1px; background: rgba(255,255,255,.18); }
.stat .v { font-family: var(--font-display); font-size: clamp(32px, 3.8vw, 50px); font-weight: 900; color: var(--night-gold); }
.stat .l { font-size: 12.5px; letter-spacing: .18em; text-transform: uppercase; color: var(--night-soft); margin-top: 6px; }

/* 四色数字卡 (A/E) */
.numgrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.ncard { border-radius: var(--r-lg); padding: 32px 26px 28px; color: #fff; min-height: 190px; display: flex; flex-direction: column; justify-content: space-between; transition: .25s; }
.ncard:hover { transform: translateY(-8px) rotate(-1deg); }
.ncard .big { font-family: var(--font-display); font-size: clamp(36px, 4.2vw, 54px); font-weight: 900; line-height: 1; }
.ncard .lbl { font-size: 13.5px; opacity: .93; font-weight: 600; }
.nc1 { background: var(--blue); } .nc2 { background: var(--green); } .nc3 { background: var(--coral); } .nc4 { background: var(--ink); } .nc4 .big { color: var(--gold); }

/* ---------- cards ---------- */
.grid { display: grid; gap: 22px; }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }
.card { background: var(--white); border: 1px solid rgba(20,38,74,.08); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-1); transition: all .25s; }
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-2); }
.card .pad { padding: 22px 24px 24px; }
.card h3 { font-size: 20px; margin-bottom: 8px; }
.card p { margin: 0; font-size: 14.5px; color: var(--ink-soft); }
section.dark .card { background: var(--night2); border-color: rgba(158,146,196,.2); }
section.dark .card p { color: var(--night-soft); }

/* creator card */
.creator { display: flex; flex-direction: column; }
.creator .ava { aspect-ratio: 4/3; overflow: hidden; }
.creator .ava img { width: 100%; height: 100%; object-fit: cover; }
.creator .pad { display: flex; flex-direction: column; gap: 8px; flex: 1; }
.creator .meta { display: flex; justify-content: space-between; align-items: center; font-size: 12.5px; color: var(--ink-soft); }
.creator .subs { color: var(--red-deep); font-weight: 800; }
section.dark .creator .subs { color: var(--coral); }
.xchip { display: inline-block; background: rgba(242,176,47,.15); border: 1px solid rgba(185,138,47,.4); color: var(--gold-deep); font-size: 11px; font-weight: 800; border-radius: var(--r-pill); padding: 3px 12px; letter-spacing: .08em; text-transform: uppercase; }

/* platform tile（旧 .pf 网格兼容） */
.pf { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-sm); height: 92px; display: flex; flex-direction: column; gap: 7px; align-items: center; justify-content: center; transition: .2s; }
.pf:hover { transform: translateY(-4px); box-shadow: var(--shadow-1); }
.pf img { max-height: 34px; max-width: 72%; object-fit: contain; transition: transform .25s; }
.pf:hover img { transform: scale(1.06); }
.pf span { font-size: 9.5px; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-soft); }

/* ---------- 口碑 (E) ---------- */
.qgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.q { background: var(--cream); border: 1px solid rgba(20,38,74,.07); border-radius: var(--r-lg); padding: 26px 26px 22px; display: flex; flex-direction: column; }
.q .txt { font-size: 14.5px; color: #4A4237; flex: 1; }
.q.feat { grid-column: 1 / -1; flex-direction: row; align-items: center; gap: 26px; background: var(--white); border: 2px solid var(--gold); box-shadow: 0 0 0 4px rgba(242,176,47,.12), var(--shadow-2); }
.q.feat .qava { width: 84px; height: 84px; }
.q.feat .txt { font-size: 17px; }
.q.feat .txt::before { margin-top: 0; }
@media (max-width: 720px) { .q.feat { flex-direction: column; align-items: flex-start; } }
.q .txt::before { content: "“"; font-family: var(--font-display); font-size: 42px; line-height: 0; color: var(--gold); display: block; margin: 14px 0 2px; }
.q .who { margin-top: 18px; padding-top: 14px; border-top: 1px solid rgba(20,38,74,.1); font-weight: 800; font-size: 13.5px; display: flex; align-items: center; gap: 12px; }
.q .qava { width: 46px; height: 46px; border-radius: 50%; flex-shrink: 0; box-shadow: var(--shadow-1); }
img.qava.photo { object-fit: cover; border: 2px solid var(--white); }
.qava.lt { display: inline-flex; align-items: center; justify-content: center; font-family: var(--font-display); font-weight: 900; font-size: 20px; color: #F4F9FF; background: var(--c, var(--red)); border: 2px solid var(--white); }
.q .who small { display: block; font-weight: 600; color: var(--ink-soft); font-size: 12px; margin-top: 2px; }

/* ---------- timeline ---------- */
.timeline { border-left: 2px solid var(--gold); padding-left: 30px; display: grid; gap: 26px; }
.tl { position: relative; }
.tl::before { content: ""; position: absolute; left: -38px; top: 7px; width: 13px; height: 13px; background: var(--red); transform: rotate(45deg); box-shadow: 0 0 0 3px var(--paper), 0 0 0 4px var(--gold); }
.tl .yr { font-family: var(--font-display); font-weight: 900; font-size: 22px; color: var(--red-deep); }
.tl p { margin: 4px 0 0; color: var(--ink-soft); font-size: 14.5px; }

/* ---------- FAQ ---------- */
.faq details { background: var(--white); border: 1px solid rgba(20,38,74,.08); border-radius: var(--r-sm); padding: 18px 22px; margin-bottom: 12px; }
.faq summary { cursor: pointer; font-weight: 700; font-size: 15.5px; list-style: none; position: relative; padding-right: 30px; font-family: var(--font-display); }
.faq summary::after { content: "＋"; position: absolute; right: 2px; top: -1px; font-size: 18px; color: var(--red); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--ink-soft); font-size: 14.5px; margin: 12px 0 0; }

/* ---------- footer（金色大页脚 + 回纹，旧结构类兼容） ---------- */
footer { background: var(--gold); color: var(--ink); padding: 0 0 40px; border-radius: var(--r-lg) var(--r-lg) 0 0; margin-top: 24px; }
footer::before { content: ""; display: block; height: 30px; margin: 30px 0 48px; background-image: var(--huiwen); background-repeat: repeat-x; background-position: center; opacity: .5; }
.foot-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.4fr; gap: 40px; margin-bottom: 40px; }
footer h4 { color: var(--ink); font-family: var(--font-display); font-size: 13px; letter-spacing: .22em; text-transform: uppercase; margin: 0 0 14px; }
footer a { display: block; padding: 4px 0; font-weight: 600; color: rgba(20,38,74,.75); }
footer a:hover { color: var(--red-deep); }
.foot-brand img { width: 46px; height: 46px; border-radius: var(--r-badge); margin-bottom: 12px; }
.foot-brand p { color: rgba(20,38,74,.72); }
.foot-base { border-top: 1.5px solid rgba(20,38,74,.25); padding-top: 20px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 12.5px; color: rgba(20,38,74,.72); }

/* ---------- article ---------- */
.article { max-width: 780px; margin: 0 auto; padding: 64px 24px 90px; }
.article h1 { font-size: clamp(26px, 3.6vw, 38px); font-weight: 900; line-height: 1.4; margin-bottom: 18px; }
.article .art-meta { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; color: var(--ink-soft); font-size: 13px; margin-bottom: 32px; padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.article h2 { font-size: 24px; margin: 40px 0 14px; padding-left: 14px; border-left: 4px solid var(--red); }
.article h3 { font-size: 18px; margin: 28px 0 10px; color: var(--red-deep); }
.article p, .article li { font-size: 15.5px; color: #3E362C; }
.article strong { color: var(--ink); }
.article hr { border: 0; height: 22px; background-image: var(--huiwen); background-repeat: repeat-x; background-position: center; opacity: .4; margin: 36px 0; }
.article blockquote { margin: 20px 0; padding: 14px 20px; background: var(--gold-soft); border-left: 3px solid var(--gold); border-radius: 0 var(--r-sm) var(--r-sm) 0; font-size: 14.5px; }
.article .backline { margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--line); }

/* news rows */
.news-row { display: grid; grid-template-columns: 240px 1fr; overflow: hidden; background: var(--white); border: 1px solid rgba(20,38,74,.08); border-radius: var(--r-lg); box-shadow: var(--shadow-1); transition: all .2s; margin-bottom: 18px; }
.news-row:hover { transform: translateY(-3px); box-shadow: var(--shadow-2); }
.news-row .th { overflow: hidden; }
.news-row .th img { width: 100%; height: 100%; object-fit: cover; min-height: 150px; }
.news-row .bd { padding: 20px 24px; display: flex; flex-direction: column; gap: 8px; }
.news-row .bd h3 { font-size: 17.5px; line-height: 1.5; }
.news-row .bd p { margin: 0; font-size: 13.5px; color: var(--ink-soft); }
.news-row .rowmeta { display: flex; gap: 10px; align-items: center; font-size: 12px; color: var(--ink-soft); }

/* ---------- 动效 ---------- */
.rv { opacity: 0; transform: translateY(30px); transition: opacity .7s ease, transform .7s ease; }
.rv.in { opacity: 1; transform: none; }
.bob { animation: bob 5.5s ease-in-out infinite; }
@keyframes bob { 0%,100% { margin-top: 0; } 50% { margin-top: -14px; } }
.sprite { position: absolute; pointer-events: none; will-change: transform; z-index: 1; }
.sp-img { filter: drop-shadow(0 10px 24px rgba(20,38,74,.18)); }

/* ---------- helpers ---------- */
.tag-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.mt-1 { margin-top: 10px; } .mt-2 { margin-top: 22px; } .mt-3 { margin-top: 36px; }
.center { text-align: center; }
.notice { border: 1px dashed var(--gold-deep); background: var(--gold-soft); border-radius: var(--r-sm); padding: 16px 20px; font-size: 14px; }

/* ---------- responsive ---------- */
@media (prefers-reduced-motion: reduce) {
  .rv { opacity: 1; transform: none; transition: none; }
  .wallbg .col, .rail, .bob { animation: none; }
}
@media (max-width: 1000px) {
  .wallgrid { grid-template-columns: repeat(4, 1fr); }
  .qgrid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
  .g4, .g3 { grid-template-columns: repeat(2, 1fr); }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .nav-links { display: none; position: absolute; top: 76px; left: 0; right: 0; background: var(--paper); border-bottom: 1px solid var(--line); flex-direction: column; padding: 12px 24px 20px; }
  .nav-links.open { display: flex; }
  .nav-burger { display: block; }
  .hero .bgword { display: none; }
  .numgrid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
  .g4, .g3, .g2, .qgrid, .numgrid { grid-template-columns: 1fr; }
  .wallgrid { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); row-gap: 26px; }
  .stat + .stat::before { display: none; }
  section { padding: 60px 0; }
  section.dark { margin-left: 0; margin-right: 0; border-radius: var(--r-sm); }
  .news-row { grid-template-columns: 1fr; }
  .wallbg { gap: 12px; }
}

/* 芒果TV：白 logo 橙底容器 */
.pf .mg { background: #FF7E00; border-radius: 8px; padding: 6px 14px; display: flex; align-items: center; }
.pf .mg img { max-height: 22px; filter: none; }
/* 受保护频道矩阵 */
.ch-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 30px; }
.ch { display: flex; align-items: center; gap: 12px; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 12px 16px; }
.ch img { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; border: 2px solid var(--gold-soft); }
.ch b { font-size: 14px; display: block; }
.ch small { font-size: 11px; color: var(--ink-soft); }
@media (max-width: 900px) { .ch-grid { grid-template-columns: repeat(2, 1fr); } }
/* 教育多彩拼贴 */
.edu-collage { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.edu-collage img { width: 100%; aspect-ratio: 1/1; object-fit: cover; border-radius: var(--r-sm); box-shadow: var(--shadow-1); border: 1px solid rgba(20,38,74,.07); transition: transform .3s; }
.edu-collage img:hover { transform: scale(1.03); }
/* 地图框 */
.mapframe { border: 0; width: 100%; height: 300px; border-radius: var(--r-sm); filter: saturate(.9); display: block; }

/* Learning Kit 产品陈列 */
.kit-grid { display: grid; grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; gap: 14px; margin-top: 44px; }
.kit-grid figure { margin: 0; position: relative; border-radius: var(--r-lg); overflow: hidden; background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow-1); }
.kit-grid figure.big { grid-row: span 2; }
.kit-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.kit-grid figure:hover img { transform: scale(1.03); }
.kit-grid figcaption { position: absolute; left: 12px; bottom: 12px; background: rgba(20,38,74,.82); color: #EDF4FF; font-size: 11.5px; font-weight: 700; letter-spacing: .08em; padding: 5px 12px; border-radius: 99px; }
@media (max-width: 860px) { .kit-grid { grid-template-columns: 1fr; } .kit-grid figure.big { grid-row: auto; } }

/* Reuse pipeline：一集视频掉落全套资产 */
.pipe { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; margin-top: 46px; }
.pipe-step { position: relative; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-1); transition: .25s; display: flex; flex-direction: column; }
.pipe-step:hover { transform: translateY(-6px); box-shadow: var(--shadow-2); }
.pipe-step img { aspect-ratio: 4/3; object-fit: cover; width: 100%; }
.pipe-step .pd { padding: 16px 18px 18px; }
.pipe-step .stp { font-family: var(--font-mono); font-size: 11px; font-weight: 700; letter-spacing: .18em; color: var(--gold-deep); }
.pipe-step h3 { font-size: 17.5px; margin: 4px 0 4px; }
.pipe-step p { margin: 0; font-size: 13px; color: var(--ink-soft); }
.pipe-step:not(:last-child)::after {
  content: "→"; position: absolute; right: -22px; top: 38%; z-index: 2;
  font-size: 22px; font-weight: 900; color: var(--red);
  background: var(--paper); width: 30px; height: 30px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-1); border: 1px solid var(--line);
}
@media (max-width: 900px) {
  .pipe { grid-template-columns: repeat(2, 1fr); }
  .pipe-step:not(:last-child)::after { display: none; }
}
@media (max-width: 560px) { .pipe { grid-template-columns: 1fr; } }
