/* ==========================================================================
   觅我 MIWO · V3「年轻人的产品官网」
   扁平 / 马卡龙点缀 / 奶油底 / 12 栅格 / 卡片 24px
   1) 设计 token  2) 基础层  3) 版式  4) 组件  5) 区块  6) 响应式  7) 降级
   ========================================================================== */

/* ---------- 1. 设计 token ---------- */
:root {
  /* 品牌色板（马卡龙 · 低饱和） */
  --cream: #FFFBF5;
  --cream-2: #FFF4E9;
  --surface: #FFFDFA;
  --ink: #1E1B2E;
  --ink-2: #55506B;
  --line: #EFE6DC;

  --mint: #A8E6CF;
  --mint-deep: #4FC3A1;
  --mint-tint: #E6F7F0;
  --peach: #FFB7A5;
  --peach-deep: #FF8E72;
  --peach-tint: #FFEDE7;
  --lav: #C9B6E4;
  --lav-deep: #9B7EDE;
  --lav-tint: #F0E9FA;
  --butter: #FFE29A;
  --butter-deep: #F5B93E;
  --butter-tint: #FFF6DC;
  --sky: #A9D6F5;
  --sky-deep: #5BA8E0;
  --sky-tint: #E7F2FC;
  --coral: #FF7A59;
  --coral-hover: #FF6640;
  --violet: #6C5CE7;

  /* 语义层 */
  --bg: var(--cream);
  --text: var(--ink);
  --text-2: var(--ink-2);
  --border: var(--line);
  --accent: var(--coral);
  --focus: var(--violet);

  /* 字体 */
  --font-sans: "PingFang SC", "HarmonyOS Sans SC", "Noto Sans SC", "Microsoft YaHei", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* 版式尺度（移动优先，clamp 流体） */
  --fs-display: clamp(2.35rem, 1.35rem + 3.1vw, 3.4rem);   /* section H2 */
  --fs-h1: clamp(2.5rem, 1.15rem + 4.9vw, 5.5rem);
  --fs-h3: clamp(1.15rem, 1.02rem + .5vw, 1.42rem);
  --fs-lead: clamp(1.05rem, .98rem + .38vw, 1.3rem);
  --fs-body: 1rem;
  --fs-sm: .8125rem;
  --fs-xs: .75rem;

  /* 间距 / 布局 */
  --shell: 1180px;
  --gutter: clamp(20px, 4.6vw, 40px);
  --gap: 24px;
  --section-y: clamp(64px, 7.6vw, 118px);

  /* 形状 */
  --r-card: 24px;
  --r-lg: 32px;
  --r-md: 16px;
  --r-sm: 12px;
  --r-pill: 999px;
  --hair: 1.5px;

  /* 阴影（带颜色的软阴影，不用灰黑硬阴影） */
  --sh-card: 0 1px 0 rgba(30, 27, 46, .02), 0 14px 34px -26px rgba(30, 27, 46, .40);
  --sh-card-hover: 0 2px 0 rgba(30, 27, 46, .02), 0 26px 46px -26px rgba(30, 27, 46, .28);
  --sh-primary: 0 12px 26px -14px rgba(255, 122, 89, .85);
  --sh-preview: 0 40px 84px -42px rgba(155, 126, 222, .95), 0 6px 20px -12px rgba(30, 27, 46, .18);

  /* 动效 */
  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --ease-back: cubic-bezier(.34, 1.56, .64, 1);
  --dur-1: 150ms;
  --dur-2: 300ms;
  --dur-3: 620ms;

  color-scheme: light;
}

/* ---------- 2. 基础层 ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  overflow-x: clip;
  scrollbar-gutter: stable;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: 1.7;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

h1, h2, h3, h4, p, dl, dd, figure, ul, li { margin: 0; }
p, dd, li { text-wrap: pretty; }   /* 尽量不让中文段落最后一行只剩一两个字 */
ul { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
svg { display: block; }
img { max-width: 100%; height: auto; display: block; }
mark { background: none; color: inherit; }

::selection { background: var(--butter); color: var(--ink); }
:root { accent-color: var(--accent); caret-color: var(--coral); }

:where(a, button, summary, [tabindex]):focus-visible {
  outline: 2.5px solid var(--focus);
  outline-offset: 3px;
  border-radius: 6px;
}

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

/* 不让「数字 + 单位」在换行处被拆开 */
.nb { white-space: nowrap; }

.icon { width: 1.1em; height: 1.1em; flex: none; }

.skip {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 100;
  padding: 10px 18px;
  border-radius: var(--r-pill);
  background: var(--ink);
  color: var(--cream);
  font-size: var(--fs-sm);
  font-weight: 600;
  transform: translateY(-160%);
  transition: transform var(--dur-1) var(--ease-out);
}
.skip:focus-visible { transform: translateY(0); outline-offset: 3px; }

/* ---------- 3. 版式 ---------- */
.shell {
  width: 100%;
  max-width: calc(var(--shell) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.grid12 {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--gap);
}
.grid12 > * { min-width: 0; }

/* 列宽用 grid-column-end 表达，这样 .start-N 只改起点、不会吃掉跨度 */
.col-5 { grid-column-end: span 5; }
.col-6 { grid-column-end: span 6; }
.col-7 { grid-column-end: span 7; }
.start-7 { grid-column-start: 7; }
.start-8 { grid-column-start: 8; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: .14em;
  color: var(--text-2);
  margin-bottom: 18px;
}
.eyebrow--dark { color: rgba(255, 251, 245, .62); }

.display {
  font-size: var(--fs-display);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -.02em;
  color: var(--ink);
  text-wrap: balance;
}
.display--dark { color: var(--cream); }

.section-sub {
  font-size: var(--fs-body);
  line-height: 1.75;
  color: var(--text-2);
  max-width: 24em;   /* 用 em 而不是 ch：中文字宽和 ch 无关 */
}

.lead {
  font-size: var(--fs-lead);
  line-height: 1.65;
  color: var(--ink);
  font-weight: 500;
  letter-spacing: -.005em;
}

.section {
  position: relative;
  padding-block: var(--section-y);
  scroll-margin-top: 84px;
}

.dot-live {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--mint-deep);
  box-shadow: 0 0 0 0 rgba(79, 195, 161, .55);
  animation: livePulse 2.6s var(--ease-out) infinite;
  flex: none;
}
@keyframes livePulse {
  0% { box-shadow: 0 0 0 0 rgba(79, 195, 161, .5); }
  60% { box-shadow: 0 0 0 7px rgba(79, 195, 161, 0); }
  100% { box-shadow: 0 0 0 0 rgba(79, 195, 161, 0); }
}

/* ---------- 4. 组件 ---------- */

/* 4.1 按钮：只保留三个角色 —— 主 / 次 / 幽灵，尺寸两档 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55em;
  min-height: 44px;
  padding-inline: 22px;
  border: var(--hair) solid transparent;
  border-radius: var(--r-pill);
  font-size: .9rem;
  font-weight: 700;
  letter-spacing: -.005em;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color var(--dur-1) var(--ease-out),
              border-color var(--dur-1) var(--ease-out),
              box-shadow var(--dur-2) var(--ease-out),
              transform 90ms var(--ease-out);
  -webkit-tap-highlight-color: transparent;
}
.btn--lg { min-height: 52px; padding-inline: 28px; font-size: .95rem; }
.btn--sm { min-height: 38px; padding-inline: 16px; font-size: var(--fs-sm); }
.btn--block { width: 100%; }

.btn--primary {
  background-color: var(--coral);
  color: var(--ink);
  box-shadow: var(--sh-primary);
}
.btn--ghost {
  background-color: transparent;
  color: var(--ink);
  border-color: rgba(30, 27, 46, .16);
}
.btn:active { transform: scale(.975); }
.btn .icon { width: 15px; height: 15px; }

@media (hover: hover) and (pointer: fine) {
  .btn--primary:hover { background-color: var(--coral-hover); box-shadow: 0 16px 32px -14px rgba(255, 122, 89, .95); }
  .btn--ghost:hover { background-color: var(--cream-2); border-color: rgba(30, 27, 46, .32); }
}

/* 4.2 Header */
.scroll-progress {
  position: fixed;
  inset: 0 0 auto;
  height: 2.5px;
  z-index: 70;
  background: transparent;
  pointer-events: none;
}
.scroll-progress__bar {
  display: block;
  height: 100%;
  width: 100%;
  background: var(--coral);
  transform: scaleX(0);
  transform-origin: 0 50%;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: transparent;
  transition: background-color var(--dur-2) var(--ease-out),
              box-shadow var(--dur-2) var(--ease-out),
              border-color var(--dur-2) var(--ease-out);
  border-bottom: var(--hair) solid transparent;
}
.site-header.is-scrolled {
  background-color: rgba(255, 251, 245, .95);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  backdrop-filter: saturate(140%) blur(14px);
  border-bottom-color: var(--line);
  box-shadow: 0 12px 30px -28px rgba(30, 27, 46, .55);
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 68px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: none;
}
.brand__mark { width: 30px; height: 30px; display: block; }
.brand__mark svg { width: 100%; height: 100%; }
.brand__text {
  font-size: 1.0625rem;
  font-weight: 800;
  letter-spacing: -.02em;
  color: var(--ink);
}
.brand__sep { color: var(--coral); padding-inline: 1px; }
.brand__en { font-size: .8125rem; letter-spacing: .16em; color: var(--ink-2); font-weight: 700; }

.nav__list { display: flex; align-items: center; gap: 4px; }
.nav__link {
  display: inline-flex;
  align-items: center;
  height: 36px;
  padding-inline: 14px;
  border-radius: var(--r-pill);
  font-size: .875rem;
  font-weight: 600;
  color: var(--ink-2);
  transition: color var(--dur-1) var(--ease-out), background-color var(--dur-1) var(--ease-out);
}
.nav__link.is-active { color: var(--ink); background-color: var(--cream-2); }
.header__actions { display: flex; align-items: center; gap: 10px; }

@media (hover: hover) and (pointer: fine) {
  .nav__link:hover { color: var(--ink); background-color: rgba(30, 27, 46, .05); }
  .nav__link.is-active:hover { background-color: var(--cream-2); }
}

.menu-btn {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: var(--hair) solid var(--line);
  background: var(--surface);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}
.menu-btn__bar {
  display: block;
  width: 17px;
  height: 2px;
  border-radius: 2px;
  background: var(--ink);
  transition: transform var(--dur-2) var(--ease-out), opacity var(--dur-1) var(--ease-out);
}
.menu-btn[aria-expanded="true"] .menu-btn__bar:first-child { transform: translateY(3.5px) rotate(45deg); }
.menu-btn[aria-expanded="true"] .menu-btn__bar:last-child { transform: translateY(-3.5px) rotate(-45deg); }

.mobile-menu {
  position: fixed;
  inset: 68px 0 0;
  z-index: 59;
  padding: 24px var(--gutter) 40px;
  background: var(--cream);
  border-top: var(--hair) solid var(--line);
  overflow-y: auto;
  overscroll-behavior: contain;
  animation: menuIn var(--dur-2) var(--ease-out);
}
.mobile-menu[hidden] { display: none; }
@keyframes menuIn {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}
.mobile-menu__list { display: grid; gap: 2px; margin-bottom: 20px; }
.mobile-menu__list a {
  display: block;
  padding: 12px 4px;
  font-size: 1.0625rem;
  font-weight: 700;
  border-bottom: 1px solid var(--line);
}
.mobile-menu__meta {
  margin-top: 20px;
  font-size: var(--fs-xs);
  line-height: 1.8;
  color: var(--ink-2);
}

/* 4.3 标签 / chips */
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.tags li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: var(--r-pill);
  background: var(--cream-2);
  font-size: var(--fs-xs);
  font-weight: 600;
  color: var(--ink-2);
  line-height: 1.6;
}
.tags li::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent, var(--lav-deep));
  flex: none;
}

.topic-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.topic-tags li {
  padding: 6px 14px;
  border-radius: var(--r-pill);
  border: var(--hair) solid rgba(30, 27, 46, .12);
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--ink-2);
}

/* 4.4 数据条 */
.stats {
  display: flex;
  align-items: stretch;
  gap: 0;
  margin-top: 44px;
  padding-top: 22px;
  border-top: var(--hair) solid rgba(30, 27, 46, .12);
}
.stats__item {
  display: flex;
  flex-direction: column-reverse;
  justify-content: flex-end;
  gap: 6px;
  padding-inline: 22px;
  flex: 1 1 0;
  min-width: 0;
}
.stats__item:first-child { padding-left: 0; }
.stats__item + .stats__item { border-left: var(--hair) solid rgba(30, 27, 46, .10); }
.stats__num {
  font-size: clamp(1.65rem, 1.15rem + 1.6vw, 2.35rem);
  font-weight: 800;
  letter-spacing: -.035em;
  line-height: 1;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.stats__suffix { font-size: .8em; font-weight: 700; letter-spacing: -.02em; }
.stats__label {
  font-size: var(--fs-xs);
  color: var(--ink-2);
  font-weight: 500;
  letter-spacing: .02em;
  white-space: nowrap;
}

/* ---------- 5. 区块 ---------- */

/* 5.1 Hero */
.hero {
  position: relative;
  padding-top: clamp(32px, 4.4vw, 64px);
  padding-bottom: clamp(56px, 7vw, 100px);
  isolation: isolate;
  overflow: clip;
}
.hero__dots {
  position: absolute;
  inset: -80px 0 0;
  z-index: -1;
  background-image: radial-gradient(rgba(30, 27, 46, .16) 1.3px, transparent 1.3px);
  background-size: 26px 26px;
  -webkit-mask-image: radial-gradient(120% 92% at 74% 32%, #000 0%, transparent 66%);
  mask-image: radial-gradient(120% 92% at 74% 32%, #000 0%, transparent 66%);
  opacity: .55;
  pointer-events: none;
}
.hero__glow {
  position: absolute;
  top: -160px;
  right: -140px;
  width: 620px;
  height: 620px;
  z-index: -1;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(201, 182, 228, .38), rgba(201, 182, 228, 0) 72%);
  pointer-events: none;
}
.hero__grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--gap);
  align-items: center;
}
.hero__copy { grid-column: 1 / span 7; }

.hero__eyebrow { margin-bottom: 22px; }

.hero__title {
  font-size: var(--fs-h1);
  font-weight: 800;
  line-height: 1.16;
  letter-spacing: -.025em;
  color: var(--ink);
  margin-bottom: 24px;
}
.hero__title .line { display: block; }
.mark {
  position: relative;
  z-index: 0;
  display: inline-block;
  padding-inline: .06em;
}
.mark::before {
  content: "";
  position: absolute;
  z-index: -1;
  left: -.035em;
  right: -.035em;
  bottom: .04em;
  height: .4em;
  border-radius: .09em;
  background: var(--butter);
  transform: rotate(-.7deg);
}

.hero__sub {
  font-size: clamp(1rem, .94rem + .3vw, 1.125rem);
  line-height: 1.8;
  color: var(--ink-2);
  max-width: 30em;
}
.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

/* 5.2 产品预览卡（纯 HTML/CSS 画） */
.hero__preview {
  grid-column: 8 / span 5;
  display: flex;
  justify-content: flex-end;
  perspective: 1000px;
}
.preview {
  position: relative;
  width: 100%;
  max-width: 440px;
  margin-top: 8px;
  transform-style: preserve-3d;
  will-change: transform;
}
.preview__tag {
  position: absolute;
  top: -16px;
  right: 20px;
  z-index: 2;
  padding: 6px 13px;
  border: var(--hair) solid var(--ink);
  border-radius: var(--r-pill);
  background: var(--butter);
  color: var(--ink);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .09em;
  text-transform: uppercase;
  transform: rotate(-4deg);
  box-shadow: 3px 3px 0 var(--ink);
}
.preview__card {
  position: relative;
  padding: 22px 22px 18px;
  border: var(--hair) solid var(--line);
  border-radius: var(--r-card);
  background: var(--surface);
  box-shadow: var(--sh-preview);
}
.preview__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 16px;
  border-bottom: 1px dashed var(--line);
}
.preview__badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border-radius: var(--r-pill);
  background: var(--mint-tint);
  color: #2C7F66;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: .06em;
}
.preview__meta { font-size: 11px; color: var(--ink-2); font-weight: 600; }

.preview__profile {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 0 14px;
}
.preview__avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  overflow: hidden;
  flex: none;
  box-shadow: 0 0 0 3px var(--surface), 0 0 0 4.5px var(--lav);
}
.preview__avatar svg { width: 100%; height: 100%; }
.preview__id { min-width: 0; flex: 1; }
.preview__name {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -.02em;
  line-height: 1.2;
  color: var(--ink);
}
.preview__kind { font-size: 11.5px; color: var(--ink-2); font-weight: 500; }
.preview__share {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 10px;
  border: var(--hair) solid var(--line);
  border-radius: var(--r-pill);
  font-size: 11px;
  font-weight: 700;
  color: var(--ink-2);
  flex: none;
}
.preview__share .icon { width: 12px; height: 12px; }

.mini-bars { display: grid; gap: 9px; padding: 0 0 14px; }
.mini-bars__row {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) 24px;
  gap: 10px;
  align-items: center;
}
.mini-bars__k { font-size: 11.5px; color: var(--ink-2); font-weight: 500; }
.mini-bars__track {
  height: 8px;
  border-radius: var(--r-pill);
  background: var(--cream-2);
  overflow: hidden;
}
.mini-bars__fill {
  display: block;
  height: 100%;
  width: var(--v);
  border-radius: inherit;
  background: var(--c);
  transform-origin: 0 50%;
}
.mini-bars__v {
  font-size: 11px;
  font-weight: 700;
  color: var(--ink);
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.js .mini-bars__fill { transform: scaleX(0); }

.preview__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding-bottom: 16px;
}
.preview__chips span {
  padding: 3px 9px;
  border-radius: var(--r-pill);
  background: var(--cream-2);
  font-size: 11px;
  font-weight: 600;
  color: var(--ink-2);
}
.preview__foot {
  padding-top: 12px;
  border-top: 1px dashed var(--line);
  font-size: 11px;
  color: var(--ink-2);
  letter-spacing: .01em;
}
.preview__cap {
  margin-top: 16px;
  font-size: var(--fs-xs);
  color: var(--ink-2);
  text-align: right;
}

/* 5.3 公司简介 */
.section--intro {
  background: var(--cream-2);
  border-block: var(--hair) solid rgba(30, 27, 46, .06);
  padding-block: clamp(56px, 6.6vw, 100px);
}
.intro__grid { align-items: start; }
.intro__lead .display {
  font-size: clamp(2rem, 1rem + 2.6vw, 3.6rem);
  margin-bottom: 20px;
}
.intro__meta {
  font-size: var(--fs-sm);
  color: var(--ink-2);
  letter-spacing: .02em;
}
.intro__body { display: grid; gap: 18px; align-content: start; }
.intro__body p { color: var(--ink-2); line-height: 1.85; }
.intro__body .lead { color: var(--ink); }
.topic-tags--intro { margin-top: 4px; }

/* 5.4 趣味测试 */
.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 32px;
  align-items: end;
  margin-bottom: clamp(30px, 4vw, 52px);
}
.section-head__side { display: grid; gap: 10px; padding-bottom: 6px; justify-items: start; }
.section-note {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: var(--fs-xs);
  color: var(--ink-2);
  font-weight: 500;
}
.section-head--center {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 14px;
  margin-bottom: clamp(30px, 4vw, 52px);
}
.section-head--center .section-sub { max-width: 32em; }
.section-head--center .eyebrow { margin-bottom: 0; }

.tests__grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: var(--gap);
}
.test-card {
  --accent: var(--lav-deep);
  position: relative;
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr);
  align-items: stretch;
  gap: 18px;
  padding: 18px;
  background: var(--surface);
  border: var(--hair) solid var(--line);
  border-radius: var(--r-card);
  box-shadow: var(--sh-card);
  transition: border-color var(--dur-2) var(--ease-out),
              box-shadow var(--dur-2) var(--ease-out),
              background-color var(--dur-2) var(--ease-out);
}
.test-card:nth-of-type(1) { grid-column: 1 / span 7; grid-row: 1 / span 2; --accent: var(--lav-deep); }
.test-card:nth-of-type(2) { grid-column: 8 / span 5; grid-row: 1; --accent: var(--mint-deep); }
.test-card:nth-of-type(3) { grid-column: 8 / span 5; grid-row: 2; --accent: var(--peach-deep); }

.test-card--feature {
  --accent: var(--lav-deep);
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 0;
  overflow: hidden;
}
.test-card__art {
  position: relative;
  border-radius: var(--r-md);
  overflow: hidden;
  flex: none;
  width: 104px;
}
.test-card__art--lav { background: var(--lav-tint); }
.test-card__art--mint { background: var(--mint-tint); }
.test-card__art--peach { background: var(--peach-tint); }

.test-card--feature .test-card__art {
  width: 100%;
  min-height: 210px;
  flex: 1 1 auto;
  border-radius: 0;
}
.test-card__art .starmap {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.test-card--feature .test-card__art::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 88px;
  background: linear-gradient(to top, var(--lav-tint), rgba(240, 233, 250, 0));
  pointer-events: none;
}
.test-card__hint {
  position: absolute;
  z-index: 1;
  left: 20px;
  bottom: 16px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
  color: rgba(30, 27, 46, .45);
}
.test-card:not(.test-card--feature) .test-card__hint { display: none; }

.test-card__body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  justify-content: center;
  min-width: 0;
}
.test-card--feature .test-card__body {
  padding: 22px 26px 26px;
  gap: 12px;
  flex: none;
}
.test-card__top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}
.test-card__top h3 {
  font-size: var(--fs-h3);
  font-weight: 800;
  letter-spacing: -.02em;
  color: var(--ink);
  line-height: 1.25;
}
.test-card__idx {
  font-size: var(--fs-xs);
  font-weight: 800;
  letter-spacing: .08em;
  color: rgba(30, 27, 46, .22);
  font-variant-numeric: tabular-nums;
}
.test-card__desc {
  font-size: .875rem;
  line-height: 1.75;
  color: var(--ink-2);
  max-width: 40ch;
}

/* 测试卡 hover：让卡里的图形动，而不是统一抬升 */
/* 测试卡里的图形：社交电量 = 4 格电量条（hover 时充满） */
.signal {
  position: absolute;
  left: 50%;
  top: 50%;
  display: flex;
  align-items: flex-end;
  gap: 5px;
  height: 54px;
  transform: translate(-50%, -50%);
}
.signal i {
  width: 11px;
  border-radius: 4px;
  background: var(--mint-deep);
  opacity: .28;
  transition: opacity .45s var(--ease-out), height .45s var(--ease-back);
}
.signal i:nth-child(1) { height: 20px; opacity: 1; }
.signal i:nth-child(2) { height: 32px; opacity: 1; }
.signal i:nth-child(3) { height: 43px; opacity: 1; }
.signal i:nth-child(4) { height: 54px; }
.venn {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 64px;
  height: 52px;
  transform: translate(-50%, -50%);
  display: block;
}
.venn i {
  position: absolute;
  top: 0;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 2.5px solid var(--peach-deep);
  background: rgba(255, 255, 255, .55);
  transition: transform .5s var(--ease-back);
}
.venn i:first-child { left: -4px; }
.venn i:last-child { right: -4px; border-color: rgba(30, 27, 46, .55); }

@media (hover: hover) and (pointer: fine) {
  .test-card:hover {
    border-color: rgba(30, 27, 46, .16);
    box-shadow: var(--sh-card-hover);
  }
  .test-card--feature:hover .starmap path { stroke-dasharray: 5 3; stroke-dashoffset: 0; }
  .test-card--feature:hover .starmap { transform: scale(1.02); }
  .starmap { transition: transform .7s var(--ease-out); }
  .test-card:hover .signal i { opacity: 1; }
  .test-card:hover .venn i:first-child { transform: translateX(-7px); }
  .test-card:hover .venn i:last-child { transform: translateX(7px); }
}

.topics {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 18px;
  margin-top: clamp(28px, 3.4vw, 44px);
  padding-top: 26px;
  border-top: var(--hair) solid var(--line);
}
.topics__label {
  font-size: var(--fs-sm);
  font-weight: 800;
  color: var(--ink);
  letter-spacing: .04em;
}
.topics__list { display: flex; flex-wrap: wrap; gap: 8px; }
.topics__list li {
  padding: 6px 13px;
  border-radius: var(--r-pill);
  border: var(--hair) dashed rgba(30, 27, 46, .18);
  font-size: var(--fs-sm);
  color: var(--ink-2);
  background: transparent;
}

/* 5.5 四大优势 */
.section--why { background: var(--cream-2); border-block: var(--hair) solid rgba(30, 27, 46, .06); }
.bento {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--gap);
}
.adv {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 24px 22px 22px;
  background: var(--surface);
  border: var(--hair) solid var(--line);
  border-radius: var(--r-card);
  box-shadow: var(--sh-card);
  overflow: hidden;
  transition: border-color var(--dur-2) var(--ease-out), box-shadow var(--dur-2) var(--ease-out);
}
.adv:nth-child(1) { grid-column: span 7; }
.adv:nth-child(2) { grid-column: span 5; }
.adv:nth-child(3) { grid-column: span 5; }
.adv:nth-child(4) { grid-column: span 7; }
.adv::after {
  content: "";
  position: absolute;
  left: 28px;
  right: 28px;
  bottom: 0;
  height: 3px;
  border-radius: 3px 3px 0 0;
  background: var(--acc, var(--mint));
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform var(--dur-3) var(--ease-out);
}
.adv--mint { --acc: var(--mint-deep); --acc-tint: var(--mint-tint); }
.adv--sky { --acc: var(--sky-deep); --acc-tint: var(--sky-tint); }
.adv--butter { --acc: var(--butter-deep); --acc-tint: var(--butter-tint); }
.adv--lav { --acc: var(--lav-deep); --acc-tint: var(--lav-tint); }

.adv__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}
.adv__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border-radius: var(--r-md);
  color: var(--ink);
  transition: transform var(--dur-2) var(--ease-back);
}
.adv__icon .icon { width: 24px; height: 24px; }
.adv__icon--mint { background: var(--mint); }
.adv__icon--sky { background: var(--sky); }
.adv__icon--butter { background: var(--butter); }
.adv__icon--lav { background: var(--lav); }
.adv__idx {
  font-size: var(--fs-sm);
  font-weight: 800;
  letter-spacing: .08em;
  color: rgba(30, 27, 46, .22);
  font-variant-numeric: tabular-nums;
}
.adv__title { font-size: var(--fs-h3); font-weight: 800; letter-spacing: -.02em; line-height: 1.25; }
.adv__desc { font-size: .9375rem; line-height: 1.78; color: var(--ink-2); max-width: 46ch; }
.adv__extra {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid rgba(30, 27, 46, .09);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: .02em;
  color: var(--ink-2);
  opacity: .8;
}
.adv__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid rgba(30, 27, 46, .09);
}
.adv__tags span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: var(--r-pill);
  background: var(--acc-tint, var(--cream-2));
  font-size: var(--fs-xs);
  font-weight: 600;
  color: var(--ink-2);
}
.adv__tags span::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--acc, var(--mint-deep));
}

@media (hover: hover) and (pointer: fine) {
  .adv:hover { border-color: rgba(30, 27, 46, .16); box-shadow: var(--sh-card-hover); }
  .adv:hover .adv__icon { transform: rotate(-7deg) scale(1.06); }
  .adv:hover::after { transform: scaleX(1); }
}

/* 5.6 关于我们 */
.about__side {
  align-self: start;
}
@media (min-width: 981px) {
  .about__side { position: sticky; top: 104px; }
}
.about__side .display { margin-bottom: 14px; }
.about__stamp {
  display: inline-flex;
  flex-direction: column;
  gap: 3px;
  margin-top: 26px;
  padding: 13px 17px;
  border: var(--hair) dashed rgba(30, 27, 46, .22);
  border-radius: var(--r-md);
  background: rgba(255, 253, 250, .6);
}
.about__stamp-k { font-size: var(--fs-xs); font-weight: 800; letter-spacing: .08em; color: var(--ink); }
.about__stamp-v { font-size: var(--fs-xs); color: var(--ink-2); }

.about__trust { display: grid; gap: 10px; margin-top: 24px; }
.about__trust li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: var(--fs-sm);
  color: var(--ink-2);
}
.about__trust i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  flex: none;
  border-radius: 50%;
  background: var(--mint-tint);
  color: #2C7F66;
  font-style: normal;
  font-size: 10px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.facts {
  background: var(--surface);
  border: var(--hair) solid var(--line);
  border-radius: var(--r-card);
  padding: 8px 26px;
  box-shadow: var(--sh-card);
}
.facts__row {
  display: grid;
  grid-template-columns: 148px minmax(0, 1fr);
  gap: 18px;
  align-items: baseline;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
}
.facts__row:last-child { border-bottom: 0; }
.facts__row dt { font-size: var(--fs-sm); color: var(--ink-2); }
.facts__row dd { font-size: .9375rem; color: var(--ink); font-weight: 600; line-height: 1.65; }
.facts__mono { font-variant-numeric: tabular-nums; letter-spacing: .03em; }

.scope {
  margin-top: 26px;
  padding: 2px 0 2px 20px;
  border-left: 3px solid var(--sky);
}
.scope__title {
  font-size: .9375rem;
  font-weight: 800;
  letter-spacing: -.01em;
  margin-bottom: 8px;
}
.scope__text { font-size: var(--fs-sm); line-height: 1.85; color: var(--ink-2); }
.scope__text--note { margin-top: 8px; color: var(--ink-2); opacity: .85; }

/* 5.7 联系我们（深色章） */
.section--contact {
  background: var(--ink);
  color: var(--cream);
  padding-block: clamp(64px, 7.4vw, 112px);
  overflow: hidden;
}
.section--contact::before {
  content: "";
  position: absolute;
  top: -180px;
  right: -120px;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 122, 89, .30), rgba(255, 122, 89, 0) 70%);
  pointer-events: none;
}
.contact__grid { align-items: start; }
.contact__lead .display { margin-bottom: 16px; }
.contact__sub {
  font-size: var(--fs-lead);
  line-height: 1.7;
  color: rgba(255, 251, 245, .72);
  max-width: 24em;
}
.contact__cta { margin-top: 32px; }

.contact__list { display: grid; }
.contact__item {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  grid-template-rows: auto auto;
  column-gap: 16px;
  row-gap: 2px;
  align-items: center;
  padding: 16px 0;
  border-top: var(--hair) solid rgba(255, 251, 245, .14);
}
.contact__item:last-child { border-bottom: var(--hair) solid rgba(255, 251, 245, .14); }
.contact__icon {
  grid-row: 1 / span 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--r-sm);
  background: rgba(255, 251, 245, .08);
  color: var(--mint);
}
.contact__icon .icon { width: 19px; height: 19px; }
.contact__key {
  font-size: var(--fs-xs);
  letter-spacing: .08em;
  color: rgba(255, 251, 245, .52);
  font-weight: 600;
}
.contact__val {
  font-size: .9375rem;
  font-weight: 600;
  color: var(--cream);
  line-height: 1.55;
  text-wrap: pretty;
}
a.contact__val {
  text-decoration: underline;
  text-decoration-color: rgba(255, 251, 245, .3);
  text-underline-offset: 3px;
  transition: text-decoration-color var(--dur-1) var(--ease-out), color var(--dur-1) var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  a.contact__val:hover { color: var(--butter); text-decoration-color: var(--butter); }
}

/* 5.8 Footer */
.site-footer {
  background: var(--cream-2);
  border-top: var(--hair) solid rgba(30, 27, 46, .08);
  padding-top: clamp(48px, 5.6vw, 76px);
  padding-bottom: 40px;
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.7fr 1fr 1fr .9fr;
  gap: clamp(28px, 4vw, 56px);
}
.footer__brand .brand { margin-bottom: 16px; }
.footer__tagline {
  font-size: 1.0625rem;
  font-weight: 800;
  letter-spacing: -.02em;
  color: var(--ink);
  margin-bottom: 8px;
}
.footer__desc {
  font-size: var(--fs-sm);
  line-height: 1.8;
  color: var(--ink-2);
  max-width: 22em;
}
.footer__slogan {
  margin-top: 18px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .18em;
  color: rgba(30, 27, 46, .34);
}
.footer__title {
  font-size: var(--fs-xs);
  font-weight: 800;
  letter-spacing: .12em;
  color: var(--ink);
  margin-bottom: 14px;
}
.footer__links { display: grid; gap: 9px; }
.footer__links li { font-size: var(--fs-sm); color: var(--ink-2); line-height: 1.7; }
.footer__links a {
  transition: color var(--dur-1) var(--ease-out);
  text-underline-offset: 3px;
}
@media (hover: hover) and (pointer: fine) {
  .footer__links a:hover { color: var(--coral); text-decoration: underline; }
}

.footer__legal {
  margin-top: clamp(40px, 4.6vw, 64px);
  padding-top: 24px;
  border-top: var(--hair) solid rgba(30, 27, 46, .12);
  display: grid;
  gap: 7px;
  font-size: var(--fs-sm);
  color: var(--ink-2);
}
.footer__company { font-size: .875rem; font-weight: 800; color: var(--ink); }
.footer__copyright,
.footer__addr { font-size: var(--fs-xs); color: var(--ink-2); }
.footer__beian {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  margin-top: 4px;
  font-size: var(--fs-sm);
}
.footer__beian-link {
  color: var(--ink);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(30, 27, 46, .38);
  font-variant-numeric: tabular-nums;
  transition: color var(--dur-1) var(--ease-out), text-decoration-color var(--dur-1) var(--ease-out);
}
.footer__beian-link:hover { color: var(--coral); text-decoration-color: var(--coral); }
.footer__sep { color: rgba(30, 27, 46, .3); }
.footer__disclaimer {
  margin-top: 8px;
  max-width: 46em;
  font-size: var(--fs-xs);
  line-height: 1.8;
  color: rgba(85, 80, 107, .9);
}

/* ---------- 6. 动效初始态（仅 .js 时生效，无 JS / 减少动效时内容照常可见） ---------- */
.js .hero__title .line { overflow: hidden; }
.js .hero__title .line__in { display: inline-block; transform: translateY(112%); }
.js [data-reveal="fade"] { opacity: 0; }
.js .preview { opacity: 0; }
.js [data-reveal="card"] { opacity: 0; transform: translateY(22px); }
.js [data-reveal="wipe"] { opacity: 0; clip-path: inset(0 0 106% 0); }
.js [data-reveal="rows"] { opacity: 0; }
.js [data-reveal="rows"] .facts__row { opacity: 0; transform: translateX(-14px); }

/* ---------- 7. 响应式 ---------- */
@media (max-width: 1080px) {
  .hero__copy { grid-column: 1 / span 7; }
  .hero__preview { grid-column: 8 / span 5; }
  .facts__row { grid-template-columns: 132px minmax(0, 1fr); }
}

@media (max-width: 980px) {
  .nav { display: none; }
  .menu-btn { display: inline-flex; }

  .hero__grid { row-gap: 48px; }
  .hero__copy,
  .hero__preview { grid-column: 1 / -1; min-width: 0; }
  .hero__preview { justify-content: center; }
  .preview { max-width: 460px; }
  .preview__cap { text-align: center; }
  .hero__title { margin-bottom: 20px; }

  .grid12 > .col-5,
  .grid12 > .col-6,
  .grid12 > .col-7 { grid-column: 1 / -1; }
  .grid12 > .start-7,
  .grid12 > .start-8 { grid-column-start: 1; }

  .section-head { grid-template-columns: 1fr; gap: 16px; align-items: start; }
  .section-head__side { padding-bottom: 0; }

  .tests__grid { grid-template-rows: none; }
  .test-card:nth-of-type(1),
  .test-card:nth-of-type(2),
  .test-card:nth-of-type(3) { grid-column: 1 / -1; grid-row: auto; }
  .test-card--feature .test-card__art { min-height: 180px; }

  .adv:nth-child(1),
  .adv:nth-child(2),
  .adv:nth-child(3),
  .adv:nth-child(4) { grid-column: span 6; }

  .footer__grid { grid-template-columns: 1.6fr 1fr 1fr; }
  .footer__col:last-child { grid-column: 1 / -1; }
}

@media (max-width: 680px) {
  :root {
    --gap: 18px;
    --section-y: clamp(52px, 10vw, 72px);
  }
  .header__inner { height: 60px; gap: 10px; }
  .header__cta { padding-inline: 13px; font-size: .78rem; gap: .35em; }
  .header__cta .icon { width: 13px; height: 13px; }
  .mobile-menu { inset: 60px 0 0; }
  .brand__mark { width: 27px; height: 27px; }
  .brand__text { font-size: 1rem; }

  .hero { padding-top: 22px; }
  .hero__cta { margin-top: 26px; }
  .hero__cta .btn { flex: 1 1 auto; }
  .stats { margin-top: 32px; padding-top: 18px; }
  .stats__item { padding-inline: 12px; }
  .stats__item:first-child { padding-left: 0; }
  .stats__num { font-size: 1.5rem; }
  .stats__label { font-size: 10.5px; letter-spacing: 0; }

  .preview__card { padding: 18px 16px 14px; }
  .preview__profile { gap: 10px; }
  .preview__name { font-size: 1.125rem; }
  .preview__tag { right: 12px; }
  .mini-bars__row { grid-template-columns: 52px minmax(0, 1fr) 22px; }

  .test-card {
    grid-template-columns: 84px minmax(0, 1fr);
    gap: 14px;
    padding: 14px;
  }
  .test-card__art { width: 84px; }
  .test-card--feature { padding: 0; }
  .test-card--feature .test-card__body { padding: 18px 18px 20px; }
  .test-card--feature .test-card__art { min-height: 150px; }
  .test-card__hint { left: 14px; bottom: 12px; font-size: 10px; }
  .facts { padding: 4px 18px; }
  .facts__row { grid-template-columns: 1fr; gap: 2px; padding: 11px 0; }
  .facts__row dt { font-size: var(--fs-xs); }
  .facts__row dd { font-size: var(--fs-sm); }

  .adv:nth-child(1),
  .adv:nth-child(2),
  .adv:nth-child(3),
  .adv:nth-child(4) { grid-column: 1 / -1; }
  .adv { padding: 22px 20px; }
  .adv::after { left: 20px; right: 20px; }

  .contact__list { margin-top: 8px; }
  .contact__item { grid-template-columns: 38px minmax(0, 1fr); column-gap: 12px; padding: 13px 0; }
  .contact__icon { width: 34px; height: 34px; border-radius: 10px; }
  .contact__icon .icon { width: 17px; height: 17px; }
  .contact__val { font-size: var(--fs-sm); }

  .footer__grid { grid-template-columns: 1fr 1fr; gap: 26px 20px; }
  .footer__brand { grid-column: 1 / -1; }
  .footer__col:last-child { grid-column: auto; }
  .footer__legal { margin-top: 32px; }
  .footer__beian { display: grid; gap: 3px; justify-items: start; }
  .footer__sep { display: none; }
}

@media (max-width: 400px) {
  .hero__cta { flex-direction: column; align-items: stretch; }
  .hero__cta .btn { width: 100%; }
  .stats__item { padding-inline: 9px; }
  .stats__num { font-size: 1.35rem; }
  .stats__label { white-space: normal; }
  .preview__share { display: none; }
  .footer__grid { grid-template-columns: 1fr; }
}

/* ---------- 8. 降级：减少动效 / 无 JS ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .hero__title .line { overflow: visible; }
  .js .hero__title .line__in { transform: none; }
  .js [data-reveal],
  .js [data-reveal="rows"] .facts__row { opacity: 1; transform: none; clip-path: none; }
  .js .mini-bars__fill { transform: none; }
  .dot-live { animation: none; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
}

@media print {
  .site-header, .scroll-progress, .mobile-menu, .skip, .hero__dots, .hero__glow { display: none !important; }
  body { background: #fff; color: #000; }
  .section { padding-block: 24px; break-inside: avoid; }
  /* 打印/导出 PDF 时不要留下未触发的入场态 */
  .js .hero__title .line { overflow: visible; }
  .js .hero__title .line__in,
  .js [data-reveal],
  .js [data-reveal="rows"] .facts__row { opacity: 1 !important; transform: none !important; clip-path: none !important; }
  .js .mini-bars__fill { transform: none !important; }
}
