/* PNGMill v2 — Figma 设计稿像素复刻（基准：doc/design/2026-11-03/*.png）
   Tokens 对齐 Figma 变量集 pngmill/color */
@font-face { font-family: 'Inter'; src: url('/fonts/inter-latin-400-normal.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Inter'; src: url('/fonts/inter-latin-500-normal.woff2') format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Inter'; src: url('/fonts/inter-latin-600-normal.woff2') format('woff2'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'Inter'; src: url('/fonts/inter-latin-700-normal.woff2') format('woff2'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'Inter'; src: url('/fonts/inter-latin-800-normal.woff2') format('woff2'); font-weight: 800; font-display: swap; }

:root {
  --ink: #0c1122;          /* ink/900 深色区底 */
  --ink-800: #141a2e;
  --darkcard: #161d36;
  --darkline: rgba(255,255,255,.08);
  --body: #39415c;
  --sub: #5a6480;
  --faint: #8a93ab;
  --faint-d: #9aa3c0;
  --brand: #3d63ff;
  --brand2: #7c5cff;
  --brand-grad: linear-gradient(135deg, #3d63ff 0%, #7c5cff 100%);
  --brand-soft: #eef1f8;
  --ok: #1f9d6b;
  --bg: #f7f8fc;
  --alt: #eef1f8;
  --border: #e2e6f2;
  --card: #ffffff;
  --radius: 14px;
  --radius-l: 20px;
  --radius-xl: 24px;
  --shadow-card: 0 6px 24px rgba(13,17,34,.08);
  --shadow-glow: 0 8px 32px rgba(61,99,255,.35);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: 'Inter', system-ui, -apple-system, sans-serif; color: var(--body); background: var(--bg); line-height: 1.6; font-size: 15px; }
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 24px; }
main.wrap { padding-top: 0; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { color: var(--ink); line-height: 1.2; margin: 0 0 .8rem; }
h1 { font-size: 44px; font-weight: 700; letter-spacing: -.02em; }
h2 { font-size: 32px; font-weight: 700; }
h3 { font-size: 20px; font-weight: 600; }
p { margin: .6rem 0; }

.k { font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--brand); font-weight: 600; margin: 0 0 .5rem; }
.k-k { font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--faint); font-weight: 600; margin: 0 0 .5rem; }
.lede { font-size: 18px; line-height: 28px; color: var(--sub); max-width: 46em; }
.small { font-size: 13px; line-height: 20px; color: var(--sub); }

/* ── 按钮（Comp/ButtonPrimary 复刻）── */
.btn { display: inline-block; padding: 14px 26px; border-radius: 999px; font-weight: 600; font-size: 15px; border: 1px solid var(--border); background: var(--card); color: var(--ink); cursor: pointer; font-family: inherit; }
.btn:hover { text-decoration: none; border-color: var(--brand); }
.btn-primary { background: var(--brand-grad); color: #fff; border: 0; box-shadow: var(--shadow-glow); }
.btn-ghost-dark { background: transparent; color: #fff; border-color: rgba(255,255,255,.25); }

/* ── Header（浅色默认 / 深色变体压 Hero）── */
.site-header { background: var(--card); border-bottom: 1px solid var(--border); }
.site-header .wrap { display: flex; align-items: center; gap: 2rem; padding-top: 15px; padding-bottom: 15px; }
.brand { font-weight: 800; font-size: 22px; color: var(--ink); letter-spacing: -.02em; }
.brand span { background: var(--brand-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.main-nav { display: flex; gap: 1.6rem; margin-left: auto; }
.main-nav a { color: var(--sub); font-weight: 500; font-size: 14px; }
.main-nav a:hover { color: var(--brand); text-decoration: none; }
.header-cta { margin-left: 1.6rem; padding: 9px 22px; border: 1.5px solid var(--brand); border-radius: 999px; color: var(--ink); font-size: 14px; font-weight: 600; }
.header-cta:hover { text-decoration: none; background: var(--brand-soft); }
.site-header.on-dark { position: absolute; top: 0; left: 0; right: 0; background: transparent; border-bottom: 0; z-index: 10; }
.site-header.on-dark .brand { color: #fff; }
.site-header.on-dark .main-nav a { color: var(--faint-d); }
.site-header.on-dark .header-cta { color: #fff; border-color: var(--brand); }

/* ── Hero（深色 640px 区）── */
.hero { background: var(--ink); color: #fff; margin: 0 -24px; padding: 140px 24px 64px; position: relative; overflow: hidden; }
.hero::before { content: ""; position: absolute; width: 560px; height: 560px; right: -80px; top: -180px;
  background: radial-gradient(circle at center, rgba(124,92,255,.28), rgba(61,99,255,.12) 55%, transparent 72%); filter: blur(40px); }
.hero::after { content: ""; position: absolute; width: 420px; height: 420px; left: -120px; bottom: -160px;
  background: radial-gradient(circle at center, rgba(31,157,107,.18), rgba(61,99,255,.1) 60%, transparent 75%); filter: blur(36px); }
.hero-inner { display: grid; grid-template-columns: 1fr 580px; gap: 60px; position: relative; z-index: 2; }
.hero h1 { color: #fff; font-size: 68px; line-height: 76px; font-weight: 800; letter-spacing: -.01em; margin: 18px 0 20px; }
.hero h1 .grad { background: var(--brand-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lede { color: var(--faint-d); font-size: 18px; line-height: 28px; max-width: 35em; }
.hero-actions { display: flex; gap: 14px; margin-top: 32px; flex-wrap: wrap; }
.chip-row { display: flex; gap: 12px; margin-top: 28px; flex-wrap: wrap; }
.chip-dark { display: inline-flex; align-items: center; gap: 8px; padding: 7px 15px; border-radius: 999px;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14); color: #cdd5ea; font-size: 13px; }
.chip-dark .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); }
.chip-dark .net-badge { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.16); color: #7ee2b8; }

/* Hero 右侧转换器示意卡 */
.hero-card { position: relative; background: var(--darkcard); border: 1px solid var(--darkline); border-radius: var(--radius-xl); padding: 32px; box-shadow: var(--shadow-glow); }
.hero-card .k { color: var(--brand2); }
.hero-card h3 { color: #fff; font-size: 18px; margin-bottom: 18px; }
.hero-dz { border: 1.5px dashed rgba(255,255,255,.18); border-radius: 16px; padding: 44px 20px 36px; text-align: center; }
.hero-dz .pxicon { width: 56px; height: 56px; border-radius: 14px; margin: 0 auto 14px;
  background: radial-gradient(#fff 2.2px, transparent 2.6px) 0 0/14px 14px, linear-gradient(135deg, #3D63FF, #7C5CFF); }
.hero-dz b { display: block; color: #fff; font-size: 16px; font-weight: 600; }
.hero-dz span { color: var(--faint-d); font-size: 13px; }
.hero-fmts { display: flex; gap: 8px; margin: 18px 0; flex-wrap: wrap; }
.hero-fmts i { font-style: normal; padding: 5px 12px; border-radius: 999px; background: rgba(255,255,255,.07); color: var(--faint-d); font-size: 11.5px; font-weight: 500; }
.hero-card .card-foot { border-top: 1px solid var(--darkline); padding-top: 16px; display: flex; justify-content: space-between; align-items: center; font-size: 13px; color: var(--faint-d); }
.hero-card .card-foot .ok-line { display: inline-flex; align-items: center; gap: 8px; }
.hero-card .card-foot .zip { color: #fff; font-weight: 600; }
.float-badge { position: absolute; top: -14px; right: 22px; background: var(--ink); border-radius: 999px; padding: 12px 20px;
  font-size: 13px; font-weight: 600; color: #fff; box-shadow: var(--shadow-card); display: inline-flex; align-items: center; gap: 8px; }
.float-badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); }

/* ── 区块通用 ── */
.section { padding: 72px 0 8px; }
.section-head { margin-bottom: 40px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }

/* 工具卡（白卡 + 渐变图标） */
.tcard { display: block; background: var(--card); border-radius: var(--radius-l); padding: 28px; box-shadow: var(--shadow-card); color: var(--ink); }
.tcard:hover { text-decoration: none; transform: translateY(-2px); transition: transform .15s; }
.tcard .ticon { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 20px; color: #fff; }
.tcard .ticon svg { width: 24px; height: 24px; }
.tcard b { display: block; font-size: 20px; font-weight: 600; color: var(--ink); margin-bottom: 8px; }
.tcard span { font-size: 13px; line-height: 20px; color: var(--sub); }
.tcard .go { display: block; margin-top: 18px; font-size: 14px; font-weight: 600; color: var(--brand); }

/* 深色集群区 */
.section-dark { background: var(--ink-800); margin: 72px -24px 0; padding: 64px 24px; }
.section-dark h2 { color: #fff; }
.section-dark .k { color: #a5b4fc; }
.dcard { display: block; background: var(--darkcard); border: 1px solid var(--darkline); border-radius: var(--radius-l); padding: 28px; color: #fff; }
.dcard:hover { text-decoration: none; border-color: rgba(124,92,255,.5); }
.dcard .dicon { width: 44px; height: 44px; border-radius: 12px; background: #232b4a; display: grid; place-items: center; margin-bottom: 16px; color: #a5b4fc; }
.dcard .dicon svg { width: 22px; height: 22px; }
.dcard b { display: block; font-size: 20px; font-weight: 600; margin-bottom: 8px; }
.dcard span { font-size: 13px; line-height: 20px; color: var(--faint-d); }

/* 指南卡 */
.gcard { background: var(--card); border-radius: var(--radius-l); padding: 24px; box-shadow: var(--shadow-card); display: block; color: var(--ink); }
.gcard:hover { text-decoration: none; }
.gcard .tag { display: inline-block; padding: 5px 16px; border-radius: 999px; background: var(--alt); color: var(--brand);
  font-size: 11px; font-weight: 600; letter-spacing: .08em; margin-bottom: 18px; }
.gcard b { display: block; font-size: 20px; font-weight: 600; line-height: 28px; margin-bottom: 12px; }
.gcard span { font-size: 13px; line-height: 20px; color: var(--sub); }

/* Why 三列 */
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.why-item .wicon { width: 48px; height: 48px; border-radius: 14px; background: var(--alt); display: grid; place-items: center; color: var(--brand); margin-bottom: 20px; }
.why-item .wicon svg { width: 24px; height: 24px; }
.why-item b { display: block; font-size: 20px; font-weight: 600; color: var(--ink); margin-bottom: 8px; }
.why-item p { font-size: 15px; line-height: 24px; color: var(--sub); }

/* CTA 渐变带 */
.cta-band { background: var(--brand-grad); border-radius: 28px; box-shadow: var(--shadow-glow);
  padding: 56px; display: flex; align-items: center; justify-content: space-between; gap: 40px; margin: 72px 0 0; }
.cta-band h2 { color: #fff; margin-bottom: 10px; }
.cta-band p { color: rgba(255,255,255,.92); font-size: 18px; max-width: 34em; }
.cta-band .btn-light { background: #fff; color: var(--ink); border-radius: 999px; padding: 16px 34px; font-weight: 700; font-size: 16px; white-space: nowrap; }
.cta-band .btn-light:hover { text-decoration: none; }

/* ── 工具页 ── */
.crumbs { font-size: 13px; color: var(--faint); padding-top: 28px; }
.crumbs .sep { margin: 0 .4rem; color: var(--border); }
.tool-head { padding-top: 20px; margin-bottom: 32px; }
.tool-head h1 { max-width: 760px; }
.tool-head .lede { max-width: 680px; margin-top: 16px; }

.tool-workbench { background: var(--card); border-radius: var(--radius-xl); padding: 32px; margin: 0 0 56px; box-shadow: var(--shadow-card);
  display: grid; grid-template-columns: 1fr 380px; gap: 44px; }
.dropzone { border: 1.5px dashed #c7cee4; border-radius: 16px; padding: 56px 24px 48px; text-align: center; transition: border-color .15s; }
.dropzone.dragover { border-color: var(--brand); background: var(--brand-soft); }
.dz-title { font-weight: 600; color: var(--ink); font-size: 16px; margin: 14px 0 6px; }
.dz-browse { color: var(--brand); cursor: pointer; font-weight: 600; }
.dz-hint { font-size: 13px; color: var(--sub); margin: 0; }
.dz-pxicon { width: 56px; height: 56px; border-radius: 14px; margin: 0 auto 18px;
  background: radial-gradient(#fff 2.2px, transparent 2.6px) 0 0/14px 14px, linear-gradient(135deg, #3D63FF, #7C5CFF); }
.tool-results { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 16px; margin-top: 20px; }
.preview-lg { grid-column: 1 / -1; }
.preview-lg img { display: block; width: 100%; max-height: 560px; object-fit: contain;
  border-radius: 10px; cursor: pointer; background: var(--bg); }
.preview-hint { font-size: 13px; color: var(--sub); margin: 8px 0 0; }

.result-card { border-radius: var(--radius); padding: 14px; background: var(--bg); }
.result-card img { max-width: 100%; border-radius: 8px; display: block; margin-bottom: 10px; }
.result-card .fname { font-size: 13px; color: var(--sub); word-break: break-all; }
.result-card a.dl { display: inline-block; margin-top: 8px; font-weight: 600; font-size: 14px; }
.tool-controls { display: flex; flex-direction: column; gap: 14px; align-items: stretch; }
.tool-controls label { font-size: 14px; color: var(--body); display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.tool-controls input[type=range] { width: 100%; accent-color: var(--brand); }
.tool-controls select, .tool-controls input[type=color], .tool-controls input[type=text], .tool-controls input[type=number] { padding: 8px 12px; border: 1px solid var(--border); border-radius: 10px; font: inherit; font-size: 14px; background: var(--card); }
.tool-controls .btn { text-align: center; }
.wb-status { border-top: 1px solid var(--border); margin-top: auto; padding-top: 18px; font-size: 13px; color: var(--sub); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.wb-status .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); flex: none; }
.net-badge { background: var(--alt); border: 1px solid var(--border); border-radius: 999px; padding: 2px 10px; font-weight: 600; color: var(--ok); font-variant-numeric: tabular-nums; }

.picked-card { display: flex; align-items: center; gap: 16px; margin-top: 20px; padding: 18px 22px;
  background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow-card); }
.picked-card[hidden] { display: none; }
.picked-swatch { width: 48px; height: 48px; border-radius: 12px; border: 1px solid var(--border); flex: none; }
.picked-text b { display: block; font-size: 20px; color: var(--ink); letter-spacing: .02em; }
.picked-text span { font-size: 13px; color: var(--sub); }

/* 矩阵表 */
.matrix { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--card); border-radius: var(--radius); overflow: hidden; margin: 8px 0 56px; font-size: 14px; box-shadow: var(--shadow-card); }
.matrix th, .matrix td { text-align: left; padding: 14px 20px; vertical-align: top; }
.matrix thead th { background: var(--ink); color: var(--faint-d); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; font-weight: 600; }
.matrix tbody tr:nth-child(odd) { background: var(--bg); }
.matrix tbody th { font-weight: 600; color: var(--ink); white-space: nowrap; }
.matrix tbody td { color: var(--sub); }

pre { background: var(--ink-800); color: #d9e0f5; padding: 18px 22px; border-radius: var(--radius); overflow-x: auto; font-size: 13px; line-height: 1.55; max-width: 100%; }
pre code { display: block; white-space: pre-wrap; word-break: break-word; min-width: 0; }
code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }

/* FAQ / related / changelog */
.faq details { background: var(--card); border-radius: 16px; padding: 20px 28px; margin: 0 0 12px; box-shadow: var(--shadow-card); }
.faq summary { font-weight: 600; color: var(--ink); cursor: pointer; font-size: 16px; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 2px; top: 6px; width: 10px; height: 10px;
  border-right: 2px solid var(--sub); border-bottom: 2px solid var(--sub); transform: rotate(45deg); transition: transform .15s; }
.faq details[open] summary::after { transform: rotate(225deg); top: 10px; }
.faq details p { color: var(--sub); margin: 12px 0 4px; }
.related ul { list-style: none; padding: 0; display: flex; gap: 12px; flex-wrap: wrap; margin: 8px 0 40px; }
.related ul li a { display: inline-block; padding: 11px 22px; border-radius: 999px; background: var(--card); box-shadow: var(--shadow-card); color: var(--ink); font-size: 14px; font-weight: 500; }
.related ul li a:hover { text-decoration: none; border: 0; color: var(--brand); }
.changelog { font-size: 13px; color: var(--sub); border-top: 1px solid var(--border); padding-top: 16px; margin-top: 40px; }
.answer-first { font-size: 17px; background: var(--card); border-left: 4px solid var(--brand); padding: 16px 20px; border-radius: 0 var(--radius) var(--radius) 0; box-shadow: var(--shadow-card); }

/* Roadmap 注（hub） */
.anchor-note, .roadmap-note { background: var(--alt); border-radius: var(--radius-l); padding: 28px 32px; margin: 32px 0 40px; }
.anchor-note b, .roadmap-note b { display: block; color: var(--ink); font-size: 16px; margin-bottom: 6px; }
.anchor-note p, .roadmap-note p { margin: 0; font-size: 13px; color: var(--sub); }

/* trust bar（内页顶部细条） */
.trust-bar { display: flex; gap: 22px; flex-wrap: wrap; padding: 18px 0 0; font-size: 13px; color: var(--sub); align-items: center; }
.trust-bar .trust-item b { color: var(--ok); }

/* ── Footer ── */
.site-footer { background: var(--ink); color: var(--faint-d); margin-top: 96px; padding: 64px 0 40px; font-size: 14px; }
.site-footer .brand { color: #fff; font-size: 26px; }
.site-footer a { color: var(--faint-d); }
.site-footer a:hover { color: #fff; }
.site-footer .foot-tag { font-size: 13px; line-height: 20px; max-width: 22em; margin-top: 14px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
.site-footer h3 { color: var(--faint); font-size: 12px; text-transform: uppercase; letter-spacing: .16em; margin: 6px 0 18px; font-weight: 600; }
.site-footer nav a { display: block; padding: 5px 0; font-size: 13.5px; }
.foot-fine { border-top: 1px solid var(--darkline); margin-top: 48px; padding-top: 24px; font-size: 13px; color: var(--faint); display: flex; gap: 28px; flex-wrap: wrap; }
.foot-fine span:last-child { margin-left: auto; }

/* 内页版心（guides/about/legal） */
.page { max-width: 860px; margin: 0 auto; padding: 1.4rem 24px 0; }

@media (max-width: 1020px) {
  .hero-inner { grid-template-columns: 1fr; }
  .grid-3, .why-grid { grid-template-columns: 1fr 1fr; }
  .grid-4 { grid-template-columns: 1fr 1fr; }
  .tool-workbench { grid-template-columns: 1fr; }
  .cta-band { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 720px) {
  body { font-size: 14px; }
  h1 { font-size: 30px; }
  h2 { font-size: 24px; }
  .hero { padding-top: 120px; }
  .hero h1 { font-size: 42px; line-height: 50px; }
  .grid-3, .grid-4, .why-grid { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .main-nav { display: none; }
  .cta-band { padding: 36px 28px; }
}
