/* ============================================================
   非码 · AI 创造中心 —— 门户样式
   ------------------------------------------------------------
   设计取向：明亮、多彩、有手感（面向学习者与家长）。
   三条纪律（来自 tokens.css，改色值必须同步这里）：
     1. 品牌色当"装饰"用；当文字、当实心按钮底色一律用 -ink 变体。
     2. 触控目标 ≥44px，圆角 ≥14px，投影带品牌色（不用纯灰投影）。
     3. 动效只动 transform / opacity；prefers-reduced-motion 下全部静止。
   ============================================================ */

/* ---------- 0. reset ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.is-locked { overflow: hidden; }

img, svg { display: block; max-width: 100%; }
h1, h2, h3, p, ul, ol, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }

/* 登录态靠 [hidden] 切换，而下面的 .nav-login / .nav-user 都写了 display:flex，
   作者样式会盖掉浏览器默认的 [hidden]{display:none} —— 不写这一条，
   游客会同时看到「登录 / 管理后台 / 退出」。必须 !important。 */
[hidden] { display: none !important; }

:focus-visible {
  outline: 3px solid var(--grape);
  outline-offset: 3px;
  border-radius: 8px;
}

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

.skip-link {
  position: fixed; top: -100px; left: 16px; z-index: 200;
  padding: 10px 18px; border-radius: 0 0 14px 14px;
  background: var(--ink); color: #fff; font-weight: 700;
}
.skip-link:focus { top: 0; }

/* ---------- 1. tokens ---------- */
:root {
  --ink: #101A24;
  --ink-2: #3D4A57;
  --ink-3: #68757F;

  --paper: #FFFCF5;
  --card: #FFFFFF;
  --line: rgba(16, 26, 36, .10);

  --teal: #02B0B2;   --teal-ink: #016B6D;   --teal-tint: #E2FAF8;
  --green: #7EAB21;  --green-ink: #56741A;  --green-tint: #EFF9DC;
  --orange: #FF7A2F; --orange-ink: #A94E15; --orange-tint: #FFEEE2;
  --grape: #6C5CE7;  --grape-ink: #4B3FBF;  --grape-tint: #EFEBFF;
  --blue: #2F80FF;   --blue-ink: #1B4FCB;   --blue-tint: #E7F1FF;

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

  --shadow-soft: 0 10px 30px -18px rgba(16, 26, 36, .35);
  --shadow-lift: 0 26px 50px -24px rgba(16, 26, 36, .40);

  --maxw: 1180px;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
}

[data-reveal] { will-change: opacity, transform; }

/* ---------- 2. 动态背景 ---------- */
.sky {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
  /* 底色接近中性：有颜色的部分全部交给 .sky__wash，
     否则固定渐变会把三层色盘的色相"稀释"掉（实测四个时间点采样差值 <6/255）。 */
  background: linear-gradient(178deg, #FFFDF9 0%, #FBFCFB 50%, #FFFCF8 100%);
}

/* 整页底色流转：三层色盘轮流主导，24s 一轮、相位错开 8s，
   交接处约 2.9s 交叉淡入淡出 —— 底色每 8s 换一次调子，但不"跳"。
   只动 opacity（独立合成层），不重绘渐变，不占主线程。
   色值整体提亮一档：底色是"氛围"，不是"主角"，太重会和卡片、正文字重打架。 */
.sky__wash {
  position: absolute;
  inset: -6%;
  opacity: .8;
  will-change: opacity;
  animation: wash-cycle 24s ease-in-out infinite;
}
.sky__wash--mint {
  background:
    radial-gradient(70vw 55vw at 6% -6%, #AEEFE2 0%, rgba(174, 239, 226, 0) 68%),
    radial-gradient(58vw 46vw at 96% 16%, #CBDFFF 0%, rgba(203, 223, 255, 0) 64%),
    linear-gradient(158deg, #DAF8F1 0%, #EDFAFF 52%, #F4FDF9 100%);
  animation-delay: 0s;
}
.sky__wash--peach {
  background:
    radial-gradient(70vw 55vw at 94% -6%, #FFDDBC 0%, rgba(255, 221, 188, 0) 68%),
    radial-gradient(58vw 46vw at 4% 38%, #FFF0C6 0%, rgba(255, 240, 198, 0) 64%),
    linear-gradient(158deg, #FFF1E2 0%, #FFF9E8 52%, #FFF5EC 100%);
  animation-delay: -16s;
}
.sky__wash--grape {
  background:
    radial-gradient(70vw 55vw at 10% -6%, #D6CBFF 0%, rgba(214, 203, 255, 0) 68%),
    radial-gradient(58vw 46vw at 92% 46%, #C6F0E4 0%, rgba(198, 240, 228, 0) 64%),
    linear-gradient(158deg, #EDE8FF 0%, #EFF4FF 52%, #F1FCF7 100%);
  animation-delay: -32s;
}

.sky__blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(46px);
  opacity: .3;
  will-change: transform;
  animation: blob-drift 26s ease-in-out infinite;
}
.sky__blob--mint  { width: 46vw; height: 46vw; left: -10vw; top: -12vw;  background: #9BE9E4; animation-duration: 24s; }
.sky__blob--sky   { width: 38vw; height: 38vw; right: -8vw;  top: 4vw;   background: #B9D9FF; animation-duration: 30s; animation-delay: -6s; }
.sky__blob--lemon { width: 30vw; height: 30vw; left: 26vw;   bottom: -14vw; background: #FFE9A8; animation-duration: 28s; animation-delay: -12s; }
.sky__blob--coral { width: 26vw; height: 26vw; right: 12vw;  bottom: -8vw; background: #FFC7AE; animation-duration: 32s; animation-delay: -3s; }
.sky__blob--grape { width: 22vw; height: 22vw; left: 6vw;    bottom: 22vh; background: #D6CDFF; animation-duration: 27s; animation-delay: -18s; }

/* 漂浮小方块：比粒子轻，纯 CSS，不占主线程 */
.sky__shape {
  position: absolute;
  width: 26px; height: 26px;
  border-radius: 9px;
  opacity: .5;
  animation: shape-drift 22s linear infinite;
}
.sky__shape--a { left: 12%;  top: 30%; background: var(--teal);   animation-duration: 26s; }
.sky__shape--b { right: 16%; top: 22%; background: var(--orange); animation-duration: 31s; animation-delay: -8s; width: 18px; height: 18px; }
.sky__shape--c { left: 22%;  bottom: 12%; background: var(--grape); animation-duration: 29s; animation-delay: -14s; width: 34px; height: 34px; border-radius: 12px; }
.sky__shape--d { right: 28%; bottom: 26%; background: var(--green); animation-duration: 24s; animation-delay: -4s; width: 20px; height: 20px; }

.sky__grid {
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(16, 26, 36, .10) 1px, transparent 1px);
  background-size: 34px 34px;
  -webkit-mask-image: radial-gradient(1200px 700px at 50% 0%, #000 0%, transparent 78%);
          mask-image: radial-gradient(1200px 700px at 50% 0%, #000 0%, transparent 78%);
  opacity: .5;
}

@keyframes blob-drift {
  0%   { transform: translate3d(0, 0, 0) scale(1); }
  33%  { transform: translate3d(3vw, 2vh, 0) scale(1.06); }
  66%  { transform: translate3d(-2vw, 3vh, 0) scale(.97); }
  100% { transform: translate3d(0, 0, 0) scale(1); }
}
/* 每个色盘：淡入 3.8s → 主导 10.6s → 淡出 3.8s → 静止，48s 一轮、错开 16s。
   同一时刻只有一个色盘接近满不透明，色相才会真的换，而不是三层叠成一片奶白。 */
@keyframes wash-cycle {
  0%   { opacity: 0; }
  12%  { opacity: .9; }
  30%  { opacity: .9; }
  42%  { opacity: 0; }
  100% { opacity: 0; }
}
@keyframes shape-drift {
  0%   { transform: translate3d(0, 0, 0) rotate(0deg); }
  50%  { transform: translate3d(18px, -26px, 0) rotate(14deg); }
  100% { transform: translate3d(0, 0, 0) rotate(0deg); }
}

/* ---------- 3. header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 90;
  background: rgba(255, 253, 247, .78);
  border-bottom: 1px solid rgba(16, 26, 36, .07);
  backdrop-filter: saturate(1.2) blur(14px);
  -webkit-backdrop-filter: saturate(1.2) blur(14px);
  transition: box-shadow .25s ease, background .25s ease;
}
.site-header.is-scrolled {
  background: rgba(255, 253, 247, .94);
  box-shadow: 0 12px 28px -22px rgba(16, 26, 36, .55);
}

.header-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 12px 22px;
  display: flex;
  align-items: center;
  gap: 18px;
}

.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand-mark img { width: 40px; height: 40px; border-radius: 12px; }
.brand-word { display: flex; flex-direction: column; line-height: 1.1; }
.brand-word strong { font-size: 19px; letter-spacing: .02em; }
.brand-word small { font-size: 11.5px; color: var(--ink-3); letter-spacing: .04em; }

.site-nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-label { display: none; }

.nav-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 40px;
  padding: 0 15px;
  border-radius: 999px;
  font-size: 14.5px;
  font-weight: 700;
  color: var(--ink-2);
  background: #fff;
  border: 1.5px solid rgba(16, 26, 36, .09);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease, color .18s ease;
}
.nav-pill i {
  width: 9px; height: 9px; border-radius: 50%;
  background: currentColor; opacity: .95;
}
.nav-pill:hover { transform: translateY(-2px); box-shadow: var(--shadow-soft); }
.nav-pill--graphical:hover { border-color: var(--teal); color: var(--teal-ink); }
.nav-pill--aigc:hover      { border-color: var(--grape); color: var(--grape-ink); }
.nav-pill--learn:hover     { border-color: var(--green); color: var(--green-ink); }
.nav-pill--oj:hover        { border-color: var(--orange); color: var(--orange-ink); }
.nav-pill--graphical i { background: var(--teal); }
.nav-pill--aigc i      { background: var(--grape); }
.nav-pill--learn i     { background: var(--green); }
.nav-pill--oj i        { background: var(--orange); }

.nav-login {
  display: inline-flex; align-items: center;
  height: 40px; padding: 0 16px;
  border-radius: 999px;
  font-size: 14.5px; font-weight: 700;
  color: var(--ink-2);
  border: 1.5px solid transparent;
}
.nav-login:hover { color: var(--ink); border-color: rgba(16, 26, 36, .14); }
.nav-login--solid {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}
.nav-login--solid:hover { background: #000; color: #fff; }
.nav-admin { color: var(--grape-ink); }
.nav-user { font-size: 14.5px; color: var(--ink-2); padding: 0 6px; }
.nav-user b { color: var(--ink); }

.nav-toggle {
  display: none;
  margin-left: auto;
  width: 44px; height: 44px;
  border-radius: 14px;
  background: #fff;
  border: 1.5px solid rgba(16, 26, 36, .12);
  align-items: center; justify-content: center;
}
.nav-toggle-lines { display: grid; gap: 5px; }
.nav-toggle-lines i { display: block; width: 20px; height: 2.4px; border-radius: 2px; background: var(--ink); }

/* ---------- 4. hero ---------- */
.hero {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(34px, 6vw, 74px) 22px clamp(30px, 4vw, 52px);
}

/* 窄屏：文案 → 四个入口 → 辅助链接。DOM 里 copy/foot 包在 .hero-left 内，
   这里用 display:contents 把它们"放回"父级，顺序再用 order 调。 */
.hero-inner { display: flex; flex-direction: column; }
.hero-left { display: contents; }
.hero-copy { order: 1; }
.entry-grid { order: 2; }
.hero-foot { order: 3; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 7px 15px 7px 11px;
  border-radius: 999px;
  background: #fff;
  border: 1.5px solid rgba(16, 26, 36, .09);
  font-size: 13px; font-weight: 700; letter-spacing: .04em;
  color: var(--ink-2);
  box-shadow: var(--shadow-soft);
}
.eyebrow__dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: linear-gradient(135deg, var(--teal), var(--green));
  box-shadow: 0 0 0 4px rgba(2, 176, 178, .18);
}

.hero h1 {
  margin: 22px 0 0;
  font-size: clamp(2.5rem, 6.4vw, 4.1rem);
  line-height: 1.08;
  letter-spacing: -.02em;
  font-weight: 900;
  max-width: 22ch;
}

/* 单色强调：整句只用一个深青，不用多色渐变。
   多色渐变在浅底上偏"花"，且每加一层就多一分与动态背景抢视觉的风险。 */
.hl {
  color: var(--teal-ink);
  padding-right: .06em;
}
.hl__dot { color: inherit; }

.hero-lede {
  margin-top: 18px;
  max-width: 42ch;
  font-size: clamp(15.5px, 1.5vw, 18px);
  line-height: 1.85;
  color: var(--ink-2);
}

.hero-chips { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 20px; }
.hero-chips li {
  padding: 6px 13px;
  border-radius: 999px;
  font-size: 13px; font-weight: 600;
  color: var(--ink-2);
  background: rgba(255, 255, 255, .9);
  border: 1.5px dashed rgba(16, 26, 36, .16);
}

/* 宽屏：左文案 / 右 2×2 入口，首屏一屏读完，不用往下滚才看见入口 */
@media (min-width: 1200px) {
  .hero-inner {
    display: grid;
    grid-template-columns: minmax(0, .84fr) minmax(0, 1.16fr);
    gap: 0 52px;
    align-items: start;
  }
  /* 左栏：文案 + 辅助链接整块；右栏：2×2 入口。两栏各自从顶部排，不再有中间的空档 */
  .hero-left { display: flex; flex-direction: column; gap: 26px; }
  .hero-copy { padding-top: 6px; }
  /* 这两条必须带父级：基础规则 .entry-grid{mt:40} / .hero-foot{mt:22} 写在文件后面，
     同权重会被后出现的覆盖，media 里只写 .entry-grid 是无效的（实测 mt 仍是 40px）。 */
  .hero-inner .entry-grid { margin-top: 0; grid-template-columns: 1fr 1fr; }
  .hero-left .hero-foot { margin-top: 0; }
}

/* ---------- 5. 四个入口卡（整卡可点） ---------- */
.entry-grid {
  margin-top: clamp(26px, 4vw, 40px);
  display: grid;
  /* 固定 1 列 / 2 列，不用 auto-fit：1024 这种宽度下 auto-fit 会排出 3+1，
     第 4 张孤零零掉到第二行，比"少一列"难看得多。 */
  grid-template-columns: 1fr;
  gap: 12px;
}

@media (min-width: 620px) {
  .entry-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.entry-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 4px;
  /* 2026-11-11 第 4 轮：四张卡偏大。实测单卡 264px（2×2 整块 543px），
     目标 ~210px。压的全是"每一块留白"，字号只降 1px 左右——卡片显小靠空隙不靠字号：
       内边距 20/18 → 13/11、卡片间距 18 → 12、行间距 8 → 4、
       图标 54 → 38、徽标与「进入 xxx」显式定 line-height（继承的 1.65 行高
       让 11.5px 的徽标高 29px，光这一处就白占 4px）。 */
  min-height: 176px;
  padding: 13px 16px 11px;
  border-radius: var(--r-lg);
  background: var(--tint);
  border: 2px solid var(--tint-line);
  color: var(--ink);
  overflow: hidden;
  isolation: isolate;
  transition: transform .22s cubic-bezier(.2, .7, .2, 1), box-shadow .22s ease, border-color .22s ease;
}

/* 卡面右上角的色块光晕，hover 时放大 —— 比换整张底色更轻 */
.entry-card::before {
  content: "";
  position: absolute;
  right: -46px; top: -58px;
  width: 190px; height: 190px;
  border-radius: 50%;
  background: var(--glow);
  filter: blur(6px);
  transform: scale(1);
  transition: transform .35s ease;
  z-index: -1;
}

.entry-card:hover,
.entry-card:focus-visible {
  transform: translateY(-6px) rotate(-.35deg);
  box-shadow: var(--shadow-lift);
  border-color: var(--c);
}
.entry-card:hover::before { transform: scale(1.22); }

/* 账号没有开通这个模块：卡片仍在（不是功能消失），但明确"点不进去"。
   用去饱和 + 虚线边而不是隐藏：藏起来学生会以为系统坏了，来问"我的入口呢"。 */
.entry-card.is-locked,
.nav-pill.is-locked {
  filter: grayscale(.55);
  opacity: .72;
  cursor: not-allowed;
}
.entry-card.is-locked:hover,
.entry-card.is-locked:focus-visible {
  transform: none;
  box-shadow: none;
  border-color: var(--tint-line);
}
.entry-card.is-locked:hover::before { transform: scale(1); }
.entry-card.is-locked .entry-card__badge {
  color: var(--ink-2, #5b6675);
  border-style: dashed;
}
.entry-card.is-locked .entry-card__go { opacity: .7; }

.entry-card__top {
  display: flex; align-items: center; justify-content: space-between;
}
.entry-card__num {
  font-family: var(--mono);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .08em;
  color: var(--c-ink);
  opacity: .85;
}
.entry-card__badge {
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 11px; font-weight: 800; letter-spacing: .04em;
  /* 必须显式定行高：body 的 1.65 会让 11px 的字撑出 26px 行盒，
     徽标实际高 29px，比里面的字高出两倍还多。 */
  line-height: 1.25;
  color: var(--c-ink);
  background: #fff;
  border: 1.5px solid var(--tint-line);
  transform: rotate(-2deg);
}
.entry-card__badge--live {
  color: #fff;
  background: var(--c-ink);
  border-color: var(--c-ink);
}

.entry-card__icon {
  width: 38px; height: 38px;
  margin-top: 0;
  display: grid; place-items: center;
  border-radius: 12px;
  background: #fff;
  color: var(--c-ink);
  box-shadow: 0 8px 18px -12px rgba(16, 26, 36, .55);
}
.entry-card__icon svg { width: 22px; height: 22px; }

.entry-card__title {
  margin-top: 0;
  font-size: 19px;
  letter-spacing: -.01em;
  line-height: 1.25;
}
.entry-card__desc {
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--ink-2);
  /* 只预留一行：四条小字现在都控制在一行内（≤18 字 / 307px 卡宽），
     预留两行等于每张卡白掉 21px，四张就是 42px 的整块高度。 */
  min-height: 1.55em;
}
.entry-card__tags { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 0; }
.entry-card__tags em {
  font-style: normal;
  font-size: 11px; font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
  color: var(--c-ink);
  background: rgba(255, 255, 255, .82);
  border: 1px solid var(--tint-line);
}

.entry-card__go {
  margin-top: auto;
  padding-top: 5px;
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13.5px; font-weight: 800;
  /* 同徽标：不定行高会被 1.65 撑到 23px，白占 5px */
  line-height: 1.35;
  color: var(--c-ink);
}
.entry-card__go span { transition: transform .2s ease; }
.entry-card:hover .entry-card__go span { transform: translateX(4px); }

/* 四张卡的配色 */
.module-card--graphical { --c: var(--teal);   --c-ink: var(--teal-ink);   --tint: var(--teal-tint);   --tint-line: #B5EDE8; --glow: rgba(2, 176, 178, .42); }
.module-card--aigc      { --c: var(--grape);  --c-ink: var(--grape-ink);  --tint: var(--grape-tint);  --tint-line: #D3CBFF; --glow: rgba(108, 92, 231, .28); }
.module-card--learn     { --c: var(--green);  --c-ink: var(--green-ink);  --tint: var(--green-tint);  --tint-line: #D6EBA8; --glow: rgba(126, 171, 33, .28); }
.module-card--oj        { --c: var(--orange); --c-ink: var(--orange-ink); --tint: var(--orange-tint); --tint-line: #FFD2B6; --glow: rgba(255, 122, 47, .28); }
/* 逻辑星冒险（第 5 张入口）：复用星空紫，跨两列做「上线横幅」，
   否则 2 列网格里第 5 张会孤零零掉在最后一行。 */
.module-card--logicstar { --c: var(--grape); --c-ink: var(--grape-ink); --tint: var(--grape-tint); --tint-line: #D3CBFF; --glow: rgba(108, 92, 231, .28); }
.entry-card--wide { grid-column: 1 / -1; min-height: 150px; }
.nav-pill--logicstar:hover { border-color: var(--grape); color: var(--grape-ink); }
.nav-pill--logicstar i { background: var(--grape); }

/* ---------- 6. 首屏底部辅助入口 ---------- */
.hero-foot {
  margin-top: 22px;
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px;
  font-size: 14.5px;
}
.hero-foot__link {
  display: inline-flex; align-items: center; gap: 5px;
  font-weight: 800;
  color: var(--grape-ink);
  border-bottom: 2px solid rgba(108, 92, 231, .28);
  padding-bottom: 1px;
}
.hero-foot__link:hover { border-bottom-color: var(--grape); }
.hero-foot__link--quiet { color: var(--ink-2); border-bottom-color: rgba(16, 26, 36, .18); font-weight: 700; }

/* ---------- 7. 底座条 ---------- */
.band {
  max-width: var(--maxw);
  margin: 8px auto 0;
  padding: 14px 22px;
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px;
  border-top: 1.5px dashed rgba(16, 26, 36, .14);
  border-bottom: 1.5px dashed rgba(16, 26, 36, .14);
}
.band__item {
  font-size: 13px; font-weight: 800; letter-spacing: .04em;
  color: var(--ink-2);
  padding: 4px 12px;
  border-radius: 999px;
  background: #fff;
  border: 1.5px solid rgba(16, 26, 36, .08);
}
.band__note { margin-left: auto; font-style: normal; font-size: 13px; color: var(--ink-3); }

/* ---------- 8. 通用 section ---------- */
.section {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(48px, 7vw, 86px) 22px;
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, .85fr);
  gap: 20px 44px;
  align-items: end;
  margin-bottom: clamp(26px, 4vw, 40px);
}

.section-kicker {
  font-family: var(--mono);
  font-size: 12px; font-weight: 700; letter-spacing: .16em;
  color: var(--teal-ink);
  display: inline-flex; align-items: center; gap: 9px;
}
.section-kicker::before {
  content: ""; width: 22px; height: 3px; border-radius: 2px;
  background: linear-gradient(90deg, var(--teal), var(--green));
}
.section-kicker--light { color: #BFF3EE; }
.section-kicker--light::before { background: #FFD3B8; }

.section h2 {
  margin-top: 10px;
  font-size: clamp(1.55rem, 3.2vw, 2.35rem);
  line-height: 1.24;
  letter-spacing: -.015em;
  font-weight: 900;
}

.section-intro { font-size: 15.5px; line-height: 1.85; color: var(--ink-2); }

/* ---------- 9. 创作流程 ---------- */
.journey {
  display: flex; align-items: stretch; gap: 16px;
  margin-bottom: 22px;
}
.idea-card,
.published-card {
  flex: 1 1 0;
  padding: 18px 20px;
  border-radius: var(--r-md);
  background: #fff;
  border: 1.5px solid rgba(16, 26, 36, .09);
  box-shadow: var(--shadow-soft);
}
.idea-card {
  background: linear-gradient(160deg, #FFFDF6, #FFF3D9);
  border-color: #FFE0A6;
  /* 曾经写了 rotate(-.6deg) 假装"手写便签"。问题是这两张是**等宽并排的整块卡片**，
     一点点倾斜不会被读成手工感，只会被读成"没对齐/歪了" —— 而且左边负角度、
     右边正角度，两块一起歪，视觉上像整行错位。要手工感请改贴纸/胶带这类小元素，
     不要动容器本身。 */
}
.idea-card blockquote {
  margin: 8px 0;
  font-size: 17px; font-weight: 800; line-height: 1.55;
  color: var(--ink);
}
.idea-meta { font-size: 12.5px; color: var(--ink-3); }

.published-card {
  display: flex; align-items: center; gap: 16px;
  background: linear-gradient(160deg, #F3FFFB, #E2FAF8);
  border-color: #B5EDE8;
  /* 同上：不再 rotate(.5deg) */
}
.published-thumb { flex: 0 0 128px; }
.published-thumb svg { width: 128px; height: auto; border-radius: 12px; }
.published-copy { display: flex; flex-direction: column; gap: 3px; }
.published-copy strong { font-size: 17px; }
.published-copy span:last-child { font-size: 12.5px; color: var(--ink-3); }

.journey-arrow {
  display: grid; place-items: center;
  font-size: 26px; color: var(--orange-ink);
  padding: 0 2px;
}

.mini-label {
  font-family: var(--mono);
  font-size: 11px; font-weight: 700; letter-spacing: .1em;
  color: var(--ink-3);
  text-transform: uppercase;
}

.step-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(196px, 1fr));
  gap: 14px;
}

.step-card {
  position: relative;
  padding: 20px 18px 18px;
  border-radius: var(--r-md);
  background: #fff;
  border: 2px solid var(--step-line);
  box-shadow: var(--shadow-soft);
  transition: transform .2s ease, box-shadow .2s ease;
}
.step-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }

.step-num {
  font-family: var(--mono);
  font-size: 30px; font-weight: 800; line-height: 1;
  color: var(--step-ink);
  opacity: .3;
}
.step-tag {
  display: block;
  margin: 4px 0 8px;
  font-family: var(--mono);
  font-size: 10.5px; font-weight: 700; letter-spacing: .16em;
  color: var(--step-ink);
}
.step-card h3 { font-size: 17px; letter-spacing: -.01em; }
.step-card p { margin-top: 6px; font-size: 13.5px; line-height: 1.7; color: var(--ink-2); }
.step-card small {
  display: block; margin-top: 12px;
  padding-top: 10px;
  border-top: 1.5px dashed var(--step-line);
  font-size: 12px; color: var(--step-ink); font-weight: 700;
}

.step-card--1 { --step-ink: var(--teal-ink);   --step-line: #B5EDE8; }
.step-card--2 { --step-ink: var(--grape-ink);  --step-line: #D3CBFF; }
.step-card--3 { --step-ink: var(--blue-ink);   --step-line: #C2DBFF; }
.step-card--4 { --step-ink: var(--orange-ink); --step-line: #FFD2B6; }
.step-card--5 { --step-ink: var(--green-ink);  --step-line: #D6EBA8; }

.process-note {
  margin-top: 22px;
  font-size: 14px; line-height: 1.8; color: var(--ink-2);
  padding: 14px 18px;
  border-radius: var(--r-sm);
  background: rgba(255, 255, 255, .75);
  border: 1.5px dashed rgba(16, 26, 36, .14);
}
.process-note span { font-weight: 800; color: var(--ink); }

/* ---------- 10. 关于 ---------- */
.about-card {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 30px;
  padding: clamp(24px, 4vw, 40px);
  border-radius: var(--r-xl);
  background: #fff;
  border: 2px solid rgba(16, 26, 36, .08);
  box-shadow: var(--shadow-soft);
}
.about-brand { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.about-mark img { width: 156px; height: 156px; border-radius: 26px; }
.about-copy p { margin-top: 12px; font-size: 15px; line-height: 1.9; color: var(--ink-2); }

.values { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.values span {
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 13px; font-weight: 800;
  color: var(--grape-ink);
  background: var(--grape-tint);
  border: 1.5px solid #D3CBFF;
}

/* ---------- 11. 预约 ---------- */
.join { padding-bottom: clamp(54px, 8vw, 96px); }
/* 明亮糖果色面板：整页都是浅底，这里用深色渐变会显脏（实测偏土黄），
   改成浅色渐变 + 彩色描边，白字换成墨色，对比度反而更高（墨水/浅底 ≈ 13:1）。 */
.join-inner {
  position: relative;
  padding: clamp(30px, 5vw, 54px);
  border-radius: var(--r-xl);
  color: var(--ink);
  border: 2px solid #CDEDE4;
  background:
    radial-gradient(520px 280px at 90% 6%, rgba(255, 122, 47, .20), transparent 70%),
    radial-gradient(520px 280px at 6% 96%, rgba(108, 92, 231, .16), transparent 70%),
    linear-gradient(120deg, #E9FBF7 0%, #F3FCE3 52%, #FFF0E6 100%);
  box-shadow: 0 30px 60px -42px rgba(16, 26, 36, .55);
}
.join-inner .section-kicker { color: var(--teal-ink); }
.join-inner h2 { color: var(--ink); }
.join-lede { margin-top: 14px; max-width: 56ch; font-size: 15.5px; line-height: 1.85; color: var(--ink-2); }
.join-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }

/* ---------- 12. 按钮 ---------- */
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px;
  padding: 0 22px;
  border-radius: 999px;
  font-size: 15px; font-weight: 800;
  border: 2px solid transparent;
  transition: transform .18s ease, background .18s ease, box-shadow .18s ease;
}
.button:hover { transform: translateY(-2px); }
.button-primary { background: var(--ink); color: #fff; }
.button-light { background: #fff; color: #12283A; }
.button-outline { border-color: rgba(16, 26, 36, .22); color: var(--ink); }
.button-outline:hover { background: rgba(255, 255, 255, .7); }
.button-outline-light { border-color: rgba(255, 255, 255, .62); color: #fff; }
.button-outline-light:hover { background: rgba(255, 255, 255, .14); }

/* ---------- 13. footer ---------- */
.site-footer {
  border-top: 1.5px solid rgba(16, 26, 36, .08);
  background: rgba(255, 255, 255, .6);
}
.footer-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 46px 22px 48px;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 26px 48px;
}
.footer-brand p {
  margin-top: 12px;
  max-width: 30em;
  font-size: 14px;
  line-height: 1.75;
  color: var(--ink-3);
}
.brand--footer .brand-mark img { width: 36px; height: 36px; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 10px 24px; align-content: start; justify-content: flex-end; }
.footer-nav a {
  font-size: 13.5px; font-weight: 700; letter-spacing: .02em;
  color: var(--ink-2);
  padding-bottom: 2px;
  border-bottom: 2px solid transparent;
}
.footer-nav a:hover { color: var(--ink); border-bottom-color: var(--grape); }
.footer-meta {
  grid-column: 1 / -1;
  padding-top: 20px;
  border-top: 1.5px dashed rgba(16, 26, 36, .12);
  display: flex; flex-wrap: wrap; align-items: center;
  gap: 10px 0;
  font-size: 12.5px; color: var(--ink-3);
}
/* 元信息一行排开，项与项之间用「·」隔开，不再挤成一团 */
.footer-meta > span:not(:first-child)::before {
  content: "·";
  margin: 0 12px;
  font-weight: 700;
  color: rgba(16, 26, 36, .30);
}
.footer-meta .mono { color: var(--teal-ink); font-size: 11.5px; letter-spacing: .18em; }
.footer-filing { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 6px; font-size: 12.5px; }
.footer-filing a { color: var(--ink-3); text-decoration: underline; text-underline-offset: 3px; }
.mono { font-family: var(--mono); letter-spacing: .08em; }

/* ---------- 14. dialog / noscript ---------- */
.entry-dialog {
  width: min(440px, calc(100vw - 32px));
  padding: 26px;
  border: 2px solid rgba(16, 26, 36, .1);
  border-radius: var(--r-lg);
  background: #fff;
  color: var(--ink);
  box-shadow: 0 40px 80px -30px rgba(16, 26, 36, .6);
}
/* 编程创作语言选择有四个选项，比普通「正在接入」弹窗宽一些 */
.entry-dialog#code-choose-dialog { width: min(640px, calc(100vw - 32px)); }
.entry-dialog::backdrop { background: rgba(16, 26, 36, .42); backdrop-filter: blur(3px); }
.entry-dialog h2 { margin: 8px 0 10px; font-size: 20px; }
.entry-dialog p { font-size: 14.5px; line-height: 1.8; color: var(--ink-2); }
.entry-dialog .button { margin-top: 18px; }
.dialog-close {
  position: absolute; top: 12px; right: 12px;
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 1.5px solid rgba(16, 26, 36, .12);
  background: #fff;
  font-size: 20px; line-height: 1;
  cursor: pointer;
}
.noscript {
  margin: 16px; padding: 14px 18px;
  border-radius: var(--r-sm);
  background: #FFF3D9; border: 1.5px solid #FFE0A6;
  font-size: 14px;
}

/* ---------- 15. 入场动画 ---------- */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .7s cubic-bezier(.2, .7, .2, 1), transform .7s cubic-bezier(.2, .7, .2, 1);
}
.js [data-reveal].is-visible { opacity: 1; transform: none; }

/* ---------- 16. 响应式 ---------- */
@media (max-width: 1100px) {
  .nav-pill { padding: 0 12px; font-size: 13.5px; }
}

@media (max-width: 980px) {
  .nav-toggle { display: inline-flex; }

  .site-nav {
    position: fixed;
    inset: 65px 0 auto 0;
    margin: 0;
    padding: 18px 22px 26px;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    background: rgba(255, 253, 247, .98);
    border-bottom: 1.5px solid rgba(16, 26, 36, .1);
    box-shadow: 0 30px 50px -30px rgba(16, 26, 36, .5);
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s ease, transform .2s ease;
    max-height: calc(100vh - 65px);
    overflow-y: auto;
  }
  .site-nav.is-open { opacity: 1; transform: none; pointer-events: auto; }

  .nav-label {
    display: block;
    margin: 6px 0 2px;
    font-family: var(--mono);
    font-size: 11px; font-weight: 700; letter-spacing: .16em;
    color: var(--ink-3);
    text-transform: uppercase;
  }
  .nav-pill { height: 48px; font-size: 15.5px; justify-content: flex-start; padding: 0 18px; }
  .nav-login { height: 48px; justify-content: flex-start; }
  .nav-login--solid { justify-content: center; }
  .nav-user { padding: 6px 2px; }

  .about-card { grid-template-columns: 1fr; }
  .about-brand { flex-direction: row; align-items: center; gap: 16px; }
  .about-mark img { width: 84px; height: 84px; border-radius: 20px; }
}

@media (max-width: 860px) {
  .section-head { grid-template-columns: 1fr; align-items: start; }
  .journey { flex-direction: column; }
  .journey-arrow { transform: rotate(90deg); height: 26px; }
  /* 这里原来有一条 .idea-card/.published-card{transform:none} 用来抵消桌面端的
     倾斜。倾斜本身已经删掉，保留这条只会让人以为桌面端还有 transform。 */
  .footer-inner { grid-template-columns: 1fr; gap: 20px; }
  .footer-nav { justify-content: flex-start; }
}

@media (max-width: 620px) {
  .header-inner { padding: 10px 16px; gap: 10px; }
  .brand-word small { display: none; }
  .hero { padding-left: 16px; padding-right: 16px; }
  .band, .section, .footer-inner { padding-left: 16px; padding-right: 16px; }
  .entry-card { min-height: 0; padding: 18px 18px 16px; }
  .entry-card__title { font-size: 20px; }
  .hero-foot { gap: 10px; }
  .step-grid { grid-template-columns: 1fr; }
  .join-inner { border-radius: var(--r-lg); }
}

/* ---------- 17. 减弱动效 ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .sky__blob,
  .sky__shape,
  .sky__wash { animation: none !important; }
  .sky__wash--mint  { opacity: .8; }
  .sky__wash--peach { opacity: 0; }
  .sky__wash--grape { opacity: 0; }
  .js [data-reveal] { opacity: 1 !important; transform: none !important; transition: none !important; }
  .entry-card,
  .entry-card::before,
  .nav-pill,
  .button,
  .step-card { transition: none !important; }
  .entry-card:hover { transform: none; }
}

/* ---------- 18. 打印（家长会/招生材料里偶尔要打一页） ---------- */
@media print {
  .sky, .site-header, .join, .entry-dialog { display: none !important; }
  body { background: #fff; color: #000; }
  .entry-grid { grid-template-columns: 1fr 1fr; }
  .entry-card { break-inside: avoid; box-shadow: none; }
}
