/* ============================================================
   错题纠错系统 · 门户首页样式
   纯静态页面资源，无外部字体 / 框架 / 组件库依赖。
   设计令牌与项目 prototype/assets/tokens.css 保持同一色系口径。
   ============================================================ */
:root {
  --ink-900: #16223c;
  --ink-700: #26344f;
  --body:    #4c5870;
  --muted:   #78849a;
  --line:    #e4e9f2;
  --line-soft: #edf1f7;
  --paper:   #ffffff;
  --canvas:  #f7f9fc;
  --tint:    #f2f6fc;

  --accent:      #2f56c8;
  --accent-deep: #21409e;
  --accent-soft: #edf2fd;
  --value-tint:  #f3f8f6;
  --value-line:  #dfece7;

  --r-sm: 8px;
  --r-card: 14px;
  --r-lg: 20px;
  --sd-soft: 0 2px 10px rgba(22, 34, 60, .045);
  --sd-card: 0 10px 30px rgba(22, 34, 60, .075);
  --ease: cubic-bezier(.4, 0, .2, 1);
  --font: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB",
          "Microsoft YaHei", "Noto Sans CJK SC", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--canvas);
  color: var(--body);
  font-family: var(--font);
  font-size: 15.5px;
  line-height: 1.85;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, p { margin: 0; }
h1, h2, h3 { color: var(--ink-900); font-weight: 650; letter-spacing: -.015em; }
a { color: inherit; text-decoration: none; }
svg { display: block; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.container { width: min(1160px, calc(100% - 56px)); margin-inline: auto; }

.skip-link {
  position: absolute; left: 24px; top: -60px; z-index: 100;
  padding: 10px 16px; background: var(--paper); color: var(--accent);
  border: 1px solid var(--line); border-radius: var(--r-sm); font-size: 14px;
}
.skip-link:focus { top: 12px; }

/* ---------------------------------------------------------------- 按钮 */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  min-height: 48px; padding: 0 24px;
  border: 1px solid transparent; border-radius: 10px;
  font-family: inherit; font-size: 15px; font-weight: 600; line-height: 1;
  letter-spacing: .01em; white-space: nowrap; cursor: pointer;
  transition: background-color .2s var(--ease), border-color .2s var(--ease),
              color .2s var(--ease), box-shadow .2s var(--ease), transform .2s var(--ease);
}
.btn svg { width: 16px; height: 16px; }
.btn--primary {
  background: var(--accent); color: #fff;
  box-shadow: 0 4px 12px rgba(47, 86, 200, .18);
}
.btn--primary:hover { background: var(--accent-deep); transform: translateY(-1px); box-shadow: 0 8px 20px rgba(47, 86, 200, .22); }
.btn--ghost { background: var(--paper); color: var(--ink-700); border-color: #d9e0ec; }
.btn--ghost:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-1px); }
.btn--sm { min-height: 38px; padding: 0 17px; font-size: 13.5px; border-radius: 8px; }

/* ---------------------------------------------------------------- 顶栏 */
.site-header {
  position: sticky; top: 0; z-index: 30;
  background: rgba(255, 255, 255, .9);
  border-bottom: 1px solid var(--line-soft);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  backdrop-filter: saturate(180%) blur(14px);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 72px; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 12px; flex: 0 0 auto; }
.brand-mark {
  display: grid; place-items: center; width: 38px; height: 38px;
  color: #fff; background: var(--ink-900); border-radius: 11px;
}
.brand-mark svg { width: 24px; height: 24px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.35; }
.brand-text strong { color: var(--ink-900); font-size: 16px; font-weight: 650; letter-spacing: .01em; }
.brand-text small { color: var(--muted); font-size: 11.5px; letter-spacing: .04em; }

.nav { display: flex; align-items: center; gap: 30px; }
.nav > a:not(.btn) {
  position: relative; color: var(--ink-700); font-size: 14px; line-height: 72px;
  transition: color .2s var(--ease);
}
.nav > a:not(.btn)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 22px; height: 2px;
  background: var(--accent); border-radius: 2px;
  transform: scaleX(0); transform-origin: left; transition: transform .22s var(--ease);
}
.nav > a:not(.btn):hover, .nav > a[aria-current="true"] { color: var(--accent); }
.nav > a:not(.btn):hover::after, .nav > a[aria-current="true"]::after { transform: scaleX(1); }
.nav-cta { margin-left: 6px; }

.nav-toggle { display: none; }

/* ---------------------------------------------------------------- 首屏 */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(1100px 520px at 76% -12%, #e9f0fe 0%, rgba(233, 240, 254, 0) 70%),
    linear-gradient(180deg, #fbfcff 0%, #f6f9fd 100%);
  border-bottom: 1px solid var(--line-soft);
}
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(47, 86, 200, .045) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(47, 86, 200, .045) 1px, transparent 1px);
  background-size: 72px 72px;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 62%, #000 100%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 62%, #000 100%);
}
.hero-grid {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.06fr .94fr; gap: 68px; align-items: center;
  padding-top: clamp(72px, 8.5vw, 116px); padding-bottom: clamp(72px, 8vw, 108px);
}
.eyebrow {
  display: flex; align-items: center; gap: 12px;
  color: var(--accent); font-size: 12.5px; font-weight: 650; letter-spacing: .13em;
}
.eyebrow-rule { display: block; width: 26px; height: 1.5px; background: var(--accent); }
.hero h1 {
  margin: 24px 0 26px;
  font-size: clamp(34px, 4.05vw, 54px); line-height: 1.28; letter-spacing: -.028em;
  font-weight: 680;
}
.hero-lead { max-width: 540px; font-size: 16px; line-height: 1.95; color: var(--body); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }
.hero-note { margin-top: 20px; color: var(--muted); font-size: 13px; }
.hero-note a { color: var(--accent); border-bottom: 1px solid #c9d6f5; padding-bottom: 1px; transition: border-color .2s var(--ease); }
.hero-note a:hover { border-color: var(--accent); }

/* 首屏插画：纯 HTML/CSS 卡片组合，无外部图片 */
.visual {
  position: relative; overflow: hidden;
  padding: 34px 30px 26px;
  border: 1px solid #dfe7f6; border-radius: 24px;
  background: linear-gradient(158deg, #f0f5fe 0%, #e8f0fb 100%);
  box-shadow: 0 24px 56px rgba(30, 52, 104, .09);
}
.visual::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(47, 86, 200, .055) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(47, 86, 200, .055) 1px, transparent 1px);
  background-size: 34px 34px;
}
.vcard {
  position: relative; z-index: 2;
  background: var(--paper); border: 1px solid #e7ecf5; border-radius: 15px;
  box-shadow: var(--sd-card);
}
.vcard--main { width: 86%; padding: 22px 24px 18px; }
.vcard-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.vcard-title { color: var(--ink-900); font-size: 14px; font-weight: 650; }
.vcard-menu { display: inline-flex; gap: 4px; }
.vcard-menu i { width: 5px; height: 5px; border-radius: 50%; background: #d6deeb; }
.vline { height: 9px; margin-bottom: 10px; border-radius: 999px; background: linear-gradient(90deg, #e9edf5, #f2f5fa); }
.vline--90 { width: 90%; } .vline--80 { width: 80%; } .vline--72 { width: 72%; }
.vline--58 { width: 58%; } .vline--52 { width: 52%; }
.vtags { display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0 18px; }
.vtags span {
  padding: 4px 10px; border-radius: 999px; font-size: 11.5px; line-height: 1.5;
  color: #3c5ba8; background: var(--accent-soft); border: 1px solid #dce6fb;
}
.vtags span + span { color: #5c6b83; background: #f5f7fb; border-color: #e8ecf3; }
.vcard-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding-top: 14px; border-top: 1px solid var(--line-soft); font-size: 11.5px; color: var(--muted);
}
.vstatus { display: inline-flex; align-items: center; gap: 6px; color: #317060; font-weight: 600; }
.vstatus i { width: 6px; height: 6px; border-radius: 50%; background: #4a9a82; }

.vcard--sub {
  z-index: 3; width: 68%; margin: -16px 0 0 auto; padding: 18px 20px 20px;
  background: #fff; border-color: #e4eaf5;
}
.vsub-label { display: block; color: var(--accent); font-size: 11px; font-weight: 650; letter-spacing: .08em; }
.vsub-title { display: block; margin: 6px 0 16px; color: var(--ink-900); font-size: 13.5px; font-weight: 600; line-height: 1.6; }
.vflow {
  position: relative; z-index: 2;
  display: flex; align-items: center; gap: 10px; margin-top: 26px;
  color: #5a6c8c; font-size: 11.5px; letter-spacing: .04em;
}
.vflow i { flex: 1 1 auto; height: 1px; background: #cdd9ee; }
.vflow span { flex: 0 0 auto; }

/* ---------------------------------------------------------------- 通用区块 */
.section { padding: clamp(72px, 8vw, 108px) 0; scroll-margin-top: 72px; }
.section--white { background: var(--paper); }
.section--tint { background: var(--tint); border-block: 1px solid var(--line-soft); }
.section-head { max-width: 730px; margin-bottom: 46px; }
.kicker {
  display: flex; align-items: center; gap: 11px; margin-bottom: 18px;
  color: var(--accent); font-size: 12px; font-weight: 650; letter-spacing: .15em;
}
.kicker span { display: block; width: 20px; height: 1.5px; background: currentColor; }
.section h2 { font-size: clamp(25px, 2.7vw, 34px); line-height: 1.42; letter-spacing: -.022em; }
.section-intro { margin-top: 16px; font-size: 15.5px; line-height: 1.95; color: var(--body); }

/* 01 产品定位 */
.cap-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.cap-card {
  display: flex; flex-direction: column; min-height: 246px; padding: 30px 28px 26px;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-card);
  box-shadow: var(--sd-soft);
  transition: transform .22s var(--ease), box-shadow .22s var(--ease), border-color .22s var(--ease);
}
.cap-card:hover { transform: translateY(-3px); border-color: #cfdbf1; box-shadow: var(--sd-card); }
.cap-index { color: #a9b7ce; font-size: 12px; font-weight: 650; letter-spacing: .14em; }
.cap-card h3 { margin: 18px 0 12px; font-size: 18px; }
.cap-card p { font-size: 14.2px; line-height: 1.9; color: var(--body); }
.cap-foot { margin-top: auto; padding-top: 20px; color: var(--muted); font-size: 12px; letter-spacing: .03em; }

/* 02 校园服务 */
.service-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; }
.service-item { padding: 4px 26px 4px 0; }
.service-item + .service-item { padding-left: 26px; border-left: 1px solid var(--line); }
.service-icon {
  display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 18px;
  color: var(--accent); background: #e9f0fd; border: 1px solid #dce7fa; border-radius: 12px;
}
.service-icon svg { width: 22px; height: 22px; }
.service-item h3 { margin-bottom: 9px; font-size: 16.5px; }
.service-item p { font-size: 14px; line-height: 1.85; color: var(--body); }

/* 03 场景与价值 */
.pair-list { display: grid; gap: 16px; }
.pair {
  display: grid; grid-template-columns: minmax(0, 1fr) 56px minmax(0, 1fr);
  align-items: stretch; overflow: hidden;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-card);
  box-shadow: var(--sd-soft);
  transition: box-shadow .22s var(--ease), border-color .22s var(--ease);
}
.pair:hover { border-color: #d3deef; box-shadow: var(--sd-card); }
.pair-side { padding: 28px 30px 30px; }
.pair-side--value { background: var(--value-tint); border-left: 1px solid var(--value-line); }
.pair-label {
  display: inline-block; margin-bottom: 12px; padding: 3px 10px;
  border: 1px solid var(--line); border-radius: 999px;
  color: var(--muted); font-size: 11.5px; letter-spacing: .06em;
}
.pair-side--value .pair-label { color: #3d7565; border-color: #d5e7de; background: #fff; }
.pair h3 { margin-bottom: 9px; font-size: 17px; line-height: 1.55; }
.pair p { font-size: 14.2px; line-height: 1.9; }
.pair-arrow { display: grid; place-items: center; color: #9fb1cd; }
.pair-arrow svg { width: 20px; height: 20px; }

/* 04 适用角色 */
.role-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.role-card {
  position: relative; padding: 28px 24px 24px;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-card);
  transition: transform .22s var(--ease), box-shadow .22s var(--ease);
}
.role-card:hover { transform: translateY(-3px); box-shadow: var(--sd-card); }
.role-no { display: block; margin-bottom: 20px; color: #adbcd2; font-size: 12px; font-weight: 650; letter-spacing: .14em; }
.role-card h3 { margin-bottom: 10px; font-size: 17px; }
.role-card p { min-height: 82px; font-size: 14px; line-height: 1.85; }
.role-entry {
  display: inline-block; margin-top: 18px; padding-top: 14px; width: 100%;
  border-top: 1px solid var(--line-soft); color: var(--accent); font-size: 12.5px; letter-spacing: .03em;
}
.role-card--family { border-color: #d8e3f7; background: #fbfcff; }
.role-note { margin-top: 22px; color: var(--muted); font-size: 13px; }
.role-note a { color: var(--accent); border-bottom: 1px solid #c9d6f5; padding-bottom: 1px; }
.role-note a:hover { border-color: var(--accent); }

/* 05 家长服务 */
.family-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.family-card {
  display: flex; flex-direction: column; padding: 28px 26px 24px;
  background: var(--canvas); border: 1px solid var(--line); border-radius: var(--r-card);
  transition: transform .22s var(--ease), box-shadow .22s var(--ease), border-color .22s var(--ease);
}
.family-card:hover { transform: translateY(-3px); border-color: #cfdbf1; box-shadow: var(--sd-card); }
.family-no { color: #a9b7ce; font-size: 12px; font-weight: 650; letter-spacing: .14em; }
.family-card h3 { margin: 16px 0 10px; font-size: 17px; }
.family-card p { margin-bottom: 20px; font-size: 14.2px; line-height: 1.9; }
.family-state {
  align-self: flex-start; margin-top: auto; padding: 3px 11px;
  border: 1px solid #d9e3f6; border-radius: 999px;
  color: #3c5ba8; background: #fff; font-size: 11.5px; letter-spacing: .04em;
}
.family-boundary {
  display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px;
  margin-top: 22px; padding: 30px 32px;
  background: var(--tint); border: 1px solid var(--line); border-radius: var(--r-card);
}
.family-boundary-copy h3 { margin-bottom: 10px; font-size: 18px; }
.family-boundary-copy p { font-size: 14.2px; line-height: 1.95; }
.family-boundary-list { display: flex; flex-direction: column; justify-content: center; gap: 12px; margin: 0; padding: 0; list-style: none; }
.family-boundary-list li { position: relative; padding-left: 20px; color: var(--ink-700); font-size: 14px; }
.family-boundary-list li::before {
  content: ""; position: absolute; left: 2px; top: 11px;
  width: 7px; height: 7px; border-radius: 50%; background: #8ba3d6;
}
.family-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }
.family-note { margin-top: 18px; color: var(--muted); font-size: 13px; line-height: 1.9; }
.family-note code, .p-note code {
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 12.5px;
  padding: 1px 6px; background: #f0f3f9; border: 1px solid var(--line);
  border-radius: 5px; color: var(--ink-700);
}

/* 行动入口 */
.entry { padding: clamp(72px, 8vw, 104px) 0; background: var(--ink-900); scroll-margin-top: 72px; }
.section-head--light { margin-bottom: 40px; }
.kicker--light { color: #a9c1ff; }
.section-head--light h2 { color: #fff; }
.section-head--light .section-intro { color: #c2cce0; }
.entry-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.entry-card {
  display: flex; flex-direction: column; padding: 30px 30px 26px;
  background: rgba(255, 255, 255, .045);
  border: 1px solid rgba(255, 255, 255, .16); border-radius: var(--r-card);
  transition: background-color .22s var(--ease), border-color .22s var(--ease), transform .22s var(--ease);
}
.entry-card:hover { background: rgba(255, 255, 255, .085); border-color: rgba(169, 193, 255, .55); transform: translateY(-2px); }
.entry-card--family { background: rgba(255, 255, 255, .025); border-style: dashed; }
.entry-card--family .entry-tag { color: #d5dced; border-color: rgba(213, 220, 237, .34); }
.entry-tag {
  align-self: flex-start; padding: 3px 11px; margin-bottom: 22px;
  border: 1px solid rgba(169, 193, 255, .4); border-radius: 999px;
  color: #c9d8ff; font-size: 11.5px; letter-spacing: .06em;
}
.entry-card h3 { margin-bottom: 10px; color: #fff; font-size: 20px; }
.entry-card p { color: #c2cce0; font-size: 14.2px; line-height: 1.9; }
.entry-go {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 28px;
  color: #c9d8ff; font-size: 14px; font-weight: 600;
}
.entry-go svg { width: 16px; height: 16px; transition: transform .2s var(--ease); }
.entry-card:hover .entry-go svg { transform: translateX(4px); }
.entry-note { margin-top: 26px; color: #a9b6ce; font-size: 13px; line-height: 1.9; }
.entry-note a { color: #c9d8ff; border-bottom: 1px solid rgba(201, 216, 255, .45); padding-bottom: 1px; }
.entry-note a:hover { border-color: #c9d8ff; }
.entry-note code {
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 12.5px;
  padding: 1px 6px; background: rgba(255, 255, 255, .09);
  border: 1px solid rgba(255, 255, 255, .18); border-radius: 5px; color: #dce5f8;
}

/* ---------------------------------------------------------------- 家长服务说明页 */
.p-hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(1000px 460px at 78% -14%, #e9f0fe 0%, rgba(233, 240, 254, 0) 70%),
    linear-gradient(180deg, #fbfcff 0%, #f6f9fd 100%);
  border-bottom: 1px solid var(--line-soft);
}
.p-hero-inner { position: relative; z-index: 1; padding-top: clamp(64px, 7vw, 96px); padding-bottom: clamp(64px, 7vw, 92px); }
.p-hero h1 {
  margin: 22px 0 22px; max-width: 800px;
  font-size: clamp(30px, 3.6vw, 46px); line-height: 1.32; letter-spacing: -.028em; font-weight: 680;
}
.p-hero .hero-lead { max-width: 720px; }
.p-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.status-banner {
  display: flex; align-items: flex-start; gap: 14px;
  margin-top: 34px; padding: 16px 20px;
  background: #fff; border: 1px solid #dce6fa; border-left: 3px solid var(--accent);
  border-radius: 10px; color: var(--ink-700); font-size: 14px; line-height: 1.9;
}
.status-banner .sb-mark {
  flex: 0 0 auto; display: grid; place-items: center; width: 22px; height: 22px; margin-top: 3px;
  border-radius: 50%; background: var(--accent-soft); color: var(--accent); font-size: 13px; font-weight: 700;
}
.rule-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.rule-item { padding: 24px 26px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-card); }
.rule-item h3 { margin-bottom: 8px; font-size: 16.5px; }
.rule-item p { font-size: 14px; line-height: 1.9; }
.p-note { margin-top: 20px; color: var(--muted); font-size: 13px; line-height: 1.9; }

/* 页脚 */
.site-footer { background: var(--paper); border-top: 1px solid var(--line); }
.footer-inner {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 30px;
  padding-top: 38px; padding-bottom: 30px;
}
.footer-brand { display: flex; flex-direction: column; gap: 3px; }
.footer-brand strong { color: var(--ink-900); font-size: 15px; font-weight: 650; }
.footer-brand span { color: var(--muted); font-size: 12.5px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 24px; }
.footer-links a { color: var(--body); font-size: 13.5px; transition: color .2s var(--ease); }
.footer-links a:hover { color: var(--accent); }
.footer-bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px;
  padding-top: 18px; padding-bottom: 26px; border-top: 1px solid var(--line-soft);
  color: var(--muted); font-size: 12px;
}

/* ---------------------------------------------------------------- 入场动效（克制）
   只有 JS 判定为「首屏之外」的元素才会被临时隐藏；JS 未执行 / 不支持时内容始终可见。 */
.reveal-pending { opacity: 0; transform: translateY(14px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal-pending.is-visible { opacity: 1; transform: none; }
.cap-grid .reveal-pending:nth-child(2),
.family-grid .reveal-pending:nth-child(2),
.service-grid .reveal-pending:nth-child(2),
.role-grid .reveal-pending:nth-child(2),
.entry-grid .reveal-pending:nth-child(2) { transition-delay: 70ms; }
.cap-grid .reveal-pending:nth-child(3),
.family-grid .reveal-pending:nth-child(3),
.service-grid .reveal-pending:nth-child(3),
.role-grid .reveal-pending:nth-child(3),
.entry-grid .reveal-pending:nth-child(3) { transition-delay: 140ms; }
.service-grid .reveal-pending:nth-child(4),
.role-grid .reveal-pending:nth-child(4) { transition-delay: 210ms; }

/* ---------------------------------------------------------------- 响应式 */
@media (max-width: 1024px) {
  .hero-grid { gap: 40px; }
  .nav { gap: 20px; }
  .cap-grid { gap: 14px; }
  .cap-card { padding: 26px 22px 22px; }
  .service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px 0; }
  .service-item + .service-item { border-left: 0; padding-left: 0; }
  .service-item:nth-child(2n) { padding-left: 26px; border-left: 1px solid var(--line); }
  .role-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .role-card p { min-height: 0; }
  .family-boundary { grid-template-columns: 1fr; gap: 18px; }
  .entry-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .entry-grid .entry-card:nth-child(3) { grid-column: 1 / -1; }
}

@media (max-width: 900px) {
  .header-inner { min-height: 64px; }
  .nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 10px 28px 20px;
    background: rgba(255, 255, 255, .98);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 14px 28px rgba(22, 34, 60, .08);
    -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  }
  .nav.is-open { display: flex; }
  .nav > a:not(.btn) { line-height: 1.6; padding: 12px 0; border-bottom: 1px solid var(--line-soft); font-size: 15px; }
  .nav > a:not(.btn)::after { display: none; }
  .nav-cta { margin: 16px 0 0; align-self: flex-start; }
  .nav-toggle {
    display: flex; flex-direction: column; justify-content: center; gap: 6px;
    width: 44px; height: 44px; padding: 0 11px;
    background: var(--paper); border: 1px solid var(--line); border-radius: 10px; cursor: pointer;
  }
  .nav-toggle span { display: block; height: 1.6px; width: 100%; background: var(--ink-700); border-radius: 2px; transition: transform .22s var(--ease), opacity .22s var(--ease); }
  .nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(3.8px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:last-child { transform: translateY(-3.8px) rotate(-45deg); }

  .hero-grid { grid-template-columns: 1fr; gap: 48px; padding-top: 64px; padding-bottom: 72px; }
  .hero h1 br, .p-hero h1 br { display: none; }
  .hero-copy { max-width: 680px; }
  .hero-visual { max-width: 560px; width: 100%; }
  .hero::before { -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 55%, #000 100%); mask-image: linear-gradient(180deg, transparent 0%, #000 55%, #000 100%); }
  .pair { grid-template-columns: 1fr; }
  .pair-arrow { padding: 4px 0; transform: rotate(90deg); }
  .pair-side--value { border-left: 0; border-top: 1px solid var(--value-line); }
  .pair-side { padding: 24px 26px 26px; }
}

@media (max-width: 620px) {
  body { font-size: 15px; }
  .container { width: calc(100% - 40px); }
  .section { padding: 64px 0; }
  .section-head { margin-bottom: 34px; }
  .hero h1 { margin: 20px 0 22px; font-size: clamp(30px, 8.2vw, 40px); line-height: 1.34; }
  .hero-lead { font-size: 15px; line-height: 1.9; }
  .hero-actions { gap: 10px; margin-top: 28px; }
  .hero-actions .btn, .p-actions .btn, .family-actions .btn { flex: 1 1 auto; min-width: 140px; padding: 0 16px; }
  .visual { padding: 24px 20px 20px; border-radius: 18px; }
  .vcard--main { width: 94%; padding: 18px 18px 15px; }
  .vcard--sub { width: 80%; padding: 15px 16px 17px; }
  .vflow { gap: 6px; margin-top: 20px; font-size: 10.5px; }
  .cap-grid, .role-grid, .entry-grid, .family-grid, .rule-grid { grid-template-columns: 1fr; }
  .entry-grid .entry-card:nth-child(3) { grid-column: auto; }
  .family-boundary { padding: 24px 22px; }
  .status-banner { padding: 14px 16px; }
  .cap-card { min-height: 0; padding: 26px 24px 22px; }
  .cap-foot { margin-top: 8px; padding-top: 16px; }
  .service-grid { grid-template-columns: 1fr; gap: 26px; }
  .service-item, .service-item + .service-item, .service-item:nth-child(2n) { padding: 0; border-left: 0; }
  .service-item + .service-item { padding-top: 26px; border-top: 1px solid var(--line); }
  .service-icon { margin-bottom: 12px; }
  .pair-side { padding: 22px 22px 24px; }
  .entry-card { padding: 26px 24px 22px; }
  .footer-inner { flex-direction: column; gap: 20px; }
  .footer-links { gap: 16px 20px; }
}

/* ---------------------------------------------------------------- 无障碍偏好 */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important; animation-iteration-count: 1 !important;
    transition-duration: .01ms !important; scroll-behavior: auto !important;
  }
  .reveal-pending { opacity: 1; transform: none; }
}
