/* ============================================================
   蜡笔禾 · AI 学习助手 — 首页样式
   视觉参考：edugpt.com（深色 hero + 紫靛渐变 + 衬线标题）
   ============================================================ */

:root {
  --bg: #100e18;
  --bg-2: #1a1726;
  --soft: #f7f4ef;
  --card: #ffffff;

  --ink: #0f172a;
  --ink-2: #475569;
  --ink-3: #64748b;
  --line: rgba(15, 23, 42, .08);
  --line-strong: rgba(15, 23, 42, .14);

  --d-ink: #eef1f8;
  --d-soft: #a3adc2;
  --d-line: rgba(255, 255, 255, .10);

  /* 品牌色取自 LOGO：紫 #64549C / 绿 #8CC63F / 橙 #EE7623 / 红 #E0142B / 灰 #6E6E6E */
  --indigo: #64549c;
  --indigo-deep: #4e3f80;
  --violet: #8b79c4;
  --teal: #6f9c2b;
  --amber: #ee7623;
  --rose: #e0142b;

  --radius: 20px;
  --radius-sm: 12px;
  --radius-lg: 28px;
  --shadow: 0 20px 50px -20px rgba(15, 23, 42, .25);
  --shadow-soft: 0 8px 30px -12px rgba(15, 23, 42, .12);

  --sans: "Inter", "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  --serif: "Fraunces", "Noto Serif SC", "Source Han Serif SC", "Songti SC", Georgia, serif;

  --container: 1120px;
  --nav-h: 72px;
  --ease: cubic-bezier(.22, 1, .36, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--card);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.container { width: min(var(--container), calc(100% - 48px)); margin: 0 auto; }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  padding: 0 20px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: .01em;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s var(--ease), border-color .25s var(--ease);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: linear-gradient(135deg, var(--indigo), var(--violet));
  color: #fff;
  box-shadow: 0 10px 30px -10px rgba(99, 102, 241, .55);
}
.btn-primary:hover { box-shadow: 0 16px 36px -12px rgba(99, 102, 241, .65); }

.btn-ghost { color: var(--d-ink); border-color: var(--d-line); background: rgba(255,255,255,.03); }
.btn-ghost:hover { background: rgba(255,255,255,.08); }

.btn-quiet { color: var(--d-ink); border-color: var(--d-line); background: rgba(255,255,255,.04); }
.btn-quiet:hover { background: rgba(255,255,255,.09); }

.btn-outline { color: var(--ink); border-color: var(--line-strong); background: transparent; }
.btn-outline:hover { border-color: var(--ink); background: rgba(15,23,42,.03); }

.btn-lg { height: 52px; padding: 0 28px; font-size: 16px; }
.btn-block { width: 100%; }

/* ---------- 导航 ---------- */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  transition: background .35s var(--ease), backdrop-filter .35s var(--ease), border-color .35s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(7, 10, 20, .78);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom-color: var(--d-line);
}
.nav-inner {
  width: min(var(--container), calc(100% - 48px));
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 32px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark {
  width: 60px; height: 41px;
  border-radius: 7px;
  background: #fff;
  padding: 5px 7px 6px;
  overflow: hidden;
  display: grid;
  place-items: center;
  box-shadow: 0 6px 20px -6px rgba(0,0,0,.45);
}
.brand-mark img { width: 100%; height: 100%; object-fit: contain; }
.brand-name {
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 600;
  color: var(--d-ink);
  letter-spacing: .06em;
}
.brand-name em {
  font-style: normal;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  color: var(--d-soft);
  margin-left: 6px;
  letter-spacing: .02em;
}
.nav-links { display: flex; gap: 28px; margin-left: 12px; }
.nav-links a {
  font-size: 14.5px;
  color: var(--d-soft);
  transition: color .2s;
}
.nav-links a:hover { color: var(--d-ink); }
.nav-actions { margin-left: auto; display: flex; gap: 10px; align-items: center; }
.nav-toggle {
  display: none;
  width: 40px; height: 40px;
  border: 1px solid var(--d-line);
  border-radius: 10px;
  background: rgba(255,255,255,.04);
  cursor: pointer;
  position: relative;
  margin-left: auto;
}
.nav-toggle span {
  position: absolute; left: 11px; right: 11px; height: 1.5px;
  background: var(--d-ink);
  transition: transform .3s var(--ease), opacity .2s;
}
.nav-toggle span:nth-child(1) { top: 15px; }
.nav-toggle span:nth-child(2) { top: 23px; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(4px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { transform: translateY(-4px) rotate(-45deg); }

.mobile-menu {
  display: none;
  position: fixed;
  top: var(--nav-h); left: 0; right: 0;
  background: rgba(7, 10, 20, .96);
  backdrop-filter: blur(20px);
  padding: 16px 24px 28px;
  flex-direction: column;
  gap: 4px;
  border-bottom: 1px solid var(--d-line);
}
.mobile-menu a {
  color: var(--d-ink);
  padding: 14px 4px;
  font-size: 16px;
  border-bottom: 1px solid var(--d-line);
}
.mobile-menu a.btn { border-bottom: none; margin-top: 16px; }
.mobile-menu.open { display: flex; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: var(--bg);
  color: var(--d-ink);
  padding: calc(var(--nav-h) + 72px) 0 96px;
  overflow: hidden;
}
.hero-glow {
  position: absolute;
  inset: -20% -10% auto -10%;
  height: 140%;
  background:
    radial-gradient(52% 46% at 72% 18%, rgba(99, 102, 241, .40), transparent 62%),
    radial-gradient(46% 40% at 18% 30%, rgba(139, 92, 246, .30), transparent 62%),
    radial-gradient(38% 32% at 88% 68%, rgba(20, 184, 166, .16), transparent 64%),
    radial-gradient(30% 26% at 12% 82%, rgba(245, 158, 11, .10), transparent 66%);
  filter: blur(10px);
  pointer-events: none;
}
.hero-grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 35%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 35%, #000 30%, transparent 75%);
  pointer-events: none;
}
.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: 64px;
  align-items: center;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13.5px;
  letter-spacing: .12em;
  color: var(--d-soft);
  border: 1px solid var(--d-line);
  border-radius: 999px;
  padding: 7px 16px;
  background: rgba(255,255,255,.03);
  margin-bottom: 28px;
}
.eyebrow .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 12px var(--teal);
}
.hero h1 {
  font-family: var(--serif);
  font-size: clamp(40px, 6vw, 68px);
  line-height: 1.16;
  font-weight: 700;
  letter-spacing: .01em;
  margin-bottom: 26px;
}
.grad {
  background: linear-gradient(100deg, #b3a4e6 0%, #cfc2f0 45%, #a8d468 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.lead {
  font-size: 17px;
  line-height: 1.85;
  color: var(--d-soft);
  max-width: 520px;
  margin-bottom: 34px;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 22px; }
.hero-meta { font-size: 13px; color: #76809a; letter-spacing: .02em; }

/* 手机模型 */
.hero-visual { position: relative; display: flex; justify-content: center; }
.phone {
  position: relative;
  width: min(340px, 100%);
  background: linear-gradient(180deg, #1c1828, #141120);
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 40px;
  padding: 14px;
  box-shadow:
    0 40px 80px -30px rgba(0,0,0,.7),
    0 0 0 1px rgba(255,255,255,.03) inset,
    0 0 80px -20px rgba(99,102,241,.35);
  animation: floaty 7s ease-in-out infinite;
}
@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
.phone-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 10px 14px;
  font-size: 12px;
  color: var(--d-soft);
}
.phone-title { font-weight: 600; color: var(--d-ink); }
.phone-signal {
  width: 26px; height: 10px;
  border: 1px solid var(--d-soft);
  border-radius: 3px;
  position: relative;
}
.phone-signal::after {
  content: "";
  position: absolute; inset: 1.5px 6px 1.5px 1.5px;
  background: var(--teal);
  border-radius: 1.5px;
}
.chat {
  background: #f8fafc;
  border-radius: 26px;
  padding: 16px 12px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 380px;
  overflow: hidden;
}
.msg { display: flex; gap: 8px; max-width: 92%; }
.msg.user { align-self: flex-end; justify-content: flex-end; }
.msg.ai { align-self: flex-start; }
.msg .bubble {
  background: #fff;
  color: #1e293b;
  font-size: 13px;
  line-height: 1.6;
  padding: 10px 13px;
  border-radius: 14px;
  border-top-left-radius: 4px;
  box-shadow: 0 2px 10px -4px rgba(15,23,42,.12);
}
.msg.user .bubble {
  background: linear-gradient(135deg, var(--indigo), var(--violet));
  color: #fff;
  border-radius: 14px;
  border-top-right-radius: 4px;
}
.msg.ai .avatar {
  flex: 0 0 26px;
  width: 26px; height: 26px;
  border-radius: 8px;
  background: linear-gradient(135deg, #f97316, #f59e0b);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  display: grid;
  place-items: center;
  font-family: var(--serif);
}
.msg.typing .bubble {
  display: flex;
  gap: 5px;
  padding: 14px 16px;
  background: #fff;
  border-top-right-radius: 14px;
}
.typing-dot {
  width: 5px; height: 5px; border-radius: 50%;
  background: #94a3b8;
  animation: blink 1.2s infinite;
}
.typing-dot:nth-child(2) { animation-delay: .2s; }
.typing-dot:nth-child(3) { animation-delay: .4s; }
@keyframes blink { 0%, 60%, 100% { opacity: .3; } 30% { opacity: 1; } }

.phone-input {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 12px;
  padding: 10px 10px 10px 16px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 999px;
  font-size: 13px;
  color: #6b7590;
}
.phone-input .send {
  width: 30px; height: 30px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--indigo), var(--violet));
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 14px;
}

.float-card {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(14, 20, 36, .88);
  border: 1px solid rgba(255,255,255,.10);
  backdrop-filter: blur(14px);
  border-radius: 16px;
  padding: 12px 16px;
  box-shadow: 0 20px 40px -20px rgba(0,0,0,.6);
  animation: floaty 6s ease-in-out infinite;
}
.float-card strong { display: block; font-size: 13px; color: var(--d-ink); }
.float-card small { display: block; font-size: 11px; color: var(--d-soft); line-height: 1.4; }
.fc-icon {
  width: 34px; height: 34px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-size: 15px;
  background: rgba(139,121,196,.20);
  color: #cfc2f0;
}
.card-1 { top: -34px; right: -52px; animation-delay: -2s; }
.card-2 { bottom: -34px; left: -52px; animation-delay: -4s; }
.card-2 .fc-icon { background: rgba(140,198,63,.18); color: #b4e06a; }

/* ---------- 信任条 ---------- */
.trust {
  background: var(--bg-2);
  border-top: 1px solid var(--d-line);
  border-bottom: 1px solid var(--d-line);
  padding: 22px 0;
}
.trust-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 48px;
  justify-content: center;
  align-items: center;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13.5px;
  color: var(--d-soft);
}
.ti-mark {
  width: 20px; height: 20px;
  border-radius: 50%;
  background: rgba(20,184,166,.15);
  color: var(--teal);
  font-size: 11px;
  display: grid;
  place-items: center;
}

/* ---------- 通用章节 ---------- */
.section { padding: 104px 0; }
.section-soft { background: var(--soft); }
.section-dark { background: var(--bg); color: var(--d-ink); position: relative; overflow: hidden; }
.section-dark::before {
  content: "";
  position: absolute;
  inset: -30% -10% auto -10%;
  height: 120%;
  background: radial-gradient(45% 40% at 75% 20%, rgba(99,102,241,.22), transparent 60%),
              radial-gradient(40% 36% at 15% 70%, rgba(139,92,246,.14), transparent 62%);
  pointer-events: none;
}
.section-head { max-width: 720px; margin-bottom: 56px; }
.kicker {
  font-size: 13px;
  letter-spacing: .18em;
  color: var(--indigo-deep);
  font-weight: 600;
  margin-bottom: 16px;
  text-transform: uppercase;
}
.kicker-light { color: #b3a4e6; }
.section h2 {
  font-family: var(--serif);
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1.28;
  font-weight: 700;
  letter-spacing: .01em;
}
.section-sub {
  margin-top: 18px;
  font-size: 16.5px;
  line-height: 1.85;
  color: var(--ink-2);
  max-width: 640px;
}
.section-dark .section-sub { color: var(--d-soft); }

/* ---------- 三步 ---------- */
.report-cta { margin-top: 28px; text-align: center; }
.report-cta a {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 14.5px; font-weight: 600; color: var(--indigo-deep);
  text-decoration: none; padding: 10px 20px;
  border-radius: 999px; border: 1px solid rgba(100,84,156,.24);
  background: #fff; transition: border-color .2s var(--ease), color .2s var(--ease);
}
.report-cta a:hover { border-color: var(--indigo); color: var(--indigo); }

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.steps-4 { grid-template-columns: repeat(4, 1fr); gap: 18px; }
.steps-4 .step { padding: 22px 20px; }
.steps-4 .step h3 { font-size: 17px; }
.steps-4 .step p { font-size: 13.5px; }
@media (max-width: 980px) {
  .steps-4 { grid-template-columns: repeat(2, 1fr); }
}
.step {
  position: relative;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 36px 30px 32px;
  box-shadow: var(--shadow-soft);
}
.step-no {
  font-family: var(--serif);
  font-size: 15px;
  font-weight: 700;
  color: var(--indigo);
  letter-spacing: .1em;
  display: block;
  margin-bottom: 22px;
}
.step h3 { font-size: 21px; margin-bottom: 12px; letter-spacing: .02em; }
.step p { color: var(--ink-2); font-size: 15px; line-height: 1.8; }

/* ---------- 功能卡 ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.feature-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 28px;
  box-shadow: var(--shadow-soft);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.fc-top { margin-bottom: 20px; }
.fc-badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .06em;
  padding: 4px 12px;
  border-radius: 999px;
}
.badge-violet { background: rgba(139,121,196,.12); color: #5b4a93; }
.badge-teal { background: rgba(140,198,63,.16); color: #507a1a; }
.badge-indigo { background: rgba(100,84,156,.12); color: #4e3f80; }
.badge-amber { background: rgba(238,118,35,.14); color: #a34f0e; }
.badge-rose { background: rgba(224,20,43,.10); color: #a8101f; }
.badge-slate { background: rgba(100,116,139,.12); color: #475569; }
.feature-card h3 { font-size: 19px; margin-bottom: 10px; letter-spacing: .02em; }
.feature-card p { font-size: 14.5px; line-height: 1.8; color: var(--ink-2); }


.free-note {
  display: inline-flex; align-items: center; gap: 7px;
  margin: 0 0 12px; padding: 6px 14px;
  border-radius: 999px; background: rgba(100,84,156,.09);
  color: var(--indigo-deep); font-size: 13px; font-weight: 600;
}
.free-note::before { content: "✓"; font-size: 11px; }


/* ---------- 账号 / 额度 ---------- */
.quota-chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px; border-radius: 999px;
  background: rgba(100,84,156,.10); border: 1px solid rgba(100,84,156,.22);
  color: var(--indigo-deep); font-size: 12.5px; font-weight: 600;
  white-space: nowrap;
}
.quota-chip.is-empty { background: rgba(224,20,43,.08); border-color: rgba(224,20,43,.25); color: var(--rose); }
.btn-sm-auth { padding: 9px 16px; font-size: 13.5px; }

.auth-tabs { display: flex; gap: 6px; margin: 4px 0 18px; padding: 4px; background: rgba(15,23,42,.05); border-radius: 12px; }
.auth-tab {
  flex: 1; border: 0; background: transparent; padding: 9px 12px; border-radius: 9px;
  font-size: 13.5px; font-weight: 600; color: var(--ink-3); cursor: pointer; font-family: inherit;
}
.auth-tab.is-on { background: #fff; color: var(--indigo-deep); box-shadow: 0 3px 10px -6px rgba(15,23,42,.4); }

/* ---------- 演示 ---------- */
.demo-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}
.check-list { margin-top: 28px; display: flex; flex-direction: column; gap: 14px; }
/* 「它不给答案」左右对比 */
.answer-vs { display: grid; gap: 10px; margin: 22px 0 4px; }
.av-card { border-radius: 12px; padding: 13px 15px; border: 1px solid var(--line); }
.av-card p { margin: 0; font-size: 14px; line-height: 1.65; }
.av-tag { display: inline-block; font-size: 11px; letter-spacing: .08em; padding: 2px 9px; border-radius: 999px; margin-bottom: 7px; }
.av-them { background: #f3f3f1; border-color: #e4e2dc; }
.av-them p { color: var(--ink-3); }
.av-them .av-tag { background: #e3e0d8; color: #7a756b; }
.av-us { background: rgba(100,84,156,.06); border-color: rgba(100,84,156,.24); }
.av-us p { color: var(--ink); font-weight: 500; }
.av-us .av-tag { background: var(--indigo); color: #fff; }
.check-list li {
  position: relative;
  padding-left: 30px;
  font-size: 15px;
  color: var(--ink-2);
}
.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0; top: 1px;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: rgba(100,84,156,.10);
  color: var(--indigo-deep);
  font-size: 11px;
  display: grid;
  place-items: center;
}
.demo-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 34px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.demo-line {
  font-size: 15px;
  line-height: 1.8;
  color: var(--ink);
  background: var(--soft);
  border-radius: 16px;
  border-top-left-radius: 5px;
  padding: 16px 18px;
}
.demo-line.ai { background: rgba(99,102,241,.07); border: 1px solid rgba(99,102,241,.12); }
.dl-tag {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .08em;
  color: var(--ink-3);
  margin-right: 8px;
}
.demo-line.ai .dl-tag { color: var(--indigo-deep); }
.demo-note {
  font-size: 12.5px;
  color: var(--ink-3);
  text-align: center;
  letter-spacing: .02em;
}

/* ---------- 家长区 ---------- */
.parent-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  position: relative;
}
.parent-card {
  background: rgba(255,255,255,.04);
  border: 1px solid var(--d-line);
  border-radius: var(--radius);
  padding: 32px 28px;
  backdrop-filter: blur(6px);
}
.pc-no {
  display: inline-block;
  font-size: 12.5px;
  letter-spacing: .1em;
  color: #b3a4e6;
  margin-bottom: 18px;
}
.parent-card h3 { font-size: 19px; margin-bottom: 12px; letter-spacing: .02em; color: var(--d-ink); }
.parent-card p { font-size: 14.5px; line-height: 1.85; color: var(--d-soft); }

/* ---------- 价格 ---------- */
.price-note {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(99,102,241,.08);
  border: 1px solid rgba(99,102,241,.16);
  color: var(--indigo-deep);
  font-size: 14.5px;
  padding: 12px 20px;
  border-radius: 999px;
  margin-bottom: 40px;
}
.pn-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--indigo);
  box-shadow: 0 0 10px rgba(99,102,241,.7);
}
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: stretch;
}
.price-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 34px 30px 30px;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-soft);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.price-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.price-card.featured {
  border: 1.5px solid transparent;
  background:
    linear-gradient(var(--card), var(--card)) padding-box,
    linear-gradient(135deg, var(--indigo), var(--violet), var(--teal)) border-box;
  box-shadow: 0 24px 60px -24px rgba(99,102,241,.40);
  position: relative;
}
.pc-badge-row { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.pc-name { font-size: 19px; font-weight: 700; letter-spacing: .03em; }
.pc-tag {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--indigo-deep);
  background: rgba(100,84,156,.10);
  padding: 3px 10px;
  border-radius: 999px;
}
.pc-desc { font-size: 13.5px; color: var(--ink-3); margin-bottom: 22px; }
.pc-price { display: flex; align-items: baseline; gap: 2px; margin-bottom: 26px; }
.pc-price .cur { font-size: 20px; font-weight: 600; color: var(--ink-2); }
.pc-price .num {
  font-family: var(--serif);
  font-size: 52px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -.01em;
}
.pc-price .per { font-size: 14px; color: var(--ink-3); margin-left: 6px; }
.pc-list { display: flex; flex-direction: column; gap: 12px; margin-bottom: 30px; flex: 1; }
.pc-list li {
  position: relative;
  padding-left: 26px;
  font-size: 14.5px;
  color: var(--ink-2);
}
.pc-list li::before {
  content: "✓";
  position: absolute;
  left: 0; top: 0;
  color: var(--teal);
  font-size: 13px;
  font-weight: 700;
}

.refill {
  margin-top: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 32px;
}
.refill h3 { font-size: 18px; margin-bottom: 6px; letter-spacing: .02em; }
.refill p { font-size: 14px; color: var(--ink-3); }
.refill-pills { display: flex; gap: 12px; flex-wrap: wrap; }
.pill {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  font-size: 13.5px;
  color: var(--ink-2);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 9px 18px;
}
.pill strong { font-size: 16px; color: var(--ink); }
.price-fine {
  margin-top: 28px;
  font-size: 12.5px;
  color: var(--ink-3);
  line-height: 1.8;
  text-align: center;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

/* ---------- CTA ---------- */
.cta-section {
  background: var(--bg);
  color: var(--d-ink);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(46% 60% at 50% 10%, rgba(99,102,241,.30), transparent 60%),
    radial-gradient(40% 50% at 80% 90%, rgba(20,184,166,.14), transparent 60%);
  pointer-events: none;
}
.cta-inner { position: relative; max-width: 760px; }
.cta-inner h2 {
  font-family: var(--serif);
  font-size: clamp(32px, 4.4vw, 50px);
  line-height: 1.25;
  margin-bottom: 18px;
}
.cta-inner > p { color: var(--d-soft); font-size: 16.5px; margin-bottom: 34px; }
.cta-inner .hero-actions { justify-content: center; }
.cta-note { margin-top: 22px; font-size: 13px; color: #76809a; }

/* ---------- FAQ ---------- */
.faq-inner { max-width: 860px; }
.faq-list { display: flex; flex-direction: column; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 26px 44px 26px 0;
  position: relative;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: .01em;
  transition: color .2s;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 6px; top: 50%;
  transform: translateY(-50%);
  font-size: 22px;
  font-weight: 300;
  color: var(--ink-3);
  transition: transform .3s var(--ease);
}
.faq-item[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq-item summary:hover { color: var(--indigo-deep); }
.faq-item p {
  padding: 0 44px 26px 0;
  font-size: 15px;
  line-height: 1.9;
  color: var(--ink-2);
}

/* ---------- 页脚 ---------- */
.footer {
  background: var(--bg);
  color: var(--d-soft);
  padding: 72px 0 40px;
  border-top: 1px solid var(--d-line);
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
  padding-bottom: 44px;
  border-bottom: 1px solid var(--d-line);
}
.footer-brand { display: flex; align-items: center; gap: 18px; }
.footer-logo {
  width: 44px; height: 44px;
  object-fit: contain;
  background: #fff;
  border-radius: 10px;
  padding: 5px;
}
.footer-brand p { font-size: 15px; color: var(--d-ink); line-height: 1.6; }
.footer-brand span { font-size: 13px; color: var(--d-soft); }
.footer-links { display: flex; gap: 28px; flex-wrap: wrap; align-items: center; }
.footer-links a { font-size: 14px; color: var(--d-soft); transition: color .2s; }
.footer-links a:hover { color: var(--d-ink); }
.footer-legal { padding-top: 32px; display: flex; flex-direction: column; gap: 8px; }
.footer-legal p { font-size: 12.5px; line-height: 1.8; color: #6b7590; }

/* ---------- 五科入口 ---------- */
.subject-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 22px;
}
.subject-card {
  grid-column: span 2;
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 26px 24px;
  box-shadow: var(--shadow-soft);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
  position: relative;
  overflow: hidden;
}
.subject-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: var(--subject-color, var(--indigo));
}
.subject-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.subject-card:nth-child(4),
.subject-card:nth-child(5) { grid-column: span 3; }

.subject-yuwen { --subject-color: linear-gradient(90deg, #8b5cf6, #a78bfa); }
.subject-shuxue { --subject-color: linear-gradient(90deg, #4f46e5, #818cf8); }
.subject-yingyu { --subject-color: linear-gradient(90deg, #0d9488, #2dd4bf); }
.subject-wuli { --subject-color: linear-gradient(90deg, #d97706, #fbbf24); }
.subject-huaxue { --subject-color: linear-gradient(90deg, #e11d48, #fb7185); }

.subject-head { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; }
.subject-icon {
  width: 46px; height: 46px;
  flex: 0 0 46px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  background: var(--subject-color);
}
.subject-title h3 { font-size: 20px; letter-spacing: .03em; line-height: 1.3; }
.subject-title span { font-size: 12.5px; color: var(--ink-3); }
.subject-desc {
  font-size: 13px;
  line-height: 1.75;
  color: var(--ink-3);
  margin: -6px 0 16px;
  max-width: 46ch;
}
.subject-list { display: flex; flex-direction: column; margin-bottom: 18px; }
.subject-list li {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 0;
  border-bottom: 1px dashed var(--line);
}
.subject-list li:last-child { border-bottom: none; }
.subject-list strong { font-size: 14.5px; font-weight: 600; color: var(--ink); }
.subject-list span { font-size: 12.5px; color: var(--ink-3); line-height: 1.6; }
.subject-link {
  margin-top: auto;
  padding-top: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--indigo-deep);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap .25s var(--ease);
}
.subject-link:hover { gap: 10px; }

.teacher-note {
  margin-top: 30px;
  font-size: 13.5px;
  line-height: 1.8;
  color: var(--d-soft);
  border-left: 2px solid rgba(165, 180, 252, .45);
  padding-left: 16px;
  max-width: 720px;
}

/* ---------- 理念（暖色区） ---------- */
.section-belief {
  background: #fbf7ee;
  position: relative;
  overflow: hidden;
}
.section-belief::before {
  content: "";
  position: absolute;
  inset: -40% -10% auto -10%;
  height: 150%;
  background:
    radial-gradient(40% 45% at 85% 20%, rgba(245, 158, 11, .10), transparent 62%),
    radial-gradient(35% 40% at 10% 80%, rgba(244, 114, 182, .06), transparent 64%);
  pointer-events: none;
}
.belief-inner { position: relative; max-width: 860px; }
.kicker-warm { color: #b45309; }
.belief-quote {
  font-family: var(--serif);
  font-size: clamp(28px, 3.8vw, 44px);
  line-height: 1.5;
  font-weight: 700;
  letter-spacing: .01em;
  color: var(--ink);
  margin: 20px 0 30px;
}
.belief-sub {
  font-size: 16px;
  line-height: 2.05;
  color: var(--ink-2);
  max-width: 680px;
}
.belief-sub .warm {
  color: #b45309;
  font-weight: 600;
}

/* ---------- 工具超市 ---------- */
.tool-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 26px 0 22px;
}
/* 科目筛选：六块彩色，选中的加一圈墨色描边 */
.tool-filter .chip {
  --chip-color: #151a2c;
  font: inherit;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .02em;
  color: #fff;
  background: var(--chip-color);
  border: 0;
  border-radius: 12px;
  padding: 10px 20px;
  cursor: pointer;
  opacity: .82;
  box-shadow: 0 8px 18px -12px rgba(21, 26, 44, .55);
  transition: opacity .2s, transform .2s, box-shadow .2s;
}
.tool-filter .chip em {
  font-style: normal;
  font-size: 12px;
  font-weight: 600;
  color: rgba(255, 255, 255, .72);
  margin-left: 5px;
}
.tool-filter .chip:hover { opacity: 1; transform: translateY(-1px); }
.tool-filter .chip.is-on {
  opacity: 1;
  transform: translateY(-1px);
  box-shadow: 0 0 0 2px #fff, 0 0 0 4px #100e18, 0 10px 22px -12px rgba(16, 14, 24, .6);
}
.tool-filter .chip[data-filter="英语"] { --chip-color: #0f766e; }
.tool-filter .chip[data-filter="语文"] { --chip-color: #6d28d9; }
.tool-filter .chip[data-filter="数学"] { --chip-color: #4338ca; }
.tool-filter .chip[data-filter="化学"] { --chip-color: #be123c; }
.tool-filter .chip[data-filter="物理"] { --chip-color: #b45309; }

.tool-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.tool-card {
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 20px 20px 18px;
  color: inherit;
  text-decoration: none;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s;
  position: relative;
}
.tool-card:hover {
  transform: translateY(-3px);
  border-color: var(--tool-color, var(--indigo));
  box-shadow: var(--shadow);
}
.tool-card.is-hidden { display: none; }
.tool-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 14px;
}
.tool-subject {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--tool-color, var(--indigo));
  letter-spacing: .04em;
}
.tool-subject i {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--tool-color, var(--indigo));
}
.tool-time { font-size: 11.5px; color: var(--ink-3); white-space: nowrap; }
.tool-card h3 {
  font-size: 18px;
  letter-spacing: .01em;
  margin-bottom: 8px;
}
.tool-card p {
  font-size: 13px;
  line-height: 1.7;
  color: var(--ink-3);
  margin-bottom: 18px;
}
.tool-foot {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.tool-state {
  font-size: 11.5px;
  padding: 3px 9px;
  border-radius: 999px;
}
.tool-state.is-ready { background: rgba(20, 184, 166, .1); color: #0d9488; }
.tool-state.is-beta { background: rgba(245, 158, 11, .13); color: #b45309; }
.tool-state.is-soon { background: rgba(148, 163, 184, .16); color: #64748b; }
.tool-arrow {
  color: var(--ink-3);
  font-size: 15px;
  transition: transform .25s var(--ease), color .25s;
}
.tool-card:hover .tool-arrow { transform: translateX(3px); color: var(--tool-color, var(--indigo)); }

.tool-yuwen { --tool-color: #8b5cf6; }
.tool-shuxue { --tool-color: #4f46e5; }
.tool-yingyu { --tool-color: #0d9488; }
.tool-wuli { --tool-color: #d97706; }
.tool-huaxue { --tool-color: #e11d48; }
.tool-quanke { --tool-color: #475569; }

/* ---------- 五科货架 ---------- */
.tool-shelves {
  display: flex;
  flex-direction: column;
  gap: 38px;
}
.tool-shelf { --tool-color: var(--indigo); }
.tool-shelf.is-hidden { display: none; }
.shelf-yingyu { --tool-color: #0d9488; }
.shelf-yuwen { --tool-color: #8b5cf6; }
.shelf-shuxue { --tool-color: #4f46e5; }
.shelf-huaxue { --tool-color: #e11d48; }
.shelf-wuli { --tool-color: #d97706; }

.shelf-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px 18px;
  flex-wrap: wrap;
  padding-bottom: 11px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 15px;
}
.shelf-name {
  display: flex;
  align-items: center;
  gap: 9px;
}
.shelf-name i {
  width: 9px;
  height: 9px;
  border-radius: 3px;
  background: var(--tool-color);
}
.shelf-name h3 {
  font-size: 20px;
  letter-spacing: .02em;
}
.shelf-count { font-size: 11.5px; color: var(--ink-3); }
.shelf-desc { font-size: 12.5px; color: var(--ink-3); }

.shelf-grid {
  display: grid;
  /* 3 列：6 个卡片正好两排、3 个正好一排，5 个只差一格，货架最整齐 */
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
/* 「全部」只看每科一张封面卡，另一块是入口；点科目色块后该科全部铺开 */
.tool-shelves.is-all .tool-card:not(.is-lead) { display: none; }

.shelf-jump { display: none; }
.tool-shelves.is-all .shelf-jump {
  display: flex;
  align-items: center;
  gap: 22px;
  grid-column: span 2;
  padding: 26px 30px;
  border: 1px solid color-mix(in srgb, var(--tool-color) 20%, #fff);
  border-radius: 18px;
  background: color-mix(in srgb, var(--tool-color) 5%, #fff);
  color: inherit;
  text-decoration: none;
  transition: background .25s, border-color .25s;
}
.tool-shelves.is-all .shelf-jump:hover {
  background: color-mix(in srgb, var(--tool-color) 10%, #fff);
  border-color: color-mix(in srgb, var(--tool-color) 34%, #fff);
}
.jump-count {
  display: flex;
  align-items: baseline;
  gap: 6px;
  font-family: var(--serif);
  font-size: 32px;
  font-weight: 700;
  line-height: 1;
  color: var(--tool-color);
}
.jump-count em {
  font-family: var(--sans, inherit);
  font-style: normal;
  font-size: 12px;
  font-weight: 400;
  color: var(--ink-3);
}
.jump-text { flex: 1; font-size: 13.5px; color: var(--ink-3); }
.jump-go { font-size: 14px; font-weight: 700; color: var(--tool-color); white-space: nowrap; }
.jump-go i { font-style: normal; margin-left: 3px; }
.shelf-jump:hover .jump-go i { display: inline-block; transform: translateX(3px); transition: transform .2s; }

.shelf-note {
  margin-top: 11px;
  font-size: 12px;
  color: var(--ink-3);
}

.tool-cat {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .08em;
  color: var(--tool-color);
}
.tool-inputs {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin: -4px 0 14px;
}
.tool-inputs i {
  font-style: normal;
  font-size: 10.5px;
  line-height: 1;
  color: var(--ink-3);
  background: #f5f6fa;
  border: 1px solid var(--line);
  padding: 4px 7px;
  border-radius: 6px;
}
.tool-card.is-soon {
  background: #fbfbfd;
  border-style: dashed;
}
.tool-card.is-soon .tool-arrow { opacity: .45; }

.tool-note {
  margin-top: 18px;
  font-size: 12.5px;
  color: var(--ink-3);
}

/* ---------- 报名弹窗 ---------- */
.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.modal[hidden] { display: none; }
.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(7, 10, 20, .62);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  animation: fadeIn .25s ease;
}
.modal-card {
  position: relative;
  width: min(520px, 100%);
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  background: var(--card);
  border-radius: 24px;
  padding: 36px 34px 30px;
  box-shadow: 0 40px 100px -30px rgba(0, 0, 0, .55);
  animation: popIn .35s var(--ease);
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes popIn {
  from { opacity: 0; transform: translateY(16px) scale(.98); }
  to { opacity: 1; transform: none; }
}
.modal-close {
  position: absolute;
  top: 16px; right: 16px;
  width: 36px; height: 36px;
  border: none;
  border-radius: 50%;
  background: var(--soft);
  color: var(--ink-2);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  transition: background .2s, color .2s;
}
.modal-close:hover { background: #eef0f7; color: var(--ink); }
.modal-card h2 {
  font-family: var(--serif);
  font-size: 28px;
  letter-spacing: .01em;
  margin: 8px 0 10px;
}
.modal-sub { font-size: 14px; color: var(--ink-3); line-height: 1.75; margin-bottom: 24px; }
.field { margin-bottom: 18px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field-label { display: block; font-size: 13px; font-weight: 600; color: var(--ink-2); margin-bottom: 8px; }
.field-label em { font-style: normal; color: var(--rose); font-weight: 500; }
.field input:not([type=radio]):not([type=checkbox]),
.field textarea {
  width: 100%;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  padding: 11px 14px;
  font-size: 15px;
  font-family: var(--sans);
  color: var(--ink);
  background: #fff;
  transition: border-color .2s, box-shadow .2s;
}
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--indigo);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, .15);
}
.field textarea { resize: vertical; min-height: 64px; }
.segmented { display: flex; gap: 8px; }
.segmented label, .chips label { position: relative; cursor: pointer; }
.segmented input, .chips input { position: absolute; opacity: 0; pointer-events: none; }
.segmented span {
  display: inline-flex;
  padding: 9px 20px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-size: 14px;
  color: var(--ink-2);
  transition: background .2s, color .2s, border-color .2s;
}
.segmented input:checked + span {
  background: linear-gradient(135deg, var(--indigo), var(--violet));
  border-color: transparent;
  color: #fff;
}
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips span {
  display: inline-flex;
  padding: 8px 16px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-size: 13.5px;
  color: var(--ink-2);
  transition: background .2s, color .2s, border-color .2s;
}
.chips input:checked + span {
  background: rgba(99, 102, 241, .10);
  border-color: rgba(99, 102, 241, .45);
  color: var(--indigo-deep);
}
.consent {
  display: flex; gap: 9px; align-items: flex-start;
  margin: 4px 0 18px; padding: 12px 13px;
  border-radius: 10px; background: rgba(100,84,156,.06);
  border: 1px solid rgba(100,84,156,.16);
  font-size: 12px; line-height: 1.65; color: var(--ink-2); cursor: pointer;
}
.consent input { flex: 0 0 auto; width: 15px; height: 15px; margin: 2px 0 0; accent-color: var(--indigo); }
.form-error { margin-top: 12px; font-size: 13px; color: var(--rose); text-align: center; }
.form-fine { margin-top: 14px; font-size: 12px; color: var(--ink-3); text-align: center; }
.modal-success { text-align: center; padding: 18px 0 6px; }
.success-mark {
  width: 56px; height: 56px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: rgba(20, 184, 166, .12);
  color: var(--teal);
  font-size: 26px;
  display: grid;
  place-items: center;
}
.modal-success h3 { font-size: 22px; margin-bottom: 10px; }
.modal-success p { color: var(--ink-2); font-size: 14.5px; line-height: 1.9; margin-bottom: 24px; }

/* ---------- 滚动出现 ---------- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
}
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .phone, .float-card { animation: none; }
}

/* ---------- 响应式 ---------- */
@media (max-width: 1024px) {
  .tool-grid,
  .shelf-grid { grid-template-columns: repeat(3, 1fr); }
  .hero-inner { gap: 40px; }
  .card-1 { right: -4px; }
  .card-2 { left: -10px; }
  .demo-inner { gap: 44px; }
  .subject-grid { grid-template-columns: repeat(2, 1fr); }
  .subject-card,
  .subject-card:nth-child(4),
  .subject-card:nth-child(5) { grid-column: span 1; }
}

@media (max-width: 900px) {
  :root { --nav-h: 64px; }
  .nav-links, .nav-actions { display: none; }
  .nav-toggle { display: block; }
  .brand-mark { width: 50px; height: 34px; border-radius: 6px; padding: 4px 5px 5px; }

  .hero { padding: calc(var(--nav-h) + 48px) 0 72px; }
  .hero-inner { grid-template-columns: 1fr; gap: 56px; }
  .lead { max-width: none; }
  .hero-visual { order: 2; }
  .card-1 { top: -14px; right: 0; left: auto; }
  .card-2 { bottom: -14px; left: 0; right: auto; }

  .section { padding: 72px 0; }
  .steps, .cards, .parent-grid, .pricing-grid, .subject-grid { grid-template-columns: 1fr; }
  .tool-grid,
  .shelf-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  /* 手机上「全部」模式只有一张卡，直接占满一行，别留半格空 */
  .tool-shelves.is-all .shelf-grid { grid-template-columns: 1fr; }
  .tool-shelves.is-all .shelf-jump { grid-column: span 1; }
  .tool-card { padding: 18px 16px 16px; }
  .tool-card h3 { font-size: 16.5px; }
  .demo-inner { grid-template-columns: 1fr; gap: 40px; }
  .price-card.featured { order: -1; }
  .refill { flex-direction: column; align-items: flex-start; }
  .footer-inner { flex-direction: column; gap: 28px; }
  .trust-inner { gap: 12px 24px; justify-content: flex-start; }
}

@media (max-width: 520px) {
  .container { width: calc(100% - 36px); }
  .nav-inner { width: calc(100% - 36px); }
  .brand-name em { display: none; }
  .hero h1 { font-size: 36px; }
  .lead { font-size: 15.5px; }
  .hero-actions .btn { width: 100%; }
  .float-card { display: none; }
  .phone { width: 100%; max-width: 330px; }
  .pc-price .num { font-size: 46px; }
  .demo-card { padding: 24px; }
  .refill { padding: 24px; }
  .modal { padding: 12px; align-items: flex-end; }
  .modal-card { padding: 28px 22px 24px; border-radius: 22px; max-height: calc(100vh - 24px); }
  .modal-card h2 { font-size: 24px; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .segmented span { padding: 8px 16px; }
  /* 手机上让六个科目筛选整体换行，不用横向滑，一眼看全 */
  .tool-filter {
    flex-wrap: wrap;
    gap: 7px;
    margin: 20px 0 18px;
  }
  .tool-filter .chip { flex: 0 0 auto; padding: 8px 14px; font-size: 13.5px; border-radius: 10px; }
  .shelf-desc { display: none; }
  .shelf-name h3 { font-size: 18px; }
  .shelf-grid { gap: 10px; }
  .tool-shelves.is-all .shelf-jump {
    flex-wrap: wrap;
    gap: 10px 16px;
    padding: 20px 20px;
  }
  .jump-count { font-size: 26px; }
  .jump-text { flex: 1 1 100%; order: 3; font-size: 12.5px; }
}
