@charset "UTF-8";
/* ============================================================
   佳恒圣远软件 · 前台样式
   设计方向：Engineering Blueprint（与后台一致）
   - 暖纸白底 + 深墨字 + 单一信号橙强调
   - 移动优先，响应式
   ============================================================ */

/* ---------- Tokens（与 admin.css 一致） ---------- */
:root {
  --bg:           #F4F2EC;
  --bg-card:     #FBFAF6;
  --bg-elev:     #FFFFFF;
  --ink:         #0E1B2A;
  --ink-2:       #2A3548;
  --slate:       #5B6678;
  --slate-2:     #8A93A4;
  --line:        #D9D5C9;
  --line-soft:   #E8E4D8;
  --accent:      #E85D2F;
  --accent-ink:  #C44A20;
  --accent-soft: #FBE6DC;
  --success:     #3F7D5E;
  --warn:        #B8860B;
  --danger:      #B23A3A;

  --font-sans:   "Noto Sans SC", -apple-system, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-mono:   "JetBrains Mono", "IBM Plex Mono", "SF Mono", Menlo, monospace;
  --font-display:"Geist", "Bricolage Grotesque", var(--font-sans);

  --radius:      4px;
  --radius-lg:   8px;
  --shadow-1:    0 1px 0 rgba(14,27,42,0.04);
  --shadow-2:    0 1px 2px rgba(14,27,42,0.06), 0 8px 24px -12px rgba(14,27,42,0.12);
  --shadow-3:    0 4px 12px rgba(14,27,42,0.08), 0 24px 48px -16px rgba(14,27,42,0.18);

  --content-w:  1140px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-ink); }
button { font: inherit; color: inherit; cursor: pointer; }
ul, ol { margin: 0; padding: 0; list-style: none; }
input, textarea, select { font: inherit; color: inherit; }
img, svg { max-width: 100%; display: block; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ---------- 排版 ---------- */
h1, h2, h3, h4 { margin: 0; font-weight: 700; color: var(--ink); letter-spacing: -0.01em; line-height: 1.25; }
h1 { font-family: var(--font-display); font-size: clamp(28px, 5vw, 40px); letter-spacing: -0.02em; }
h2 { font-size: clamp(22px, 3vw, 28px); }
h3 { font-size: 18px; }
p  { margin: 0 0 14px; }
.mono { font-family: var(--font-mono); font-feature-settings: "tnum"; }
.eyebrow {
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--slate);
}
.eyebrow .num { color: var(--accent); font-weight: 600; }
.muted { color: var(--slate); }
.small { font-size: 13px; }
.ta-r { text-align: right; }

/* ---------- 容器 ---------- */
.container { width: 100%; max-width: var(--content-w); margin: 0 auto; padding: 0 20px; }

/* ============================================================
   顶部导航
   ============================================================ */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(244,242,236,.88); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-bar {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; }
.brand-logo {
  width: 36px; height: 36px; object-fit: contain; border-radius: 4px; display: block;
}
.brand-mark {
  width: 32px; height: 32px; background: var(--ink); display: grid; place-items: center;
  color: var(--bg-card); font-family: var(--font-mono); font-size: 14px; font-weight: 700;
  border-radius: 4px;
}
.brand-name { font-family: var(--font-display); font-size: 19px; letter-spacing: -0.01em; color: var(--ink); }
.brand-name .accent { color: var(--accent); }
.nav { display: flex; align-items: center; gap: 28px; }
.nav a { color: var(--ink-2); font-size: 14px; font-weight: 500; transition: color .15s; position: relative; }
.nav a:hover { color: var(--accent); }
.nav a.is-active { color: var(--accent-ink); font-weight: 700; }
.nav a.is-active::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -6px;
  height: 2px; background: var(--accent);
}
.nav-cta {
  padding: 7px 16px; border: 1px solid var(--ink); border-radius: var(--radius);
  color: var(--ink) !important; font-weight: 600;
  transition: all .15s;
}
.nav-cta:hover { background: var(--ink); color: var(--bg-card) !important; }

/* 移动端汉堡按钮 */
.nav-toggle { display: none; flex-direction: column; gap: 5px; padding: 8px; background: none; border: 0; }
.nav-toggle span { width: 22px; height: 2px; background: var(--ink); transition: all .2s; }

/* ============================================================
   Hero（首页）
   ============================================================ */
.hero {
  position: relative; padding: 72px 0 56px; overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(var(--line-soft) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-soft) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 30%, transparent 75%);
  opacity: .7;
}
.hero-grid {
  position: relative; display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px;
  align-items: center;
}
.hero-eyebrow { margin-bottom: 14px; }
.hero h1 { margin-bottom: 18px; }
.hero h1 .accent { color: var(--accent); }
.hero-sub { font-size: 16px; color: var(--slate); max-width: 540px; margin-bottom: 28px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* 按钮 */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 22px; font-size: 14px; font-weight: 600;
  border: 1px solid transparent; border-radius: var(--radius);
  transition: all .15s ease; white-space: nowrap; line-height: 1.2;
}
.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover { background: var(--accent-ink); color: #fff; }
.btn--ink { background: var(--ink); color: var(--bg-card); }
.btn--ink:hover { background: var(--ink-2); color: var(--bg-card); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--bg-card); }
.btn--lg { padding: 14px 28px; font-size: 15px; }
.btn--block { display: flex; width: 100%; }

/* Hero 右侧装饰：蓝图刻度卡 */
.hero-art {
  position: relative; padding: 28px;
  background: var(--bg-elev); border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-3);
}
.hero-art::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 6px;
  background:
    linear-gradient(to right, var(--ink) 0, var(--ink) 24px, transparent 24px, transparent 32px) 0 0/32px 6px repeat-x,
    var(--accent);
}
.hero-art-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px;
  font-family: var(--font-mono); font-size: 12px;
}
.hero-art-cell {
  padding: 12px; background: var(--bg); border: 1px solid var(--line-soft); border-radius: var(--radius);
}
.hero-art-cell .k { color: var(--slate); font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; }
.hero-art-cell .v { color: var(--ink); font-size: 16px; font-weight: 700; margin-top: 4px; }
.hero-art-cell .v .accent { color: var(--accent); }

/* ============================================================
   区块通用
   ============================================================ */
.section { padding: 64px 0; border-bottom: 1px solid var(--line); }
.section-head { text-align: center; margin-bottom: 40px; }
.section-head .eyebrow { margin-bottom: 10px; }
.section-head h2 { margin-bottom: 10px; }
.section-head p { color: var(--slate); max-width: 620px; margin: 0 auto; }

/* ============================================================
   分类筛选标签
   ============================================================ */
.cat-tabs {
  display: flex; gap: 10px; flex-wrap: wrap; justify-content: center;
  margin: -14px 0 34px;
}
.cat-tab {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 18px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--bg-card);
  font-size: 14px; font-weight: 500; color: var(--ink-2);
  text-decoration: none; transition: all .18s ease;
}
.cat-tab:hover { border-color: var(--ink); color: var(--ink); }
.cat-tab.is-active {
  background: var(--ink); border-color: var(--ink); color: var(--bg-card);
}
.cat-tab-n {
  font-size: 12px; color: var(--slate-2);
  background: var(--bg-soft); border-radius: 999px;
  padding: 1px 8px; font-family: var(--font-mono, ui-monospace, monospace);
}
.cat-tab.is-active .cat-tab-n { background: rgba(255,255,255,.16); color: var(--bg-card); }
@media (max-width: 600px) {
  .cat-tabs { gap: 8px; margin-bottom: 26px; }
  .cat-tab { padding: 7px 14px; font-size: 13px; }
}

/* ============================================================
   软件卡片网格
   ============================================================ */
.products-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
.product-card {
  position: relative; display: flex; flex-direction: column;
  background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius-lg);
  overflow: hidden; transition: all .2s ease;
}
.product-card:hover {
  border-color: var(--ink); box-shadow: var(--shadow-3); transform: translateY(-2px);
}
.product-card-cover {
  aspect-ratio: 16/9; overflow: hidden; background: var(--bg);
  border-bottom: 1px solid var(--line-soft); position: relative;
}
.product-card-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.product-card:hover .product-card-cover img { transform: scale(1.04); }
.product-card-cover-text {
  position: absolute; inset: 0; display: grid; place-items: center;
  font-family: var(--font-mono); font-size: 32px; font-weight: 700;
  color: var(--bg-card); background: var(--ink); letter-spacing: 0.02em;
}
.product-card-badge {
  position: absolute; top: 12px; left: 12px;
  padding: 3px 9px; font-family: var(--font-mono); font-size: 10px;
  letter-spacing: 0.08em; text-transform: uppercase;
  background: var(--accent); color: #fff; border-radius: 2px;
}
.product-card-body { padding: 20px; flex: 1; display: flex; flex-direction: column; gap: 8px; }
.product-card-name { font-size: 18px; font-weight: 700; color: var(--ink); }
.product-card-tag { color: var(--slate); font-size: 13px; margin: 0; flex: 1; }
.product-card-meta {
  display: flex; gap: 12px; flex-wrap: wrap; margin-top: 6px;
  font-family: var(--font-mono); font-size: 11px; color: var(--slate-2);
}
.product-card-meta span { display: inline-flex; align-items: center; gap: 4px; }
.product-card-foot {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 20px; border-top: 1px solid var(--line-soft);
}
.product-card-price { font-family: var(--font-mono); font-size: 18px; font-weight: 700; color: var(--ink); }
.product-card-price .from { font-size: 11px; color: var(--slate); font-weight: 400; }
.product-card-link { font-size: 13px; font-weight: 600; color: var(--accent); }
.product-card-link:hover { color: var(--accent-ink); }

/* ============================================================
   详情页
   ============================================================ */
.detail-hero { padding: 48px 0 40px; border-bottom: 1px solid var(--line); }
.detail-grid {
  display: grid; grid-template-columns: 1fr 360px; gap: 48px; align-items: start;
}
.detail-main { min-width: 0; }
.detail-cover {
  aspect-ratio: 16/9; overflow: hidden; background: var(--ink);
  border-radius: var(--radius-lg); margin-bottom: 24px;
  border: 1px solid var(--line); position: relative;
}
.detail-cover img { width: 100%; height: 100%; object-fit: cover; }
.detail-cover-text {
  position: absolute; inset: 0; display: grid; place-items: center;
  font-family: var(--font-mono); font-size: 64px; font-weight: 700;
  color: var(--bg-card); letter-spacing: 0.02em;
}
.detail-title-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 12px; flex-wrap: wrap; }
.detail-name { font-size: clamp(26px, 4vw, 36px); }
.detail-tag { color: var(--slate); font-size: 16px; margin: 0 0 16px; }
.detail-meta { display: flex; gap: 20px; flex-wrap: wrap; font-family: var(--font-mono); font-size: 12px; color: var(--slate); margin-bottom: 8px; }
.detail-meta .k { color: var(--slate-2); margin-right: 6px; }
.detail-meta .v { color: var(--ink); font-weight: 600; }

/* 详情正文（富文本） */
.detail-prose { margin-top: 32px; }
.detail-prose h1, .detail-prose h2, .detail-prose h3, .detail-prose h4 { margin: 24px 0 12px; }
.detail-prose h2 { font-size: 22px; padding-bottom: 8px; border-bottom: 2px solid var(--accent); display: inline-block; }
.detail-prose h3 { font-size: 18px; }
.detail-prose p { margin: 0 0 14px; line-height: 1.75; color: var(--ink-2); }
.detail-prose ul, .detail-prose ol { margin: 0 0 14px; padding-left: 22px; }
.detail-prose ul li { list-style: disc; margin-bottom: 6px; }
.detail-prose ol li { list-style: decimal; margin-bottom: 6px; }
.detail-prose code {
  font-family: var(--font-mono); font-size: 0.9em;
  background: var(--bg-elev); padding: 1px 6px; border-radius: 3px;
  border: 1px solid var(--line-soft); color: var(--accent-ink);
}
.detail-prose pre {
  background: var(--ink); color: var(--bg-card); padding: 16px; border-radius: var(--radius);
  overflow-x: auto; font-family: var(--font-mono); font-size: 13px; margin: 0 0 14px;
}
.detail-prose blockquote {
  border-left: 3px solid var(--accent); padding: 8px 16px; margin: 0 0 14px;
  background: var(--accent-soft); color: var(--ink-2); font-style: italic;
}
.detail-prose img { border-radius: var(--radius); margin: 0 0 14px; }

/* 特性列表 */
.features-list {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 16px;
}
.feature-item {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 12px 14px; background: var(--bg-card);
  border: 1px solid var(--line-soft); border-radius: var(--radius);
}
.feature-item::before {
  content: "✓"; flex-shrink: 0; width: 20px; height: 20px;
  display: grid; place-items: center; border-radius: 50%;
  background: var(--accent-soft); color: var(--accent-ink);
  font-size: 12px; font-weight: 700;
}
.feature-item span { color: var(--ink-2); font-size: 14px; }

/* 详情右侧购买卡 */
.buy-card {
  position: sticky; top: 88px;
  background: var(--bg-elev); border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-2); overflow: hidden;
}
.buy-card-head { padding: 20px 22px 14px; border-bottom: 1px solid var(--line-soft); }
.buy-card-eyebrow { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.16em; color: var(--slate); text-transform: uppercase; }
.buy-card-price { display: flex; align-items: baseline; gap: 10px; margin-top: 8px; }
.buy-card-price .now { font-family: var(--font-display); font-size: 32px; font-weight: 700; color: var(--ink); }
.buy-card-price .now .sym { font-size: 18px; color: var(--slate); }
.buy-card-price .strike { font-family: var(--font-mono); font-size: 14px; color: var(--slate-2); text-decoration: line-through; }

.price-tiers { padding: 14px 22px; display: flex; flex-direction: column; gap: 8px; }
.price-tier {
  display: flex; justify-content: space-between; align-items: center; gap: 10px;
  padding: 12px 14px; background: var(--bg); border: 1px solid var(--line-soft);
  border-radius: var(--radius); cursor: pointer; transition: all .15s;
}
.price-tier:hover { border-color: var(--ink); }
.price-tier.is-active { border-color: var(--accent); background: var(--accent-soft); }
.price-tier-name { font-weight: 600; color: var(--ink); font-size: 14px; }
.price-tier-dur { font-family: var(--font-mono); font-size: 11px; color: var(--slate); }
.price-tier-price { font-family: var(--font-mono); font-weight: 700; color: var(--ink); }
.price-tier-strike { font-family: var(--font-mono); font-size: 11px; color: var(--slate-2); text-decoration: line-through; }

.buy-card-foot { padding: 18px 22px 22px; border-top: 1px solid var(--line-soft); }
.buy-note { font-size: 11px; color: var(--slate-2); margin-top: 10px; line-height: 1.5; }

/* 免费试用下载（标题下方主推入口） */
.detail-dl {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  margin: 2px 0 14px;
}
.dl-code {
  font-size: 13px; color: var(--ink-2);
  border: 1px dashed var(--line); border-radius: 6px;
  padding: 7px 12px; background: var(--bg-soft);
}
.dl-tip { font-size: 13px; color: var(--accent); font-weight: 500; }
@media (max-width: 600px) {
  .dl-tip { display: none; }
}

/* 机器码输入 */
.machine-field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 12px; }
.machine-label { font-size: 12px; font-weight: 600; color: var(--ink-2); }
.machine-input {
  width: 100%; padding: 10px 12px; font-family: var(--font-mono); font-size: 13px;
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius);
  letter-spacing: 0.04em; transition: border-color .15s, box-shadow .15s;
}
.machine-input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); outline: none; }
.machine-help { font-size: 11px; color: var(--slate); }

/* ============================================================
   空状态
   ============================================================ */
.empty-state {
  text-align: center; padding: 80px 20px;
}
.empty-state h3 { font-size: 22px; margin-bottom: 8px; }
.empty-state p { color: var(--slate); max-width: 420px; margin: 0 auto 20px; }

/* ============================================================
   页脚
   ============================================================ */
.site-footer {
  background: var(--ink); color: var(--bg-card);
  padding: 48px 0 24px;
}
.footer-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px;
  margin-bottom: 32px;
}
.footer-brand-name { font-family: var(--font-display); font-size: 20px; margin-bottom: 8px; }
.footer-brand-name .accent { color: var(--accent); }
.footer-desc { color: var(--slate-2); font-size: 13px; max-width: 280px; }
.footer-col h4 { color: var(--bg-card); font-size: 13px; font-family: var(--font-mono); letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 14px; }
.footer-col ul { display: flex; flex-direction: column; gap: 8px; }
.footer-col a { color: var(--slate-2); font-size: 13px; }
.footer-col a:hover { color: var(--accent); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08); padding-top: 20px;
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px;
  font-size: 12px; color: var(--slate-2);
}
.footer-bottom a { color: var(--slate-2); }
.footer-bottom a:hover { color: var(--accent); }

/* sr-only：屏幕阅读器可见但视觉隐藏 */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ============================================================
   订单状态页
   ============================================================ */
.order-page { padding: 48px 0 64px; border-bottom: 1px solid var(--line); }
.order-wrap { max-width: 1140px; }

.order-head {
  display: flex; flex-direction: column; gap: 8px; margin-bottom: 28px;
  padding-bottom: 24px; border-bottom: 1px solid var(--line);
}
.order-eyebrow { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.16em; color: var(--slate); text-transform: uppercase; }
.order-no {
  font-family: var(--font-mono); font-size: 24px; font-weight: 700; color: var(--ink);
  letter-spacing: 0.02em; word-break: break-all; margin: 0;
}
.status-badge {
  align-self: flex-start; display: inline-block; padding: 5px 14px;
  font-size: 12px; font-weight: 600; border-radius: 20px; letter-spacing: 0.04em;
}
.status-badge.is-pending { background: var(--accent-soft); color: var(--accent-ink); }
.status-badge.is-paid     { background: #E3F0E8; color: var(--success); }
.status-badge.is-refund  { background: #F5E3E3; color: var(--danger); }
.status-badge.is-closed  { background: var(--line-soft); color: var(--slate); }

.order-grid {
  display: grid; grid-template-columns: 1.6fr 1fr; gap: 28px; align-items: start;
}
.order-main { display: flex; flex-direction: column; gap: 20px; }

.order-card {
  background: var(--bg-elev); border: 1px solid var(--line); border-radius: var(--radius-lg);
  overflow: hidden;
}
.order-card-head {
  padding: 16px 22px; border-bottom: 1px solid var(--line-soft);
  display: flex; flex-direction: column; gap: 2px;
}
.order-card-eyebrow { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.16em; color: var(--slate); text-transform: uppercase; }
.order-card-head > div:last-child { font-size: 14px; font-weight: 600; color: var(--ink); }
.order-card-body { padding: 8px 22px 18px; }

.order-row {
  display: flex; justify-content: space-between; align-items: baseline; gap: 16px;
  padding: 10px 0; border-bottom: 1px solid var(--line-soft);
}
.order-row:last-child { border-bottom: 0; }
.order-row .k { font-size: 13px; color: var(--slate); flex-shrink: 0; }
.order-row .v { font-size: 14px; color: var(--ink); text-align: right; word-break: break-all; }
.order-row .mono { font-family: var(--font-mono); letter-spacing: 0.04em; }
.order-dur { font-size: 12px; color: var(--slate); }
.order-amount { font-family: var(--font-mono); font-weight: 700; color: var(--accent-ink); }
.order-empty { text-align: center; color: var(--slate); padding: 20px 0; margin: 0; }

/* 注册码卡 */
.reg-card {
  background: var(--ink); color: var(--bg-card);
  border-radius: var(--radius-lg); padding: 28px 24px;
}
.reg-card-eyebrow { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.16em; color: var(--slate-2); text-transform: uppercase; margin-bottom: 16px; }
.reg-code-block {
  font-family: var(--font-mono); font-size: 20px; font-weight: 700; letter-spacing: 0.06em;
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius); padding: 20px 18px; text-align: center;
  word-break: break-all; line-height: 1.5; margin-bottom: 18px;
}
.reg-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.reg-actions .btn--ghost { background: transparent; color: var(--bg-card); border-color: rgba(255,255,255,0.2); }
.reg-actions .btn--ghost:hover { border-color: var(--accent); color: var(--accent); }
.reg-netdisk { font-size: 13px; color: var(--slate-2); margin-bottom: 14px; }
.reg-netdisk .mono { font-family: var(--font-mono); color: var(--bg-card); }
.reg-note { font-size: 12px; color: var(--slate-2); line-height: 1.6; margin: 0; }

/* 支付卡 */
.pay-card {
  background: var(--bg-elev); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 32px 24px; text-align: center;
}
.pay-card-eyebrow { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.16em; color: var(--slate); text-transform: uppercase; margin-bottom: 12px; }
.pay-amount { margin-bottom: 24px; }
.pay-amount .sym { font-size: 20px; color: var(--slate); vertical-align: top; margin-right: 2px; }
.pay-amount .num { font-family: var(--font-display); font-size: 44px; font-weight: 700; color: var(--ink); }
.pay-methods { display: flex; gap: 12px; justify-content: center; margin-bottom: 14px; }
.pay-method {
  flex: 1; padding: 14px; font-size: 14px; font-weight: 600; cursor: not-allowed;
  background: var(--bg); border: 1px solid var(--line-soft); border-radius: var(--radius);
  color: var(--slate-2);
}
.pay-methods--active .pay-method {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  cursor: pointer; text-decoration: none; border: 1px solid var(--line);
  background: var(--bg-elev); color: var(--ink); transition: border-color .15s, transform .15s;
}
.pay-methods--active .pay-method:hover { border-color: var(--ink); transform: translateY(-1px); }
.pm-logo {
  display: inline-flex; align-items: center; justify-content: center;
  width: 22px; height: 22px; border-radius: 5px; font-size: 13px; font-weight: 700; color: #fff;
}
.pay-method--alipay .pm-logo { background: #1677FF; }
.pay-method--wechat .pm-logo { background: #07C160; }
.pay-note { font-size: 12px; color: var(--slate); margin: 14px 0 0; line-height: 1.6; }

/* 微信扫码支付 */
.wxpay-area { margin-top: 4px; }
.wxpay-qr { margin-top: 20px; }
.wxpay-qr-box {
  display: inline-block; padding: 14px; background: #fff;
  border: 1px solid var(--line); border-radius: var(--radius-lg);
}
.wxpay-qr-box img, .wxpay-qr-box canvas { display: block; }
.wxpay-qr-tip { margin: 12px 0 0; font-size: 14px; font-weight: 600; color: var(--ink); }
.wxpay-qr-sub { margin: 4px 0 0; font-size: 12px; color: var(--slate); }
.wxpay-error { color: #b91c1c; }

/* 侧栏 */
.order-side { display: flex; flex-direction: column; gap: 20px; }
.step-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 14px; }
.step-list li { display: flex; align-items: flex-start; gap: 12px; font-size: 13px; color: var(--ink-2); line-height: 1.5; }
.step-n {
  flex-shrink: 0; width: 22px; height: 22px; display: grid; place-items: center;
  font-family: var(--font-mono); font-size: 12px; font-weight: 700;
  background: var(--accent-soft); color: var(--accent-ink); border-radius: 50%;
}
.order-help { font-size: 13px; color: var(--slate); line-height: 1.6; margin: 0 0 14px; }

/* 复制成功 */
.btn.is-copied { background: var(--success); border-color: var(--success); }

/* ============================================================
   自助重发页
   ============================================================ */
.resend-page { padding: 48px 0 64px; }
.resend-wrap { max-width: 560px; }
.resend-head { text-align: center; margin-bottom: 32px; }
.resend-eyebrow {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.16em;
  color: var(--slate-2); text-transform: uppercase; margin-bottom: 10px;
}
.resend-head h1 { font-size: 28px; margin-bottom: 10px; }
.resend-desc { font-size: 14px; color: var(--slate); line-height: 1.7; }

.resend-card {
  background: var(--bg-elev); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 32px 28px;
  box-shadow: var(--shadow-3); margin-bottom: 32px;
}

.resend-form .form-field { margin-bottom: 20px; }
.resend-form .form-label {
  display: block; font-size: 13px; font-weight: 600; margin-bottom: 8px; color: var(--ink-2);
}
.resend-form .form-input {
  width: 100%; padding: 12px 16px; font-size: 14px; font-family: inherit;
  background: var(--bg-card); border: 1px solid var(--line);
  border-radius: var(--radius); transition: border-color .15s;
  box-sizing: border-box;
}
.resend-form .form-input:focus { outline: none; border-color: var(--accent); }
.resend-form .form-input.mono { font-family: var(--font-mono); }

.resend-form .form-actions { margin-bottom: 16px; }
.resend-form .form-actions .btn { width: 100%; }
.resend-form .form-hint { text-align: center; }

.resend-result {
  margin-top: 16px; padding: 14px 16px; border-radius: var(--radius);
  font-size: 14px; line-height: 1.5;
}
.resend-result.is-success { background: rgba(72,187,142,.1); color: var(--success); border: 1px solid rgba(72,187,142,.3); }
.resend-result.is-error { background: rgba(232,93,47,.08); color: var(--accent); border: 1px solid rgba(232,93,47,.25); }

.resend-code-area { margin-top: 20px; }
.resend-code-eyebrow {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.16em;
  color: var(--slate-2); text-transform: uppercase; margin-bottom: 12px;
}

/* 订单选择列表 */
.order-list-area { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line-soft); }
.order-list-title { font-size: 13px; font-weight: 600; color: var(--ink-2); margin-bottom: 12px; }
.order-list { display: flex; flex-direction: column; gap: 10px; }
.order-item {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 14px; background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--radius);
}
.order-item-main { flex: 1; min-width: 0; }
.order-item-name { font-size: 14px; font-weight: 600; color: var(--ink); }
.order-item-meta { font-size: 12px; color: var(--slate); margin-top: 2px; }
.order-item-expire { font-size: 12px; color: var(--slate-2); white-space: nowrap; }
.order-resend-btn { flex-shrink: 0; }

.resend-help { padding: 0 8px; }
.resend-help h3 { font-size: 15px; margin-bottom: 10px; }
.resend-help ul { margin: 0; padding-left: 20px; }
.resend-help li { font-size: 13px; color: var(--slate); line-height: 1.8; }
.resend-help a { color: var(--accent); }

/* ============================================================
   信息型二级页面（关于/服务/联系）
   ============================================================ */
.doc-page { padding: 56px 0 72px; }
.doc-wrap { max-width: 1140px; }
.doc-head { margin-bottom: 40px; padding-bottom: 28px; border-bottom: 1px solid var(--line); }
.doc-head .eyebrow { margin-bottom: 12px; }
.doc-head h1 { margin-bottom: 14px; }
.doc-lead { font-size: 17px; color: var(--slate); margin: 0; max-width: 720px; line-height: 1.8; }

.doc-body { display: flex; flex-direction: column; gap: 40px; }
.doc-section h2 {
  font-size: 20px; margin-bottom: 18px; padding-left: 12px;
  border-left: 3px solid var(--accent);
}
.doc-section h3 { font-size: 16px; margin-bottom: 8px; }
.doc-section p { color: var(--ink-2); }
.doc-section strong { color: var(--ink); }

/* 编号列表（关于/联系） */
.doc-list { display: flex; flex-direction: column; gap: 18px; }
.doc-list > li { display: flex; gap: 16px; align-items: flex-start; }
.doc-list-n {
  flex-shrink: 0; width: 34px; height: 34px; border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono); font-size: 13px; font-weight: 700;
  background: var(--accent-soft); color: var(--accent-ink);
}
.doc-list > li > div { flex: 1; }
.doc-list > li p { margin: 4px 0 0; font-size: 14px; color: var(--slate); }

/* 卡片网格 */
.doc-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.doc-cards--2 { grid-template-columns: repeat(2, 1fr); }
.doc-card {
  background: var(--bg-card); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 20px;
}
.doc-card h3 { margin-bottom: 8px; }
.doc-card p { font-size: 14px; color: var(--slate); margin: 0; line-height: 1.7; }
.doc-card a { font-weight: 600; }

/* 步骤（服务页） */
.doc-steps { display: flex; flex-direction: column; gap: 16px; }
.doc-steps > li { display: flex; gap: 16px; align-items: flex-start; }
.doc-steps .step-n {
  flex-shrink: 0; width: 30px; height: 30px; border-radius: 50%;
  background: var(--ink); color: var(--bg-card);
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700;
}
.doc-steps > li > div { flex: 1; }
.doc-steps p { margin: 4px 0 0; font-size: 14px; color: var(--slate); }

/* 要点符号列表 */
.doc-bullets { display: flex; flex-direction: column; gap: 10px; padding-left: 4px; }
.doc-bullets li {
  position: relative; padding-left: 22px; font-size: 14px;
  color: var(--ink-2); line-height: 1.8;
}
.doc-bullets li::before {
  content: ""; position: absolute; left: 4px; top: 10px;
  width: 6px; height: 6px; border-radius: 50%; background: var(--accent);
}
.doc-bullets a { font-weight: 600; }

/* 联系卡片 */
.contact-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.contact-card {
  background: var(--bg-card); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 24px 20px; text-align: center;
}
.contact-ic {
  width: 44px; height: 44px; margin: 0 auto 14px; border-radius: var(--radius-lg);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono); font-size: 15px; font-weight: 700;
  background: var(--ink); color: var(--bg-card);
}
.contact-val { font-size: 15px; font-weight: 600; margin-bottom: 8px; word-break: break-all; }

/* 页面底部 CTA */
.doc-cta {
  margin-top: 4px; padding: 28px; text-align: center;
  background: var(--accent-soft); border: 1px solid rgba(232,93,47,.25);
  border-radius: var(--radius-lg);
}
.doc-cta p { margin: 0 0 18px; font-size: 17px; font-weight: 700; color: var(--ink); }
.doc-cta-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ============================================================
   响应式
   ============================================================ */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; gap: 32px; }
  .hero-art { order: -1; }
  .detail-grid { grid-template-columns: 1fr; }
  .buy-card { position: static; }
  .products-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .order-grid { grid-template-columns: 1fr; }
  .doc-cards, .contact-cards { grid-template-columns: 1fr 1fr; }
  .doc-cards--2 { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .nav { display: none; }
  .nav-toggle { display: flex; }
  .nav.is-open {
    display: flex; flex-direction: column; gap: 8px;
    position: absolute; top: 64px; left: 0; right: 0;
    background: var(--bg-card); border-bottom: 1px solid var(--line);
    padding: 16px 20px; box-shadow: var(--shadow-2);
  }
  .section { padding: 48px 0; }
  .features-list { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .products-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero { padding: 48px 0 40px; }
  .hero-art-grid { grid-template-columns: 1fr; }
  .detail-meta { gap: 12px; }
  .order-no { font-size: 18px; }
  .reg-code-block { font-size: 16px; padding: 16px 12px; }
  .pay-amount .num { font-size: 36px; }
  .order-card-body, .pay-card, .reg-card { padding-left: 16px; padding-right: 16px; }
  .doc-page { padding: 36px 0 48px; }
  .doc-cards, .doc-cards--2, .contact-cards { grid-template-columns: 1fr; }
  .doc-cta { padding: 22px 16px; }
}

/* ============================================================
   帮助文档
   ============================================================ */
.help-rec-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.help-rec-card {
  display: block; padding: 20px; background: var(--bg-card);
  border: 1px solid var(--line); border-radius: var(--radius-lg, 8px);
  color: var(--ink); transition: border-color .15s ease, transform .15s ease;
}
.help-rec-card:hover { border-color: var(--accent); transform: translateY(-2px); color: var(--ink); }
.help-rec-tag {
  display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: .08em;
  color: var(--accent); border: 1px solid rgba(232,93,47,.35); border-radius: 3px;
  padding: 2px 6px; margin-bottom: 10px;
}
.help-rec-card h3 { font-size: 15px; margin-bottom: 6px; }
.help-rec-card p { font-size: 13px; color: var(--slate); margin: 0; line-height: 1.7;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

.help-list { display: flex; flex-direction: column; }
.help-item {
  display: flex; gap: 16px; align-items: baseline; justify-content: space-between;
  padding: 18px 4px; border-bottom: 1px dashed var(--line-soft); color: var(--ink);
}
.help-item:hover { color: var(--ink); }
.help-item:hover .help-item-title { color: var(--accent); }
.help-item-main { flex: 1; min-width: 0; }
.help-item-title { font-size: 16px; font-weight: 600; color: var(--ink); transition: color .15s ease; }
.help-item-title .help-rec-dot {
  display: inline-block; font-size: 11px; font-weight: 700; color: var(--accent);
  border: 1px solid rgba(232,93,47,.35); border-radius: 3px; padding: 1px 5px;
  margin-right: 6px; vertical-align: 2px;
}
.help-item-summary { font-size: 13px; color: var(--slate); margin-top: 6px; line-height: 1.7;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.help-item-meta { flex: 0 0 auto; font-size: 12px; color: var(--slate-2); white-space: nowrap; }

.help-pager { display: flex; gap: 8px; justify-content: center; margin-top: 32px; flex-wrap: wrap; }
.help-pager-item {
  padding: 8px 14px; border: 1px solid var(--line); border-radius: 6px;
  font-size: 13px; color: var(--ink); background: var(--bg-card);
}
.help-pager-item:hover { border-color: var(--accent); color: var(--accent); }
.help-pager-item.is-cur { background: var(--ink); color: #fff; border-color: var(--ink); }

/* 详情页（正文全宽） */
.help-detail-meta {
  display: flex; gap: 16px; flex-wrap: wrap; font-size: 13px; color: var(--slate-2);
  margin-top: 14px;
}
.help-detail-foot { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line);
  display: flex; gap: 12px; flex-wrap: wrap; }

/* 帮助详情页：相关软件（内链） */
.help-related-soft { margin-top: 40px; padding: 20px 22px; border: 1px solid var(--line);
  border-radius: 12px; background: var(--bg-soft); }
.help-related-title { font-size: 13px; font-weight: 700; color: var(--slate);
  letter-spacing: .08em; text-transform: uppercase; margin-bottom: 12px; }
.help-related-list { display: flex; flex-direction: column; gap: 8px; }
.help-related-item { display: flex; align-items: center; gap: 12px; padding: 10px 14px;
  border: 1px solid var(--line); border-radius: 10px; background: var(--bg-card);
  transition: border-color .15s ease, transform .15s ease; }
.help-related-item:hover { border-color: var(--accent); transform: translateX(3px); }
.help-related-name { font-weight: 600; color: var(--ink); }
.help-related-tag { font-size: 13px; color: var(--slate); flex: 1;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.help-related-arrow { font-size: 13px; color: var(--accent); white-space: nowrap; }
@media (max-width: 600px) {
  .help-related-tag { display: none; }
}

/* 回到顶部浮动按钮 */
.back-to-top {
  position: fixed; right: 28px; bottom: 32px; z-index: 40;
  width: 44px; height: 44px; display: grid; place-items: center;
  border-radius: 50%; border: 1px solid var(--line);
  background: var(--ink); color: var(--bg-card);
  box-shadow: var(--shadow-2); cursor: pointer;
  opacity: 0; visibility: hidden; transform: translateY(12px);
  transition: opacity .2s ease, transform .2s ease, background .15s ease;
}
.back-to-top.is-show { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { background: var(--accent); }
.back-to-top svg { width: 18px; height: 18px; }
@media (max-width: 600px) {
  .back-to-top { right: 16px; bottom: 20px; width: 40px; height: 40px; }
}

/* 文章正文排版（渲染后台富文本 HTML / Markdown） */
.article-content { font-size: 15px; line-height: 1.9; color: var(--ink-2); }
.article-content h2 { font-size: 22px; margin: 1.4em 0 .6em; scroll-margin-top: 84px; }
.article-content h3 { font-size: 18px; margin: 1.3em 0 .5em; scroll-margin-top: 84px; }
.article-content h4 { font-size: 16px; margin: 1.2em 0 .5em; scroll-margin-top: 84px; }
.article-content p { margin: .7em 0; }
.article-content ul, .article-content ol { padding-left: 1.6em; margin: .7em 0; }
.article-content li { margin: .3em 0; }
.article-content strong { color: var(--ink); }
.article-content a { color: var(--accent); font-weight: 600; }
.article-content a:hover { color: var(--accent-ink); }
.article-content blockquote {
  margin: .9em 0; padding: 10px 18px; border-left: 3px solid var(--accent);
  background: var(--accent-soft); color: var(--slate); border-radius: 0 6px 6px 0;
}
.article-content pre {
  background: var(--ink); color: #E8E4D8; padding: 14px 16px; border-radius: 8px;
  overflow-x: auto; font-size: 13px; line-height: 1.7;
}
.article-content code {
  font-family: ui-monospace, Consolas, monospace; background: var(--line-soft);
  padding: 1px 6px; border-radius: 4px; font-size: .92em;
}
.article-content pre code { background: transparent; padding: 0; }
.article-content img { max-width: 100%; height: auto; border-radius: 8px; border: 1px solid var(--line-soft); }
.article-content hr { border: 0; border-top: 1px solid var(--line-soft); margin: 1.6em 0; }
.article-content table { border-collapse: collapse; width: 100%; margin: .9em 0; font-size: 14px; }
.article-content th, .article-content td { border: 1px solid var(--line); padding: 8px 12px; text-align: left; }
.article-content th { background: var(--line-soft); }

@media (max-width: 960px) {
  .help-rec-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .help-rec-grid { grid-template-columns: 1fr; }
  .help-item { flex-direction: column; gap: 6px; align-items: flex-start; }
}

/* ============ 合规声明 / 用户协议 ============ */

/* 购买表单：协议勾选 */
.agree-line {
  display: flex; align-items: flex-start; gap: 8px;
  font-size: 12.5px; line-height: 1.6; color: var(--slate);
  margin: 4px 0 12px; cursor: pointer; user-select: none;
}
.agree-line input[type="checkbox"] {
  flex: 0 0 auto; width: 15px; height: 15px; margin-top: 2px;
  accent-color: var(--accent); cursor: pointer;
}
.agree-line a { color: var(--accent); font-weight: 600; text-decoration: underline; }

/* 订单页：支付前协议提示 */
.pay-terms-note { margin-bottom: 12px; }
.pay-terms-note a { color: var(--accent); font-weight: 600; text-decoration: underline; }

/* 首页底部合规声明条 */
.compliance-strip {
  border-top: 1px solid var(--line);
  background: var(--bg-soft);
  padding: 28px 0 34px;
}
.compliance-inner { max-width: 860px; }
.compliance-tag {
  display: inline-block; font-size: 12px; font-weight: 700;
  letter-spacing: .1em; color: var(--slate);
  border: 1px solid var(--line); border-radius: 4px;
  padding: 3px 10px; margin-bottom: 12px;
  background: var(--bg-card);
}
.compliance-inner p { font-size: 13px; line-height: 1.9; color: var(--slate); }
.compliance-inner strong { color: var(--ink); }
.compliance-inner a { color: var(--accent); font-weight: 600; text-decoration: underline; }

/* 协议页正文列表 */
.doc-section ol { padding-left: 1.6em; margin: .6em 0 0; }
.doc-section ol li { margin: .45em 0; line-height: 1.85; color: var(--ink-2); }
