/* ============================================================
   braidge · 官网样式 —— "石板 Quarry" 视觉语言
   借鉴 Chi 认可的 Claude Design 参考稿:
   暖石白底 · 炭墨字 · 克制青铜点缀 · 直角硬边 · 大字号排版
   字体:Space Grotesk(展示) / Manrope(正文) / JetBrains Mono(标签)
   —— 全部自托管(国内无需 Google Fonts),移动端优先
   ============================================================ */

/* ---------- 自托管字体(Latin 子集;中文走系统 PingFang) ---------- */
@font-face {
  font-family: "Space Grotesk";
  font-style: normal; font-weight: 400 700; font-display: swap;
  src: url("../fonts/spacegrotesk-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F, U+2122, U+2191, U+2193, U+2212, U+2215;
}
@font-face {
  font-family: "Manrope";
  font-style: normal; font-weight: 400 700; font-display: swap;
  src: url("../fonts/manrope-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F, U+2122, U+2191, U+2193, U+2212, U+2215;
}
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal; font-weight: 400 600; font-display: swap;
  src: url("../fonts/jetbrainsmono-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F, U+2122, U+2191, U+2193, U+2212, U+2215;
}

:root {
  --bg:          #f5f3f1;   /* 暖石白 */
  --surface:     #fdfcfa;   /* 近白卡面 */
  --ink:         #23201c;   /* 暖炭墨(主文字) */
  --muted:       #615b56;   /* 次文字 */
  --faint:       #8b847d;   /* 辅助/占位 */
  --line:        #d6d4d0;   /* 细边线 */
  --line-soft:   #e5e3df;   /* 更浅分隔 */
  --accent:      #8d5c3d;   /* 青铜/赭石 点缀 */
  --accent-ink:  #74492f;
  --accent-soft: #f2e1d2;   /* 青铜浅底 */
  --ph-ink:      #6c6158;   /* 占位条纹文字 */

  --cjk: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --display: "Space Grotesk", var(--cjk);
  --body:    "Manrope", -apple-system, BlinkMacSystemFont, var(--cjk);
  --mono:    "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --stripe: repeating-linear-gradient(135deg, rgba(40,30,20,.07) 0, rgba(40,30,20,.07) 1px, transparent 1px, transparent 10px);
  --maxw: 1180px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.68;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }

/* ---------- 通用小部件 ---------- */
.eyebrow {
  display: inline-block;
  font-family: var(--mono);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--accent);
}

/* ---------- 顶栏 ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(245,243,241,.85);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 62px;
}
.brand {
  display: flex; align-items: center; gap: 3px;
  font-family: var(--display);
  font-weight: 700; font-size: 21px; letter-spacing: -.02em;
}
.brand .dot { color: var(--accent); }
.brand-mark { display: none; }   /* 参考稿用文字标,不用图形块 */
.nav-right { display: flex; align-items: center; gap: 4px; }
.nav-link {
  display: none;
  padding: 8px 12px; font-size: 14.5px; color: var(--muted);
}
.nav-link:hover { color: var(--ink); }
.lang-btn {
  margin-left: 8px;
  padding: 8px 14px;
  font-family: var(--mono);
  font-size: 12px; font-weight: 600; letter-spacing: .08em;
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 2px;
  cursor: pointer;
  transition: border-color .15s, color .15s;
}
.lang-btn:hover { border-color: var(--ink); }
@media (min-width: 760px) { .nav-link { display: inline-flex; } .nav-right { gap: 26px; } }

/* ---------- 按钮(直角硬边) ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: var(--body); font-weight: 600; font-size: 15px;
  padding: 13px 22px;
  border-radius: 2px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background .18s, border-color .18s, color .18s;
}
.btn-primary { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.btn-primary:hover { background: var(--accent); border-color: var(--accent); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-disabled { background: transparent; color: var(--faint); border-color: var(--line-soft); cursor: not-allowed; }
.btn-block { width: 100%; }

/* ---------- 段落骨架 ---------- */
.section { padding: 76px 0; }
.section-alt { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.sec-head { max-width: 640px; margin-bottom: 44px; }
.section-title {
  font-family: var(--display);
  font-weight: 600; font-size: 30px; line-height: 1.12; letter-spacing: -.02em;
  margin: 14px 0 0;
}
.section-lead { margin: 14px 0 0; color: var(--muted); font-size: 16px; max-width: 42em; }

/* ---------- 条纹占位通用 ---------- */
.ph {
  position: relative; overflow: hidden;
  background-color: transparent; background-image: var(--stripe);
  border: 1px solid var(--line);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 7px;
}
.ph .ph-corner {
  position: absolute; top: 12px; left: 13px;
  font-family: var(--mono); font-size: 10px; font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase; color: var(--ph-ink); opacity: .72;
}
.ph .ph-label { font-family: var(--mono); font-size: 12.5px; font-weight: 500; color: var(--ph-ink); text-align: center; padding: 0 16px; }
.ph .ph-sub   { font-family: var(--mono); font-size: 11px; color: var(--ph-ink); opacity: .6; }

/* ============ ① 首屏 ============ */
.hero { padding: 60px 0 30px; }
.hero-eyebrow { margin-bottom: 18px; }
.hero-title {
  font-family: var(--display);
  font-weight: 600; font-size: 40px; line-height: 1.08; letter-spacing: -.025em;
  margin: 0 0 22px;
  text-wrap: balance;
}
.hero-sub { margin: 0 0 30px; font-size: 17.5px; line-height: 1.7; color: var(--muted); max-width: 30em; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-note { margin: 22px 0 0; font-family: var(--mono); font-size: 12.5px; letter-spacing: .02em; color: var(--faint); }
.hero-note::before { content: "◆ "; color: var(--accent); }

.hero-media { margin-top: 44px; }
.video-frame {
  position: relative;
  aspect-ratio: 16 / 10;
  border: 1px solid var(--line);
  background-color: var(--surface);
  background-image: var(--stripe);
  overflow: hidden;
}
.video-poster { width: 100%; height: 100%; object-fit: cover; opacity: .96; }
.play-btn {
  position: absolute; inset: 0; margin: auto;
  width: 60px; height: 60px;
  display: flex; align-items: center; justify-content: center;
  color: var(--bg); background: var(--ink);
  border: none; border-radius: 999px; cursor: not-allowed;
}
.video-badge {
  position: absolute; left: 12px; bottom: 12px;
  padding: 5px 11px;
  font-family: var(--mono); font-size: 11px; font-weight: 500; letter-spacing: .04em;
  color: var(--ph-ink);
  background: rgba(253,252,250,.92);
  border: 1px solid var(--line);
}

@media (min-width: 900px) {
  .hero { padding: 92px 0 40px; }
  .hero-grid { display: grid; grid-template-columns: 1.02fr .98fr; gap: 60px; align-items: center; }
  .hero-media { margin-top: 0; }
  .hero-title { font-size: 58px; }
}

/* ---------- 首屏下的三段流水线(01→02→03) ---------- */
.pipe {
  display: grid; grid-template-columns: 1fr; gap: 14px;
  margin-top: 40px;
}
.pipe .ar { display: none; color: var(--line); justify-self: center; }
.pipe .ph { aspect-ratio: 5 / 3; }
@media (min-width: 760px) {
  .pipe { grid-template-columns: 1fr auto 1fr auto 1fr; align-items: center; gap: 18px; margin-top: 56px; }
  .pipe .ar { display: flex; }
  .pipe .ph { aspect-ratio: 4 / 3; }
}

/* ============ ② 三步(编辑式交替行) ============ */
.steps-wrap { display: grid; gap: 8px; }
.step {
  display: grid; grid-template-columns: 1fr; gap: 22px;
  padding: 40px 0;
  border-top: 1px solid var(--line-soft);
}
.step:first-of-type { border-top: none; }
.step-num { font-family: var(--mono); font-size: 12.5px; font-weight: 600; letter-spacing: .1em; color: var(--accent); }
.step-title { font-family: var(--display); font-weight: 600; font-size: 23px; letter-spacing: -.015em; margin: 12px 0 0; }
.step-desc { font-size: 16px; line-height: 1.72; color: var(--muted); margin: 12px 0 0; }
.step-vis { aspect-ratio: 5 / 4; }
.step-vis .ph-icon { width: 34px; height: 34px; opacity: .5; }
@media (min-width: 820px) {
  .step { grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; padding: 60px 0; }
  .step.flip .step-text { order: 2; }
  .step-title { font-size: 28px; }
}

/* 上线开关:隐藏未就绪的区块(如真单验证数据卡) */
.is-hidden { display: none !important; }

/* ============ ③ 为什么准(价值带) ============ */
/* auto-fit:2 张或 3 张卡都能均分排满,隐藏其中一张不会留空洞 */
.trust-grid { display: grid; gap: 40px; }
.value h3 {
  font-family: var(--display); font-weight: 600; font-size: 20px; letter-spacing: -.01em;
  margin: 0; padding-top: 20px; border-top: 2px solid var(--ink);
}
.value p { margin: 13px 0 0; font-size: 15.5px; line-height: 1.7; color: var(--muted); }
.value .trust-stat { margin: 13px 0 4px; }
.stat-num { font-family: var(--display); font-size: 40px; font-weight: 600; letter-spacing: -.02em; color: var(--accent); line-height: 1; }
.stat-num + span { font-size: 14px; color: var(--muted); margin-left: 8px; }
@media (min-width: 760px) { .trust-grid { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 48px; } }

/* ============ ④ 定价 ============ */
.plans { display: grid; gap: 18px; }
.plan {
  position: relative;
  padding: 32px 26px;
  background: var(--surface);
  border: 1px solid var(--line);
}
.plan-featured { border-color: var(--ink); }
.plan-tag { font-family: var(--mono); font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }
.plan-soon .plan-tag { color: var(--faint); }
.plan-price { display: flex; align-items: baseline; gap: 9px; margin: 16px 0 6px; }
.price-num { font-family: var(--display); font-size: 46px; font-weight: 600; letter-spacing: -.02em; line-height: 1; }
.price-unit { font-family: var(--mono); font-size: 13px; color: var(--muted); font-weight: 500; }
.plan-quota { margin: 0 0 22px; color: var(--muted); font-size: 14.5px; }
.plan-feats { list-style: none; margin: 0 0 26px; padding: 0; }
.plan-feats li { position: relative; padding: 10px 0 10px 24px; font-size: 15px; border-top: 1px solid var(--line-soft); }
.plan-feats li::before { content: "→"; position: absolute; left: 0; color: var(--accent); font-family: var(--mono); }
.plan-soon { opacity: .8; }
.plan-soon .plan-feats li::before { content: "·"; color: var(--faint); }
.plan-soon-badge {
  position: absolute; top: 30px; right: 26px;
  font-family: var(--mono); font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  color: var(--accent); padding: 4px 10px; border: 1px solid var(--accent-soft); background: var(--accent-soft);
}
@media (min-width: 760px) { .plans { grid-template-columns: repeat(2, 1fr); gap: 22px; align-items: start; } }

/* ============ ⑤ FAQ ============ */
.faq-list { max-width: 800px; border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
  list-style: none; cursor: pointer; position: relative;
  padding: 20px 40px 20px 2px;
  font-family: var(--display); font-size: 17px; font-weight: 500;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  font-family: var(--mono); font-size: 20px; font-weight: 400; color: var(--accent);
}
.faq-item[open] summary::after { content: "−"; }
.faq-item p { margin: 0; padding: 0 2px 22px; color: var(--muted); font-size: 15.5px; max-width: 64ch; }

/* ============ 联系 ============ */
.contact-grid { display: grid; gap: 34px; }
.contact-list { list-style: none; margin: 22px 0 0; padding: 0; }
.contact-list li { display: flex; align-items: center; gap: 16px; padding: 14px 0; border-top: 1px solid var(--line); }
.contact-label { min-width: 56px; font-family: var(--mono); font-size: 11px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--faint); }
.contact-value { font-size: 16px; font-weight: 500; }
a.contact-value:hover { color: var(--accent); }
.contact-qr {
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  padding: 22px;
  background: var(--surface); border: 1px solid var(--line);
  align-self: start; justify-self: start;
}
.contact-qr img { border: 1px solid var(--line-soft); }
.qr-caption { font-family: var(--mono); font-size: 11px; color: var(--faint); letter-spacing: .03em; }
@media (min-width: 760px) { .contact-grid { grid-template-columns: 1.2fr auto; align-items: center; gap: 60px; } }

/* ============ 页脚 ============ */
.footer { border-top: 1px solid var(--line); padding: 32px 0; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 20px; }
.footer .brand { font-size: 17px; }
.footer-tag { flex: 1 1 auto; font-family: var(--mono); font-size: 12px; letter-spacing: .03em; color: var(--muted); }
.footer-copy { font-family: var(--mono); font-size: 12px; color: var(--faint); }

@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; } }
