/* 字体（均为 SIL OFL 授权，已自托管，不请求第三方）：Poppins、Caveat、DM Mono。中文走系统字体。 */
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 400; font-display: swap; src: url(/assets/fonts/poppins-400.woff2) format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 600; font-display: swap; src: url(/assets/fonts/poppins-600.woff2) format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 800; font-display: swap; src: url(/assets/fonts/poppins-800.woff2) format("woff2"); }
@font-face { font-family: "Poppins"; font-style: italic; font-weight: 800; font-display: swap; src: url(/assets/fonts/poppins-800i.woff2) format("woff2"); }
@font-face { font-family: "Caveat"; font-style: normal; font-weight: 600; font-display: swap; src: url(/assets/fonts/caveat-600.woff2) format("woff2"); }
@font-face { font-family: "DM Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url(/assets/fonts/dm-mono-400.woff2) format("woff2"); }

:root {
  /* 配色与 PayRam 官网保持一致：青柠、洋红、深墨、紫 */
  --lime: #caff54;
  --lime-deep: #b4ec2c;
  --magenta: #ff00ff;
  --purple: #6a0dad;
  --ink: #0e1225;
  --ink-2: #1b2145;
  --muted: #4a5070;
  --line: #e7e5dd;
  --bg: #ffffff;
  --bg-alt: #f6f7f0;
  --green: #01e46f;
  --warn-bg: #fff7d6;
  --warn-line: #d9a400;
  --danger-bg: #ffe9f5;
  --danger-line: #d6007f;
  --info-bg: #efe6ff;
  --info-line: #8a4fd6;
  --radius: 18px;
  --bd: 2.5px solid var(--ink);
  --pop: 6px 6px 0 var(--lime);
  --font: Poppins, system-ui, -apple-system, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  --hand: Caveat, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  --mono: "DM Mono", ui-monospace, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--bg); line-height: 1.7; font-size: 16px; }
img, svg { max-width: 100%; }
a { color: var(--purple); text-underline-offset: 3px; }
a:hover { color: var(--magenta); }
h1, h2, h3 { line-height: 1.25; margin: 0 0 0.6em; letter-spacing: -0.01em; font-weight: 600; }
h1 { font-size: clamp(2rem, 4.6vw, 3.3rem); }
h2 { font-size: clamp(1.5rem, 2.8vw, 2.1rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; }
::selection { background: var(--magenta); color: #fff; }
:focus-visible { outline: 3px solid var(--magenta); outline-offset: 2px; border-radius: 4px; }

.wrap { width: min(1120px, calc(100% - 40px)); margin: 0 auto; }
.wrap.narrow { width: min(820px, calc(100% - 40px)); }
.muted { color: var(--muted); }
.center { text-align: center; }

/* 青柠底 + 点阵纹理（呼应 PayRam 的点阵底纹） */
.hero, .page-head, .cta-band {
  background-color: var(--lime);
  background-image: radial-gradient(circle, var(--lime-deep) 2px, transparent 2.6px);
  background-size: 18px 18px;
}

/* 预览条 / 公告条 */
.draft-bar { background: #fff3cd; color: #5c4400; text-align: center; font-size: 0.85rem; padding: 6px 12px; border-bottom: 1px solid #ecd68b; }
.announce { background: var(--purple); color: #fff; text-align: center; font-size: 0.86rem; font-weight: 600; padding: 8px 16px; line-height: 1.5; }
.announce a { color: #fff; text-decoration: underline; margin-left: 6px; }
.announce a:hover { color: var(--lime); }

/* 头部：深墨底，logo 的青柠与荧光黄在深色上清晰 */
.site-header { position: sticky; top: 0; z-index: 20; background: var(--ink); color: #fff; border-bottom: 2px solid var(--ink); }
.bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 66px; }
.brand { display: inline-flex; align-items: center; text-decoration: none; }
.brand-logo { display: block; height: 30px; width: auto; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav-links { display: flex; gap: 22px; list-style: none; }
.nav-links a { color: rgba(255, 255, 255, 0.88); text-decoration: none; font-size: 0.93rem; font-weight: 600; }
.nav-links a:hover { color: var(--lime); }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.lang { color: rgba(255, 255, 255, 0.72); font-size: 0.9rem; text-decoration: none; padding: 6px 8px; }
.lang:hover { color: var(--lime); }
.nav-toggle { display: none; background: none; border: 2px solid rgba(255, 255, 255, 0.5); border-radius: 10px; padding: 7px 12px; font: inherit; font-weight: 600; color: #fff; cursor: pointer; }

/* 按钮 */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 20px; border-radius: 12px; border: var(--bd); font: inherit; font-weight: 600; text-decoration: none; cursor: pointer; transition: transform 0.1s, box-shadow 0.1s, background 0.15s; line-height: 1.3; }
.btn:active { transform: translate(2px, 2px); }
.btn-sm { padding: 7px 14px; font-size: 0.9rem; border-width: 2px; border-radius: 10px; }
.btn-lg { padding: 14px 26px; font-size: 1.02rem; }
.btn-primary { background: var(--ink); color: var(--lime); }
.btn-primary:hover { background: var(--ink-2); color: var(--lime); }
.btn-outline { background: #fff; color: var(--ink); box-shadow: 4px 4px 0 var(--ink); }
.btn-outline:hover { color: var(--ink); transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--ink); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: #fff; }
.site-header .btn-ghost { color: #fff; border-color: rgba(255, 255, 255, 0.6); }
.site-header .btn-ghost:hover { background: #fff; color: var(--ink); border-color: #fff; }
.site-header .btn-primary { background: var(--magenta); color: #fff; border-color: var(--magenta); }
.site-header .btn-primary:hover { background: #e000e0; border-color: #e000e0; color: #fff; }

/* 首屏 */
.hero { color: var(--ink); padding: 64px 0 84px; border-bottom: 3px solid var(--ink); }
.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; background: #fff; border-radius: 999px; padding: 8px 18px; font-family: var(--mono); font-size: 0.8rem; letter-spacing: 0.06em; margin-bottom: 22px; box-shadow: 0 2px 0 rgba(14, 18, 37, 0.12); }
.eyebrow::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--green); flex: none; }
.hero h1 { margin-bottom: 20px; line-height: 1.5; }
.hero h1 em { font-style: normal; font-weight: 800; background: var(--ink); color: var(--lime); padding: 0.02em 0.28em; border-radius: 6px; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
html[lang="en"] .hero h1 { line-height: 1.4; }
html[lang="en"] .hero h1 em { font-style: italic; }
.lead { font-size: 1.08rem; color: var(--muted); max-width: 38em; }
.cta-row { display: flex; flex-wrap: wrap; gap: 16px; margin: 28px 0 24px; }
.ticks { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; }
.ticks li { background: #fff; border-radius: 999px; padding: 6px 14px; font-family: var(--mono); font-size: 0.8rem; box-shadow: 0 2px 0 rgba(14, 18, 37, 0.12); }
.ticks li::before { content: "✓"; color: var(--purple); font-weight: 700; margin-right: 8px; }
.hero-card { padding: 0 6px 0 0; }
.card-title { font-family: var(--hand); font-size: 1.5rem; color: var(--purple); font-weight: 600; margin: 0 0 6px 6px; transform: rotate(-2deg); transform-origin: left; }
.flow { width: 100%; height: auto; display: block; overflow: visible; }
.flow .sh { fill: var(--ink); }
.flow .sh-l { fill: var(--magenta); }
.flow .n { fill: #fff; stroke: var(--ink); stroke-width: 3; }
.flow .n-ink { fill: var(--ink); stroke: var(--ink); stroke-width: 3; }
.flow .n-mag { fill: var(--magenta); stroke: var(--ink); stroke-width: 3; }
.flow .nt { fill: var(--ink); font-size: 16px; font-weight: 600; font-family: var(--font); }
.flow .nt-main { fill: var(--lime); }
.flow .nt-w { fill: #fff; }
.flow .ns { fill: var(--muted); font-size: 12.5px; font-family: var(--font); }
.flow .ns-d { fill: rgba(255, 255, 255, 0.78); }
.flow .ln { fill: none; stroke: var(--ink); stroke-width: 2.6; stroke-dasharray: 5 5; stroke-linecap: round; }
.flow .ah { fill: var(--ink); }
.flow .ls { fill: var(--purple); font-size: 20px; font-family: var(--hand); font-weight: 600; }
.flow .dot-m { fill: var(--magenta); stroke: var(--ink); stroke-width: 1.5; }
.flow .dot-l { fill: var(--lime); stroke: var(--ink); stroke-width: 1.5; }
.flow .dot-g { fill: #d8d8d0; stroke: var(--ink); stroke-width: 1.5; }
.flow .coin { fill: var(--magenta); stroke: var(--ink); stroke-width: 2.5; }
.flow .coin-t { fill: #fff; font-size: 17px; font-weight: 800; font-family: var(--font); text-anchor: middle; }
.flow .lock { fill: none; stroke: var(--magenta); stroke-width: 3.2; stroke-linecap: round; stroke-linejoin: round; }

/* 通用区块 */
.section { padding: 80px 0; }
.section.alt { background: var(--bg-alt); border-top: 2px solid var(--line); border-bottom: 2px solid var(--line); }
.section.tight { padding: 40px 0 80px; }
.sec-head { max-width: 42em; margin-bottom: 44px; }
.sec-head p { color: var(--muted); font-size: 1.05rem; margin: 16px 0 0; }
.sec-head h2, #pricing h2 { display: inline; background: linear-gradient(transparent 58%, var(--lime) 58%); padding: 0 0.12em; margin-left: -0.12em; -webkit-box-decoration-break: clone; box-decoration-break: clone; line-height: 1.5; }
#pricing h2 { display: inline-block; margin-bottom: 18px; }
.page-head { border-bottom: 3px solid var(--ink); padding: 52px 0 40px; }
.page-head h1 { margin-bottom: 0.3em; font-size: clamp(1.8rem, 3.6vw, 2.6rem); }
.lead-sm { color: var(--muted); font-size: 1.05rem; }
.page-head .lead-sm { color: var(--ink); opacity: 0.78; }
.crumb { font-size: 0.9rem; color: var(--ink); opacity: 0.75; margin-bottom: 10px; }
.crumb a { color: var(--ink); }

.cards { display: grid; gap: 28px; }
.cards.three { grid-template-columns: repeat(3, 1fr); }
.cards.two { grid-template-columns: repeat(2, 1fr); }
.card { background: #fff; border: var(--bd); border-radius: var(--radius); padding: 26px; box-shadow: var(--pop); }
.card p:last-child { margin-bottom: 0; }
.feat h3 { margin-top: 16px; }
.feat p { color: var(--muted); margin: 0; }
.ico-wrap { width: 50px; height: 50px; border-radius: 14px; background: var(--lime); border: var(--bd); color: var(--ink); display: grid; place-items: center; }
.ico { width: 24px; height: 24px; }

.steps { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.step { position: relative; padding-top: 38px; }
.num { position: absolute; top: -20px; left: 22px; width: 40px; height: 40px; border-radius: 50%; background: var(--ink); color: var(--lime); font-family: var(--mono); font-weight: 400; font-size: 1rem; display: grid; place-items: center; border: 3px solid var(--lime); outline: 2.5px solid var(--ink); }
.step p { color: var(--muted); margin: 0; }

.table-wrap { overflow-x: auto; border: var(--bd); border-radius: var(--radius); box-shadow: var(--pop); background: #fff; }
.table { width: 100%; border-collapse: collapse; min-width: 560px; }
.table th, .table td { text-align: left; padding: 14px 20px; border-bottom: 1.5px solid var(--line); }
.table thead th { background: var(--ink); font-family: var(--mono); font-size: 0.8rem; letter-spacing: 0.06em; color: var(--lime); font-weight: 400; border-bottom: 0; }
.table tbody tr:last-child th, .table tbody tr:last-child td { border-bottom: 0; }
.table tbody th { font-weight: 600; }
.badge { display: inline-flex; align-items: center; gap: 7px; padding: 3px 12px; border-radius: 999px; font-family: var(--mono); font-size: 0.8rem; }
.badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.badge.ok { background: #d6fbe6; color: #006b34; }
.badge.soon { background: #efe6ff; color: var(--purple); }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.two-col.top { align-items: start; }
.checks { list-style: none; display: grid; gap: 16px; }
.checks li { padding-left: 36px; position: relative; font-weight: 600; }
.checks li::before { content: "✓"; position: absolute; left: 0; top: 0; width: 26px; height: 26px; border-radius: 50%; background: var(--lime); border: 2px solid var(--ink); color: var(--ink); font-weight: 800; font-size: 0.8rem; display: grid; place-items: center; }
.plain-list { list-style: none; display: grid; gap: 18px; }
.plain-list li { display: grid; gap: 2px; padding-left: 18px; border-left: 4px solid var(--magenta); }
.plain-list strong { font-size: 1.04rem; }
.plain-list span { color: var(--muted); }

/* 代码块：深墨底 + 窗口三点 + 青柠硬阴影，与 PayRam 官网的终端样式一致 */
.code { margin: 0; background: var(--ink); color: #e6ebff; border: var(--bd); border-radius: var(--radius); padding: 20px 24px 22px; overflow-x: auto; font-family: var(--mono); font-size: 0.85rem; line-height: 1.7; white-space: pre; tab-size: 2; box-shadow: 8px 8px 0 var(--lime); }
.code::before { content: ""; display: block; width: 11px; height: 11px; border-radius: 50%; background: #ff5f56; box-shadow: 18px 0 0 #ffbd2e, 36px 0 0 #27c93f; margin-bottom: 18px; }
.prose .code { margin: 1.2em 0 1.8em; }

.faq { display: grid; gap: 16px; }
.faq details { background: #fff; border: var(--bd); border-radius: 16px; padding: 4px 22px; box-shadow: 4px 4px 0 var(--lime); }
.faq summary { cursor: pointer; padding: 15px 0; font-weight: 600; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--magenta); color: #fff; font-size: 1.2rem; line-height: 1; display: grid; place-items: center; }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--muted); margin: 0 0 18px; }

.cta-band { color: var(--ink); text-align: center; padding: 72px 0; border-top: 3px solid var(--ink); }
.cta-band h2 { display: inline-block; background: var(--ink); color: var(--lime); padding: 4px 16px; border-radius: 8px; font-weight: 800; }
.cta-band p { color: var(--muted); margin: 20px 0 26px; font-size: 1.05rem; }

/* 表单 */
.apply-grid { display: grid; grid-template-columns: 1fr 330px; gap: 32px; align-items: start; }
.form { display: grid; gap: 18px; }
.field { display: grid; gap: 6px; border: 0; padding: 0; margin: 0; min-width: 0; }
.field label, .field legend { font-weight: 600; font-size: 0.95rem; padding: 0; }
.req { color: var(--magenta); }
input[type="text"], input[type="url"], input[type="email"], select, textarea { width: 100%; font: inherit; color: var(--ink); background: #fff; border: 2px solid var(--ink); border-radius: 12px; padding: 11px 14px; }
textarea { resize: vertical; min-height: 120px; }
input:focus, select:focus, textarea:focus { border-color: var(--purple); outline: 3px solid rgba(255, 0, 255, 0.28); outline-offset: 0; box-shadow: 4px 4px 0 var(--lime); }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: #d6007f; background: #fff5fb; }
.err { color: #b0005f; font-size: 0.88rem; margin: 0; font-weight: 600; }
.hint { color: var(--muted); font-size: 0.88rem; margin: 0; }
.chk { display: inline-flex; align-items: flex-start; gap: 8px; font-weight: 500; cursor: pointer; }
.chk input { margin-top: 5px; width: 17px; height: 17px; accent-color: var(--magenta); }
.checks-inline { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.form-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.side { display: grid; gap: 28px; position: sticky; top: 92px; }
.mini { font-size: 1rem; margin-bottom: 10px; font-weight: 800; }
.num-list { padding-left: 1.2em; display: grid; gap: 8px; color: var(--muted); }
.plain { list-style: none; display: grid; gap: 6px; }
#status { font-size: 0.9rem; color: #006b34; font-weight: 600; margin: 8px 0 0; }

/* 提示框 */
.callout { border-radius: 14px; padding: 13px 18px; border: 2px solid; margin: 1.2em 0; font-size: 0.96rem; }
.callout > :last-child { margin-bottom: 0; }
.callout.warn { background: var(--warn-bg); border-color: var(--warn-line); }
.callout.danger { background: var(--danger-bg); border-color: var(--danger-line); }
.callout.info { background: var(--info-bg); border-color: var(--info-line); }
.form .callout { margin: 0; }

/* 长文 */
.prose { font-size: 1.02rem; }
.prose h2 { margin-top: 2.4em; padding-top: 0.5em; border-top: 3px solid var(--ink); font-size: 1.55rem; }
.prose h2:first-child { margin-top: 0; border-top: 0; padding-top: 0; }
.prose h3 { margin-top: 1.7em; }
.prose ul, .prose ol { padding-left: 1.4em; margin: 0 0 1.1em; display: grid; gap: 6px; }
.prose li::marker { color: var(--magenta); font-weight: 700; }
.prose code { font-family: var(--mono); font-size: 0.86em; background: #efeee6; padding: 1px 7px; border-radius: 6px; }
.prose .code code { background: none; padding: 0; font-size: inherit; }
.prose table { width: 100%; border-collapse: collapse; margin: 1em 0 1.6em; font-size: 0.96rem; border: var(--bd); border-radius: 12px; overflow: hidden; }
.prose th, .prose td { text-align: left; padding: 10px 14px; border-bottom: 1.5px solid var(--line); vertical-align: top; }
.prose thead th { background: var(--ink); font-family: var(--mono); font-size: 0.8rem; font-weight: 400; color: var(--lime); border-bottom: 0; }
.prose .toc { background: #fff; border: var(--bd); border-radius: 16px; padding: 18px 22px; margin-bottom: 2.2em; box-shadow: 4px 4px 0 var(--lime); }
.prose .toc strong { display: block; margin-bottom: 6px; }
.prose .toc ol { display: grid; gap: 4px; }
.prose .step-menu { color: var(--muted); font-size: 0.92rem; }
.link-card { text-decoration: none; color: inherit; display: block; transition: transform 0.1s, box-shadow 0.1s; }
.link-card:hover { transform: translate(-2px, -2px); box-shadow: 9px 9px 0 var(--lime); color: inherit; }
.link-card h3 { color: var(--ink); }
.link-card h3 span { color: var(--magenta); }
.link-card p { color: var(--muted); }

/* 页脚 */
.site-footer { background: var(--ink); color: rgba(255, 255, 255, 0.78); padding: 60px 0 30px; font-size: 0.93rem; border-top: 4px solid var(--lime); }
.site-footer a { color: rgba(255, 255, 255, 0.86); text-decoration: none; }
.site-footer a:hover { color: var(--lime); text-decoration: underline; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.site-footer h2 { font-family: var(--mono); font-weight: 400; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--lime); margin-bottom: 14px; }
.site-footer ul { list-style: none; display: grid; gap: 9px; }
.brand-foot { margin-bottom: 14px; }
.brand-foot .brand-logo { height: 28px; }
.site-footer .muted { color: rgba(255, 255, 255, 0.62); }
.foot-note { border-top: 1px solid rgba(255, 255, 255, 0.14); margin-top: 38px; padding-top: 22px; font-size: 0.85rem; color: rgba(255, 255, 255, 0.6); }
.foot-note p { margin: 0 0 8px; }

/* 联系方式 */
.wx { font-weight: 600; user-select: all; }
.foot-contact { margin: 8px 0 0; font-size: 0.9rem; color: rgba(255, 255, 255, 0.82); }
.foot-contact a { text-decoration: underline; color: var(--lime); }
.cta-band .cta-contact { margin: 22px 0 0; font-size: 0.95rem; color: var(--ink); }
.cta-band .cta-contact a { color: var(--ink); font-weight: 600; text-decoration: underline; }

/* 响应式 */
@media (max-width: 960px) {
  .hero-grid, .two-col, .apply-grid { grid-template-columns: 1fr; }
  .hero-grid { gap: 40px; }
  .cards.three, .steps { grid-template-columns: 1fr 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .side { position: static; }
  .nav-toggle { display: inline-block; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--ink); border-bottom: 3px solid var(--lime); padding: 14px 20px 22px; flex-direction: column; align-items: stretch; gap: 14px; }
  .nav.open { display: flex; }
  .nav-links { flex-direction: column; gap: 4px; }
  .nav-links a { display: block; padding: 10px 4px; }
  .nav-actions { flex-wrap: wrap; }
  .bar { position: relative; }
}
@media (max-width: 620px) {
  .section { padding: 56px 0; }
  .hero { padding: 44px 0 56px; }
  .cards.three, .cards.two, .steps, .foot-grid { grid-template-columns: 1fr; }
  .step { margin-top: 14px; }
  .btn-lg { width: 100%; }
  .cta-row .btn { flex: 1 1 100%; }
  .form-actions .btn { flex: 1 1 100%; }
  .card, .table-wrap { box-shadow: 4px 4px 0 var(--lime); }
  .code { box-shadow: 5px 5px 0 var(--lime); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
