/* 原型样式：变量来自 DESIGN.md 第 4、5、8 节。全站只用变量，不新增颜色。 */
:root {
  --bg: #08090A; --card: #0F1011; --card-hi: #141516;
  --fg: #F7F8F8; --fg2: #8A8F98;
  --line: rgba(255,255,255,.08); --line-hi: rgba(255,255,255,.16);
  --accent: #D9724C;
  --r-btn: 6px; --r-card: 9px; --r-pill: 9999px;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "PingFang SC", "Noto Sans SC", "Microsoft YaHei", sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, monospace;
  --maxw: 1200px;
}
body.ip { --accent: #5FB89A; }

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { background: var(--bg); color: var(--fg); font-family: var(--font); font-size: 16px; line-height: 1.65; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.muted { color: var(--fg2); }
.mono { font-family: var(--mono); font-size: 13px; }

/* 字级（DESIGN.md 第 5 节） */
h1 { font-size: 60px; font-weight: 520; letter-spacing: -1.3px; line-height: 1.12; }
h2 { font-size: 44px; font-weight: 520; letter-spacing: -.9px; line-height: 1.2; }
h3 { font-size: 20px; font-weight: 560; letter-spacing: -.2px; line-height: 1.4; }
.eyebrow { font-size: 14px; color: var(--accent); letter-spacing: .5px; margin-bottom: 16px; }
.lead { font-size: 18px; color: var(--fg2); max-width: 34em; }

/* 顶栏 */
.nav { position: sticky; top: 0; z-index: 20; background: rgba(8,9,10,.96); border-bottom: 1px solid var(--line); }
.nav .wrap { display: flex; align-items: center; height: 64px; gap: 28px; }
.logo { font-weight: 600; font-size: 16px; white-space: nowrap; }
.logo small { color: var(--fg2); font-weight: 400; margin-left: 8px; font-size: 13px; }
.nav-links { display: flex; gap: 24px; font-size: 14px; color: var(--fg2); margin-left: auto; }
.nav-links a:hover, .nav-links a.on { color: var(--fg); }
.menu-btn { display: none; margin-left: auto; background: none; border: 1px solid var(--line); color: var(--fg); border-radius: var(--r-btn); height: 40px; padding: 0 12px; }

/* 按钮（第 8 节） */
.btn { display: inline-flex; align-items: center; justify-content: center; height: 44px; padding: 0 20px; border-radius: var(--r-btn); font-size: 15px; font-weight: 500; transition: filter .15s, border-color .15s; white-space: nowrap; }
.btn-primary { background: var(--accent); color: var(--bg); }
.btn-primary:hover { filter: brightness(1.08); }
.btn-ghost { border: 1px solid var(--line-hi); border-radius: var(--r-pill); color: var(--fg); }
.btn-ghost:hover { border-color: var(--fg2); }
.btn-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 32px; }

/* 区块 */
section { padding: 80px 0; border-top: 1px solid var(--line); }
section:first-of-type { border-top: 0; }
.sec-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 40px; flex-wrap: wrap; }
.sec-head p { max-width: 32em; }

/* 首屏 */
.hero { min-height: calc(100dvh - 64px); display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; padding-top: 56px; padding-bottom: 72px; }
.hero-visual { position: relative; border-radius: var(--r-card); overflow: hidden; border: 1px solid var(--line); aspect-ratio: 4/5; max-height: 72vh; justify-self: end; width: 100%; max-width: 480px; }
.hero-visual img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; }
.live-card { position: absolute; left: 16px; right: 16px; bottom: 16px; background: rgba(15,16,17,.92); border: 1px solid var(--line-hi); border-radius: var(--r-card); padding: 14px 16px; font-size: 14px; }
.live-card .dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); margin-right: 8px; }

/* 信任条 */
.trust { display: flex; flex-wrap: wrap; gap: 12px 40px; padding: 28px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.trust div { font-size: 14px; color: var(--fg2); }
.trust b { display: block; color: var(--fg); font-size: 20px; font-weight: 560; letter-spacing: -.3px; }

/* 筛选 chip */
.chips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; margin-bottom: 24px; scrollbar-width: none; }
.chip { flex: none; height: 36px; padding: 0 14px; border-radius: var(--r-pill); border: 1px solid var(--line); background: none; color: var(--fg2); font: inherit; font-size: 14px; cursor: pointer; }
.chip.on { border-color: var(--accent); color: var(--fg); }

/* 卡片（第 8 节：靠边框不靠阴影） */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.card { display: flex; flex-direction: column; gap: 10px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-card); padding: 24px; transition: border-color .15s, background .15s; min-height: 220px; }
.card:hover { border-color: var(--line-hi); background: var(--card-hi); }
.card.wide { grid-column: span 2; }
.card .tag { font-size: 13px; color: var(--fg2); }
.card p { color: var(--fg2); font-size: 15px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card .foot { margin-top: auto; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.badge { display: inline-flex; align-items: center; height: 26px; padding: 0 10px; border-radius: var(--r-pill); border: 1px solid var(--accent); color: var(--fg); font-size: 12px; }
.badge.plain { border-color: var(--line-hi); color: var(--fg2); }
.todo { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: var(--r-pill); border: 1px dashed #6b6f76; color: #9a9ea6; font-size: 12px; margin-right: 6px; vertical-align: 2px; }

/* 行列表（合作方式、时间线） */
.rows { border-top: 1px solid var(--line); }
.row { display: grid; grid-template-columns: 220px 1fr auto; gap: 24px; padding: 24px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.row h3 { font-size: 18px; }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border: 1px solid var(--line); border-radius: var(--r-card); overflow: hidden; }
.step { padding: 24px; border-right: 1px solid var(--line); }
.step:last-child { border-right: 0; }
.step .n { font-family: var(--mono); color: var(--accent); font-size: 13px; }

/* 照片条 */
.photos { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.photos img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: var(--r-card); border: 1px solid var(--line); filter: brightness(.92); }
.photos figure:first-child { grid-column: span 2; grid-row: span 2; }
.photos figure:first-child img { aspect-ratio: auto; height: 100%; }
figcaption { font-size: 13px; color: var(--fg2); margin-top: 6px; }

/* 数据承诺 */
.pledge { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-card); overflow: hidden; }
.pledge div { background: var(--bg); padding: 28px; }

/* 联系 */
.contact { display: grid; grid-template-columns: 1fr auto; gap: 48px; align-items: center; }
.qr { width: 160px; border-radius: var(--r-card); border: 1px solid var(--line); }
footer { border-top: 1px solid var(--line); padding: 32px 0 96px; font-size: 13px; color: var(--fg2); }

/* 详情页 */
.article { max-width: 760px; }
.article h2 { font-size: 24px; letter-spacing: -.4px; margin: 48px 0 12px; }
.article p, .article li { color: #c9ccd1; }
.article ul { padding-left: 20px; }
.meta { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 16px; padding: 20px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-top: 32px; font-size: 14px; }
.meta span { display: block; color: var(--fg2); font-size: 12px; }

/* 浮动：客服占位 + 原型导航 */
.chat-fab { position: fixed; right: 20px; bottom: 20px; z-index: 30; height: 44px; padding: 0 16px; border-radius: var(--r-pill); background: var(--card-hi); border: 1px solid var(--line-hi); color: var(--fg); font: inherit; font-size: 14px; }
.chat-fab small { color: var(--fg2); margin-left: 6px; }
.proto-bar { position: fixed; left: 20px; bottom: 20px; z-index: 30; display: flex; gap: 4px; background: #1b1c1e; border: 1px dashed #6b6f76; border-radius: var(--r-pill); padding: 4px; font-size: 12px; }
.proto-bar a { padding: 6px 10px; border-radius: var(--r-pill); color: var(--fg2); }
.proto-bar a.on { background: #2a2b2e; color: var(--fg); }
.proto-bar b { padding: 6px 8px; color: #e5b07a; font-weight: 500; }

/* 进入动效（第 10 节：只动 transform/opacity，一次性） */
.reveal { opacity: 0; transform: translateY(12px); transition: opacity .5s ease-out, transform .5s ease-out; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* 双端（第 11 节） */
@media (max-width: 1024px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .step:nth-child(2) { border-right: 0; } .step:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}
@media (max-width: 768px) {
  h1 { font-size: 36px; letter-spacing: -.6px; } h2 { font-size: 26px; } .lead { font-size: 16px; }
  .wrap { padding: 0 16px; } section { padding: 48px 0; }
  .nav-links { display: none; position: absolute; top: 64px; left: 0; right: 0; flex-direction: column; background: var(--bg); padding: 16px; border-bottom: 1px solid var(--line); }
  .nav-links.open { display: flex; } .menu-btn { display: block; } .nav .btn { display: none; }
  .hero { grid-template-columns: 1fr; min-height: auto; padding-top: 32px; padding-bottom: 48px; gap: 32px; }
  .hero-visual { justify-self: stretch; max-width: none; aspect-ratio: 4/3; max-height: none; }
  .btn-row .btn { flex: 1 1 100%; }
  .grid, .pledge, .contact { grid-template-columns: 1fr; } .card.wide { grid-column: auto; }
  .row { grid-template-columns: 1fr; gap: 6px; }
  .steps { grid-template-columns: 1fr; } .step { border-right: 0; border-bottom: 1px solid var(--line); }
  .photos { grid-template-columns: repeat(2, 1fr); }
  .proto-bar { left: 8px; right: 8px; bottom: 72px; overflow-x: auto; } .chat-fab { right: 12px; bottom: 12px; }
}
/* 出处标注 */
.src { font-size: 12px; color: #6b6f76; margin: 0 2px; }
.src::before { content: "〔"; } .src::after { content: "〕"; }
.proto-bar a, .proto-bar b { white-space: nowrap; flex: none; }
@media (max-width: 768px) { body.ip .hero > div:last-child { justify-self: center; } }

/* ===== 配色 B「暖纸」：参考 geopro.cc（暖白底、衬线标题、金铜强调） ===== */
html[data-theme="paper"] {
  --bg: #F3F2F2; --card: #FAF9F8; --card-hi: #FFFFFF;
  --fg: #201F1D; --fg2: #605D5D;
  --line: rgba(32,31,29,.12); --line-hi: rgba(32,31,29,.26);
  --accent: #B68235;
  --r-btn: 4px; --r-card: 6px;
  --serif: "Noto Serif SC", "Source Han Serif SC", "Songti SC", SimSun, serif;
}
html[data-theme="paper"] body.ip { --accent: #3E8E74; }
html[data-theme="paper"] h1, html[data-theme="paper"] h2, html[data-theme="paper"] h3, html[data-theme="paper"] .logo { font-family: var(--serif); font-weight: 600; letter-spacing: 0; }
html[data-theme="paper"] .nav { background: rgba(243,242,242,.96); }
html[data-theme="paper"] .btn-primary { color: #fff; }
html[data-theme="paper"] .article p, html[data-theme="paper"] .article li { color: #3a3835; }
html[data-theme="paper"] .photos img, html[data-theme="paper"] .card img { filter: none; }
html[data-theme="paper"] .live-card { background: rgba(255,255,255,.94); }
html[data-theme="paper"] .proto-bar { background: #fff; }
html[data-theme="paper"] .proto-bar a.on { background: #ece9e6; }
html[data-theme="paper"] .src { color: #9b9797; }

/* 配色切换按钮（顶栏） */
.theme-btn { height: 32px; padding: 0 10px; border-radius: var(--r-pill); border: 1px solid var(--line); background: none; color: var(--fg2); font: inherit; font-size: 12px; cursor: pointer; white-space: nowrap; }
.theme-btn:hover { color: var(--fg); border-color: var(--line-hi); }

/* ===== 首屏人物：透明背景抠图，无边框，边缘虚化融入页面 ===== */
.hero-visual.cutout { border: 0; border-radius: 0; overflow: visible; aspect-ratio: auto; max-height: none; max-width: 520px; }
.hero-visual.cutout::before { content: ""; position: absolute; inset: 8% 0 0 0; z-index: 0;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--accent) 20%, transparent), transparent 75%); }
.hero-visual.cutout img { position: relative; z-index: 1; width: 100%; height: auto; object-fit: contain;
  -webkit-mask-image: radial-gradient(90% 75% at 50% 40%, #000 45%, rgba(0,0,0,.6) 66%, transparent 86%);
          mask-image: radial-gradient(90% 75% at 50% 40%, #000 45%, rgba(0,0,0,.6) 66%, transparent 86%); }
.hero-visual.cutout .live-card { z-index: 2; left: 0; right: auto; bottom: 8%; max-width: 330px; }
@media (max-width: 768px) { .hero-visual.cutout { max-width: 360px; margin: 0 auto; } .hero-visual.cutout .live-card { left: 8px; right: 8px; max-width: none; } }

/* 在线可试：产品卡带缩略图 */
.prod { padding: 0; overflow: hidden; min-height: 0; }
.prod img { width: 100%; aspect-ratio: 16/10; object-fit: cover; object-position: top; border-bottom: 1px solid var(--line); filter: brightness(.92); }
.prod .body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 8px; }
/* 主标随宽度平滑缩放，整句不拆行（避免"业/务"被拆开） */
h1 { font-size: clamp(34px, 4.6vw, 60px); }
.nowrap { white-space: nowrap; }
