/* ============================================================
   朝阳追梦人软件科技有限公司 · 官网样式（白色浅色主题）
   统一变量 / 统一间距节奏 / 稳健栅格排版 / 三档响应式
   ============================================================ */

:root {
  /* 背景：白与浅灰交替，不出现大面积深色 */
  --bg-void: #F5F7FC;
  --bg-deep: #FFFFFF;
  --bg-soft: #F0F3FA;
  --bg-surface: rgba(255, 255, 255, 0.86);

  /* 文字 */
  --text-primary: #111827;
  --text-secondary: #475569;
  --text-tertiary: #94A3B8;

  /* 强调：浅底上用更饱和的紫，保持辨识度 */
  --accent: #7C3AED;
  --accent-soft: rgba(124, 58, 237, 0.08);
  --accent-glow: rgba(124, 58, 237, 0.22);
  --accent-blue: #2563EB;

  /* 边框与玻璃 */
  --border-ghost: rgba(15, 23, 42, 0.09);
  --border-hover: rgba(124, 58, 237, 0.45);
  --glass-bg: rgba(255, 255, 255, 0.80);
  --glass-blur: 16px;

  /* 圆角 */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-full: 999px;

  /* 字体 */
  --font-display: "Inter", "SF Pro Display", "PingFang SC", "Noto Sans SC", sans-serif;
  --font-body: "Inter", "PingFang SC", "Noto Sans SC", sans-serif;
  --font-mono: "JetBrains Mono", "Fira Code", "SFMono-Regular", Consolas, monospace;

  /* 间距节奏 */
  --section-py: 104px;
  --container-max: 1200px;

  /* 派生 */
  --nav-h: 72px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --shadow-sm: 0 2px 10px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 12px 32px rgba(15, 23, 42, 0.07);
  --shadow-lg: 0 22px 56px rgba(15, 23, 42, 0.09);
}

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg-void);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.nav-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
h1, h2, h3, h4, p, dl, dd, ul, figure { margin: 0; }
ul { padding: 0; list-style: none; }
::selection { background: rgba(124,58,237,.16); color: var(--text-primary); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.container { width: 100%; max-width: var(--container-max); margin-inline: auto; padding-inline: 28px; }
.section { padding-block: var(--section-py); position: relative; background: var(--bg-deep); }
.section--alt { background: var(--bg-void); }
section[id] { scroll-margin-top: var(--nav-h); }
.svg-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.skip-link { position: absolute; top: -60px; left: 16px; z-index: 999; padding: 10px 18px; background: var(--accent); color: #fff; border-radius: var(--radius-sm); }
.skip-link:focus { top: 12px; }

/* 通用玻璃卡 */
.glass {
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--border-ghost);
  box-shadow: var(--shadow-md);
}

/* 文字原子 */
.eyebrow { font-size: 12px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent); margin-bottom: 20px; }
.grad { background: linear-gradient(100deg, #4C1D95 4%, var(--accent) 52%, var(--accent-blue) 98%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.text-tertiary { color: var(--text-tertiary); font-weight: 400; }
.hl { color: var(--accent); font-weight: 600; }
.accent-line { color: var(--text-primary); font-size: 19px; font-weight: 600; margin: 20px 0 22px; }
.accent-line::before { content: ""; display: inline-block; width: 3px; height: 17px; margin-right: 12px; vertical-align: -1px; background: var(--accent); border-radius: 2px; }
.lead { color: var(--text-primary); font-size: 19px; font-weight: 600; line-height: 1.7; margin-bottom: 16px; }
.body-text { color: var(--text-secondary); font-size: 15px; line-height: 1.95; max-width: 620px; }
.body-text + .body-text { margin-top: 14px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 13px 26px; border-radius: var(--radius-full); font-size: 14.5px; font-weight: 600;
  border: 1px solid transparent; cursor: pointer; white-space: nowrap;
  transition: box-shadow 200ms ease, background 200ms ease, border-color 200ms ease, transform 200ms ease, color 200ms ease;
}
.btn .icon { width: 16px; height: 16px; transition: transform 250ms var(--ease-out); }
.btn:hover .icon { transform: translateX(4px); }
.btn--primary { background: var(--accent); color: #fff; box-shadow: 0 6px 18px rgba(124,58,237,.2); }
.btn--primary:hover { box-shadow: 0 10px 30px var(--accent-glow); transform: translateY(-2px); }
.btn--ghost { background: #fff; color: var(--text-primary); border-color: rgba(15,23,42,.16); box-shadow: var(--shadow-sm); }
.btn--ghost:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }

/* ---------- 导航栏 ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100; height: var(--nav-h);
  background: rgba(255,255,255,.82);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-ghost);
  transition: background 300ms ease, box-shadow 300ms ease;
}
.nav.is-scrolled { background: rgba(255,255,255,.95); box-shadow: 0 10px 30px rgba(15,23,42,.07); }
.nav__inner { height: 100%; display: flex; align-items: center; gap: 32px; }
.brand { font-family: var(--font-display); font-size: 18px; font-weight: 700; letter-spacing: 0.03em; white-space: nowrap; color: var(--text-primary); }
.brand__dot { color: var(--accent); }
.nav__links { display: flex; align-items: center; gap: 24px; margin-left: auto; }
.nav__links > a:not(.nav__links-cta) { font-size: 13.5px; color: var(--text-secondary); transition: color 200ms ease; position: relative; white-space: nowrap; }
.nav__links > a:not(.nav__links-cta)::after { content: ""; position: absolute; left: 0; bottom: -6px; width: 0; height: 2px; background: var(--accent); border-radius: 2px; transition: width 250ms var(--ease-out); }
.nav__links > a:not(.nav__links-cta):hover { color: var(--accent); }
.nav__links > a:not(.nav__links-cta):hover::after { width: 100%; }
.nav__cta { padding: 9px 20px; font-size: 13.5px; }
.nav__links-cta { display: none; }
.nav__toggle { display: none; width: 40px; height: 40px; border: 1px solid var(--border-ghost); border-radius: var(--radius-sm); background: #fff; cursor: pointer; padding: 0; align-items: center; justify-content: center; flex-direction: column; gap: 5px; }
.nav__toggle span { display: block; width: 18px; height: 1.5px; background: var(--text-primary); transition: transform 250ms ease, opacity 200ms ease; }
.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ---------- 首屏 ---------- */
.hero { position: relative; min-height: 100vh; padding-top: calc(var(--nav-h) + 64px); padding-bottom: 92px; display: flex; flex-direction: column; justify-content: center; overflow: hidden; background: linear-gradient(180deg, #FFFFFF 0%, var(--bg-void) 100%); }
.hero__canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; }
.hero__veil { position: absolute; inset: 0; z-index: 0; pointer-events: none; background: radial-gradient(ellipse 62% 52% at 50% 32%, rgba(124,58,237,.055), transparent 72%); }
.hero__inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; }
.hero__copy h1 { font-family: var(--font-display); font-size: clamp(34px, 3.9vw, 54px); line-height: 1.28; font-weight: 700; letter-spacing: -0.02em; }
.hero__title-line { white-space: nowrap; display: block; }
.hero__sub-title { display: block; margin-top: 14px; font-size: clamp(16px, 1.45vw, 21px); font-weight: 500; line-height: 1.6; color: var(--text-secondary); letter-spacing: 0; }
.hero__lead { margin: 24px 0 32px; font-size: 15.5px; line-height: 1.95; color: var(--text-secondary); max-width: 580px; }
.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* 首屏产品矩阵缩略卡 */
.hero__matrix { display: grid; grid-template-columns: 1.15fr 0.85fr 1fr; grid-auto-rows: 98px; gap: 12px; }
.matrix-cell {
  position: relative; display: flex; flex-direction: column; justify-content: center; gap: 3px;
  padding: 14px 18px; border-radius: var(--radius-md);
  background: var(--glass-bg); backdrop-filter: blur(var(--glass-blur)); -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--border-ghost); box-shadow: var(--shadow-sm); overflow: hidden;
  animation: float 8s ease-in-out infinite alternate; animation-delay: var(--d, 0s);
  transition: border-color 250ms ease, box-shadow 250ms ease, transform 250ms ease;
}
.matrix-cell:hover { border-color: var(--border-hover); box-shadow: 0 14px 30px rgba(124,58,237,.12); }
.matrix-cell .icon { width: 18px; height: 18px; color: var(--accent); margin-bottom: 6px; }
.matrix-cell > span { font-size: 13.5px; font-weight: 700; line-height: 1.35; }
.matrix-cell small { font-size: 11px; color: var(--text-tertiary); }
.matrix-cell--wide { grid-column: span 2; }
.matrix-cell--wide .icon { color: var(--accent-blue); }
.matrix-cell--bar { grid-column: span 2; flex-direction: row; align-items: center; gap: 10px; min-height: 54px; height: 54px; padding: 10px 18px; border-style: dashed; animation: none; background: rgba(255,255,255,.6); }
.matrix-bar__num { font-family: var(--font-mono); font-size: 16px; font-weight: 700; color: var(--accent); }
.matrix-cell--bar > span:not(.matrix-bar__num):not(.matrix-bar__sep) { font-size: 11.5px; color: var(--text-secondary); font-weight: 500; white-space: nowrap; }
.matrix-bar__sep { width: 1px; height: 14px; background: var(--border-ghost); margin: 0 8px; }
@keyframes float { from { transform: translateY(0); } to { transform: translateY(-7px); } }

.hero__trust { position: relative; z-index: 1; display: flex; align-items: center; flex-wrap: wrap; gap: 14px; margin-top: 70px; font-size: 12.5px; color: var(--text-tertiary); }
.hero__trust i { width: 3px; height: 3px; border-radius: 50%; background: var(--text-tertiary); }
.hero__scroll { position: absolute; left: 50%; bottom: 24px; transform: translateX(-50%); width: 22px; height: 36px; border: 1px solid var(--border-ghost); border-radius: var(--radius-full); z-index: 1; background: rgba(255,255,255,.6); }
.hero__scroll span { position: absolute; top: 8px; left: 50%; width: 3px; height: 7px; border-radius: 2px; background: var(--accent); transform: translateX(-50%); animation: scrollHint 1.8s ease-in-out infinite; }
@keyframes scrollHint { 0%,100% { opacity:.3; transform:translate(-50%,0);} 50% { opacity:1; transform:translate(-50%,10px);} }

/* ---------- 区块标题 ---------- */
.section-head { text-align: center; max-width: 780px; margin: 0 auto 60px; }
.section-head--left { text-align: left; margin-left: 0; }
.section-head h2 { font-family: var(--font-display); font-size: clamp(30px, 3.3vw, 44px); line-height: 1.3; font-weight: 700; letter-spacing: -0.02em; }
.section-head__sub { margin-top: 16px; color: var(--text-secondary); font-size: 15.5px; line-height: 1.9; }
.anchor-section { border-bottom: 1px solid var(--border-ghost); }
.center-action { text-align: center; margin-top: 54px; }

/* ---------- 产品矩阵 ---------- */
.section--products { background: var(--bg-void); border-top: 1px solid var(--border-ghost); border-bottom: 1px solid var(--border-ghost); }
.product-group { margin-bottom: 50px; }
.product-group:last-child { margin-bottom: 0; }
.group-title { display: flex; align-items: center; gap: 12px; font-size: 15px; font-weight: 700; margin-bottom: 20px; }
.group-title__bar { width: 3px; height: 18px; border-radius: 2px; background: var(--bar); }
.group-title small { font-size: 10.5px; letter-spacing: 0.14em; color: var(--text-tertiary); font-weight: 600; }
.product-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.product-grid--two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.product-grid--three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.product-card {
  position: relative; display: flex; flex-direction: column; min-width: 0; padding: 0;
  border-radius: var(--radius-lg); border: 1px solid var(--border-ghost); overflow: hidden;
  background: #fff; box-shadow: var(--shadow-sm);
  transition: transform 250ms var(--ease-out), border-color 250ms ease, box-shadow 250ms ease;
}
.product-card::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--bar); z-index: 2; }
.product-card:hover { transform: translateY(-4px); border-color: var(--border-hover); box-shadow: var(--shadow-md); }

/* 抽象界面缩略图（纯 CSS 绘制，零外链） */
.product-card__thumb { height: 124px; padding: 10px 14px; border-bottom: 1px solid var(--border-ghost); overflow: hidden; position: relative; background: linear-gradient(135deg, #F8F7FF, #EFF4FF); }
.thumb--teacher { background: linear-gradient(135deg, #F5F3FF, #EEF2FF); }
.thumb--eas { background: linear-gradient(135deg, #F3F7FF, #EDF5FF); }
.thumb--bridge { background: linear-gradient(135deg, #F7F5FF, #EFF3FF); }
.thumb--term { background: linear-gradient(135deg, #F2F7FF, #EDF4FF); }
.thumb--scratch { background: linear-gradient(135deg, #F5F8FF, #EFF4FF); }
.thumb--wire { background: linear-gradient(135deg, #F7F8FB, #F1F4F9); }
.thumb--cpp { background: linear-gradient(135deg, #F6F7FC, #F0F3F9); }
.thumb__bar { display: flex; align-items: center; gap: 4px; margin-bottom: 9px; font-family: var(--font-mono); font-size: 9px; color: var(--text-tertiary); }
.thumb__bar i { width: 5px; height: 5px; border-radius: 50%; background: #CBD5E1; }
.thumb__bar i:first-child { background: var(--accent); }
.thumb--term .thumb__bar i:first-child, .thumb--scratch .thumb__bar i:first-child { background: var(--accent-blue); }
.thumb__bar span { margin-left: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.thumb__scene { position: relative; height: 74px; }
.th-block { position: absolute; height: 14px; border-radius: 4px; background: rgba(124,58,237,.16); border: 1px solid rgba(124,58,237,.3); }
.th-block.th-a { width: 46%; left: 6%; top: 12px; }
.th-block.th-b { width: 32%; left: 6%; top: 34px; }
.th-role { position: absolute; right: 14%; top: 8px; width: 30px; height: 30px; border-radius: 8px 8px 12px 12px; background: linear-gradient(150deg, var(--accent), var(--accent-blue)); box-shadow: 0 6px 16px var(--accent-glow); }
.th-ground { position: absolute; left: 6%; right: 6%; bottom: 8px; height: 1px; background: rgba(15,23,42,.1); }
.th-grid { display: grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: repeat(2, 1fr); gap: 7px; padding: 4px 6px; }
.th-grid span { border-radius: 6px; background: #fff; border: 1px solid var(--border-ghost); box-shadow: var(--shadow-sm); }
.th-grid span:nth-child(2), .th-grid span:nth-child(5) { background: var(--accent-soft); border-color: rgba(124,58,237,.25); }
.th-chart { display: flex; align-items: flex-end; gap: 8px; padding: 6px 8px 8px; border-bottom: 1px solid var(--border-ghost); }
.th-chart span { flex: 1; height: var(--h); border-radius: 3px 3px 0 0; background: linear-gradient(180deg, var(--accent), rgba(124,58,237,.18)); }
.th-chart span:nth-child(even) { background: linear-gradient(180deg, var(--accent-blue), rgba(37,99,235,.16)); }
.th-bridge .th-b { position: absolute; left: 2%; top: 14px; width: 28%; height: 15px; border-radius: 4px; background: rgba(79,70,229,.16); border: 1px solid rgba(79,70,229,.3); }
.th-bridge .th-b + .th-b { top: 38px; left: 8%; width: 22%; }
.th-bridge .th-mid { position: absolute; left: 35%; top: 28px; color: var(--accent); font-size: 15px; font-weight: 700; }
.th-bridge .th-code { position: absolute; right: 4%; top: 16px; width: 52%; height: 8px; border-radius: 3px; background: rgba(124,58,237,.25); }
.th-bridge .th-code.th-short { top: 34px; width: 38%; background: rgba(37,99,235,.22); }
.th-term { display: flex; flex-direction: column; gap: 9px; padding: 8px 10px; font-family: var(--font-mono); font-size: 10px; }
.th-cmd { color: var(--text-secondary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.th-ok { color: #059669; background: rgba(5,150,105,.08); padding: 4px 8px; border-radius: 5px; }
.th-stage .th-role { right: 18%; top: 10px; }
.th-stage .th-block.th-a { width: 34%; left: 6%; top: 18px; }
.th-stage .th-block.th-b { width: 26%; left: 6%; top: 40px; }
.th-wire { display: flex; align-items: center; justify-content: center; gap: 6px; padding-top: 12px; }
.th-box { width: 26%; height: 42px; border-radius: 6px; background: #fff; border: 1px solid rgba(15,23,42,.14); box-shadow: var(--shadow-sm); }
.th-box--mid { background: var(--accent-soft); border-color: rgba(124,58,237,.3); }
.th-line { width: 10%; height: 1px; background: var(--text-tertiary); }
.th-code { display: grid; grid-template-columns: 24px 1fr; gap: 2px 6px; padding: 4px 10px; font-family: var(--font-mono); font-size: 10px; align-content: start; }
.th-ln { color: var(--text-tertiary); }
.th-kw { color: var(--accent); font-weight: 700; }
.th-txt { color: var(--text-secondary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.th-fn { color: var(--accent-blue); }
.th-cmt { color: #059669; }
.thumb--olympiad { background: linear-gradient(135deg, #F2FBF7, #EDF5FF); }
.th-olympiad { display: grid; grid-template-columns: 24px 1fr; gap: 2px 6px; padding: 4px 10px; font-family: var(--font-mono); font-size: 10px; align-content: start; }
.th-ac { grid-column: 1 / -1; margin-top: 5px; color: #059669; background: rgba(5,150,105,.09); padding: 3px 8px; border-radius: 5px; font-size: 9px; }
.thumb--courseware { background: linear-gradient(135deg, #F7F5FF, #EEF4FF); }
.th-courseware { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 4px 8px; }
.th-slide { display: flex; flex-direction: column; gap: 6px; padding: 9px; border-radius: 6px; background: #fff; border: 1px solid var(--border-ghost); box-shadow: var(--shadow-sm); }
.th-slide span { height: 7px; border-radius: 3px; background: rgba(124,58,237,.24); }
.th-slide span:nth-child(2) { width: 70%; background: rgba(37,99,235,.18); }
.th-slide span:nth-child(3) { width: 85%; }
.th-notes { display: flex; flex-direction: column; justify-content: center; gap: 8px; }
.th-notes span { height: 14px; border-radius: 4px; background: rgba(124,58,237,.09); border: 1px solid rgba(124,58,237,.16); }

.product-card__body { display: flex; flex-direction: column; flex: 1; padding: 18px 20px 18px; }
.product-card h4 { font-size: 17px; font-weight: 700; line-height: 1.5; margin-bottom: 9px; }
.product-card p { font-size: 13px; color: var(--text-secondary); line-height: 1.8; flex: 1; }
.product-card__meta { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--border-ghost); }
.tag { font-size: 11px; color: var(--text-tertiary); font-weight: 600; }
.product-card__meta .arrow { width: 16px; height: 16px; color: var(--text-tertiary); transition: transform 250ms var(--ease-out), color 250ms ease; }
.product-card:hover .arrow { transform: translateX(4px); color: var(--accent); }

/* ---------- 左右分栏 ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 68px; align-items: center; }
.split--reverse .split__copy { order: 2; }
.split--reverse .split__visual { order: 1; }
.split__copy h2 { font-family: var(--font-display); font-size: clamp(28px, 3vw, 40px); font-weight: 700; letter-spacing: -0.02em; margin-bottom: 16px; }
.feature-list { margin: 28px 0 30px; display: grid; gap: 18px; }
.feature-item { display: flex; gap: 18px; padding-bottom: 18px; border-bottom: 1px solid var(--border-ghost); }
.feature-item:last-child { border-bottom: none; padding-bottom: 0; }
.feature-item__no { font-family: var(--font-mono); font-size: 12px; font-weight: 700; color: var(--accent); padding-top: 4px; }
.feature-item h3 { font-size: 15.5px; font-weight: 700; margin-bottom: 5px; }
.feature-item p { font-size: 13.5px; color: var(--text-secondary); line-height: 1.8; }
.bullet-list { margin: 22px 0 30px; display: grid; gap: 14px; }
.bullet-list li { position: relative; padding-left: 20px; font-size: 14px; color: var(--text-secondary); line-height: 1.85; }
.bullet-list li::before { content: ""; position: absolute; left: 0; top: 10px; width: 6px; height: 6px; border-radius: 2px; background: var(--accent); }
.bullet-list strong { color: var(--text-primary); font-weight: 700; }
.bullet-list code { font-family: var(--font-mono); font-size: 12.5px; color: var(--accent); background: var(--accent-soft); padding: 2px 6px; border-radius: 4px; }
.tag-cloud { display: flex; flex-wrap: wrap; gap: 9px; margin: 24px 0; }
.tag-cloud span { font-size: 12.5px; color: var(--text-secondary); padding: 7px 14px; border: 1px solid var(--border-ghost); border-radius: var(--radius-full); background: #fff; transition: border-color 250ms ease, color 250ms ease; }
.tag-cloud span:hover { border-color: var(--border-hover); color: var(--accent); }

/* ---------- mockup：少儿编程（稳健纵向错落，不用负 margin） ---------- */
.stack-wrap { display: flex; flex-direction: column; gap: 16px; }
.stack-card { border-radius: var(--radius-md); border: 1px solid var(--border-ghost); background: #fff; box-shadow: var(--shadow-md); overflow: hidden; }
.stack-card:nth-child(2) { width: 94%; margin-left: auto; }
.stack-card:nth-child(3) { width: 89%; }
.mock-bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; background: #F8FAFD; border-bottom: 1px solid var(--border-ghost); font-family: var(--font-mono); font-size: 10.5px; color: var(--text-tertiary); }
.mock-bar i { width: 7px; height: 7px; border-radius: 50%; background: var(--text-tertiary); opacity: .5; }
.mock-bar i:first-child { background: var(--accent); opacity: .9; }
.mock-bar span { margin-left: 10px; }
.mock-stage { height: 106px; background: linear-gradient(180deg, #F7F5FF, #EEF2FF); position: relative; display: grid; place-items: center; }
.mock-sprite { width: 42px; height: 42px; border-radius: 10px 10px 14px 14px; background: linear-gradient(150deg, var(--accent), var(--accent-blue)); box-shadow: 0 8px 22px var(--accent-glow); }
.mock-ground { position: absolute; bottom: 14px; left: 12%; right: 12%; height: 1px; background: var(--border-ghost); }
.mock-blocks { display: flex; flex-wrap: wrap; gap: 8px; padding: 18px; height: 106px; align-content: flex-start; }
.mock-blocks span { height: 20px; border-radius: 5px; background: var(--accent-soft); border: 1px solid rgba(124,58,237,.22); }
.mock-blocks span:nth-child(1) { width: 42%; } .mock-blocks span:nth-child(2) { width: 30%; }
.mock-blocks span:nth-child(3) { width: 56%; margin-left: 20px; } .mock-blocks span:nth-child(4) { width: 38%; }
.mock-blocks span:nth-child(5) { width: 34%; } .mock-blocks span:nth-child(6) { width: 24%; }
.mock-blocks span:nth-child(3), .mock-blocks span:nth-child(4) { background: rgba(37,99,235,.08); border-color: rgba(37,99,235,.24); }
.mock-code { padding: 14px 18px; font-family: var(--font-mono); font-size: 11.5px; line-height: 2; color: var(--accent); }
.mock-code em { font-style: normal; color: var(--text-secondary); }
.mock-code .ln { display: inline-block; width: 30px; color: var(--text-tertiary); font-size: 10px; }

/* ---------- mockup：小梦老师桌面窗口 ---------- */
.desktop-window { border-radius: var(--radius-lg); border: 1px solid var(--border-ghost); background: #fff; box-shadow: var(--shadow-lg); overflow: hidden; }
.desktop-window__bar { display: flex; align-items: center; gap: 7px; padding: 13px 18px; background: #F8FAFD; border-bottom: 1px solid var(--border-ghost); font-size: 12px; color: var(--text-secondary); }
.desktop-window__bar i { width: 9px; height: 9px; border-radius: 50%; background: var(--text-tertiary); opacity: .5; }
.desktop-window__bar i:first-child { background: #F87171; opacity: .9; }
.desktop-window__bar i:nth-child(2) { background: #FBBF24; opacity: .9; }
.desktop-window__bar i:nth-child(3) { background: #34D399; opacity: .9; }
.desktop-window__bar span { margin-left: 12px; font-weight: 600; }
.desktop-window__bar b { margin-left: auto; font-size: 10.5px; font-weight: 600; color: #059669; background: rgba(5,150,105,.08); padding: 3px 10px; border-radius: var(--radius-full); }
.desktop-window__body { padding: 24px; }
.desktop-window__hello { display: flex; align-items: baseline; gap: 12px; margin-bottom: 20px; }
.desktop-window__hello strong { font-size: 19px; font-weight: 700; }
.desktop-window__hello span { font-size: 12.5px; color: var(--text-tertiary); }
.module-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 10px; }
.module { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; padding: 15px 12px; min-height: 94px; border-radius: var(--radius-md); background: #FBFCFE; border: 1px solid var(--border-ghost); transition: border-color 250ms ease, background 250ms ease, transform 250ms var(--ease-out); }
.module:hover { border-color: var(--border-hover); background: var(--accent-soft); transform: translateY(-3px); }
.module .icon { width: 19px; height: 19px; color: var(--accent); }
.module span { font-size: 11.5px; color: var(--text-secondary); font-weight: 600; }

/* ---------- mockup：教培管家仪表盘 ---------- */
.dashboard { border-radius: var(--radius-lg); border: 1px solid var(--border-ghost); background: #fff; padding: 24px; box-shadow: var(--shadow-lg); }
.dashboard__head { display: flex; justify-content: space-between; align-items: center; font-size: 14px; font-weight: 700; padding-bottom: 18px; border-bottom: 1px solid var(--border-ghost); }
.dashboard__head b { font-family: var(--font-mono); font-size: 10.5px; font-weight: 500; color: var(--text-tertiary); }
.dashboard__stats { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 14px; margin: 20px 0 22px; }
.dashboard__stats > div { padding: 14px; border-radius: var(--radius-md); background: #FBFCFE; border: 1px solid var(--border-ghost); }
.dashboard__stats small { display: block; font-size: 11px; color: var(--text-tertiary); margin-bottom: 6px; }
.dashboard__stats strong { font-family: var(--font-mono); font-size: 24px; font-weight: 700; }
.dashboard__stats em { font-style: normal; font-size: 11px; color: var(--text-tertiary); margin-left: 4px; }
.dashboard__chart { display: flex; align-items: flex-end; gap: 10px; height: 96px; padding: 0 4px 12px; border-bottom: 1px solid var(--border-ghost); }
.dashboard__chart span { flex: 1; height: var(--h); border-radius: 4px 4px 0 0; background: linear-gradient(180deg, var(--accent), rgba(124,58,237,.16)); }
.dashboard__chart span:nth-child(even) { background: linear-gradient(180deg, var(--accent-blue), rgba(37,99,235,.14)); }
.dashboard__rows { margin-top: 16px; display: grid; gap: 12px; }
.dashboard__rows > div { display: flex; align-items: center; gap: 10px; font-size: 12px; color: var(--text-secondary); }
.dashboard__rows b { margin-left: auto; font-size: 10.5px; font-weight: 600; color: var(--text-tertiary); }
.dot { width: 7px; height: 7px; border-radius: 50%; display: inline-block; flex: none; }
.dot--purple { background: var(--accent); } .dot--blue { background: var(--accent-blue); } .dot--mute { background: var(--text-tertiary); }

/* ---------- mockup：积木星球代码对比 ---------- */
.code-demo { border-radius: var(--radius-lg); border: 1px solid var(--border-ghost); background: #fff; overflow: hidden; box-shadow: var(--shadow-lg); }
.code-demo__top { display: flex; justify-content: space-between; padding: 13px 20px; border-bottom: 1px solid var(--border-ghost); background: #F8FAFD; }
.code-demo__label { font-size: 11px; font-weight: 700; letter-spacing: 0.06em; color: var(--text-tertiary); }
.code-demo__label--right { color: var(--accent); }
.code-demo__blocks { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding: 20px 24px 18px; }
.b { font-family: var(--font-mono); font-size: 11.5px; padding: 7px 14px; border-radius: 6px; color: #fff; border: 1px solid rgba(0,0,0,.06); }
.b i { font-style: normal; background: rgba(255,255,255,.2); padding: 1px 6px; border-radius: 4px; }
.b--control { background: #B45309; } .b--motion { background: #4F46E5; } .b--looks { background: #7C3AED; }
.b--indent { margin-left: 26px; }
.code-demo__arrow { display: flex; align-items: center; gap: 10px; padding: 10px 24px; border-top: 1px dashed var(--border-ghost); border-bottom: 1px dashed var(--border-ghost); background: #FBFCFE; color: var(--accent); font-size: 11.5px; font-weight: 600; }
.code-demo__arrow .icon { width: 15px; height: 15px; transform: rotate(90deg); }
.code-demo__code { padding: 18px 24px 24px; font-family: var(--font-mono); font-size: 12px; line-height: 2.15; }
.code-line { display: flex; gap: 16px; opacity: 0; transform: translateY(8px); }
.code-demo.is-visible .code-line { animation: lineIn 500ms var(--ease-out) both; animation-delay: calc(var(--i) * 120ms); }
@keyframes lineIn { to { opacity: 1; transform: translateY(0); } }
.code-line .ln { color: var(--text-tertiary); font-size: 10.5px; user-select: none; }
.code-line code { color: var(--text-primary); white-space: pre; }
.code-line code b { color: var(--accent); font-weight: 700; }
.code-line code u { text-decoration: none; color: var(--accent-blue); }
.code-line code s { text-decoration: none; color: #059669; }
.code-line code em { font-style: normal; color: var(--text-tertiary); }

/* ---------- 陈仓：浅色终端（保留终端形态但不黑） ---------- */
.anchor-section--terminal { background: var(--bg-void); }
.terminal { border-radius: var(--radius-lg); border: 1px solid var(--border-ghost); background: #fff; overflow: hidden; box-shadow: var(--shadow-lg); }
.terminal__bar { display: flex; align-items: center; gap: 8px; padding: 14px 20px; background: #F8FAFD; border-bottom: 1px solid var(--border-ghost); font-family: var(--font-mono); font-size: 11.5px; color: var(--text-secondary); }
.terminal__bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--text-tertiary); opacity: .5; }
.terminal__bar i:first-child { background: #F87171; opacity: .9; }
.terminal__bar i:nth-child(2) { background: #FBBF24; opacity: .9; }
.terminal__bar i:nth-child(3) { background: #34D399; opacity: .9; }
.terminal__bar span { margin-left: 14px; }
.terminal__bar b { margin-left: auto; font-weight: 700; color: #059669; font-size: 11px; }
.terminal__body { padding: 28px 30px 32px; font-family: var(--font-mono); font-size: 13px; line-height: 2.1; }
.term-line { color: var(--text-secondary); }
.term-prompt { color: var(--accent); margin-right: 10px; font-weight: 700; }
.term-str { color: #B45309; }
.term-line--out { color: var(--text-secondary); }
.term-ok { color: #059669; margin-right: 8px; font-size: 10px; }
.term-dim { color: var(--text-tertiary); }
.term-url { color: var(--accent-blue); text-decoration: underline; text-underline-offset: 3px; }
.term-cursor { margin-top: 10px; }
.caret { display: inline-block; width: 7px; height: 15px; background: var(--accent); vertical-align: -2px; animation: blink 1.1s step-end infinite; }
@keyframes blink { 50% { opacity: 0; } }
.advantage-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 16px; margin-top: 24px; }
.advantage { padding: 24px 20px; border-radius: var(--radius-md); border: 1px solid var(--border-ghost); background: #fff; box-shadow: var(--shadow-sm); }
.advantage .icon { color: var(--accent-blue); width: 22px; height: 22px; margin-bottom: 16px; }
.advantage h3 { font-size: 14.5px; font-weight: 700; margin-bottom: 8px; }
.advantage p { font-size: 12.5px; color: var(--text-secondary); line-height: 1.8; }

/* ---------- 定制开发步骤 ---------- */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); margin-top: 16px; }
.step { padding: 12px 40px 12px 0; border-right: 1px solid var(--border-ghost); }
.step:not(:first-child) { padding-left: 40px; }
.step:last-child { border-right: none; }
.step__no { display: block; font-family: var(--font-mono); font-size: 34px; font-weight: 700; color: var(--accent); margin-bottom: 16px; }
.step h3 { font-size: 18px; font-weight: 700; margin-bottom: 10px; }
.step p { font-size: 14px; color: var(--text-secondary); line-height: 1.9; }

/* ---------- 关于我们 ---------- */
.split--about { grid-template-columns: 1fr 0.92fr; align-items: start; }
.timeline { border-left: 1px solid var(--border-ghost); padding-left: 34px; display: grid; gap: 36px; }
.tl-item { position: relative; }
.tl-item::before { content: ""; position: absolute; left: -40px; top: 7px; width: 11px; height: 11px; border-radius: 50%; background: #fff; border: 2px solid var(--accent); }
.tl-year { display: inline-block; font-family: var(--font-mono); font-size: 11.5px; font-weight: 700; letter-spacing: 0.04em; color: var(--accent); margin-bottom: 8px; }
.tl-item h3 { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.tl-item p { font-size: 14px; color: var(--text-secondary); line-height: 1.9; }
.company-card { border-radius: var(--radius-lg); border: 1px solid var(--border-ghost); background: #fff; padding: 34px; box-shadow: var(--shadow-md); }
.company-card h3 { font-size: 19px; font-weight: 700; margin-bottom: 26px; line-height: 1.5; }
.company-card dl { display: grid; gap: 18px; }
.company-card dl > div { display: grid; grid-template-columns: 80px 1fr; gap: 16px; font-size: 13.5px; padding-bottom: 16px; border-bottom: 1px solid var(--border-ghost); }
.company-card dl > div:last-child { border-bottom: none; padding-bottom: 0; }
.company-card dt { color: var(--text-tertiary); font-size: 12.5px; }
.company-card dd { color: var(--text-secondary); line-height: 1.8; }
address { font-style: normal; }

/* ---------- 联系我们 ---------- */
.split--contact { grid-template-columns: 1.15fr 0.85fr; align-items: stretch; gap: 36px; }
.contact-form { display: flex; flex-direction: column; gap: 20px; padding: 34px; border-radius: var(--radius-lg); border: 1px solid var(--border-ghost); background: #fff; box-shadow: var(--shadow-md); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.contact-form label { display: grid; gap: 9px; font-size: 12.5px; font-weight: 600; color: var(--text-secondary); }
.contact-form input, .contact-form select, .contact-form textarea {
  width: 100%; padding: 12px 15px; border-radius: var(--radius-sm); color: var(--text-primary);
  background: #FBFCFE; border: 1px solid var(--border-ghost); font-size: 14px; resize: vertical;
  transition: border-color 200ms ease, box-shadow 200ms ease;
}
.contact-form input::placeholder, .contact-form textarea::placeholder { color: var(--text-tertiary); }
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.contact-form select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--text-tertiary) 50%), linear-gradient(135deg, var(--text-tertiary) 50%, transparent 50%); background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%; background-size: 5px 5px, 5px 5px; background-repeat: no-repeat; }
.contact-form select option { background: #fff; }
.contact-form .btn { align-self: flex-start; margin-top: 2px; }
.form-note { font-size: 11.5px; color: var(--text-tertiary); }
.form-note.is-ok { color: #059669; }
.contact-card { display: flex; flex-direction: column; gap: 14px; padding: 34px; border-radius: var(--radius-lg); border: 1px solid var(--border-ghost); background: var(--bg-soft); }
.contact-card__item { display: flex; gap: 16px; align-items: flex-start; padding: 18px; border-radius: var(--radius-md); border: 1px solid var(--border-ghost); background: #fff; }
.contact-card__item .icon { color: var(--accent); margin-top: 3px; }
.contact-card__item small { display: block; font-size: 11.5px; color: var(--text-tertiary); margin-bottom: 4px; }
.contact-card__item a, .contact-card__item address { font-size: 14.5px; color: var(--text-primary); font-weight: 600; }
.contact-card__item a:hover { color: var(--accent); }
.contact-card__foot { margin-top: auto; display: flex; align-items: center; gap: 9px; padding: 14px 18px; font-size: 12px; color: var(--text-secondary); }

/* ---------- 页脚 ---------- */
.footer { background: var(--bg-soft); border-top: 1px solid var(--border-ghost); padding-top: 70px; }
.footer__inner { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 56px; padding-bottom: 50px; }
.footer__brand .brand { font-size: 21px; }
.footer__brand p { margin-top: 14px; font-size: 14px; color: var(--text-secondary); }
.footer__brand small { display: block; margin-top: 8px; font-size: 12px; color: var(--text-tertiary); }
.footer__links { display: flex; flex-direction: column; gap: 11px; }
.footer__links h3 { font-size: 13px; font-weight: 700; letter-spacing: 0.06em; margin-bottom: 6px; }
.footer__links a, .footer__links address { font-size: 13px; color: var(--text-secondary); }
.footer__links a:hover { color: var(--accent); }
.footer__bottom { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding-block: 22px; border-top: 1px solid var(--border-ghost); font-size: 11.5px; color: var(--text-tertiary); }

/* ---------- 入场动效 ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 600ms var(--ease-out), transform 600ms var(--ease-out); transition-delay: var(--reveal-delay, 0ms); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ============================================================
   响应式： 1024 / 768 / 480
   ============================================================ */
@media (max-width: 1023px) {
  :root { --section-py: 84px; }
  .nav__links { gap: 16px; }
  .nav__links > a:not(.nav__links-cta) { font-size: 12.5px; }
  .nav__cta { display: none; }
  .hero { padding-top: calc(var(--nav-h) + 52px); }
  .hero__inner { grid-template-columns: 1fr; gap: 48px; }
  .hero__copy { max-width: 720px; }
  .hero__matrix { max-width: 660px; }
  .product-grid, .product-grid--three { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .split { grid-template-columns: 1fr; gap: 44px; }
  .split--reverse .split__copy { order: 1; }
  .split--reverse .split__visual { order: 2; }
  .split__visual { max-width: 660px; }
  .advantage-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .steps { grid-template-columns: 1fr; }
  .step { padding: 22px 0; border-right: none; border-bottom: 1px solid var(--border-ghost); }
  .step:not(:first-child) { padding-left: 0; }
  .step:last-child { border-bottom: none; }
  .step__no { margin-bottom: 8px; font-size: 28px; }
  .split--about, .split--contact { grid-template-columns: 1fr; }
  .footer__inner { grid-template-columns: 1fr 1fr; gap: 36px; }
  .footer__brand { grid-column: span 2; }
}

@media (max-width: 767px) {
  :root { --section-py: 68px; --nav-h: 64px; }
  .container { padding-inline: 20px; }
  body { font-size: 15px; }
  .nav__toggle { display: flex; margin-left: auto; }
  .nav__links {
    position: fixed; inset: var(--nav-h) 0 0 0; z-index: 99;
    display: flex; flex-direction: column; align-items: stretch; justify-content: flex-start;
    gap: 0; padding: 24px 24px 40px; margin: 0; overflow-y: auto;
    background: rgba(255,255,255,.98); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid var(--border-ghost);
    visibility: hidden; opacity: 0; pointer-events: none; transform: translateY(-12px);
    transition: opacity 300ms var(--ease-out), transform 300ms var(--ease-out), visibility 300ms;
  }
  .nav__links.is-open { visibility: visible; opacity: 1; pointer-events: auto; transform: translateY(0); }
  .nav__links > a:not(.nav__links-cta) { font-size: 18px; color: var(--text-primary); font-weight: 600; width: 100%; padding: 14px 0; border-bottom: 1px solid var(--border-ghost); opacity: 0; transform: translateY(10px); }
  .nav__links.is-open > a:not(.nav__links-cta) { animation: menuIn 420ms var(--ease-out) both; }
  .nav__links > a:nth-child(1) { animation-delay: 60ms; } .nav__links > a:nth-child(2) { animation-delay: 110ms; }
  .nav__links > a:nth-child(3) { animation-delay: 160ms; } .nav__links > a:nth-child(4) { animation-delay: 210ms; }
  .nav__links > a:nth-child(5) { animation-delay: 260ms; } .nav__links > a:nth-child(6) { animation-delay: 310ms; }
  .nav__links > a:nth-child(7) { animation-delay: 360ms; }
  @keyframes menuIn { to { opacity: 1; transform: translateY(0); } }
  .nav__links-cta { display: inline-flex; align-self: flex-start; margin-top: 24px; }
  .hero { min-height: auto; padding-bottom: 72px; }
  .hero__copy h1 { font-size: clamp(30px, 8.2vw, 40px); }
  .hero__title-line { white-space: normal; }
  .hero__sub-title { font-size: 15px; }
  .hero__lead { font-size: 14.5px; }
  .hero__matrix { grid-template-columns: repeat(2, minmax(0,1fr)); grid-auto-rows: 86px; gap: 10px; }
  .matrix-cell--wide { grid-column: span 2; }
  .matrix-cell--bar { grid-column: span 2; height: auto; min-height: 50px; flex-wrap: wrap; }
  .matrix-cell > span { font-size: 12.5px; }
  .matrix-cell small { font-size: 10px; }
  .hero__trust { margin-top: 44px; font-size: 11.5px; gap: 10px; }
  .hero__scroll { display: none; }
  .section-head { margin-bottom: 42px; }
  .section-head h2, .split__copy h2 { font-size: clamp(26px, 6.8vw, 34px); }
  .section-head__sub { font-size: 14px; }
  .product-grid, .product-grid--two, .product-grid--three { grid-template-columns: 1fr; }
  .product-card { min-height: 0; }
  .stack-card:nth-child(2), .stack-card:nth-child(3) { width: 100%; margin-left: 0; }
  .module-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .advantage-grid { grid-template-columns: 1fr; }
  .terminal__body { padding: 20px 16px 24px; font-size: 11px; line-height: 2; }
  .company-card, .contact-form, .contact-card { padding: 24px; }
  .form-row { grid-template-columns: 1fr; }
  .footer__inner { grid-template-columns: 1fr; gap: 32px; }
  .footer__brand { grid-column: auto; }
  .timeline { padding-left: 24px; }
  .tl-item::before { left: -30px; }
}

@media (max-width: 479px) {
  .container { padding-inline: 16px; }
  .hero__actions .btn { width: 100%; }
  .matrix-cell { padding: 12px; }
  .matrix-cell--bar { display: none; }
  .matrix-cell--last { grid-column: span 2; }
  .dashboard__stats { grid-template-columns: 1fr 1fr; }
  .dashboard__stats > div:last-child { display: none; }
  .module-grid { gap: 8px; }
  .module { min-height: 82px; padding: 12px 10px; }
  .terminal__body { font-size: 10px; }
  .product-card { padding: 20px 18px 18px; }
  .footer__bottom { flex-direction: column; gap: 8px; }
}

/* ---------- 无障碍 ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .reveal { opacity: 1; transform: none; }
  .code-line { opacity: 1; transform: none; }
  .hero__canvas { display: none; }
}
