/* 《奇物拆解师》官网样式
   设计令牌与 iPad App 保持一致：科技蓝 + 探索橙 + 雾白底 + 圆角卡片 */

:root {
  --blue: #2F6BE0;
  --blue-deep: #1B4BB0;
  --blue-dark: #153A8C;
  --blue-tint: #EAF1FD;
  --orange: #FF8A3C;
  --orange-deep: #E9721F;
  --orange-tint: #FFF1E6;
  --green: #33BF8C;
  --green-deep: #1E8A64;
  --green-tint: #E8F8F2;
  --gold: #E3A73F;
  --ink: #14213D;
  --slate: #5A6B85;
  --slate-light: #9AA8BF;
  --canvas: #F4F7FC;
  --surface: #FFFFFF;
  --subtle: #F7F9FD;
  --sunken: #E9EFF8;
  --line: #E4EAF3;

  --r-sm: 12px;
  --r-md: 16px;
  --r-lg: 20px;
  --r-xl: 24px;
  --r-2xl: 28px;
  --r-pill: 999px;

  --shadow-card: 0 6px 20px rgba(20, 33, 61, .08);
  --shadow-lift: 0 14px 36px rgba(20, 33, 61, .12);
  --shadow-deep: 0 24px 60px rgba(20, 33, 61, .18);

  --container: 1180px;
  --font: "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", "Microsoft YaHei", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--surface);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 { margin: 0 0 .5em; line-height: 1.25; letter-spacing: .2px; }
h1 { font-size: 46px; font-weight: 800; }
h2 { font-size: 34px; font-weight: 800; }
h3 { font-size: 21px; font-weight: 700; }
h4 { font-size: 16px; font-weight: 700; }
p { margin: 0 0 1em; color: var(--slate); }
ul { margin: 0; padding: 0; list-style: none; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 28px; }
.container.narrow { max-width: 860px; }
.muted { color: var(--slate); }
.small { font-size: 14px; }
.center { text-align: center; }
.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;
}

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 48px; padding: 0 22px; border: 0; border-radius: var(--r-pill);
  font-family: inherit; font-size: 16px; font-weight: 600; cursor: pointer;
  transition: transform .16s ease, box-shadow .16s ease, background .16s ease;
}
.btn-sm { height: 42px; padding: 0 18px; font-size: 15px; }
.btn-lg { height: 56px; padding: 0 30px; font-size: 17px; }
.btn-primary { background: var(--orange); color: #fff; box-shadow: 0 10px 22px rgba(255, 138, 60, .3); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 28px rgba(255, 138, 60, .38); }
.btn-soft { background: var(--blue-tint); color: var(--blue-deep); }
.btn-soft:hover { background: #DFEAFB; }
.btn-ghost { background: transparent; color: var(--blue-deep); border: 1.5px solid var(--line); }
.btn-ghost:hover { border-color: var(--blue); background: var(--subtle); }
.btn-blue { background: var(--blue); color: #fff; box-shadow: 0 10px 22px rgba(47, 107, 224, .26); }
.btn-blue:hover { transform: translateY(-2px); }

/* ---------- 顶部导航 ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .88);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 26px; height: 76px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand-icon { width: 44px; height: 44px; border-radius: 14px; box-shadow: var(--shadow-card); }
.brand-text { display: flex; flex-direction: column; line-height: 1.25; }
.brand-text strong { font-size: 18px; font-weight: 800; }
.brand-text em { font-size: 12.5px; font-style: normal; color: var(--slate); }
.site-nav { display: flex; gap: 22px; margin-left: auto; font-size: 15.5px; color: var(--slate); }
.site-nav a { padding: 6px 2px; border-bottom: 2px solid transparent; transition: color .15s, border-color .15s; }
.site-nav a:hover { color: var(--blue-deep); border-color: var(--blue); }
.header-actions { display: flex; gap: 10px; }

.lang-switch { display: inline-flex; align-items: center; gap: 6px; margin-right: 4px;
  font-size: 14px; color: var(--slate-light); }
.lang-switch a { padding: 5px 9px; border-radius: var(--r-pill); }
.lang-switch a.is-active { background: var(--subtle); color: var(--ink); font-weight: 600; }
.lang-switch a:hover { color: var(--blue-deep); }

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(900px 420px at 12% 0%, #EDF3FE 0%, rgba(237, 243, 254, 0) 62%),
    radial-gradient(680px 380px at 92% 14%, #FFF3E9 0%, rgba(255, 243, 233, 0) 60%),
    var(--canvas);
  padding: 78px 0 84px;
}
.hero-inner { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.eyebrow {
  display: inline-block; margin-bottom: 18px; padding: 7px 14px; border-radius: var(--r-pill);
  background: var(--surface); color: var(--blue-deep); font-size: 14px; font-weight: 600;
  box-shadow: var(--shadow-card);
}
.hero h1 { font-size: 48px; }
.lede { font-size: 18px; max-width: 34em; }
.hero-actions { display: flex; gap: 14px; margin: 28px 0 34px; }
.hero-stats { display: flex; flex-wrap: wrap; gap: 30px; margin: 0; }
.hero-stats div { display: flex; flex-direction: column; }
.hero-stats dt { font-size: 26px; font-weight: 800; color: var(--ink); line-height: 1.1; }
.hero-stats dd { margin: 2px 0 0; font-size: 14px; color: var(--slate); }

.hero-visual { margin: 0; }
.device {
  border-radius: 30px; padding: 14px; background: linear-gradient(160deg, #1B2A47, #0F1B31);
  box-shadow: var(--shadow-deep);
}
.device img { border-radius: 20px; }
.hero-visual figcaption { margin-top: 14px; font-size: 13.5px; color: var(--slate); text-align: center; }

/* ---------- 通用区块 ---------- */
.section { padding: 88px 0; }
.section-tint { background: var(--canvas); }
.section-head { max-width: 760px; margin-bottom: 40px; }
.section-head h2 { margin-bottom: 12px; }
.section-head p { font-size: 17px; margin: 0; }

.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-xl);
  padding: 26px; box-shadow: var(--shadow-card);
}

.ticks li { position: relative; padding-left: 26px; margin-bottom: 9px; color: var(--slate); }
.ticks li::before {
  content: "✓"; position: absolute; left: 0; top: 0; color: var(--green-deep); font-weight: 700;
}

/* ---------- 家长直言 ---------- */
.fact { text-align: left; }
.fact-icon { display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px;
  border-radius: 15px; background: var(--subtle); font-size: 22px; margin-bottom: 14px; }
.fact h3 { margin-bottom: 8px; font-size: 19px; }
.fact p { margin: 0; font-size: 15.5px; }

/* ---------- 四步 ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; margin: 0; padding: 0; list-style: none; }
.steps li { position: relative; background: var(--subtle); border: 1px solid var(--line);
  border-radius: var(--r-xl); padding: 26px 24px; }
.step-no {
  display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px;
  border-radius: 12px; background: var(--blue); color: #fff; font-weight: 700; margin-bottom: 14px;
}
.steps h3 { font-size: 18px; margin-bottom: 6px; }
.steps p { margin: 0; font-size: 15px; }

/* ---------- 核心能力 ---------- */
.feature-grid { grid-template-columns: repeat(2, 1fr); }
.feature-wide { grid-column: span 2; display: grid; grid-template-columns: 1fr 1fr; gap: 30px; align-items: center; }
.feature-copy h3 { font-size: 24px; }
.feature-shot { border-radius: var(--r-lg); box-shadow: var(--shadow-lift); }
.feature h3 { font-size: 20px; }
.grade-strip { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 12px; }
.grade-strip span {
  display: inline-flex; flex-direction: column; align-items: center; padding: 8px 12px;
  border-radius: var(--r-sm); background: var(--blue-tint); color: var(--blue-deep); font-size: 13.5px; font-weight: 600;
}
.grade-strip em { font-style: normal; font-size: 12px; color: var(--slate); font-weight: 500; }

/* ---------- 内容卡 ---------- */
.item-card { padding: 0; overflow: hidden; }
.item-card img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.item-body { padding: 22px 24px 26px; }
.item-body h3 { font-size: 22px; margin-bottom: 8px; }
.item-meta { display: flex; gap: 22px; margin: 16px 0 0; padding-top: 16px; border-top: 1px solid var(--line); }
.item-meta div { display: flex; flex-direction: column; }
.item-meta dt { font-size: 12.5px; color: var(--slate-light); }
.item-meta dd { margin: 2px 0 0; font-size: 16px; font-weight: 700; }

/* ---------- 学习闭环 ---------- */
.loop { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 40px; }
.loop-step {
  flex: 1 1 170px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 20px; box-shadow: var(--shadow-card); display: flex; flex-direction: column; gap: 4px;
}
.loop-step span {
  width: 34px; height: 34px; border-radius: 11px; background: var(--orange-tint); color: var(--orange-deep);
  display: inline-flex; align-items: center; justify-content: center; font-weight: 800; margin-bottom: 8px;
}
.loop-step strong { font-size: 16.5px; }
.loop-step em { font-style: normal; font-size: 13.5px; color: var(--slate); }
.loop-arrow { color: var(--slate-light); font-weight: 700; }
.wide-shot { margin: 0; }
.wide-shot img { border-radius: var(--r-xl); box-shadow: var(--shadow-lift); }
.wide-shot figcaption { margin-top: 14px; font-size: 13.5px; color: var(--slate); text-align: center; }

/* ---------- 小奇 ---------- */
.pet-track { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.pet-stage { background: linear-gradient(180deg, #FFFFFF 0%, #F5F8FD 100%); border: 1px solid var(--line);
  border-radius: var(--r-xl); padding: 20px; text-align: center; box-shadow: var(--shadow-card); }
.pet-stage img { height: 190px; width: auto; margin: 0 auto 12px; object-fit: contain; }
.pet-stage h3 { font-size: 17px; margin-bottom: 4px; }
.pet-exp { display: inline-block; margin-bottom: 10px; padding: 3px 10px; border-radius: var(--r-pill);
  background: var(--green-tint); color: var(--green-deep); font-size: 12.5px; font-weight: 600; }
.pet-stage p { margin: 0; font-size: 14.5px; }

/* ---------- 家长 ---------- */
.parent-card h3 { font-size: 19px; }
.parent-card p { margin: 0; font-size: 15.5px; }
.callout {
  margin-top: 24px; padding: 24px 26px; border-radius: var(--r-xl);
  background: linear-gradient(120deg, var(--blue-tint), #F5F9FF); border: 1px solid #D8E5FA;
  display: flex; gap: 18px; align-items: baseline;
}
.callout strong { color: var(--blue-deep); white-space: nowrap; }
.callout span { color: var(--slate); }

/* ---------- 会员 ---------- */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.plan { display: flex; flex-direction: column; position: relative; }
.plan-featured { border-color: var(--blue); box-shadow: 0 14px 34px rgba(47, 107, 224, .16); }
.plan-badge {
  position: absolute; top: -13px; left: 26px; padding: 4px 12px; border-radius: var(--r-pill);
  background: var(--blue); color: #fff; font-size: 12.5px; font-weight: 700;
}
.plan h3 { font-size: 20px; }
.plan-price { display: flex; flex-direction: column; gap: 2px; margin-bottom: 16px; }
.plan-price em { font-style: normal; font-size: 13.5px; color: var(--slate-light); text-decoration: line-through; }
.plan-price strong { font-size: 26px; color: var(--ink); }
.pricing-notes { margin-top: 26px; padding: 24px 26px; border-radius: var(--r-xl); background: var(--subtle); border: 1px solid var(--line); }
.pricing-notes p { margin: 0 0 12px; font-size: 15px; }
.pricing-notes p:last-child { margin-bottom: 0; }

/* ---------- FAQ ---------- */
.faq details {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 18px 22px; margin-bottom: 12px; box-shadow: var(--shadow-card);
}
.faq summary { cursor: pointer; font-weight: 600; font-size: 17px; color: var(--ink); list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "＋"; float: right; color: var(--slate-light); font-weight: 700; }
.faq details[open] summary::after { content: "－"; }
.faq p { margin: 12px 0 0; font-size: 15.5px; }

/* ---------- 下载 / 内测 ---------- */
.download { background: linear-gradient(150deg, var(--blue-dark), #0E2A63 55%, #0B1F49); color: #fff; }
.download h2 { color: #fff; }
.download p { color: rgba(255, 255, 255, .82); }
.download .muted { color: rgba(255, 255, 255, .6); }
.download-inner { display: flex; align-items: center; justify-content: space-between; gap: 40px; }
.signup { display: flex; gap: 12px; margin: 22px 0 10px; max-width: 520px; }
.signup input {
  flex: 1; height: 56px; padding: 0 20px; border-radius: var(--r-pill); border: 0;
  font-family: inherit; font-size: 16px; background: rgba(255, 255, 255, .94); color: var(--ink);
}
.signup input:focus { outline: 3px solid rgba(255, 138, 60, .55); }
.form-msg { min-height: 22px; margin: 0 0 6px; font-size: 15px; }
.form-msg-ok { color: #A8F0D2; }
.form-msg-error { color: #FFC9A8; }
.form-msg-pending { color: rgba(255, 255, 255, .75); }
.signup button:disabled { opacity: .6; cursor: default; }
.download-card {
  display: flex; align-items: center; gap: 16px; padding: 20px 24px; border-radius: var(--r-xl);
  background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .18);
}
.download-card img { width: 64px; height: 64px; border-radius: 18px; }
.download-card div { display: flex; flex-direction: column; }
.download-card strong { color: #fff; font-size: 17px; }
.download-card span { color: rgba(255, 255, 255, .7); font-size: 14px; }

/* ---------- 页脚 ---------- */
.site-footer { background: #0B1B33; color: rgba(255, 255, 255, .78); padding: 56px 0 26px; }
.footer-inner { display: flex; gap: 60px; justify-content: space-between; }
.footer-brand { display: flex; gap: 14px; align-items: flex-start; max-width: 280px; }
.footer-brand img { width: 48px; height: 48px; border-radius: 14px; }
.footer-brand strong { color: #fff; font-size: 17px; }
.footer-brand p { margin: 4px 0 0; font-size: 13.5px; color: rgba(255, 255, 255, .6); }
/* 三列：产品 / 家长 / 关于（原第 4 列"内部 · 内容运营后台"随后台入口下架一起去掉） */
.footer-links { display: grid; grid-template-columns: repeat(3, auto); gap: 46px; }
.footer-links h4 { color: #fff; font-size: 14px; margin-bottom: 12px; }
.footer-links a { display: block; font-size: 14px; color: rgba(255, 255, 255, .72); margin-bottom: 8px; }
.footer-links a:hover { color: #fff; }
.footer-bottom {
  display: flex; justify-content: space-between; gap: 20px; margin-top: 44px; padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, .12); font-size: 13px; color: rgba(255, 255, 255, .55);
}

/* ---------- 响应式 ---------- */
@media (max-width: 1080px) {
  h1, .hero h1 { font-size: 38px; }
  h2 { font-size: 28px; }
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .grid-4, .steps, .pet-track { grid-template-columns: repeat(2, 1fr); }
  .plans { grid-template-columns: 1fr; }
  .feature-wide { grid-column: span 2; grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; gap: 34px; }
  .footer-links { grid-template-columns: repeat(2, 1fr); gap: 28px; }
  .site-nav { display: none; }
}

@media (max-width: 760px) {
  .container { padding: 0 20px; }
  .header-inner { height: 68px; gap: 12px; }
  .brand-text em { display: none; }
  .header-actions .btn-ghost { display: none; }
  h1, .hero h1 { font-size: 30px; }
  h2 { font-size: 24px; }
  .section { padding: 62px 0; }
  .grid-2, .grid-3, .grid-4, .steps, .pet-track { grid-template-columns: 1fr; }
  .loop-arrow { display: none; }
  .callout { flex-direction: column; gap: 8px; }
  .download-inner { flex-direction: column; align-items: flex-start; }
  .signup { flex-direction: column; }
  .footer-bottom { flex-direction: column; gap: 6px; }
}
