@font-face {
  font-family: "Be Vietnam Pro";
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
/* ---- 图标统一由 icons.css 提供（Phosphor），此处不重复声明 ---- */

:root {
  /* ===== 品牌色板（绿色系：电动两轮车 / 维修工具） ===== */
  --brand: #3d7a28;          /* 主品牌绿 */
  --brand-2: #2f6220;        /* hover 深绿 */
  --brand-soft: #eaf4e2;     /* 品牌浅底 */
  --brand-line: #c9e2b8;     /* 品牌描边 */
  --ink: #101613;            /* 主文字 */
  --fg: #101613;
  --bg: #f7f9f5;             /* 页面底 */
  --muted: #8a938b;          /* 次文字（更轻，Manus 式浅灰） */
  --line: #e3e9df;           /* 分隔线 */
  --soft: #f0f4ec;           /* 浅灰绿底 */
  --card: #ffffff;

  /* 语义色 */
  --ok: #2f7d33;
  --ok-bg: #e7f4ea;
  --warn: #a36a00;
  --warn-bg: #fff4d9;
  --danger: #b53b1c;
  --danger-bg: #fde2dc;
  --critical: #c0392b;

  /* 旧命名兼容映射（历史模板还在用） */
  --m-ink: var(--ink);
  --m-green: var(--brand);
  --m-forest: #14291c;
  --m-cta-text: #fff;
  --m-muted: var(--muted);
  --m-line: var(--line);
  --m-soft: var(--soft);
  --m-paper: var(--bg);
  --m-warn: var(--danger);
  --m-warn-bg: var(--danger-bg);
  --accent: var(--brand-soft);

  /* ===== 形状 / 层次 / 动效 ===== */
  --radius-s: 8px;
  --radius: 12px;
  --radius-l: 16px;
  --radius-xl: 20px;
  --shadow-1: 0 1px 2px rgba(16, 22, 19, 0.05);
  --shadow-2: 0 2px 8px rgba(16, 22, 19, 0.06), 0 1px 2px rgba(16, 22, 19, 0.04);
  --shadow-3: 0 12px 32px rgba(16, 22, 19, 0.12), 0 2px 8px rgba(16, 22, 19, 0.06);
  --shadow-brand: 0 6px 18px rgba(61, 122, 40, 0.28);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --t-fast: 0.14s;
  --t-med: 0.22s;
  --font: "Be Vietnam Pro", -apple-system, "Segoe UI", Arial, sans-serif;
  --display: var(--font);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
html, body { margin: 0; min-height: 100%; }
body.marketing {
  color: var(--fg);
  background: var(--bg);
  font-family: var(--font);
  font-size: 14px;
  letter-spacing: -0.011em;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
img { max-width: 100%; display: block; }
/* hidden 属性必须无条件生效（防止 display:flex 的组件类覆盖它，如 diag-widget 四态切换） */
[hidden] { display: none !important; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3 { font-weight: 550; margin: 0; letter-spacing: -0.02em; }

/* 键盘可达性：统一焦点环 */
:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
  border-radius: 4px;
}
::selection { background: var(--brand-soft); color: var(--ink); }

/* 细滚动条（Webkit + Firefox） */
* { scrollbar-width: thin; scrollbar-color: #c8d2c4 transparent; }
*::-webkit-scrollbar { width: 8px; height: 8px; }
*::-webkit-scrollbar-thumb { background: #c8d2c4; border-radius: 99px; }
*::-webkit-scrollbar-track { background: transparent; }

/* 首屏加载淡入 */
@media (prefers-reduced-motion: no-preference) {
  .m-main > *, .wrap { animation: page-in 0.4s var(--ease) both; }
  @keyframes page-in {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: none; }
  }
}

.wrap { width: min(960px, calc(100% - 40px)); margin: 0 auto; }
.top {
  position: sticky;
  top: 0;
  z-index: 40;
  background: color-mix(in srgb, var(--bg) 82%, white);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 72%, transparent);
  padding-top: env(safe-area-inset-top);
}
.top__bar {
  min-height: 68px;
  padding: 12px 0;
  display: flex;
  align-items: center;
  gap: 24px;
}
.m-logo { display: flex; align-items: center; flex-shrink: 0; transition: opacity var(--t-fast) var(--ease); }
.m-logo:hover { opacity: 0.75; }
.m-logo img { height: 26px; width: auto; max-width: 140px; }
.nav {
  display: flex;
  align-items: center;
  gap: 2px;
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
}
.nav a {
  padding: 7px 13px;
  border-radius: 999px;
  transition: color var(--t-fast) var(--ease), background var(--t-fast) var(--ease);
  white-space: nowrap;
}
.nav a:hover { color: var(--ink); background: var(--soft); }
/* 主 CTA 按钮自己管理状态（.nav__primary 定义在后方，避免 is-on 浅绿底覆盖实心绿） */
.nav a:not(.nav__primary).is-on {
  color: var(--ink);
  background: transparent;
  font-weight: 700;
}
.nav a:not(.nav__primary):hover { color: var(--ink); }
.lang { margin-left: auto; display: flex; gap: 2px; }
.lang a {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  padding: 5px 8px;
  border-radius: 8px;
  transition: color var(--t-fast) var(--ease), background var(--t-fast) var(--ease);
}
.lang a.is-on { color: var(--brand); background: var(--brand-soft); }

.hero { padding: 36px 0 12px; }
/* 与 .wrap 同宽的容器：内边距/宽度统一交给 .wrap，避免内容区比标题区窄 */
.fault-list.wrap,
.fault-detail.wrap,
.vehicle-list.wrap,
.tool-layout.wrap,
.fault-related.wrap,
.related-guides.wrap { padding-left: 0; padding-right: 0; }
.hero .ico {
  width: 48px;
  height: 48px;
  margin-bottom: 14px;
  border-radius: 12px;
  background: var(--accent);
  color: var(--brand);
  display: grid;
  place-items: center;
  font-size: 24px;
}
.hero h1 {
  font-size: clamp(28px, 4vw, 40px);
  letter-spacing: -1.2px;
  line-height: 1.15;
  margin: 0 0 10px;
}
.hero p { margin: 0; color: var(--muted); font-size: 17px; max-width: 42ch; }
.hero--tool { padding-top: 24px; }
.hero--tool h1 { font-size: clamp(24px, 3.2vw, 34px); }
.back {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  color: var(--brand);
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 14px;
}
.back i { transform: rotate(180deg); font-size: 16px; }

.block { padding: 20px 0 36px; }
.block__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 14px;
}
.block__head h2 { font-size: 22px; letter-spacing: -0.5px; }
.m-link { color: var(--brand); font-size: 14px; font-weight: 600; }

.tiles {
  display: grid;
  gap: 14px;
  grid-template-columns: 1fr;
}
.tile {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 14px;
  align-items: start;
  padding: 18px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
}
.tile i {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--accent);
  color: var(--brand);
  display: grid;
  place-items: center;
  font-size: 22px;
}
.tile b { display: block; font-size: 16px; font-weight: 650; letter-spacing: -0.3px; line-height: 1.3; }
.tile small { display: block; color: var(--muted); font-size: 13px; line-height: 1.45; margin-top: 6px; }

.stories {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr;
}
.story {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}
.story img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}
.story__body { display: grid; gap: 6px; padding: 14px 16px 16px; }
.story__meta {
  font-size: 12px;
  font-weight: 600;
  color: var(--brand);
}
.story b { font-size: 16px; line-height: 1.35; letter-spacing: -0.3px; }

.tabbar { display: none; }

.foot {
  border-top: 1px solid var(--line);
  margin-top: 40px;
  padding: 36px 0 48px;
  color: var(--muted);
  background: color-mix(in srgb, var(--soft) 55%, transparent);
}
.foot__bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 24px;
}
.foot .m-logo { margin-top: 6px; }
.foot .m-logo img { height: 17px; max-width: 96px; opacity: 0.85; }
.foot p { margin: 0; font-size: 14px; font-weight: 400; }
.foot div { display: flex; gap: 18px; font-size: 14px; font-weight: 400; }
.foot div a { transition: color var(--t-fast) var(--ease); }
.foot div a:hover { color: var(--brand); }
.foot small { font-size: 12px; color: #9aa39a; margin-left: auto; }

@media (min-width: 800px) {
  .tiles, .stories { grid-template-columns: 1fr 1fr 1fr; }
  .tile {
    grid-template-columns: 1fr;
    min-height: 188px;
  }
  .tool-layout { grid-template-columns: 1fr 1fr; }
  .choice-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 799px) {
  .wrap { width: min(100% - 32px, 1120px); }
  .top__bar { min-height: 58px; padding: 12px 0; gap: 12px; }
  .m-logo img { height: 23px; }
  .nav { display: none; }
  .hero { padding: 20px 0 8px; }
  .hero h1 { font-size: 26px; }
  .hero p { font-size: 15px; }
  .block { padding: 12px 0 24px; }
  .foot { display: none; }
  .tabbar {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 50;
    background: color-mix(in srgb, var(--bg) 86%, white);
    backdrop-filter: saturate(160%) blur(16px);
    -webkit-backdrop-filter: saturate(160%) blur(16px);
    border-top: 1px solid var(--line);
    padding: 6px 8px calc(8px + env(safe-area-inset-bottom));
  }
  .tabbar a {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    color: var(--muted);
    font-size: 10px;
    font-weight: 700;
    padding: 4px 0;
    border-radius: 10px;
    transition: color var(--t-fast) var(--ease), transform var(--t-fast) var(--ease);
  }
  .tabbar a:active { transform: scale(0.92); }
  .tabbar a i { font-size: 22px; line-height: 1; }
  .tabbar a.is-on { color: var(--brand); }
  body.marketing { padding-bottom: calc(64px + env(safe-area-inset-bottom)); }
  /* 移动端动效收敛，避免性能与眩晕问题 */
  .m-main > *, .wrap { animation: none; }
}

.m-kicker {
  letter-spacing: 1.4px;
  color: var(--muted);
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 600;
  display: flex;
  text-transform: uppercase;
}
.m-kicker i {
  background: var(--brand);
  border-radius: 50%;
  width: 6px; height: 6px;
}
.m-kicker--ink { color: var(--muted); margin-bottom: 8px; }
.m-kicker {
  letter-spacing: 1.7px;
  color: #cedfcf;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  font-weight: 500;
  display: flex;
  text-transform: uppercase;
}
.m-kicker i {
  background: var(--m-green);
  border-radius: 50%;
  width: 6px; height: 6px;
  box-shadow: 0 0 0 4px #c8f29910;
  animation: m-soft-pulse 2.4s ease-in-out infinite;
}
.m-kicker--ink { color: #6f8e7b; margin-bottom: 14px; }
.m-hero h1 {
  letter-spacing: -1.8px;
  margin: 25px 0 27px;
  font-size: clamp(40px, 5.4vw, 72px);
  line-height: 1.08;
  font-weight: 600;
}
.m-hero h1 > span { color: var(--m-green); }
.m-hero-copy > p {
  color: #acbfb4;
  font-size: 17px;
  line-height: 1.8;
  letter-spacing: -0.1px;
  max-width: 46ch;
}
.m-actions { display: flex; align-items: center; gap: 27px; margin-top: 32px; flex-wrap: wrap; }
.m-hero-note {
  color: #8da998;
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 22px;
  font-size: 12px;
  flex-wrap: wrap;
}
.m-hero-note > span {
  background: #6a8876;
  border-radius: 50%;
  width: 3px; height: 3px;
  margin: 0 6px;
}

.btn {
  border: 0;
  background: transparent;
  cursor: pointer;
  border-radius: var(--radius);
  transition: transform var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease),
              background var(--t-fast) var(--ease), opacity var(--t-fast) var(--ease);
}
.btn:active { transform: scale(0.97); }
.btn-primary, .btn.btn-primary {
  background: var(--brand);
  color: #fff;
  border-radius: 11px;
  display: inline-flex;
  align-items: center;
  justify-content: center; /* 文字居中（原 space-between 导致全站按钮文字偏右） */
  gap: 8px;
  padding: 13px 18px;
  font-size: 15px;
  font-weight: 700;
  box-shadow: var(--shadow-brand);
  text-align: center;
}
.btn-primary:hover { background: var(--brand-2); box-shadow: 0 8px 22px rgba(61, 122, 40, 0.34); transform: translateY(-1px); }
.btn-primary:hover:active { transform: scale(0.97); }
.btn-primary:disabled, .btn.is-disabled { opacity: 0.45; cursor: not-allowed; transform: none; box-shadow: none; }
.btn-lg { width: 100%; justify-content: center; padding: 15px 20px; font-size: 16px; }
.btn-ghost {
  color: var(--ink);
  border: 1px solid var(--line);
  background: #fff;
  padding: 12px 16px;
  font-size: 13px;
  font-weight: 600;
  display: inline-flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
  border-radius: 11px;
  box-shadow: var(--shadow-1);
}
.btn-ghost:hover { background: var(--soft); border-color: var(--brand-line); color: var(--brand); }
.m-secondary {
  color: #d3e1d7;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 14px;
  font-weight: 600;
}
.m-secondary--ink { color: #47624d; }
.m-secondary:hover svg { transform: translate(3px, 0); }

.m-preview {
  color: #234435;
  background: #fff;
  border: 1px solid #547464;
  border-radius: 15px;
  position: relative;
  transform: rotate(-2deg);
  box-shadow: 0 30px 80px #0003;
  animation: m-preview-float 6s ease-in-out infinite;
}
.m-preview-top {
  border-bottom: 1px solid #eaf0eb;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 20px;
  font-size: 13px;
}
.m-preview-demo {
  color: #a7b4ae;
  letter-spacing: 1px;
  margin-left: auto;
  font-size: 9px;
}
.m-preview-content { padding: 23px; }
.m-preview-caption {
  letter-spacing: 1.3px;
  color: #8b9d92;
  display: flex;
  justify-content: space-between;
  margin-bottom: 21px;
  font-size: 10px;
}
.m-preview-caption span {
  border: 1px solid #e4ece5;
  border-radius: 3px;
  padding: 4px 6px;
  font-size: 9px;
}
.m-inline-code, code {
  font-family: ui-monospace, Menlo, monospace;
  font-size: 11px;
}
.m-purchase { display: flex; align-items: center; gap: 11px; }
.m-focus-icon {
  color: #fff;
  background: #8984db;
  border-radius: 10px;
  width: 44px; height: 44px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.m-purchase b { font-size: 16px; display: block; }
.m-purchase div > span { color: #8c9d94; font-size: 12px; }
.m-purchase > strong { margin-left: auto; font-size: 24px; font-weight: 500; }
.m-evidence {
  border: 1px solid #e7eee8;
  border-radius: 8px;
  display: grid;
  gap: 12px;
  margin-top: 24px;
  padding: 16px;
  font-size: 12px;
}
.m-evidence > div { display: flex; justify-content: space-between; }
.m-evidence span { color: #7a8d81; }
.m-flow-line { margin: 22px 0 8px; font-size: 12px; color: #7a8d81; }
.m-email-float {
  background: #fff;
  border: 1px solid #e0e8dc;
  border-radius: 11px;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 15px 19px;
  position: absolute;
  bottom: -30px;
  right: -24px;
  transform: rotate(4deg);
  box-shadow: 0 10px 30px #0002;
  animation: m-mail-float 5s ease-in-out 1s infinite;
}
.m-email-float > span {
  color: #699952;
  background: #f0f6eb;
  border-radius: 8px;
  width: 34px; height: 34px;
  display: grid;
  place-items: center;
}
.m-email-float b { font-size: 13px; font-weight: 600; }
.m-email-float p { color: #8b9c8c; margin: 5px 0 0; font-size: 11px; }
.m-email-float small { color: #9cab9e; margin-left: 10px; font-size: 10px; }

.m-trust-strip {
  color: #acbfb2;
  border-top: 1px solid #ffffff1a;
  max-width: 1168px;
  margin: auto;
  padding: 28px 36px;
  display: flex;
  justify-content: space-between;
  gap: 25px;
  font-size: 13px;
}
.m-trust-strip > span { letter-spacing: 1.6px; color: #6f8e7b; font-size: 9px; }

.m-main { background: transparent; }
.m-section { max-width: 1120px; margin: auto; padding: 22px 22px 28px; }
.m-section--first { padding-top: 18px; }
.m-section-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 12px;
}
.m-section-head > p { color: #6d8072; font-size: 14px; line-height: 1.6; max-width: 42ch; }
.marketing h2 { letter-spacing: -0.8px; font-size: 22px; line-height: 1.2; font-weight: 650; }

.pain__grid, .sku-grid, .article-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.m-feature, .sku-card, .article-card {
  background: var(--m-soft);
  border: 1px solid var(--m-line);
  border-radius: 12px;
  padding: 28px;
  overflow: hidden;
  transition: border-color .22s, box-shadow .22s, transform .22s;
}
.sku-card { padding: 0; display: flex; flex-direction: column; }
.m-feature:hover, .sku-card:hover, .m-plan:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 34px #223b2910;
  border-color: #dce7d8;
}
.m-feature-icon { color: #628468; display: block; margin-bottom: 18px; font-size: 13px; letter-spacing: 1px; }
.m-feature h3, .sku-card h3, .article-card h3 {
  letter-spacing: -0.7px;
  margin-bottom: 12px;
  font-size: 22px;
  line-height: 1.2;
}
.m-feature > p, .article-card p, .sku-card__tag {
  color: #6d806f;
  font-size: 14px;
  line-height: 1.8;
}
.m-email-feature { background: #f8f7f1; }

.m-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.m-steps--3 { grid-template-columns: repeat(3, 1fr); }
.m-steps span { color: #6f9a6a; font-size: 12px; letter-spacing: 1px; }
.m-steps h3 { letter-spacing: -0.6px; margin: 12px 0 15px; font-size: 22px; }
.m-steps p { color: #899889; font-size: 14px; line-height: 1.9; }

.sku-card__media {
  background: #eef4e9;
  min-height: 180px;
  display: grid;
  place-items: center;
  padding: 18px;
}
.sku-card__media img { height: 132px; width: auto; }
.sku-card__body { padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 8px; }
.sku-card__sku { color: #6f9a6a; font-size: 11px; letter-spacing: 1px; font-weight: 700; }
.sku-card__meta { display: flex; justify-content: space-between; gap: 8px; font-size: 14px; color: #708260; }
.sku-card__meta strong { color: var(--m-ink); font-size: 20px; font-weight: 500; letter-spacing: -0.8px; }

.badge {
  display: inline-flex;
  width: fit-content;
  font-size: 11px;
  font-weight: 700;
  padding: 5px 8px;
  border-radius: 4px;
  border: 0;
  cursor: pointer;
}
.badge-ghost { background: #d5edb1; color: #315329; }
.badge-ok { background: #d5edb1; color: #315329; }
.badge-no { background: var(--m-warn-bg); color: var(--m-warn); }

.progress { margin-top: 8px; }
.progress__bar { height: 6px; background: #e9ede3; border-radius: 99px; overflow: hidden; }
.progress__bar i { display: block; height: 100%; background: var(--brand); }
.progress--lg .progress__bar { height: 8px; }
.muted { color: var(--m-muted); font-size: 13px; }

.page-head {
  max-width: 1080px;
  margin: 0 auto;
  padding: 24px 22px 8px;
}
.page-head + .sku-grid,
.page-head + .article-grid {
  max-width: 1240px;
  margin: 0 auto 80px;
  padding: 12px 36px 80px;
}
details { border-bottom: 1px solid #e5ebdf; padding: 16px 0; }
details summary { cursor: pointer; font-weight: 600; color: #50634a; }
details p { color: #6d806f; margin: 8px 0 0; }
.page-head h1 { font-size: clamp(26px, 4vw, 36px); letter-spacing: -1px; line-height: 1.15; font-weight: 650; }
.page-head p { color: #6d8072; max-width: 56ch; font-size: 16px; line-height: 1.7; }
.fit-hero .specs { margin-top: 24px; }

.pdp {
  max-width: 1240px;
  margin: auto;
  padding: 40px 36px 20px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}
.pdp__media {
  background: var(--m-soft);
  border: 1px solid var(--m-line);
  border-radius: 15px;
  padding: 40px;
}
.pdp__info h1 { font-size: clamp(32px, 3vw, 44px); letter-spacing: -1.8px; margin: 10px 0 12px; }
.pdp__info .btn { margin-top: 14px; margin-right: 10px; }
.price-box {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--m-line);
  border-radius: 12px;
  padding: 16px;
  margin: 18px 0;
  background: var(--m-soft);
}
.price-box dt { color: var(--m-muted); font-size: 12px; }
.price-box dd { margin: 6px 0 0; font-size: 22px; font-weight: 500; letter-spacing: -1px; }
.batch {
  border: 1px solid var(--m-line);
  border-radius: 12px;
  padding: 16px;
  margin: 16px 0;
}
.batch__top { display: flex; justify-content: space-between; font-size: 13px; color: #708260; }
.connector { color: #4d8a60; font-size: 14px; margin: 10px 0; }
.section-more { margin-top: 28px; }

.crumbs {
  padding: 16px 0 0;
  font-size: 13px;
}
.crumbs a { color: var(--brand); display: inline-flex; align-items: center; gap: 2px; font-weight: 600; }
.crumbs .back { display: inline-block; transform: rotate(180deg); font-size: 18px; }
.article {
  padding: 12px 0 48px;
}
.article.wrap { max-width: 720px; }
.article__cover {
  margin: 0 0 18px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--line);
}
.article__cover img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}
.article__head { padding: 0; }
.article__head h1 {
  font-size: 24px;
  letter-spacing: -0.6px;
  line-height: 1.2;
  margin: 8px 0 10px;
}
.byline { color: #6d806f; font-size: 13px; margin: 0 0 16px; }
.article .lead { font-size: 16px; line-height: 1.6; color: #47624d; }
.takeaway {
  background: var(--accent);
  border-left: 3px solid var(--brand);
  border-radius: 0 10px 10px 0;
  padding: 14px 16px;
  margin: 20px 0;
}
.takeaway__kicker {
  font-size: 11px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--brand);
  margin: 0 0 8px;
  font-weight: 700;
}
.takeaway p { margin: 0; font-size: 16px; line-height: 1.55; color: var(--m-ink); }
.article .prose { padding: 0; max-width: none; margin: 0; color: var(--muted); line-height: 1.8; }
.prose { color: var(--muted); line-height: 1.8; }
.catalog { padding: 12px 0 28px; }
.lab-figure { margin: 20px 0; }
.lab-figure figcaption { color: var(--muted); font-size: 12px; margin-bottom: 8px; }
.article-faq { margin: 24px 0 12px; }
.article-faq h2, .related-guides h2 { font-size: 18px; letter-spacing: -0.4px; margin: 0 0 12px; }
.article-tool { margin: 24px 0 0; }
.article-tool .btn { width: auto; }
.related-guides { padding: 0 0 48px; }
.article-card time { display: block; color: #8a9980; font-size: 12px; margin-bottom: 8px; }
.lab-callout {
  background: #f0f6eb;
  border-left: 3px solid var(--m-green);
  padding: 14px 16px;
  margin: 16px 0;
  border-radius: 0 8px 8px 0;
}
.lab-table { width: 100%; border-collapse: collapse; font-size: 13px; margin: 24px 0; }
.lab-table th, .lab-table td { border: 1px solid var(--m-line); padding: 10px 12px; text-align: left; }
.lab-table th { color: #4d8a60; background: var(--m-soft); }

.how-long { max-width: 760px; margin: 0 auto 80px; padding: 0 36px; list-style: none; }
.how-long li { border-bottom: 1px solid #e5ebdf; padding: 28px 0; }
.how-long h2 { font-size: 24px; letter-spacing: -0.7px; }
.how-long p { color: #6d806f; }

.specs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  padding: 0;
  border: 0;
  background: transparent;
}
.specs--inline, .specs--panel { grid-template-columns: 1fr 1fr; margin: 16px 0; }
.specs > div {
  background: var(--soft);
  border-radius: 10px;
  padding: 12px 14px;
}
.specs dt { color: var(--muted); font-size: 12px; font-weight: 600; }
.specs dd { margin: 6px 0 0; font-size: 20px; font-weight: 600; letter-spacing: -0.6px; }
.wrap-grid, h2.mt {
  max-width: 1240px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 36px;
  padding-right: 36px;
}
h2.mt { font-size: 28px; letter-spacing: -1px; margin-top: 36px; margin-bottom: 16px; }
.mt { margin-top: 36px; padding: 0 36px; max-width: 1240px; margin-left: auto; margin-right: auto; }
.embed-sku {
  max-width: 760px;
  margin: 24px auto 80px;
  padding: 28px;
  background: var(--m-soft);
  border: 1px solid var(--m-line);
  border-radius: 12px;
}

.sheet, .order-modal {
  width: min(480px, 92vw);
  border: 1px solid #547464;
  border-radius: 15px;
  background: #fff;
  color: var(--m-ink);
  padding: 0;
  box-shadow: 0 30px 80px #0003;
}
.sheet::backdrop, .order-modal::backdrop { background: rgba(16, 39, 32, 0.55); }
.sheet__head, .order-form h2 { display: flex; justify-content: space-between; align-items: center; padding: 20px 22px 0; }
.sheet__head h2, .order-form h2 { font-size: 24px; letter-spacing: -0.7px; padding: 0; }
.sheet__close { background: none; border: 0; color: #708260; cursor: pointer; font-size: 13px; }
.sheet__body, .order-form { padding: 18px 22px 24px; display: flex; flex-direction: column; gap: 12px; }
.field, .order-form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 12px;
  color: var(--muted);
  font-weight: 600;
}
.field input, .field select, .order-form input, .cascade select {
  width: 100%;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 12px;
  color: var(--fg);
  font-weight: 400;
}
.field input:focus, .field select:focus, .order-form input:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 15%, transparent);
}
.cascade { display: grid; gap: 10px; }
.hits { list-style: none; padding: 0; margin: 0; border: 1px solid #d8e2ce; border-radius: 8px; overflow: hidden; }
.hits button { width: 100%; text-align: left; background: #fff; border: 0; padding: 10px 12px; cursor: pointer; }
.hits button:hover { background: #eaf2e0; }
.price-mini { list-style: none; padding: 0; margin: 0; color: #708260; font-size: 13px; display: grid; gap: 6px; }

.checkout { display: grid; place-items: center; padding: 48px 20px 90px; background: var(--m-soft); }
.voucher {
  width: min(440px, 100%);
  background: #fff;
  border: 1px solid #547464;
  border-radius: 15px;
  padding: 28px;
  text-align: center;
  box-shadow: 0 30px 80px #0002;
}
.voucher h1 { font-size: 32px; letter-spacing: -1.5px; margin: 8px 0 12px; }
.qr { width: 240px; height: 240px; margin: 16px auto; background: #fff; border-radius: 12px; border: 1px solid var(--m-line); }
.ref { font-family: ui-monospace, Menlo, monospace; font-size: 1.25rem; color: #315329; }
.voucher dl { text-align: left; display: grid; gap: 8px; margin: 16px 0; }
.voucher dt { color: #8c9d94; font-size: 12px; }
.voucher dd { margin: 0; }
.pay-state { padding: 10px; border-radius: 8px; background: #f0f6eb; color: #315329; font-size: 13px; }
.voucher .btn { width: 100%; justify-content: center; margin-top: 8px; }

.timeline { display: flex; gap: 8px; padding: 8px 36px 0; list-style: none; flex-wrap: wrap; max-width: 1240px; margin: 0 auto; }
.timeline li { padding: 8px 12px; border: 1px solid var(--m-line); border-radius: 8px; color: var(--m-muted); font-size: 13px; }
.timeline .is-done { color: #315329; border-color: #d5edb1; background: #f0f6eb; }
.timeline .is-now { background: var(--m-green); color: var(--m-cta-text); border-color: transparent; }
.events { max-width: 760px; margin: 24px auto 80px; padding: 0 36px; list-style: none; color: #6d806f; }
.events time { color: #4d8a60; margin-right: 8px; font-size: 12px; }

.m-footer {
  background: var(--m-forest);
  color: #c5d4cc;
  margin-top: 28px;
}
.m-footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 24px;
  max-width: 1120px;
  margin: auto;
  padding: 32px 24px 40px;
}
.m-footer > span, .m-footer span { color: #8da998; font-size: 13px; }
.m-footer > div, .m-footer__inner > div { color: #c5d4cc; display: flex; gap: 22px; margin-left: auto; font-size: 14px; }
.m-footer > div a.is-quiet { color: #8a9980; opacity: 0.7; }
.catalog-quiet {
  margin: 28px 0 0;
  font-size: 13px;
}
.catalog-quiet a { color: #6d806f; }
.m-footer small {
  color: #7e9588;
  border-top: 1px solid #ffffff18;
  width: 100%;
  padding-top: 18px;
  font-size: 11px;
}

.tool-layout {
  display: grid;
  gap: 16px;
  padding: 8px 0 48px;
  align-items: start;
}
.tool-panel {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 22px;
}
.tool-panel h2 { font-size: 15px; letter-spacing: -0.2px; margin: 4px 0 12px; font-weight: 650; }
.tool-aside { display: grid; min-width: 0; }
.tool-placeholder {
  min-height: 260px;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 10px;
  text-align: center;
  color: var(--muted);
}
.tool-placeholder i {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--accent);
  color: var(--brand);
  display: grid;
  place-items: center;
  font-size: 26px;
}
.tool-placeholder p { margin: 0; max-width: 28ch; font-size: 14px; }
.tool-layout:has(.tool-result:not([hidden])) .tool-placeholder { display: none; }

.choice-grid { display: grid; grid-template-columns: 1fr; gap: 8px; margin-bottom: 20px; }
.choice-stack { display: grid; gap: 8px; margin: 0 0 20px; }
.choice {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 20px;
  column-gap: 12px;
  row-gap: 3px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 13px 14px;
  background: #fff;
  cursor: pointer;
}
.choice:hover { border-color: color-mix(in oklab, var(--brand) 40%, var(--line)); }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice b { font-size: 14px; font-weight: 650; grid-column: 1; }
.choice span { color: var(--muted); font-size: 12px; grid-column: 1; }
.choice::after {
  content: "";
  grid-column: 2;
  grid-row: 1 / span 2;
  width: 18px;
  height: 18px;
  border: 1.5px solid var(--line);
  border-radius: 5px;
  justify-self: end;
  background: #fff;
}
.choice:has(input[type="radio"])::after { border-radius: 99px; }
.choice.is-on {
  border-color: var(--brand);
  background: var(--accent);
}
.choice.is-on::after {
  background: var(--brand);
  border-color: var(--brand);
  box-shadow: inset 0 0 0 3px #fff;
}
.choice:has(input[type="checkbox"]).is-on::after {
  box-shadow: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><path fill='none' stroke='white' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round' d='M3.5 8.2 6.6 11.2 12.5 4.8'/></svg>");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 12px;
}

.temp { margin-bottom: 22px; }
.temp__top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 12px;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
}
.temp__top strong { font-size: 28px; letter-spacing: -1px; color: var(--fg); font-weight: 600; }
.temp__ends { display: flex; justify-content: space-between; margin-top: 8px; font-size: 12px; color: var(--muted); }
input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 99px;
  background: var(--soft);
  border: 0;
  padding: 0;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--brand);
  border: 2px solid #fff;
  box-shadow: 0 0 0 1px var(--brand);
  cursor: pointer;
}
input[type="range"]::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--brand);
  border: 2px solid #fff;
  box-shadow: 0 0 0 1px var(--brand);
  cursor: pointer;
}

.tool-result h2 { font-size: 22px; letter-spacing: -0.6px; margin: 8px 0 14px; line-height: 1.3; }
.tool-kicker { margin: 0 0 6px; color: var(--muted); font-size: 12px; font-weight: 600; }
.tool-level {
  display: inline-flex;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  padding: 5px 9px;
  border-radius: 8px;
  background: var(--accent);
  color: var(--brand);
}
.tool-level[data-tone="warn"] { background: #fff4d8; color: #8a5a10; }
.tool-level[data-tone="danger"], .tool-level[data-tone="stop"] { background: var(--m-warn-bg); color: var(--m-warn); }
.tool-tips { margin: 4px 0 18px; padding-left: 18px; color: var(--muted); line-height: 1.7; }
.tool-actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 16px; }
.tool-actions .btn { width: auto; }
.lead-form {
  display: grid;
  gap: 12px;
  border-top: 1px solid var(--line);
  padding-top: 16px;
}
.lead-form p { color: var(--muted); font-size: 14px; margin: 0; }
.lead-form__row { display: grid; gap: 10px; }
@media (min-width: 520px) {
  .lead-form__row { grid-template-columns: 1fr 1fr; }
}
.lead-ok { color: var(--brand) !important; }
.maint-list { display: grid; gap: 8px; margin: 12px 0 18px; }
.maint-row {
  background: var(--soft);
  border: 1px solid transparent;
  border-radius: 10px;
  padding: 12px 14px;
}
.maint-row > div { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.maint-row small { font-size: 11px; font-weight: 700; letter-spacing: 0.3px; text-transform: uppercase; color: var(--muted); }
.maint-row strong { display: block; margin: 6px 0 4px; font-size: 15px; }
.maint-row p { margin: 0; color: var(--muted); font-size: 13px; }
.maint-row.is-due { background: var(--m-warn-bg); }
.maint-row.is-due small { color: var(--m-warn); }
.maint-row.is-check { background: #fff6e4; }
.maint-row.is-check small { color: #8a5a10; }
.maint-row.is-skip small { color: var(--brand); }
.tool-early { color: var(--muted); font-size: 14px; line-height: 1.6; }
.m-steps a { display: inline-block; margin-top: 12px; }
#heatTempLabel { display: block; }

@media print {
  .m-nav, .m-nav-end, .m-footer, .no-print, .m-menu, .lang, .js-open-garage { display: none !important; }
  .marketing-top { background: #fff; color: #000; }
  .tool-layout { display: block; }
  .tool-result { border: 0; }
}

@keyframes m-soft-pulse {
  0%, 100% { box-shadow: 0 0 0 4px #c8f29910; }
  50% { box-shadow: 0 0 0 8px #c8f29908; }
}
@keyframes m-preview-float {
  0%, 100% { transform: rotate(-2deg) translateY(0); }
  50% { transform: rotate(-1.6deg) translateY(-8px); }
}
@keyframes m-mail-float {
  0%, 100% { translate: 0; }
  50% { translate: 0 -6px; }
}

@media (min-width: 800px) {
  .pdp, .sku-grid, .article-grid { grid-template-columns: 1fr; }
}

@media print {
  .brand, .tabbar, .lang, .no-print { display: none !important; }
  .app { width: auto; height: auto; box-shadow: none; }
}

@media (prefers-reduced-motion: reduce) {
  .m-preview, .m-email-float, .m-kicker i { animation: none !important; }
}

/* =================================================================
   拍照问诊（tool_diagnose.html）
   ================================================================= */
.diag-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  align-items: start;
  padding: 24px 16px 80px;
  max-width: 980px;
  margin: 0 auto;
}
@media (min-width: 900px) {
  .diag-layout {
    grid-template-columns: 5fr 6fr;
    gap: 28px;
  }
}

.diag-panel {
  background: var(--card);
  border-radius: var(--radius-l);
  padding: 24px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-2);
  position: sticky;
  top: 92px;
}
@media (max-width: 899px) {
  .diag-panel { position: static; padding: 18px; }
}

.diag-section { margin-bottom: 20px; }
.diag-section:last-child { margin-bottom: 0; }
.diag-section__title {
  font-size: 15px;
  font-weight: 700;
  margin: 0 0 4px;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 8px;
}
.diag-section__hint {
  font-size: 12px;
  color: var(--muted);
  margin: 0 0 10px;
}
.diag-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 6px;
}
.diag-input,
.diag-textarea,
.diag-select {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 11px 13px;
  font-size: 14px;
  color: var(--ink);
  font-family: inherit;
  box-sizing: border-box;
  transition: border-color var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease), background var(--t-fast) var(--ease);
}
.diag-input:hover,
.diag-textarea:hover,
.diag-select:hover { border-color: #cdd8c8; }
.diag-input:focus,
.diag-textarea:focus,
.diag-select:focus {
  outline: none;
  border-color: var(--brand);
  background: #fff;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 14%, transparent);
}
.diag-textarea { resize: vertical; min-height: 84px; }

/* 上传区 */
.diag-uploader { display: flex; flex-direction: column; gap: 10px; }
.diag-uploader__drop {
  background: var(--bg);
  border: 2px dashed color-mix(in srgb, var(--brand) 28%, var(--line));
  border-radius: var(--radius);
  padding: 26px 16px;
  text-align: center;
  color: var(--muted);
  transition: border-color var(--t-med) var(--ease), background var(--t-med) var(--ease), transform var(--t-med) var(--ease);
  cursor: pointer;
}
.diag-uploader__drop:hover { border-color: var(--brand); background: var(--brand-soft); }
.diag-uploader__drop.is-drag {
  border-color: var(--brand);
  background: var(--brand-soft);
  transform: scale(1.012);
}
.diag-uploader__drop i {
  font-size: 34px;
  display: block;
  margin-bottom: 10px;
  color: var(--brand);
}
.diag-uploader__cta {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
}
.btn-sm { padding: 6px 12px; font-size: 13px; }

.diag-uploader__list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
  gap: 8px;
}
.diag-thumb {
  position: relative;
  aspect-ratio: 1;
  border-radius: 10px;
  overflow: hidden;
  background: var(--soft);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-1);
}
.diag-thumb img,
.diag-thumb video {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.diag-thumb__rm {
  position: absolute; top: 3px; right: 3px;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: rgba(12, 16, 14, 0.62); color: #fff;
  border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px;
  transition: background var(--t-fast) var(--ease), transform var(--t-fast) var(--ease);
}
.diag-thumb__rm:hover { background: var(--critical); transform: scale(1.08); }
.diag-thumb__ok {
  position: absolute; left: 4px; bottom: 4px;
  color: var(--m-green, #5f8a3d);
  font-size: 18px;
  text-shadow: 0 1px 2px #fff;
}

.diag-submit {
  width: 100%;
  margin-top: 6px;
  justify-content: center;
}
.diag-submit i { font-size: 18px; }

/* 占位 / Loading / 错误 */
.diag-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 280px;
  text-align: center;
  color: var(--muted);
  background:
    radial-gradient(600px 220px at 70% 20%, color-mix(in srgb, var(--brand) 6%, transparent), transparent),
    var(--card);
  border: 1px dashed var(--line);
  border-radius: var(--radius-l);
  padding: 24px;
}
.diag-placeholder i { font-size: 44px; margin-bottom: 14px; color: var(--brand); opacity: 0.5; }
.diag-placeholder p { margin: 0; max-width: 260px; line-height: 1.6; font-size: 14px; }

.diag-loading { min-height: 280px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-l); padding: 24px; box-shadow: var(--shadow-1); }
.diag-progress {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 16px;
}
.diag-progress__step {
  display: flex; align-items: center; gap: 8px;
  padding: 11px 12px;
  background: var(--bg);
  border-radius: 10px;
  font-size: 13px;
  color: var(--muted);
  border: 1px solid var(--line);
  transition: all var(--t-med) var(--ease);
}
.diag-progress__step i { font-size: 16px; }
.diag-progress__step.is-on {
  border-color: var(--brand);
  color: var(--brand);
  background: var(--brand-soft);
  animation: step-pulse 1.6s var(--ease) infinite;
}
@keyframes step-pulse {
  0%, 100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--brand) 22%, transparent); }
  55% { box-shadow: 0 0 0 6px transparent; }
}
.diag-progress__step.is-done {
  border-color: var(--ok-bg);
  background: var(--ok-bg);
  color: var(--ok);
}
.diag-loading__label {
  text-align: center;
  font-size: 13px;
  color: var(--muted);
  margin: 0;
}

.diag-error {
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  min-height: 200px;
  color: var(--danger);
  text-align: center;
  background: var(--danger-bg);
  border: 1px solid color-mix(in srgb, var(--danger) 30%, transparent);
  border-radius: var(--radius-l);
  padding: 24px;
}
.diag-error i { font-size: 32px; margin-bottom: 8px; }
.diag-error p { margin: 0; }

/* 报告卡片 */
.diag-report { display: flex; flex-direction: column; gap: 14px; }
.diag-report__head {
  display: flex; align-items: center; gap: 8px;
}
.diag-report__sev {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.diag-report__sev--low      { background: var(--ok-bg); color: var(--ok); }
.diag-report__sev--medium   { background: var(--warn-bg); color: var(--warn); }
.diag-report__sev--high     { background: var(--danger-bg); color: var(--danger); }
.diag-report__sev--critical { background: var(--critical); color: #fff; }
.diag-report__diy {
  font-size: 12px;
  color: var(--muted);
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--soft);
}
.diag-report__summary {
  margin: 0;
  font-size: 19px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--ink);
  letter-spacing: -0.015em;
}
.diag-report__diag {
  margin: 0;
  font-size: 14px;
  line-height: 1.65;
  color: #3d443e;
  white-space: pre-wrap;
}

details.diag-report__evidence,
details.diag-report__guide,
details.diag-report__safety,
details.diag-report__shop {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 10px 14px;
  transition: border-color var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease);
}
details.diag-report__evidence:hover,
details.diag-report__guide:hover,
details.diag-report__safety:hover,
details.diag-report__shop:hover {
  border-color: var(--brand-line);
  box-shadow: var(--shadow-1);
}
details.diag-report__safety { background: var(--danger-bg); border-color: color-mix(in srgb, var(--danger) 24%, transparent); }
details > summary {
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  padding: 4px 0;
  list-style: none;
  position: relative;
  user-select: none;
}
details > summary::after {
  content: "+";
  position: absolute; right: 0; top: 4px;
  font-weight: 400; color: var(--muted);
  transition: transform var(--t-med) var(--ease);
}
details[open] > summary::after { content: "−"; transform: rotate(180deg); }

#diagEvidence {
  display: flex; flex-direction: column; gap: 6px;
  margin-top: 8px;
}
.diag-evidence {
  display: flex; align-items: center; gap: 8px;
  padding: 9px 11px;
  background: var(--soft);
  border-radius: 9px;
  font-size: 12px;
  transition: background var(--t-fast) var(--ease), transform var(--t-fast) var(--ease);
}
.diag-evidence:hover { background: var(--brand-soft); transform: translateX(2px); }
.diag-evidence i {
  color: var(--brand);
  font-size: 14px;
  flex-shrink: 0;
}
.diag-evidence--web i { color: #3a7bc0; }
.diag-evidence--vision i { color: #8b5cf6; }
.diag-evidence__label {
  font-weight: 600;
  color: var(--ink);
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.diag-evidence__ref {
  color: var(--muted);
  font-size: 11px;
  max-width: 50%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.diag-report__steps {
  margin: 8px 0 0; padding-left: 20px;
  font-size: 13px;
  line-height: 1.75;
  color: #3d443e;
}
.diag-report__steps li { margin-bottom: 6px; }
.diag-report__steps li::marker { color: var(--brand); font-weight: 700; }
.diag-report__steps li.muted { color: var(--muted); list-style: none; padding-left: 0; }

.diag-report__meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
@media (min-width: 600px) {
  .diag-report__meta { grid-template-columns: repeat(5, 1fr); }
}
.diag-meta {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 12px;
}
.diag-meta__label {
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.diag-meta__val {
  font-size: 13px;
  color: var(--ink);
  font-weight: 700;
}
.diag-part {
  display: flex; justify-content: space-between; gap: 6px;
  font-size: 12px;
  padding: 4px 0;
  border-bottom: 1px dashed var(--line);
}
.diag-part:last-child { border-bottom: none; }

#diagSafety { margin: 8px 0 0; padding-left: 20px; font-size: 13px; line-height: 1.65; color: var(--danger); }
#diagSafety li { margin-bottom: 4px; }
#diagSafety li::marker { color: var(--danger); }

.diag-report__disclaimer {
  margin: 0;
  font-size: 11px;
  color: var(--muted);
  padding: 9px 12px;
  background: var(--soft);
  border-radius: 9px;
  line-height: 1.55;
}

.diag-report__feedback {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px;
  color: var(--muted);
  flex-wrap: wrap;
  padding-top: 4px;
  border-top: 1px dashed var(--line);
}
.diag-feedback__thanks {
  color: var(--ok);
  font-size: 12px;
  font-weight: 600;
}

/* =================================================================
   首页 Hero + 三入口（store/index.html）
   ================================================================= */
.home-hero {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  align-items: start;
  padding: 36px 16px 32px;
  max-width: 1120px;
  margin: 0 auto;
  position: relative;
}
@media (min-width: 880px) {
  .home-hero {
    grid-template-columns: 1fr 500px;
    gap: 48px;
    padding: 52px 16px 44px;
    align-items: center;
  }
}

.home-hero__copy .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--brand);
  padding: 5px 12px;
  background: var(--brand-soft);
  border: 1px solid var(--brand-line);
  border-radius: 999px;
  margin-bottom: 16px;
}
.home-hero__copy h1 {
  font-size: clamp(30px, 4.4vw, 44px);
  line-height: 1.14;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.025em;
  margin: 0 0 14px;
}
.home-hero__copy h1 em {
  font-style: normal;
  color: var(--brand);
  position: relative;
  white-space: nowrap;
}
.home-hero__copy .lead {
  font-size: 16px;
  line-height: 1.65;
  color: var(--muted);
  max-width: 54ch;
  margin: 0 0 24px;
}
.home-hero__cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}
.home-hero__cta .btn { justify-content: center; }
.home-hero__cta .btn i { font-size: 18px; }

.home-hero__stats {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}
.home-hero__stats li {
  display: flex;
  flex-direction: column;
  padding: 0 20px 0 0;
  border-right: 1px solid var(--line);
}
.home-hero__stats li:last-child { border-right: none; padding-right: 0; }
.home-hero__stats strong {
  font-size: 24px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

/* ===== Hero 主入口双卡（拍照诊断 / 用户贡献） ===== */
.hero-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  width: 100%;
  max-width: 760px;
  margin-top: 4px;
}
@media (min-width: 640px) {
  .hero-actions { grid-template-columns: 1fr 1fr; }
}
.hero-action {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  border-radius: 14px;
  background: var(--card);
  border: 1px solid var(--line);
  text-decoration: none;
  color: var(--ink);
  transition: transform var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease),
              box-shadow var(--t-fast) var(--ease), background var(--t-fast) var(--ease);
}
.hero-action:hover {
  transform: translateY(-2px);
  border-color: var(--brand-line);
  box-shadow: var(--shadow-2);
}
.hero-action--primary {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}
.hero-action--primary:hover { background: var(--brand-2); }
.hero-action__icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 22px;
  flex-shrink: 0;
}
.hero-action--primary .hero-action__icon { background: rgba(255, 255, 255, 0.18); }
.hero-action--secondary .hero-action__icon {
  background: var(--brand-soft);
  color: var(--brand);
}
.hero-action__body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  flex: 1;
}
.hero-action__body b {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.hero-action__body small {
  font-size: 12.5px;
  opacity: 0.8;
  line-height: 1.4;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  line-clamp: 1;
  -webkit-box-orient: vertical;
}
.hero-action__arrow {
  font-size: 20px;
  opacity: 0.7;
  flex-shrink: 0;
  transition: transform var(--t-fast) var(--ease);
}
.hero-action:hover .hero-action__arrow { transform: translateX(3px); opacity: 1; }

/* ===== 诊断表单独立 section ===== */
.diag-section {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 4px 0 32px;
}
/* 表单作为 hero 第一屏的核心：紧贴标题、减少顶部距离 */
.diag-section--hero {
  margin-top: -12px;
  padding-top: 0;
}
.diag-section__title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 22px;
  font-weight: 700;
  color: var(--ink);
}
.diag-section__title i {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--brand-soft);
  color: var(--brand);
  font-size: 20px;
}
.diag-section__title h2 { margin: 0; font-size: inherit; font-weight: inherit; }
.diag-section__free {
  margin-left: auto;
  font-size: 12px;
  font-weight: 600;
  color: var(--brand);
  background: var(--brand-soft);
  border: 1px solid var(--brand-line);
  padding: 3px 10px;
  border-radius: 999px;
}
.diag-section .diag-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.diag-section .diag-uploader__drop {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 26px 16px;
  border: 1.5px dashed var(--brand-line);
  border-radius: 14px;
  background: var(--bg);
  cursor: pointer;
  transition: background var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease);
}
.diag-section .diag-uploader__drop:hover { background: var(--brand-soft); border-color: var(--brand); }
.diag-section .diag-uploader__drop i {
  width: 48px; height: 48px;
  border-radius: 14px;
  background: var(--brand-soft);
  color: var(--brand);
  display: grid;
  place-items: center;
  font-size: 22px;
}
.diag-section .diag-uploader__head { text-align: center; }
.diag-section .diag-uploader__head b {
  display: block;
  font-size: 15px;
  margin-bottom: 2px;
}
.diag-section .diag-uploader__head span {
  display: block;
  font-size: 12.5px;
  color: var(--muted);
}
.diag-section .diag-uploader__cta {
  display: flex;
  gap: 8px;
  margin-top: 8px;
  flex-wrap: wrap;
  justify-content: center;
}
.diag-section .diag-uploader__cta .btn-sm {
  padding: 9px 14px;
  font-size: 13.5px;
}
.diag-protect {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
  font-size: 12.5px;
  color: var(--muted);
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--brand-soft);
  border: 1px solid var(--brand-line);
}
.diag-protect i { color: var(--brand); font-size: 16px; }

/* ===== 详情页 hero CTA 行动栏 ===== */
.fault-hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}
.fault-hero__cta .btn-lg { padding: 13px 18px; }
.fault-hero__cta i { font-size: 19px; }
.fault-hero__cta-tip {
  background: var(--brand-soft);
  color: var(--brand);
  border-color: var(--brand-line);
}

/* ===== 贡献表单视觉升级 ===== */
.contrib-form-wrap {
  border: 1.5px solid var(--brand-line);
  border-radius: 14px;
  background: var(--card);
  overflow: hidden;
}
.contrib-form-wrap > details {
  background: var(--brand-soft);
}
.contrib-form-wrap > details[open] { background: var(--card); }
.contrib-form-wrap summary {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 16px 20px;
  cursor: pointer;
  list-style: none;
  user-select: none;
  border-left: 4px solid var(--brand);
}
.contrib-form-wrap summary::-webkit-details-marker { display: none; }
.contrib-form__hero {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 15px;
  color: var(--brand);
}
.contrib-form__hero i { font-size: 18px; }
.contrib-form-wrap summary small {
  font-size: 12.5px;
  color: var(--muted);
  font-weight: 400;
}

/* ===== 数据保护提示（详情页） ===== */
.fault-protect {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 12px;
  padding: 12px 14px;
  background: #faf6e8;
  border: 1px solid #ead99e;
  border-left: 4px solid #d4a000;
  border-radius: 10px;
  font-size: 13px;
  color: #5b4400;
  line-height: 1.6;
}
.fault-protect i {
  color: #b78a00;
  font-size: 18px;
  flex-shrink: 0;
}
.fault-protect b { display: block; margin-bottom: 2px; }
.home-hero__stats span {
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 5px;
}

/* Hero 右侧：内嵌诊断卡片 */
.home-hero__viz {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
}
.diag-widget {
  width: 100%;
  max-width: 460px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  padding: 18px;
  box-shadow: var(--shadow-3);
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.diag-widget__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.diag-widget__badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  color: var(--brand);
}
.diag-widget__badge i { font-size: 17px; }
.diag-widget__free {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ok);
  background: var(--ok-bg);
  padding: 3px 10px;
  border-radius: 999px;
}
.diag-widget form { display: flex; flex-direction: column; gap: 12px; }
.diag-widget .diag-uploader { gap: 8px; }
.diag-widget .diag-uploader__drop { padding: 18px 14px; }
.diag-widget .diag-uploader__drop i { font-size: 30px; margin-bottom: 6px; }
.diag-widget__row {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.diag-widget .diag-submit { margin-top: 2px; }

/* 加载/报告/错误复用卡片容器 */
.diag-widget.diag-loading,
.diag-widget.diag-result,
.diag-widget.diag-error { gap: 12px; }
.diag-widget.diag-result { max-width: 520px; }
.diag-widget.diag-error { align-items: center; text-align: center; padding: 32px 24px; }

@media (min-width: 880px) {
  .diag-widget.diag-result { max-width: 560px; }
  .diag-widget .diag-report__meta { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 879px) {
  .home-hero { padding-bottom: 8px; }
  .home-hero__viz { order: -1; }
  /* 移动端：表单置顶成为首屏主体 */
  .home-hero__copy { text-align: left; }
  .home-hero__copy .lead { margin-bottom: 12px; }
  .home-hero__stats { margin-top: 2px; }
  .diag-widget { max-width: none; box-shadow: var(--shadow-2); }
}

/* 三大入口 */
.entry-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}
@media (min-width: 720px) {
  .entry-grid { grid-template-columns: repeat(3, 1fr); gap: 18px; }
}
.entry-card {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 20px;
  background: var(--card);
  border-radius: var(--radius-l);
  border: 1px solid var(--line);
  text-decoration: none;
  color: var(--ink);
  transition: transform var(--t-med) var(--ease), box-shadow var(--t-med) var(--ease),
              border-color var(--t-med) var(--ease);
  position: relative;
  box-shadow: var(--shadow-1);
}
.entry-card:hover {
  border-color: var(--brand-line);
  transform: translateY(-3px);
  box-shadow: var(--shadow-2);
}
.entry-card--diag {
  background:
    radial-gradient(340px 180px at 88% -10%, color-mix(in srgb, var(--brand) 14%, transparent), transparent),
    var(--card);
  border-color: var(--brand-line);
}
.entry-card--diag:hover { box-shadow: var(--shadow-brand); border-color: var(--brand); }
.entry-card__icon {
  width: 46px;
  height: 46px;
  border-radius: 13px;
  background: var(--brand-soft);
  color: var(--brand);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform var(--t-med) var(--ease), background var(--t-med) var(--ease), color var(--t-med) var(--ease);
}
.entry-card:hover .entry-card__icon { transform: scale(1.06) rotate(-3deg); background: var(--brand); color: #fff; }
.entry-card__icon i {
  font-size: 23px;
}
.entry-card__body { flex: 1; min-width: 0; }
.entry-card__body h3 {
  font-size: 15px;
  font-weight: 700;
  margin: 0 0 5px;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.entry-card__body p {
  font-size: 13px;
  line-height: 1.55;
  color: var(--muted);
  margin: 0;
}
.entry-card__arrow {
  font-size: 20px;
  color: #b9c2ba;
  flex-shrink: 0;
  align-self: center;
  transition: transform var(--t-med) var(--ease), color var(--t-med) var(--ease);
}
.entry-card:hover .entry-card__arrow { color: var(--brand); transform: translateX(3px); }

/* 热门故障行 */
.fault-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}
@media (min-width: 720px) {
  .fault-row { grid-template-columns: repeat(2, 1fr); gap: 12px; }
}
@media (min-width: 960px) {
  .fault-row { grid-template-columns: repeat(4, 1fr); }
}
.fault-card {
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding: 16px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--ink);
  transition: transform var(--t-med) var(--ease), box-shadow var(--t-med) var(--ease),
              border-color var(--t-med) var(--ease);
  min-height: 116px;
  box-shadow: var(--shadow-1);
}
.fault-card:hover {
  border-color: var(--brand-line);
  transform: translateY(-3px);
  box-shadow: var(--shadow-2);
}
.fault-card__sev {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 3px 9px;
  border-radius: 999px;
  width: fit-content;
}
.fault-card--low .fault-card__sev      { background: var(--ok-bg); color: var(--ok); }
.fault-card--medium .fault-card__sev   { background: var(--warn-bg); color: var(--warn); }
.fault-card--high .fault-card__sev     { background: var(--danger-bg); color: var(--danger); }
.fault-card--critical .fault-card__sev { background: var(--critical); color: #fff; }
.fault-card__title {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
  margin: 0;
  letter-spacing: -0.01em;
}
.fault-card__sum {
  font-size: 12.5px;
  color: var(--muted);
  margin: 0;
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.fault-card__parts {
  font-size: 11px;
  color: #96a097;
  margin-top: auto;
  padding-top: 6px;
  border-top: 1px dashed var(--line);
}
.fault-card__parts i { margin-right: 4px; }

/* 折叠辅助工具 */
.more-tools {
  background: var(--card);
  border-radius: var(--radius);
  padding: 4px 18px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-1);
}
.more-tools > summary {
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  padding: 12px 0;
  list-style: none;
  position: relative;
  user-select: none;
  transition: color var(--t-fast) var(--ease);
}
.more-tools > summary:hover { color: var(--brand); }
.more-tools > summary::after {
  content: "+";
  position: absolute; right: 0; top: 50%;
  transform: translateY(-50%);
  font-size: 22px;
  font-weight: 300;
  line-height: 1;
  color: var(--muted);
  transition: transform var(--t-med) var(--ease), color var(--t-fast) var(--ease);
}
.more-tools > summary:hover::after { color: var(--brand); }
.more-tools[open] > summary::after { content: "−"; }
.tiles--small {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  padding: 8px 0 14px;
}
@media (max-width: 600px) {
  .tiles--small { grid-template-columns: 1fr; }
}
.tool-tile {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 15px;
  background: var(--bg);
  border-radius: 10px;
  border: 1px solid var(--line);
  text-decoration: none;
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
  transition: border-color var(--t-fast) var(--ease), background var(--t-fast) var(--ease), transform var(--t-fast) var(--ease);
}
.tool-tile:hover {
  border-color: var(--brand-line);
  background: var(--brand-soft);
  transform: translateX(2px);
}
.tool-tile i {
  font-size: 18px;
  color: var(--brand);
}

/* =================================================================
   Nav primary CTA (拍照问诊) + tabbar 中间大按钮
   ================================================================= */
.nav__primary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 15px !important;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand) !important;
  font-weight: 700 !important;
  transition: background var(--t-fast) var(--ease), color var(--t-fast) var(--ease), transform var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease);
}
.nav__primary:hover,
.nav__primary:hover.is-on {
  background: color-mix(in srgb, var(--brand) 18%, transparent);
  color: var(--brand) !important;
  transform: translateY(-1px);
}
.nav__primary:active { transform: scale(0.96); }
/* 仅当前页（首页）时才是实心绿“选中”态；其余页面保持 ghost 样式，
   避免主按钮在任何页面都像被选中一样深色 */
.nav a.nav__primary.is-on,
.nav__primary.is-on {
  background: var(--brand);
  color: #fff !important;
  box-shadow: var(--shadow-brand);
}
.nav__primary.is-on:hover { background: var(--brand-2); }
.nav__primary i { font-size: 16px; }

.tabbar__primary {
  position: relative;
  color: var(--muted);
}
.tabbar__primary i {
  font-size: 22px !important;
  color: inherit;
}
.tabbar__primary span {
  color: inherit;
  font-weight: 700;
}
/* 仅在当前页（首页）激活：绿色文字 + 视觉"诊断正在进行"提示 */
.tabbar__primary.is-on { color: var(--brand); }

/* =================================================================
   故障库列表页（store/faults.html）
   ================================================================= */
.fault-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  padding: 0 0 64px; /* 水平内边距交给 .wrap，保证与标题同宽 */
  max-width: 1120px;
  margin: 0 auto;
}
@media (min-width: 880px) {
  .fault-list { grid-template-columns: 220px 1fr; gap: 24px; }
}
.fault-filter__form { display: flex; flex-direction: column; gap: 8px; }
.fault-filter__form input[type="search"],
.fault-filter__form input[type="text"] {
  width: 100%;
  background: #fff;
  border: 1px solid var(--m-line, #e6e8ef);
  border-radius: 10px;
  padding: 8px 12px;
  font-size: 13px;
  font-family: inherit;
  box-sizing: border-box;
}
.fault-filter__group { margin-top: 10px; display: flex; flex-direction: column; gap: 4px; }
.fault-filter__group h4 {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--m-muted, #888);
  margin: 6px 0 4px;
}
.chip {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--m-soft, #f0f1f5);
  border: 1px solid transparent;
  font-size: 12px;
  color: var(--m-ink, #111);
  text-decoration: none;
  transition: all 0.12s ease;
  width: fit-content;
}
.chip:hover { border-color: var(--m-line, #d6dae5); }
.chip.is-on {
  background: var(--m-green, #5f8a3d);
  color: #fff;
}
.chip--critical.is-on { background: #c0392b; }
.chip--high.is-on     { background: #b53b1c; }
.chip--medium.is-on   { background: #a36a00; }
.chip--low.is-on      { background: #2c6c3a; }

.fault-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}
@media (min-width: 600px) { .fault-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; } }
@media (min-width: 960px) { .fault-grid { grid-template-columns: repeat(3, 1fr); } }

.fault-empty {
  text-align: center;
  padding: 60px 16px;
  color: var(--m-muted, #888);
}
.fault-empty i { font-size: 48px; display: block; margin-bottom: 12px; }
.fault-empty p { margin: 0; }

/* =================================================================
   故障详情页（store/fault_detail.html）
   ================================================================= */
.fault-hero__badges { display: flex; gap: 8px; margin-bottom: 8px; }
.fault-hero__diy {
  font-size: 11px;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--m-soft, #f0f1f5);
  color: var(--m-ink, #111);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.fault-detail {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  padding: 0 0 64px; /* 水平内边距交给 .wrap，保证与标题同宽 */
  max-width: 1120px;
  margin: 0 auto;
}
@media (min-width: 880px) {
  .fault-detail { grid-template-columns: 1fr 320px; gap: 24px; }
}

.fault-block {
  background: var(--m-soft, #f5f7fb);
  border: 1px solid var(--m-line, #e6e8ef);
  border-radius: 14px;
  padding: 16px 20px;
  margin-bottom: 12px;
}
.fault-block h2 {
  display: flex; align-items: center; gap: 8px;
  font-size: 14px;
  font-weight: 700;
  color: var(--m-ink, #111);
  margin: 0 0 10px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.fault-block h2 i { font-size: 18px; color: var(--m-green, #5f8a3d); }
.fault-block--warn { background: #fff7f4; border-color: #f5c4b8; }
.fault-block--warn h2 i { color: #c0392b; }

/* ===== 用户贡献经验 ===== */
.fault-block--tips { background: var(--brand-soft); border-color: var(--brand-line); }
.fault-block--tips h2 i { color: var(--brand); }

/* ===== 数据保护锁定块 ===== */
.fault-block--locked {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: linear-gradient(135deg, #fff8e6 0%, #fff3d6 100%);
  border: 1.5px dashed var(--brand);
}
.fault-block--locked i {
  font-size: 28px;
  color: var(--brand);
  flex-shrink: 0;
  margin-top: 2px;
}
.fault-block--locked b {
  display: block;
  font-size: 15px;
  color: var(--ink);
  margin-bottom: 4px;
}
.fault-block--locked p {
  font-size: 13px;
  color: var(--muted);
  margin: 0 0 12px;
  line-height: 1.5;
}
.fault-block--locked .btn {
  align-self: flex-start;
}

.tip-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
  margin-bottom: 10px;
}
.tip-card__head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 10px; }
.tip-card__head b { font-size: 14px; }
.tip-card__meta { font-size: 12px; color: var(--muted); }
.tip-card__body { margin: 6px 0 0; font-size: 13.5px; line-height: 1.65; color: var(--ink); }
.tip-cta-hint {
  display: flex; align-items: center; gap: 6px;
  margin: 10px 0 0; font-size: 12.5px; color: var(--brand); font-weight: 600;
}

/* 贡献表单（折叠面板） */
.contrib-form-wrap {
  border: 1px dashed var(--brand-line);
  border-radius: 12px;
  background: var(--card);
}
.contrib-form-wrap summary {
  display: flex; align-items: center; gap: 8px;
  padding: 14px 16px;
  cursor: pointer;
  font-weight: 700; font-size: 14px; color: var(--brand);
  list-style: none;
  user-select: none;
}
.contrib-form-wrap summary::-webkit-details-marker { display: none; }
.contrib-form-wrap summary i { font-size: 17px; }
.contrib-form-wrap[open] summary { border-bottom: 1px solid var(--line); }
.contrib-form {
  display: flex; flex-direction: column; gap: 12px;
  padding: 14px 16px 16px;
}
.contrib-form label {
  display: flex; flex-direction: column; gap: 6px;
  font-size: 13px; font-weight: 600; color: var(--ink);
}
.contrib-form input, .contrib-form textarea {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 12px;
  font: inherit; font-weight: 400;
  font-size: 15px;
  color: var(--ink);
  background: var(--bg);
}
.contrib-form input:focus, .contrib-form textarea:focus {
  outline: none; border-color: var(--brand);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 13%, transparent);
}
.contrib-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.contrib-form__note { margin: 0; font-size: 12px; color: var(--muted); line-height: 1.6; }
.contrib-form button { align-self: flex-start; }
@media (max-width: 600px) {
  .contrib-form__row { grid-template-columns: 1fr; }
  .contrib-form button { align-self: stretch; }
}

/* 贡献结果页 */
.contrib-result { text-align: center; padding: 64px 0 80px; }
.contrib-result__icon {
  width: 64px; height: 64px;
  margin: 0 auto 16px;
  border-radius: 50%;
  display: grid; place-items: center;
  font-size: 30px;
}
.contrib-result__icon--ok { background: var(--brand-soft); color: var(--brand); }
.contrib-result__icon--err { background: #fdeceb; color: #c0392b; }
.contrib-result h1 { font-size: 24px; margin: 0 0 8px; }
.contrib-result p { color: var(--muted); max-width: 46ch; margin: 0 auto 24px; }
.contrib-result__actions { display: flex; justify-content: center; }

.fault-list-bullet,
.fault-cause-list,
.fault-step-list,
.fault-tool-list,
.fault-part-list {
  margin: 0; padding: 0;
  list-style: none;
}
.fault-list-bullet,
.fault-cause-list,
.fault-tool-list { padding-left: 0; }
.fault-list-bullet li,
.fault-cause-list li,
.fault-tool-list li {
  position: relative;
  padding: 6px 0 6px 22px;
  font-size: 13px;
  line-height: 1.6;
  color: #333;
}
.fault-list-bullet li::before,
.fault-cause-list li::before {
  content: "•";
  position: absolute; left: 6px; top: 4px;
  color: var(--m-green, #5f8a3d);
  font-weight: 700;
}
.fault-tool-list li {
  display: flex; align-items: center; gap: 6px;
  padding-left: 0;
}
.fault-tool-list i { color: var(--m-green, #5f8a3d); }
.fault-cause-list { counter-reset: cause; }
.fault-cause-list li { counter-increment: cause; padding-left: 28px; }
.fault-cause-list li::before {
  content: counter(cause);
  position: absolute; left: 4px; top: 6px;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: rgba(95, 138, 61, 0.1);
  color: var(--m-green, #5f8a3d);
  font-size: 11px;
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}

.fault-step-list { counter-reset: step; }
.fault-step-list li {
  position: relative;
  padding: 10px 0 10px 32px;
  border-bottom: 1px dashed var(--m-line, #e6e8ef);
  font-size: 13px;
}
.fault-step-list li:last-child { border-bottom: none; }
.fault-step-list li::before {
  content: counter(step);
  counter-increment: step;
  position: absolute; left: 0; top: 8px;
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--m-green, #5f8a3d);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.fault-step-list b { display: block; margin-bottom: 2px; }
.fault-step-list p { margin: 0; color: #555; line-height: 1.5; }

/* 侧栏 */
.fault-detail__aside { display: flex; flex-direction: column; gap: 12px; }
.fault-aside-card {
  background: #fff;
  border: 1px solid var(--m-line, #e6e8ef);
  border-radius: 12px;
  padding: 14px;
}
.fault-aside-card h4 {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--m-muted, #888);
  margin: 0 0 8px;
}
.fault-aside-card--row,
.fault-aside-card--cost {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.fault-aside-card--row > div,
.fault-aside-card--cost > div { display: flex; flex-direction: column; }
.fault-aside-card--cost { gap: 24px; }
.fault-aside-card--row i { font-size: 22px; color: var(--m-green, #5f8a3d); margin-left: auto; }
.fault-aside-card small {
  font-size: 11px;
  color: var(--m-muted, #888);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.fault-aside-card strong { font-size: 14px; color: var(--m-ink, #111); }
.muted { color: var(--m-muted, #888); font-size: 12px; }

.fault-part-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  padding: 6px 0;
  border-bottom: 1px dashed var(--m-line, #e6e8ef);
  font-size: 12px;
}
.fault-part-list li:last-child { border-bottom: none; }
.fault-part-name { color: var(--m-ink, #111); flex: 1; }
.fault-part-price { color: var(--m-green, #5f8a3d); font-weight: 600; white-space: nowrap; }

.fault-detail__cta { justify-content: center; }

.fault-related {
  grid-column: 1 / -1;
  padding: 24px 0 0;
}
.fault-related h3 {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--m-muted, #888);
  font-weight: 700;
  margin: 0 0 12px;
}
.fault-row--compact .fault-card { min-height: auto; padding: 12px; }
.fault-row--compact .fault-card__sum { display: none; }

/* =================================================================
   车型库列表页（store/vehicles.html）
   ================================================================= */
.vehicle-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  padding: 0 0 64px; /* 水平内边距交给 .wrap，保证与标题同宽 */
  max-width: 1120px;
  margin: 0 auto;
}
@media (min-width: 880px) {
  .vehicle-list { grid-template-columns: 200px 1fr; gap: 24px; }
}
.vehicle-filter {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.vehicle-filter form {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.vehicle-filter h4 {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--m-muted, #888);
  margin: 10px 0 2px;
}
.vehicle-filter input[type="search"] {
  background: #fff;
  border: 1px solid var(--m-line, #e6e8ef);
  border-radius: 10px;
  padding: 8px 12px;
  font-size: 13px;
  font-family: inherit;
  box-sizing: border-box;
  width: 100%;
}

.vehicle-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
@media (min-width: 600px) { .vehicle-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .vehicle-grid { grid-template-columns: repeat(3, 1fr); } }

.vehicle-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px;
  background: #fff;
  border: 1px solid var(--m-line, #e6e8ef);
  border-radius: 14px;
  text-decoration: none;
  color: var(--m-ink, #111);
  transition: all 0.15s ease;
}
.vehicle-card:hover {
  border-color: var(--m-green, #5f8a3d);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
}
.vehicle-card__brand {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--m-green, #5f8a3d);
  background: rgba(95, 138, 61, 0.08);
  padding: 3px 8px;
  border-radius: 999px;
  width: fit-content;
}
.vehicle-card h3 {
  font-size: 16px;
  font-weight: 600;
  margin: 0;
}
.vehicle-card__code {
  font-size: 11px;
  color: var(--m-muted, #888);
  font-family: monospace;
}
.vehicle-card__specs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px 12px;
  margin: 6px 0;
}
.vehicle-card__specs > div {
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.vehicle-card__specs dt {
  font-size: 10px;
  color: var(--m-muted, #888);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.vehicle-card__specs dd {
  font-size: 12px;
  font-weight: 600;
  color: var(--m-ink, #111);
  margin: 0;
}
.vehicle-card__cta {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--m-green, #5f8a3d);
  padding-top: 8px;
  border-top: 1px dashed var(--m-line, #e6e8ef);
}

.vehicle-list__common {
  margin-top: 20px;
  padding: 14px;
  background: var(--m-soft, #f5f7fb);
  border-radius: 10px;
  font-size: 13px;
  color: #555;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.vehicle-list__common i { color: var(--m-green, #5f8a3d); font-size: 18px; }
.vehicle-list__common a {
  margin-left: auto;
  color: var(--m-green, #5f8a3d);
  font-weight: 600;
  text-decoration: none;
}


/* =================================================================
   Hero 智能单输入框（Smart Input）— 参照 manus.im / Apple Support
   主路径：拍照 + 描述 → AI 诊断；次路径：打字 → 实时检索
   ================================================================= */
.hero-smart {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: clamp(48px, 9vh, 96px) 0 28px;
  gap: 0;
}
.hero-smart__title {
  font-size: clamp(30px, 4.6vw, 52px);
  line-height: 1.12;
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--ink);
  max-width: 640px;
}
.hero-smart__title em {
  font-style: normal;
  color: var(--brand);
  white-space: nowrap;
}
.hero-smart__lead {
  font-size: 16.5px;
  line-height: 1.6;
  color: var(--muted);
  max-width: 52ch;
  margin: 14px 0 0;
}
.hero-smart__lead { margin-bottom: 34px; }

/* ---- 输入框主体 ---- */
.smart-box {
  position: relative;
  width: min(680px, 100%);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 4px 24px rgba(16, 22, 19, 0.07), 0 1px 3px rgba(16, 22, 19, 0.04);
  transition: box-shadow var(--t-med) var(--ease), border-color var(--t-med) var(--ease);
}
.smart-box:focus-within {
  border-color: var(--brand-line);
  box-shadow: 0 8px 32px rgba(61, 122, 40, 0.12), 0 2px 6px rgba(16, 22, 19, 0.05);
}
.smart-box.is-drag { border-color: var(--brand); border-style: dashed; }

.smart-form { display: flex; flex-direction: column; }

/* 预览条 */
.smart-preview {
  display: flex;
  gap: 8px;
  padding: 14px 14px 0;
  overflow-x: auto;
}

/* 输入行 */
.smart-input-row {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  padding: 12px;
}
.smart-cam {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 12px;
  background: transparent;
  color: var(--muted);
  font-size: 20px;
  cursor: pointer;
  flex-shrink: 0;
  transition: background var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
}
.smart-cam:hover { background: var(--soft); color: var(--brand); }
.smart-input {
  flex: 1;
  border: none;
  outline: none;
  resize: none;
  background: transparent;
  font-size: 16px;
  line-height: 1.5;
  padding: 8px 0;
  min-height: 40px;
  max-height: 140px;
  color: var(--ink);
}
.smart-input::placeholder { color: #9aa59b; }
.smart-send {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 12px;
  background: var(--brand);
  color: #fff;
  font-size: 18px;
  cursor: pointer;
  flex-shrink: 0;
  transition: background var(--t-fast) var(--ease), opacity var(--t-fast) var(--ease), transform var(--t-fast) var(--ease);
}
.smart-send:hover:not(:disabled) { background: var(--brand-2); }
.smart-send:active:not(:disabled) { transform: scale(0.94); }
.smart-send:disabled { background: #d8e0d5; cursor: default; }

/* ---- 检索面板 ---- */
.smart-search {
  border-top: 1px solid var(--line);
  text-align: left;
}
.smart-search__filters {
  display: flex;
  gap: 8px;
  padding: 10px 14px 0;
}
.smart-select {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 7px 12px;
  font-size: 13.5px;
  background: var(--card);
  color: var(--ink);
  max-width: 100%;
}
.smart-search__list { padding: 8px; }
.smart-hit {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 12px;
  border-radius: 10px;
  color: var(--ink);
  transition: background var(--t-fast) var(--ease);
}
.smart-hit:hover, .smart-hit.is-active { background: var(--soft); }
.smart-hit__sev {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  flex-shrink: 0;
}
.smart-hit__sev--critical { background: var(--critical); }
.smart-hit__sev--high { background: var(--danger); }
.smart-hit__sev--medium { background: var(--warn); }
.smart-hit__sev--low { background: var(--ok); }
.smart-hit__title {
  flex: 1;
  font-size: 14.5px;
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.smart-hit i { color: #9aa59b; font-size: 16px; }
.smart-search__empty {
  padding: 18px 14px;
  font-size: 13.5px;
  color: var(--muted);
  text-align: center;
}
.smart-search__fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  width: calc(100% - 16px);
  margin: 0 8px 8px;
  padding: 11px;
  border: 1px dashed var(--brand-line);
  border-radius: 10px;
  background: var(--brand-soft);
  color: var(--brand);
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--t-fast) var(--ease);
}
.smart-search__fallback:hover { background: #dfefd2; }
.smart-search__fallback i { font-size: 16px; }

/* 手机窄屏：面板贴边、输入行紧凑 */
@media (max-width: 640px) {
  .hero-smart { padding-top: 36px; }
  .hero-smart__title { font-size: 28px; }
  .hero-smart__lead { font-size: 15px; margin-bottom: 24px; }
  .smart-box { border-radius: 14px; }
  .smart-input-row { padding: 10px; gap: 6px; }
  .smart-cam, .smart-send { width: 38px; height: 38px; }
}

/* 移除旧版遗留：hero 统计数字 / 双入口卡 */
.home-hero__stats, .hero-actions { display: none !important; }


/* =================================================================
   v3：Manus 式对话框 + 热门 chips + 字体减淡
   ================================================================= */
.hero-smart { padding: clamp(40px, 8vh, 80px) 0 20px; }
.hero-smart__title {
  font-size: clamp(26px, 3.6vw, 40px);
  font-weight: 550;
  letter-spacing: -0.028em;
  max-width: 560px;
}
.hero-smart__lead {
  font-size: 15px;
  font-weight: 400;
  margin: 12px 0 30px;
  max-width: 46ch;
}

/* ---- 对话框主体 ---- */
.smart-box { border-radius: 20px; }
.smart-input {
  display: block;
  width: 100%;
  border: none;
  outline: none;
  resize: none;
  background: transparent;
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--ink);
  padding: 18px 20px 4px;
  min-height: 118px;
  max-height: 320px;
}
.smart-input::placeholder { color: #a8b0a9; }

/* 底部工具行：左=拍照按钮（icon+文字），右=圆形↑ */
.smart-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px 12px 14px;
}
.smart-attach {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--card);
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
  padding: 7px 14px;
  cursor: pointer;
  transition: border-color var(--t-fast) var(--ease), color var(--t-fast) var(--ease), background var(--t-fast) var(--ease);
}
.smart-attach:hover { border-color: var(--brand-line); color: var(--brand); background: var(--brand-soft); }
.smart-attach i { font-size: 16px; }

.smart-send {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  font-size: 17px;
  cursor: pointer;
  transition: background var(--t-fast) var(--ease), transform var(--t-fast) var(--ease), opacity var(--t-fast) var(--ease);
}
.smart-send:hover:not(:disabled) { background: var(--brand-2); }
.smart-send:active:not(:disabled) { transform: scale(0.92); }
.smart-send:disabled { background: #e4e9e2; cursor: default; }
.smart-send i { line-height: 1; }

/* 预览条 */
.smart-preview { padding: 14px 20px 0; }
.smart-preview .diag-thumb {
  position: relative;
  width: 64px;
  height: 64px;
  border-radius: 10px;
  overflow: hidden;
  flex-shrink: 0;
}
.smart-preview .diag-thumb img,
.smart-preview .diag-thumb video { width: 100%; height: 100%; object-fit: cover; }
.smart-preview .diag-thumb__rm {
  position: absolute;
  top: 3px;
  right: 3px;
  width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  border: none;
  border-radius: 50%;
  background: rgba(16, 22, 19, 0.6);
  color: #fff;
  font-size: 11px;
  cursor: pointer;
}

/* 检索面板 */
.smart-search { border-top: 1px solid var(--line); }
.smart-search__list { padding: 6px; }
.smart-hit { padding: 10px 12px; border-radius: 12px; }
.smart-hit__title { font-size: 14px; font-weight: 450; }
.smart-search__empty { padding: 16px; font-size: 13px; }
.smart-search__fallback {
  margin: 0 10px 10px;
  padding: 10px;
  border-radius: 12px;
  font-size: 13px;
}

/* ---- 热门故障 chips ---- */
.hero-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  width: min(680px, 100%);
  margin-top: 18px;
}
.hero-chip {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--card);
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 450;
  padding: 6px 14px;
  cursor: pointer;
  max-width: 220px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: border-color var(--t-fast) var(--ease), color var(--t-fast) var(--ease), background var(--t-fast) var(--ease);
}
.hero-chip:hover { border-color: var(--brand-line); color: var(--brand); background: var(--brand-soft); }

/* ---- 全局字号再降一档（Manus 式轻量化） ---- */
.nav { font-size: 13.5px; font-weight: 500; }
.nav a { font-weight: 500; }
.nav a:not(.nav__primary).is-on { font-weight: 600; }
.btn { font-size: 13.5px; font-weight: 500; }
.block__head h2 { font-size: 18px; }
.fault-card__title { font-size: 14px; font-weight: 500; }
.fault-card__sev { font-size: 10.5px; font-weight: 600; }
.story__body b { font-size: 13.5px; font-weight: 500; }

/* 手机窄屏 */
@media (max-width: 640px) {
  .hero-smart { padding-top: 32px; }
  .hero-smart__title { font-size: 25px; max-width: 92%; }
  .hero-smart__lead { font-size: 14px; margin-bottom: 22px; }
  .smart-input { min-height: 96px; padding: 14px 16px 2px; font-size: 14px; }
  .smart-toolbar { padding: 6px 10px 10px 12px; }
  .smart-attach { padding: 6px 12px; font-size: 12.5px; }
  .smart-send { width: 34px; height: 34px; }
  .hero-chips { margin-top: 14px; gap: 7px; }
  .hero-chip { font-size: 12px; padding: 5px 12px; }
}

/* 清理 v2 遗留类 */
.smart-input-row, .smart-cam, .smart-select, .smart-search__filters { display: none !important; }


/* =================================================================
   详情页重构（fd-*）：干净 / 聚焦 / 返首页
   ================================================================= */
.fd-hero { padding: 28px 0 8px; }
.fd-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  margin-bottom: 18px;
  transition: color var(--t-fast) var(--ease);
}
.fd-back:hover { color: var(--brand); }
.fd-back i { font-size: 15px; }

.fd-badges { margin-bottom: 10px; }
.fd-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 999px;
}
.fd-badge--critical { background: var(--danger-bg); color: var(--critical); }
.fd-badge--high { background: #fdeee6; color: var(--danger); }
.fd-badge--medium { background: var(--warn-bg); color: var(--warn); }
.fd-badge--low { background: var(--ok-bg); color: var(--ok); }

.fd-title {
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 550;
  letter-spacing: -0.02em;
  line-height: 1.25;
  color: var(--ink);
  max-width: 640px;
}
.fd-summary {
  font-size: 14.5px;
  color: var(--muted);
  line-height: 1.6;
  max-width: 560px;
  margin: 10px 0 22px;
}

/* 主 CTA：拍照诊断 */
.fd-cta { margin-bottom: 8px; }
.fd-cta-main {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--brand);
  color: #fff;
  font-size: 14px;
  font-weight: 550;
  padding: 12px 22px;
  border-radius: 999px;
  transition: background var(--t-fast) var(--ease), transform var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease);
}
.fd-cta-main:hover { background: var(--brand-2); box-shadow: var(--shadow-brand); }
.fd-cta-main:active { transform: scale(0.97); }
.fd-cta-main i { font-size: 17px; }
.fd-cta-arrow { margin-left: 2px; }

/* 两栏主体 */
.fd-body {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  padding: 24px 0 48px;
  align-items: start;
}
@media (min-width: 880px) {
  .fd-body { grid-template-columns: 1fr 260px; }
}

/* 锁定块 */
.fd-locked {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: #fffbea;
  border: 1px dashed #e8d48a;
  border-radius: 14px;
  padding: 16px 18px;
  margin-bottom: 24px;
}
.fd-locked i { font-size: 22px; color: var(--warn); flex-shrink: 0; margin-top: 1px; }
.fd-locked b { display: block; font-size: 13.5px; font-weight: 600; color: var(--ink); margin-bottom: 3px; }
.fd-locked p { font-size: 13px; color: var(--muted); line-height: 1.55; margin: 0; }

/* 内容块 */
.fd-block { margin-bottom: 26px; }
.fd-block h2 {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 12px;
}
.fd-block h2 i { font-size: 17px; color: var(--brand); }
.fd-list {
  margin: 0;
  padding: 0;
  list-style: none;
}
.fd-list li {
  position: relative;
  padding: 7px 0 7px 18px;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--fg);
  border-bottom: 1px solid var(--line);
}
.fd-list li:last-child { border-bottom: none; }
.fd-list li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 15px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--brand);
  opacity: 0.55;
}

/* 社区经验 */
.fd-block--tips { background: var(--brand-soft); border-radius: 14px; padding: 16px 18px; }
.fd-block--tips h2 { margin-bottom: 10px; }
.fd-tip { padding: 10px 0; border-bottom: 1px solid var(--brand-line); }
.fd-tip:last-child { border-bottom: none; }
.fd-tip b { font-size: 13.5px; font-weight: 600; color: var(--ink); }
.fd-tip p { font-size: 13px; color: var(--fg); line-height: 1.6; margin: 4px 0 6px; }
.fd-tip__meta { font-size: 11.5px; color: var(--muted); }

/* 贡献表单 */
.fd-contrib { margin-bottom: 8px; }
.fd-contrib summary {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  list-style: none;
  font-size: 13.5px;
}
.fd-contrib summary::-webkit-details-marker { display: none; }
.fd-contrib summary i { font-size: 16px; color: var(--brand); }
.fd-contrib summary b { font-weight: 600; color: var(--ink); }
.fd-contrib summary small { color: var(--muted); font-size: 12.5px; }
.fd-contrib__form { margin-top: 14px; display: flex; flex-direction: column; gap: 12px; }
.fd-contrib__form label {
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--muted);
}
.fd-contrib__form input,
.fd-contrib__form textarea {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 9px 12px;
  font-size: 13.5px;
  font-weight: 400;
  color: var(--ink);
  background: var(--card);
  outline: none;
  transition: border-color var(--t-fast) var(--ease);
}
.fd-contrib__form input:focus,
.fd-contrib__form textarea:focus { border-color: var(--brand-line); }
.fd-contrib__row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 560px) { .fd-contrib__row { grid-template-columns: 1fr; } }
.fd-contrib__note { font-size: 11.5px; color: var(--muted); margin: 0; }
.fd-contrib__submit {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  align-self: flex-start;
  border: none;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  font-size: 13px;
  font-weight: 550;
  padding: 9px 18px;
  cursor: pointer;
  transition: background var(--t-fast) var(--ease);
}
.fd-contrib__submit:hover { background: var(--brand-2); }
.fd-contrib__submit i { font-size: 15px; }

/* 侧栏 */
.fd-aside { display: flex; flex-direction: column; gap: 16px; }
.fd-aside__card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px 18px;
}
.fd-aside__card h4 {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  margin: 0 0 10px;
}
.fd-aside__link {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--fg);
  padding: 6px 0;
  transition: color var(--t-fast) var(--ease);
}
.fd-aside__link:hover { color: var(--brand); }
.fd-dot { width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; }
.fd-dot--critical { background: var(--critical); }
.fd-dot--high { background: var(--danger); }
.fd-dot--medium { background: var(--warn); }
.fd-dot--low { background: var(--ok); }
.fd-aside__card--protect { background: var(--soft); border-color: transparent; }
.fd-aside__card--protect i { font-size: 18px; color: var(--brand); margin-bottom: 6px; }
.fd-aside__card--protect b { display: block; font-size: 12.5px; font-weight: 600; color: var(--ink); margin-bottom: 4px; }
.fd-aside__card--protect p { font-size: 12px; color: var(--muted); line-height: 1.55; margin: 0; }


/* =================================================================
   详情页 v2：解锁卡（gate）+ 显式贡献卡 + CTA 行卡
   ================================================================= */

/* ---- 解锁卡 ---- */
.fd-gate {
  background: linear-gradient(160deg, #fbfdf8 0%, #f2f7ec 100%);
  border: 1px solid var(--brand-line);
  border-radius: 16px;
  padding: 22px 24px;
  margin-bottom: 16px;
}
.fd-gate__head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}
.fd-gate__head i { font-size: 20px; color: var(--brand); }
.fd-gate__head b { font-size: 15px; font-weight: 600; color: var(--ink); }
.fd-gate__body {
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--muted);
  margin: 0 0 16px;
}

/* 手机号表单 */
.fd-gate__form {
  display: flex;
  gap: 8px;
}
.fd-gate__form input {
  flex: 1;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 11px 14px;
  font-size: 14px;
  background: var(--card);
  outline: none;
  transition: border-color var(--t-fast) var(--ease);
}
.fd-gate__form input:focus { border-color: var(--brand); }
.fd-gate__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: none;
  border-radius: 12px;
  background: var(--brand);
  color: #fff;
  font-size: 13.5px;
  font-weight: 600;
  padding: 11px 20px;
  cursor: pointer;
  white-space: nowrap;
  transition: background var(--t-fast) var(--ease), transform var(--t-fast) var(--ease);
}
.fd-gate__btn:hover { background: var(--brand-2); }
.fd-gate__btn:active { transform: scale(0.97); }
.fd-gate__note {
  font-size: 11.5px;
  color: var(--muted);
  margin: 10px 0 0;
}

/* Zalo 二维码 */
.fd-gate__zalo { text-align: center; }
.fd-gate__qr {
  width: 148px;
  height: 148px;
  border-radius: 12px;
  margin: 0 auto 10px;
  display: block;
  background: var(--card);
}
.fd-gate__qr-fallback {
  display: grid;
  place-items: center;
  width: 148px;
  height: 148px;
  margin: 0 auto 10px;
  border-radius: 12px;
  background: var(--card);
  border: 1px dashed var(--line);
  font-size: 40px;
  color: var(--muted);
}
.fd-gate__zalo p { font-size: 13px; color: var(--muted); margin: 0 0 12px; }

/* ---- CTA 行卡（诊断替代路径） ---- */
.fd-cta {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px 18px;
  margin-bottom: 26px;
  transition: border-color var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease), transform var(--t-fast) var(--ease);
}
.fd-cta:hover {
  border-color: var(--brand-line);
  box-shadow: var(--shadow-2);
  transform: translateY(-1px);
}
.fd-cta > i:first-child {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--brand-soft);
  color: var(--brand);
  font-size: 20px;
  flex-shrink: 0;
}
.fd-cta span { flex: 1; min-width: 0; }
.fd-cta b { display: block; font-size: 14px; font-weight: 600; color: var(--ink); }
.fd-cta small { font-size: 12px; color: var(--muted); }
.fd-cta__arrow { color: var(--muted); font-size: 18px; transition: transform var(--t-fast) var(--ease), color var(--t-fast) var(--ease); }
.fd-cta:hover .fd-cta__arrow { transform: translateX(3px); color: var(--brand); }

/* ---- 贡献卡（显式可点击） ---- */
.fd-contrib {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--card);
  overflow: hidden;
}
.fd-contrib__toggle {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  border: none;
  background: transparent;
  padding: 14px 16px;
  cursor: pointer;
  text-align: left;
  transition: background var(--t-fast) var(--ease);
}
.fd-contrib__toggle:hover { background: var(--soft); }
.fd-contrib__icon {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--brand-soft);
  color: var(--brand);
  font-size: 17px;
  flex-shrink: 0;
}
.fd-contrib__text { flex: 1; min-width: 0; }
.fd-contrib__text b { display: block; font-size: 13.5px; font-weight: 600; color: var(--ink); }
.fd-contrib__text small { font-size: 12px; color: var(--muted); }
.fd-contrib__chev { color: var(--muted); font-size: 18px; transition: transform var(--t-fast) var(--ease); }
.fd-contrib__toggle.is-open .fd-contrib__chev { transform: rotate(180deg); }
.fd-contrib__panel { border-top: 1px solid var(--line); padding: 16px; }

/* 已解锁态的步骤列表 */
.fd-steps {
  margin: 0;
  padding: 0 0 0 0;
  list-style: none;
  counter-reset: step;
}
.fd-steps li {
  position: relative;
  padding: 10px 0 10px 40px;
  border-bottom: 1px solid var(--line);
}
.fd-steps li:last-child { border-bottom: none; }
.fd-steps li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 0;
  top: 12px;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--brand-soft);
  color: var(--brand);
  font-size: 12.5px;
  font-weight: 600;
}
.fd-steps b { font-size: 13.5px; font-weight: 600; color: var(--ink); }
.fd-steps p { font-size: 13px; color: var(--muted); line-height: 1.6; margin: 3px 0 0; }

/* 警示块 */
.fd-block--warn {
  background: #fff8f0;
  border: 1px solid #f5ddc0;
  border-radius: 14px;
  padding: 16px 18px;
}
.fd-block--warn h2 i { color: var(--danger); }

/* 手机端 */
@media (max-width: 640px) {
  .fd-gate { padding: 18px 16px; }
  .fd-gate__form { flex-direction: column; }
  .fd-gate__btn { width: 100%; }
  .fd-cta { padding: 12px 14px; }
}
