/* ============================================================
   Solune · 视觉体系「珊瑚暮色」(Coral Dusk)
   Design Tokens —— 色彩 / 字体 / 间距 / 圆角 / 阴影 / 动效
   仅使用系统字体与本地静态资源，无远程字体、无第三方追踪。
   主色为珊瑚粉，与暖中性底色、深紫黑面板组合，
   语义状态色保留通用低饱和绿（成功）与橙红（危险）。
   ============================================================ */

:root {
  /* ---- 色彩：底色与文字（暖中性） ---- */
  --canvas: #FBF8F6;            /* 暖白页面底色 */
  --canvas-soft: #F3EEEA;       /* 暖灰过渡区 */
  --paper: #FFFFFF;             /* 卡片白 */
  --ink: #221C26;               /* 深棕黑正文 */
  --ink-strong: #15101A;        /* 标题深棕黑 */
  --muted: #5E5560;             /* 次级文字 */
  --faint: #908798;             /* 弱化文字 */
  --line: #E9E1DC;              /* 暖灰描边 */
  --line-strong: #D4C8C0;

  /* ---- 色彩：主色与氛围色（珊瑚粉 + 靛蓝 + 日落金） ---- */
  --accent: #F06673;            /* 珊瑚粉 · 主操作 */
  --accent-strong: #D8485A;     /* 珊瑚粉 · 悬停/强调 */
  --accent-soft: #FBE3E6;       /* 珊瑚粉 · 浅底 */
  --accent-faint: #FEF1F2;      /* 珊瑚粉 · 极浅底 */
  --lilac: #3A3D7A;             /* 靛蓝 · AI 氛围（保留旧变量名） */
  --lilac-strong: #2A2D60;
  --lilac-soft: #E4E5F0;        /* 靛蓝 · 浅底 */
  --blush: #E5A23B;             /* 日落金 · 氛围点缀 */
  --blush-soft: #FBEED3;        /* 日落金 · 极浅底 */

  /* ---- 色彩：语义状态（通用语义色，绿色仅用于成功） ---- */
  --success: #2E7D5B;  --success-bg: #E3F2EA;
  --warning: #B7791F;  --warning-bg: #FBF0D9;
  --danger:  #C04A3A;  --danger-bg:  #FBE6E2;
  --info:    #3A3D7A;  --info-bg:    #E4E5F0;

  /* ---- 色彩：深色面板（深紫黑，取代旧墨绿松林） ---- */
  --pine: #1F1A28;               /* 深紫黑（保留旧变量名 --pine） */
  --pine-deep: #15101C;
  --pine-line: #382F44;
  --pine-text: #F0E6EA;
  --pine-muted: #A89AA4;

  /* ---- 字体 ---- */
  --font-sans: "PingFang SC", "Microsoft YaHei UI", "Noto Sans CJK SC", system-ui, -apple-system, sans-serif;
  --font-mono: ui-monospace, "SF Mono", Consolas, "Courier New", monospace;
  --text-xs: 12px;
  --text-s: 13px;
  --text-m: 15px;
  --text-l: 17px;

  /* ---- 间距 ---- */
  --s1: 4px;  --s2: 8px;  --s3: 12px; --s4: 16px;
  --s5: 24px; --s6: 32px; --s7: 48px; --s8: 64px; --s9: 96px;

  /* ---- 圆角 ---- */
  --r-s: 8px;
  --r-m: 12px;
  --r-l: 16px;
  --r-xl: 22px;
  --r-pill: 999px;

  /* ---- 阴影（低饱和、柔和） ---- */
  --shadow-s: 0 1px 2px rgba(31, 26, 40, .05), 0 2px 8px rgba(31, 26, 40, .05);
  --shadow-m: 0 2px 6px rgba(31, 26, 40, .05), 0 12px 32px rgba(31, 26, 40, .08);
  --shadow-l: 0 8px 20px rgba(31, 26, 40, .06), 0 28px 64px rgba(31, 26, 40, .10);

  /* ---- 动效 ---- */
  --ease: cubic-bezier(.22, .61, .36, 1);
  --dur: 180ms;

  --max-width: 1160px;
}

/* ================= 基础 ================= */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--canvas);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.7;
  letter-spacing: .01em;
}
a { color: inherit; }
button, input, select, textarea { font: inherit; }
img { max-width: 100%; }
[hidden] { display: none !important; }
.container { width: min(calc(100% - 40px), var(--max-width)); margin: 0 auto; }

::selection { background: var(--accent-soft); color: var(--ink-strong); }

a:focus-visible, button:focus-visible, input:focus-visible,
select:focus-visible, textarea:focus-visible, summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: var(--r-s);
}

/* ================= 页头 + 移动端导航 ================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 1px solid rgba(233, 225, 220, .9);
  background: rgba(251, 248, 246, .92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.header-inner { min-height: 68px; display: flex; align-items: center; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 11px; color: var(--ink-strong); font-weight: 800; text-decoration: none; white-space: nowrap; }
/* Solune 品牌图形：日月弧线（弦月 + 晨星 + 地平弧线，纯 CSS 绘制） */
.brand-mark { position: relative; display: block; width: 28px; height: 24px; }
.brand-mark i { position: absolute; display: block; }
.brand-mark i:nth-child(1) { left: 2px; top: 2px; width: 13px; height: 13px; border-radius: 50%; background: transparent; box-shadow: inset -4px 2px 0 0 var(--accent); }
.brand-mark i:nth-child(2) { right: 1px; top: 1px; width: 8px; height: 8px; border-radius: 50%; background: linear-gradient(150deg, var(--blush), var(--accent)); }
.brand-mark i:nth-child(3) { left: 2px; bottom: 0; width: 24px; height: 12px; border: 2px solid transparent; border-top-color: var(--accent-strong); border-radius: 50%; background: transparent; }
.nav { display: flex; gap: 4px; margin-left: auto; }
.nav a { padding: 7px 12px; border-radius: var(--r-pill); color: var(--muted); font-size: 14px; font-weight: 600; text-decoration: none; transition: color var(--dur) var(--ease), background var(--dur) var(--ease); }
.nav a:hover, .nav a[aria-current="page"] { color: var(--accent-strong); background: var(--accent-soft); }
.header-actions { display: flex; gap: 8px; flex: 0 0 auto; }

/* 移动端汉堡菜单 */
.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  margin-left: auto;
  border: 1px solid var(--line-strong); border-radius: var(--r-s);
  background: var(--paper); color: var(--ink-strong);
  cursor: pointer;
  position: relative;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: ""; position: absolute; left: 50%; top: 50%;
  width: 18px; height: 2px; margin: -1px 0 0 -9px;
  background: currentColor; transition: transform var(--dur) var(--ease), opacity var(--dur) var(--ease);
}
.nav-toggle span::before { margin-top: -6px; }
.nav-toggle span::after { margin-top: 4px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: rotate(45deg); margin-top: 0; }
.nav-toggle[aria-expanded="true"] span::after { transform: rotate(-45deg); margin-top: 0; }

.mobile-nav {
  display: none;
  position: fixed; top: 68px; left: 0; right: 0; bottom: 0;
  z-index: 25;
  background: var(--canvas);
  padding: 16px 20px 32px;
  overflow-y: auto;
  border-top: 1px solid var(--line);
}
.mobile-nav.open { display: block; }
.mobile-nav a {
  display: block; padding: 14px 12px;
  border-bottom: 1px solid var(--line);
  color: var(--ink-strong); font-size: 16px; font-weight: 600; text-decoration: none;
}
.mobile-nav a:hover, .mobile-nav a[aria-current="page"] { color: var(--accent-strong); }
.mobile-nav .mobile-nav-actions { display: flex; gap: 10px; margin-top: 20px; }
.mobile-nav .mobile-nav-actions .button { flex: 1; }

/* ================= 按钮 ================= */
.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  padding: 11px 22px;
  border: 1px solid var(--accent);
  border-radius: var(--r-m);
  color: #fff;
  background: var(--accent);
  box-shadow: 0 4px 14px rgba(240, 102, 115, .22);
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.button:hover { background: var(--accent-strong); border-color: var(--accent-strong); box-shadow: 0 8px 20px rgba(240, 102, 115, .28); transform: translateY(-1px); }
.button:active { transform: translateY(0); }
.button-small { min-height: 38px; padding: 7px 15px; border-radius: var(--r-s); font-size: 13px; box-shadow: none; }
.button-light { color: var(--accent-strong); background: var(--paper); border-color: var(--line-strong); box-shadow: none; }
.button-light:hover { color: #fff; background: var(--accent-strong); border-color: var(--accent-strong); }
.text-link { color: var(--accent-strong); font-weight: 700; text-decoration: none; }
.text-link span { display: inline-block; margin-left: 4px; transition: transform var(--dur) var(--ease); }
.text-link:hover span { transform: translateX(3px); }

/* ================= 首页 Hero ================= */
.hero {
  position: relative;
  padding: 84px 0 36px;
  overflow: hidden;
  background:
    radial-gradient(720px 420px at 88% -8%, var(--accent-soft) 0%, transparent 62%),
    radial-gradient(640px 400px at -6% 22%, var(--lilac-soft) 0%, transparent 58%),
    linear-gradient(180deg, #FFFCFA 0%, var(--canvas) 100%);
  border-bottom: 1px solid var(--line);
}
.hero-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(340px, .88fr); align-items: center; gap: 70px; }
.status-line {
  display: inline-flex; align-items: center; gap: 8px;
  margin-bottom: 20px; padding: 6px 14px;
  border: 1px solid var(--accent-soft); border-radius: var(--r-pill);
  background: var(--paper);
  color: var(--accent-strong); font-size: 13px; font-weight: 700;
  box-shadow: var(--shadow-s);
}
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.hero-positioning { margin: 0 0 10px; color: var(--lilac-strong); font-size: 13px; font-weight: 800; letter-spacing: .18em; }
.hero h1 { max-width: 700px; margin: 0; color: var(--ink-strong); font-size: clamp(40px, 6vw, 66px); font-weight: 800; line-height: 1.12; letter-spacing: -.02em; }
.hero-slogan { margin: 20px 0 4px; color: var(--accent-strong); font-size: 22px; font-weight: 700; }
.hero-detail { max-width: 640px; margin: 14px 0 0; color: var(--muted); font-size: var(--text-l); }
.route-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.route-chip {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 7px 14px;
  border: 1px solid var(--line); border-radius: var(--r-pill);
  background: var(--paper);
  color: var(--muted); font-size: 13px; font-weight: 600;
  box-shadow: var(--shadow-s);
}
.route-chip::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.route-chip-alt::before { background: var(--lilac); }
.hero-actions { display: flex; align-items: center; gap: 22px; margin-top: 30px; }

/* ---- 连接示意面板（深紫黑，柔光网格） ---- */
.connection-visual {
  position: relative; min-height: 330px; padding: 36px; overflow: hidden;
  color: var(--pine-text);
  background:
    radial-gradient(420px 260px at 92% 0%, rgba(229, 162, 59, .22) 0%, transparent 60%),
    linear-gradient(160deg, var(--pine) 0%, var(--pine-deep) 100%);
  border: 1px solid var(--pine-line);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-l);
}
.connection-visual::before {
  content: ""; position: absolute; inset: 0; opacity: .07;
  background-size: 28px 28px;
  background-image: linear-gradient(#fff 1px, transparent 1px), linear-gradient(90deg, #fff 1px, transparent 1px);
}
.visual-label { position: relative; display: inline-block; padding: 5px 12px; border: 1px solid var(--pine-line); border-radius: var(--r-pill); color: #F0D8DC; background: rgba(255, 255, 255, .04); font-size: 12px; font-weight: 700; letter-spacing: .04em; }
.visual-path { position: relative; display: flex; align-items: center; justify-content: space-between; margin: 58px 0 50px; }
.visual-node { display: flex; width: 78px; flex-direction: column; align-items: center; gap: 10px; color: var(--pine-muted); text-align: center; font-size: 12px; }
.visual-node.active { color: #fff; }
.node-icon { display: grid; width: 44px; height: 44px; place-items: center; border: 1px solid var(--pine-line); border-radius: 50%; background: rgba(255, 255, 255, .05); font-size: 11px; font-weight: 800; transition: border-color var(--dur) var(--ease); }
.visual-node.active .node-icon { border-color: var(--blush); color: var(--pine-deep); background: linear-gradient(150deg, #FBEED3, var(--blush)); }
.path-line { height: 1px; min-width: 24px; flex: 1; margin: 0 4px 30px; background: var(--pine-line); }
.visual-meta { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 18px; border-top: 1px solid var(--pine-line); }
.visual-meta span { color: var(--pine-muted); font-size: 12px; }
.visual-meta strong { color: #F0D8DC; font-size: 14px; font-weight: 700; text-align: right; }
.announcement {
  position: relative;
  display: flex; align-items: center; gap: 13px;
  margin: 52px 0 0; padding: 16px 20px;
  border: 1px solid #F0D8DC; border-radius: var(--r-m);
  background: var(--accent-faint);
  color: #6E4750; font-size: 14px;
}
.announcement strong { white-space: nowrap; color: var(--accent-strong); }

/* ================= 通用章节 ================= */
.section { padding: 92px 0; }
.section-contrast { background: linear-gradient(180deg, var(--paper) 0%, #FBFAF8 100%); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 40px; margin-bottom: 40px; }
.section-heading > p { max-width: 460px; margin: 0; color: var(--muted); text-align: right; }
.eyebrow { margin: 0 0 8px; color: var(--lilac-strong); font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.section-contrast .eyebrow, .section .eyebrow { color: var(--lilac-strong); }
h2 { margin: 0; color: var(--ink-strong); font-size: 34px; font-weight: 800; line-height: 1.28; letter-spacing: -.01em; }
h3 { color: var(--ink-strong); letter-spacing: .01em; }

/* ================= 模型线路 ================= */
.services-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.services-grid-single { grid-template-columns: minmax(0, 1fr); max-width: 720px; }
.service-route-card {
  position: relative; overflow: hidden;
  padding: 30px 28px;
  border: 1px solid var(--line); border-radius: var(--r-l);
  background: linear-gradient(160deg, var(--paper) 55%, var(--accent-faint) 100%);
  box-shadow: var(--shadow-s);
  transition: box-shadow var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.service-route-card:hover { box-shadow: var(--shadow-m); transform: translateY(-2px); }
.service-route-card::after {
  content: ""; position: absolute; right: -46px; top: -46px;
  width: 150px; height: 150px; border-radius: 50%;
  border: 2px solid rgba(240, 102, 115, .14);
}
.service-route-alt { background: linear-gradient(160deg, var(--paper) 55%, var(--lilac-soft) 100%); }
.service-route-alt::after { border-color: rgba(58, 61, 122, .18); }
.service-route-tag { display: inline-flex; padding: 5px 12px; border-radius: var(--r-pill); color: var(--accent-strong); background: var(--accent-soft); font-size: 12px; font-weight: 700; }
.service-route-alt .service-route-tag { color: var(--lilac-strong); background: var(--lilac-soft); }
.service-route-card h3 { position: relative; margin: 16px 0 8px; font-size: 24px; font-weight: 800; }
.service-route-card p { position: relative; margin: 0; color: var(--muted); font-size: 14px; }

/* ================= 套餐卡片 ================= */
.package-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 18px; }
.package-card {
  position: relative; display: flex; min-height: 330px; flex-direction: column;
  padding: 28px 24px 24px;
  border: 1px solid var(--line); border-radius: var(--r-l);
  background: var(--paper);
  box-shadow: var(--shadow-s);
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.package-card:hover { border-color: #F5C8CD; box-shadow: var(--shadow-m); transform: translateY(-3px); }
.package-card.recommended { border: 1px solid var(--accent); box-shadow: 0 16px 40px rgba(240, 102, 115, .14); }
.package-card.recommended::before { content: ""; position: absolute; inset: 0 0 auto; height: 4px; border-radius: var(--r-l) var(--r-l) 0 0; background: linear-gradient(90deg, var(--accent), var(--blush)); }
.recommend-badge { position: absolute; top: 16px; right: 16px; padding: 4px 11px; border-radius: var(--r-pill); color: var(--accent-strong); background: var(--accent-soft); font-size: 11px; font-weight: 800; }
.package-card h3 { margin: 0 0 14px; padding-right: 58px; font-size: 18px; font-weight: 800; }
.price { display: flex; align-items: baseline; gap: 3px; margin: 0 0 4px; color: var(--ink-strong); }
.price .currency { font-size: 18px; font-weight: 700; }
.price .amount { font-size: 42px; line-height: 1; font-weight: 800; letter-spacing: -.02em; }
.package-units { display: inline-flex; align-self: flex-start; margin: 0 0 18px; padding: 4px 11px; border-radius: var(--r-pill); color: var(--accent-strong); background: var(--accent-soft); font-size: 13px; font-weight: 700; }
.package-description { margin: 0 0 26px; color: var(--muted); font-size: 14px; }
.package-card .button { width: 100%; margin-top: auto; }
.package-card:not(.recommended) .button { color: var(--accent-strong); background: var(--accent-faint); border-color: transparent; box-shadow: none; }
.package-card:not(.recommended) .button:hover { color: #fff; background: var(--accent-strong); border-color: var(--accent-strong); }
.loading-state { grid-column: 1 / -1; margin: 0; padding: 44px 24px; border: 1px dashed var(--line-strong); border-radius: var(--r-l); color: var(--muted); text-align: center; }
.usage-notice { margin: 26px 0 0; padding: 18px 22px; border: 1px solid #ECDFC0; border-radius: var(--r-m); background: var(--warning-bg); color: #6D5A22; font-size: 14px; }
.quota-disclaimer { display: block; margin-top: 8px; color: #8A6516; font-size: 12px; line-height: 1.65; }
.package-validity { margin: 7px 0 0; color: var(--muted); font-size: 12px; }
.package-redeem-link { display: inline-flex; margin-top: 12px; color: var(--accent-strong); font-size: 12px; font-weight: 700; text-decoration: none; }
.package-redeem-link:hover { text-decoration: underline; }

/* ---- 套餐对比表 ---- */
.comparison-block { margin-top: 52px; }
.comparison-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 20px; }
.comparison-heading h3 { margin: 0; font-size: 22px; }
.comparison-table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-l); background: var(--paper); box-shadow: var(--shadow-s); }
.comparison-table { width: 100%; min-width: 680px; border-collapse: collapse; font-size: 14px; }
.comparison-table th, .comparison-table td { padding: 16px 18px; border-bottom: 1px solid var(--line); text-align: left; }
.comparison-table th { color: var(--muted); background: var(--accent-faint); font-size: 12px; font-weight: 700; letter-spacing: .04em; }
.comparison-table tr:last-child td { border-bottom: 0; }
.comparison-table tbody tr { transition: background var(--dur) var(--ease); }
.comparison-table tbody tr:hover { background: #FBFAF8; }
.comparison-table td:nth-child(2), .comparison-table td:nth-child(3), .comparison-table td:nth-child(4) { white-space: nowrap; font-weight: 700; }
.table-link { color: var(--accent-strong); font-weight: 700; text-decoration: none; }
.table-link:hover { text-decoration: underline; }

/* ================= 简明流程（首页 4 步） ================= */
.step-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(186px, 1fr)); gap: 14px; margin: 0; padding: 0; list-style: none; }
.step-grid li {
  position: relative; min-height: 210px; padding: 26px 22px;
  border: 1px solid var(--line); border-radius: var(--r-l);
  background: var(--paper);
  box-shadow: var(--shadow-s);
  transition: box-shadow var(--dur) var(--ease), transform var(--dur) var(--ease);
  display: flex; flex-direction: column;
}
.step-grid li:hover { box-shadow: var(--shadow-m); transform: translateY(-2px); }
.step-grid li > span { display: inline-grid; width: 38px; height: 38px; place-items: center; border-radius: 50%; color: #fff; background: linear-gradient(150deg, var(--pine), var(--accent-strong)); font-size: 12px; font-weight: 800; box-shadow: var(--shadow-s); }
.step-grid h3 { margin: 22px 0 8px; font-size: 17px; font-weight: 800; }
.step-grid p { margin: 0 0 14px; color: var(--muted); font-size: 13px; line-height: 1.65; flex: 1; }
.step-grid .text-link { margin-top: auto; font-size: 13px; }

/* ================= 入口卡片网格（首页底部 CTA） ================= */
.entry-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.entry-card {
  display: flex; flex-direction: column; gap: 10px;
  padding: 26px 24px;
  border: 1px solid var(--line); border-radius: var(--r-l);
  background: var(--paper);
  box-shadow: var(--shadow-s);
  text-decoration: none; color: inherit;
  transition: box-shadow var(--dur) var(--ease), transform var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.entry-card:hover { box-shadow: var(--shadow-m); transform: translateY(-2px); border-color: var(--accent); }
.entry-card .entry-eyebrow { color: var(--lilac-strong); font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.entry-card h3 { margin: 0; font-size: 18px; font-weight: 800; color: var(--ink-strong); }
.entry-card p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.6; }
.entry-card .entry-arrow { margin-top: auto; color: var(--accent-strong); font-weight: 700; font-size: 13px; }
.entry-card .entry-arrow span { display: inline-block; margin-left: 4px; transition: transform var(--dur) var(--ease); }
.entry-card:hover .entry-arrow span { transform: translateX(3px); }

/* ================= 简化连接示例（首页一行 mono） ================= */
.config-inline {
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px;
  padding: 16px 20px;
  border: 1px solid var(--line); border-radius: var(--r-m);
  background: var(--paper); box-shadow: var(--shadow-s);
  margin-top: 28px;
}
.config-inline .config-label { color: var(--muted); font-size: 12px; font-weight: 700; }
.config-inline code { font-family: var(--font-mono); font-size: 13px; color: var(--ink-strong); overflow-wrap: anywhere; }
.config-inline .copy-button {
  flex: 0 0 auto; min-height: 32px; padding: 5px 12px;
  border: 1px solid var(--line-strong); border-radius: var(--r-pill);
  color: var(--accent-strong); background: var(--paper);
  font-size: 11px; font-weight: 700; cursor: pointer;
  transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease);
}
.config-inline .copy-button:hover { border-color: var(--accent); background: var(--accent-faint); }

/* 兼容旧首页 .config-example（保留以兼容其他页面可能的引用） */
.config-example { overflow: hidden; border: 1px solid var(--pine-line); border-radius: var(--r-xl); color: var(--pine-text); background: radial-gradient(360px 200px at 100% 0%, rgba(229, 162, 59, .18) 0%, transparent 60%), linear-gradient(160deg, var(--pine) 0%, var(--pine-deep) 100%); box-shadow: var(--shadow-l); }
.config-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 18px 22px; border-bottom: 1px solid var(--pine-line); font-size: 14px; font-weight: 700; }
.example-badge { flex: 0 0 auto; padding: 3px 10px; border-radius: var(--r-pill); color: var(--accent-strong); background: var(--accent-soft); font-size: 10px; font-weight: 800; }
.config-example dl { margin: 0; }
.config-example dl > div { padding: 18px 22px; border-bottom: 1px solid var(--pine-line); }
.config-example dt { margin-bottom: 8px; color: var(--pine-muted); font-size: 12px; }
.config-example dd { display: flex; align-items: center; gap: 10px; min-width: 0; margin: 0; }
.config-example code { min-width: 0; flex: 1; overflow-wrap: anywhere; color: #fff; font-family: var(--font-mono); font-size: 13px; }
.copy-button { flex: 0 0 auto; min-height: 32px; padding: 5px 12px; border: 1px solid var(--pine-line); border-radius: var(--r-pill); color: #F0D8DC; background: rgba(255, 255, 255, .05); font-size: 11px; font-weight: 700; cursor: pointer; transition: border-color var(--dur) var(--ease), color var(--dur) var(--ease); }
.copy-button:hover { border-color: var(--blush); color: var(--blush); }
.example-note { margin: 0; padding: 16px 22px; color: var(--pine-muted); font-size: 12px; }

/* ================= 风险与额度说明卡（首页） ================= */
.notice-block {
  margin-top: 28px; padding: 22px 24px;
  border: 1px solid var(--line); border-left: 4px solid var(--accent);
  border-radius: var(--r-m);
  background: var(--paper); box-shadow: var(--shadow-s);
}
.notice-block strong { display: block; margin-bottom: 8px; color: var(--ink-strong); font-size: 14px; }
.notice-block p { margin: 0 0 8px; color: var(--muted); font-size: 13px; line-height: 1.7; }
.notice-block p:last-child { margin-bottom: 0; }

/* ================= 套餐页 /shop/plans/ ================= */
.page-hero {
  padding: 64px 0 36px;
  background:
    radial-gradient(620px 360px at 90% -10%, var(--accent-soft) 0%, transparent 60%),
    radial-gradient(520px 340px at -6% 30%, var(--lilac-soft) 0%, transparent 55%),
    linear-gradient(180deg, #FFFCFA 0%, var(--canvas) 100%);
  border-bottom: 1px solid var(--line);
}
.page-hero h1 { margin: 0; color: var(--ink-strong); font-size: clamp(32px, 5vw, 46px); font-weight: 800; line-height: 1.2; letter-spacing: -.01em; }
.page-lead { max-width: 760px; margin: 16px 0 0; color: var(--muted); font-size: var(--text-l); }
.breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 16px; color: var(--muted); font-size: 13px; }
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--accent-strong); }
.breadcrumb span[aria-hidden="true"] { color: var(--faint); }

.plans-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; }
.plans-grid .package-card { min-height: 360px; }

.plans-future-slot { display: none; margin-top: 36px; padding: 22px 24px; border: 1px dashed var(--line-strong); border-radius: var(--r-m); color: var(--muted); background: var(--canvas-soft); font-size: 13px; }
.plans-future-slot[data-active="true"] { display: block; }

/* ================= 指南页 /shop/tutorial/（分阶段） ================= */
.tutorial-hero {
  padding: 64px 0 36px;
  background:
    radial-gradient(620px 360px at 90% -10%, var(--accent-soft) 0%, transparent 60%),
    radial-gradient(520px 340px at -6% 30%, var(--lilac-soft) 0%, transparent 55%),
    linear-gradient(180deg, #FFFCFA 0%, var(--canvas) 100%);
  border-bottom: 1px solid var(--line);
}
.tutorial-hero h1 { margin: 0; color: var(--ink-strong); font-size: clamp(32px, 5vw, 46px); font-weight: 800; line-height: 1.2; letter-spacing: -.01em; }
.tutorial-lead { max-width: 760px; margin: 16px 0 0; color: var(--muted); font-size: var(--text-l); }
.tutorial-terms { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 30px; }
.tutorial-terms div { padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--r-m); background: var(--paper); box-shadow: var(--shadow-s); }
.tutorial-terms span { color: var(--ink-strong); font-weight: 800; }
.tutorial-terms p { margin: 6px 0 0; color: var(--muted); font-size: 13px; }

.tutorial-body { padding: 52px 0 84px; }

/* 阶段切换条 */
.stage-bar {
  position: sticky; top: 84px; z-index: 10;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px;
  margin-bottom: 32px; padding: 8px;
  border: 1px solid var(--line); border-radius: var(--r-pill);
  background: var(--paper); box-shadow: var(--shadow-s);
}
.stage-bar button {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 16px; min-height: 44px;
  border: 0; border-radius: var(--r-pill);
  background: transparent; color: var(--muted);
  font-size: 13px; font-weight: 700; cursor: pointer;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease);
}
.stage-bar button:hover { color: var(--accent-strong); background: var(--accent-faint); }
.stage-bar button[aria-selected="true"] { background: var(--accent); color: #fff; }
.stage-bar button .stage-num { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: rgba(255, 255, 255, .25); font-size: 11px; font-weight: 800; }
.stage-bar button:not([aria-selected="true"]) .stage-num { background: var(--accent-soft); color: var(--accent-strong); }

.stage-panel { display: none; }
.stage-panel.active { display: block; }

.stage-steps { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; }
.stage-steps li {
  border: 1px solid var(--line); border-radius: var(--r-l);
  background: var(--paper); box-shadow: var(--shadow-s);
  overflow: hidden;
  transition: box-shadow var(--dur) var(--ease);
}
.stage-steps li:hover { box-shadow: var(--shadow-m); }
.stage-steps summary {
  display: grid; grid-template-columns: 44px 1fr auto; gap: 16px; align-items: center;
  padding: 18px 22px;
  cursor: pointer; list-style: none;
}
.stage-steps summary::-webkit-details-marker { display: none; }
.stage-steps summary > span { display: grid; width: 36px; height: 36px; place-items: center; border-radius: 50%; color: #fff; background: linear-gradient(150deg, var(--pine), var(--accent-strong)); font-size: 12px; font-weight: 800; }
.stage-steps summary h2 { margin: 0; font-size: 17px; font-weight: 800; color: var(--ink-strong); }
.stage-steps summary .stage-summary-arrow { width: 14px; height: 14px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); transition: transform var(--dur) var(--ease); }
.stage-steps details[open] summary .stage-summary-arrow { transform: rotate(225deg); margin-top: 4px; }
.stage-steps .step-body { padding: 0 22px 20px 82px; }
.stage-steps .step-body p { margin: 0 0 10px; color: var(--muted); font-size: 14px; line-height: 1.7; }
.stage-steps .step-body p:last-child { margin-bottom: 0; }
.stage-steps .step-body .text-link { font-size: 13px; }

.stage-footer {
  display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: center;
  margin-top: 28px; padding: 20px 22px;
  border: 1px solid var(--line); border-radius: var(--r-l);
  background: var(--canvas-soft);
}
.stage-footer .stage-footer-help { color: var(--muted); font-size: 13px; }
.stage-footer .stage-footer-help a { color: var(--accent-strong); font-weight: 700; text-decoration: none; }
.stage-footer .stage-footer-help a:hover { text-decoration: underline; }
.stage-footer .stage-footer-actions { display: flex; gap: 10px; flex-wrap: wrap; }

.tutorial-notice { margin-top: 36px; padding: 20px 24px; border: 1px solid #ECDFC0; border-radius: var(--r-m); background: var(--warning-bg); color: #6D5A22; font-size: 14px; line-height: 1.7; }
.tutorial-notice strong { display: block; margin-bottom: 6px; }
.tutorial-notice p { margin: 0; }

.stage-footer-nav { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--line); }

/* ================= 帮助页 /shop/help/ ================= */
.help-layout { display: grid; grid-template-columns: minmax(0, 1fr) 240px; gap: 36px; align-items: start; }
.help-search-wrap { position: sticky; top: 84px; z-index: 10; margin-bottom: 24px; }
.help-search {
  width: 100%; min-height: 48px; padding: 12px 18px 12px 44px;
  border: 1px solid var(--line-strong); border-radius: var(--r-pill);
  background: var(--paper) var(--help-search-icon) 14px center / 18px no-repeat;
  --help-search-icon: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235E5560' stroke-width='2.5' stroke-linecap='round'><circle cx='11' cy='11' r='7'/><path d='m21 21-4.35-4.35'/></svg>");
  color: var(--ink); font-size: 15px;
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.help-search:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(240, 102, 115, .14); }
.help-search::placeholder { color: var(--faint); }

.help-category { margin-bottom: 24px; }
.help-category > h2 { margin: 0 0 14px; font-size: 18px; font-weight: 800; color: var(--ink-strong); display: flex; align-items: center; gap: 10px; }
.help-category > h2::before { content: ""; display: inline-block; width: 4px; height: 18px; border-radius: 2px; background: var(--accent); }
.help-list { display: grid; gap: 10px; }
.help-list details { border: 1px solid var(--line); border-radius: var(--r-m); background: var(--paper); box-shadow: var(--shadow-s); transition: box-shadow var(--dur) var(--ease); }
.help-list details[open] { box-shadow: var(--shadow-m); border-color: #F5C8CD; }
.help-list summary { position: relative; padding: 16px 44px 16px 20px; color: var(--ink-strong); font-weight: 700; cursor: pointer; list-style: none; }
.help-list summary::-webkit-details-marker { display: none; }
.help-list summary::after { content: ""; position: absolute; right: 18px; top: 50%; width: 9px; height: 9px; margin-top: -7px; border-right: 2px solid var(--accent-strong); border-bottom: 2px solid var(--accent-strong); transform: rotate(45deg); transition: transform var(--dur) var(--ease); }
.help-list details[open] summary::after { transform: rotate(225deg); margin-top: -3px; }
.help-list details p, .help-list details ul { margin: -6px 0 0; padding: 0 20px 18px; color: var(--muted); font-size: 14px; line-height: 1.7; }
.help-list details ul { padding-left: 36px; }
.help-list details li { margin-bottom: 6px; }
.help-list details .text-link { font-size: 13px; }

.help-aside {
  position: sticky; top: 84px;
  display: grid; gap: 10px;
  padding: 20px;
  border: 1px solid var(--line); border-radius: var(--r-l);
  background: var(--paper); box-shadow: var(--shadow-s);
}
.help-aside h3 { margin: 0 0 6px; font-size: 13px; font-weight: 800; color: var(--ink-strong); }
.help-aside a { display: block; padding: 10px 12px; border-radius: var(--r-s); color: var(--ink-strong); font-size: 13px; font-weight: 600; text-decoration: none; transition: background var(--dur) var(--ease), color var(--dur) var(--ease); }
.help-aside a:hover { background: var(--accent-faint); color: var(--accent-strong); }

.help-empty { padding: 40px 20px; border: 1px dashed var(--line-strong); border-radius: var(--r-m); color: var(--muted); text-align: center; font-size: 14px; }
.help-search-hint { margin: 8px 2px 0; color: var(--faint); font-size: 12px; min-height: 16px; }
.help-category[hidden], .help-list details[hidden] { display: none !important; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

/* ================= 联系客服（首页底部） ================= */
.contact-section {
  padding: 76px 0;
  color: var(--pine-text);
  background:
    radial-gradient(560px 300px at 90% 10%, rgba(229, 162, 59, .2) 0%, transparent 60%),
    linear-gradient(160deg, var(--pine) 0%, var(--pine-deep) 100%);
}
.contact-section .eyebrow { color: var(--blush); }
.contact-inner { display: grid; grid-template-columns: 1fr auto; gap: 60px; align-items: center; }
.contact-inner h2 { color: #fff; margin-bottom: 10px; }
.contact-inner p { max-width: 720px; margin-top: 0; color: var(--pine-muted); }
.selected-package { display: inline-block; padding: 8px 14px; border-left: 3px solid var(--blush); border-radius: 0 var(--r-s) var(--r-s) 0; color: #fff !important; background: rgba(255, 255, 255, .06); font-size: 13px; }
.contact-checklist { display: grid; grid-template-columns: repeat(3, 108px); gap: 10px; }
.contact-checklist span { display: grid; min-height: 78px; place-items: center; padding: 10px; border: 1px solid var(--pine-line); border-radius: var(--r-m); color: #F0D8DC; background: rgba(255, 255, 255, .04); text-align: center; font-size: 12px; font-weight: 600; }

/* ================= 页脚 ================= */
.site-footer { padding: 40px 0; color: var(--muted); background: var(--canvas-soft); border-top: 1px solid var(--line); font-size: 12px; }
.footer-inner { display: grid; gap: 16px; }
.footer-inner > div { display: flex; justify-content: space-between; gap: 24px; color: var(--ink); }
.footer-inner > div strong { color: var(--ink-strong); }
.footer-inner > div span { color: var(--muted); font-size: 12px; font-weight: 500; }
.footer-inner > div b { color: var(--accent-strong); }
.footer-inner p, .footer-inner small { max-width: 960px; margin: 0; line-height: 1.7; }
.footer-links { display: flex; gap: 18px; }
.footer-links a { color: var(--accent-strong); font-weight: 600; text-decoration: none; }
.footer-links a:hover { text-decoration: underline; }

/* ================= 响应式 ================= */
@media (max-width: 960px) {
  .nav { display: none; }
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .header-inner { justify-content: space-between; }
  .header-actions { display: none; }
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .connection-visual { min-height: 290px; }
  .package-grid, .plans-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .services-grid { grid-template-columns: 1fr; }
  .help-layout { grid-template-columns: 1fr; }
  .help-aside { position: static; order: -1; }
  .stage-bar { top: 76px; }
  .help-search-wrap { top: 76px; }
  .tutorial-terms { grid-template-columns: 1fr; }
  .contact-inner { grid-template-columns: 1fr; gap: 34px; }
}

@media (max-width: 640px) {
  .container { width: min(calc(100% - 28px), var(--max-width)); }
  .header-actions .button-light { display: none; }
  .header-inner { min-height: 60px; }
  .mobile-nav { top: 60px; }
  .stage-bar { top: 68px; }
  .help-search-wrap { top: 68px; }
  .hero { padding: 52px 0 30px; }
  .hero h1 { font-size: 38px; }
  .hero-slogan { font-size: 19px; }
  .hero-detail { font-size: 15px; }
  .hero-actions { align-items: stretch; flex-direction: column; gap: 14px; }
  .hero-actions .button { width: 100%; }
  .hero-actions .text-link { align-self: center; }
  .connection-visual { min-height: auto; padding: 26px 18px; border-radius: var(--r-l); }
  .visual-path { margin: 42px 0 36px; }
  .visual-node { width: 64px; font-size: 11px; }
  .node-icon { width: 38px; height: 38px; }
  .path-line { min-width: 8px; margin-bottom: 28px; }
  .announcement { align-items: flex-start; flex-direction: column; gap: 6px; margin-top: 36px; }
  .section { padding: 64px 0; }
  .section-heading { align-items: flex-start; flex-direction: column; gap: 14px; margin-bottom: 28px; }
  .section-heading > p { text-align: left; }
  .comparison-heading { align-items: flex-start; flex-direction: column; }
  h2 { font-size: 27px; }
  .package-grid, .plans-grid { grid-template-columns: 1fr; }
  .package-card { min-height: 0; }
  .comparison-table-wrap { overflow: visible; border: 0; background: transparent; box-shadow: none; }
  .comparison-table { min-width: 0; }
  .comparison-table thead { display: none; }
  .comparison-table, .comparison-table tbody, .comparison-table tr, .comparison-table td { display: block; width: 100%; }
  .comparison-table tr { margin-bottom: 14px; overflow: hidden; border: 1px solid var(--line); border-radius: var(--r-l); background: var(--paper); box-shadow: var(--shadow-s); }
  .comparison-table td { display: flex; justify-content: space-between; gap: 16px; padding: 12px 16px; border-bottom: 1px dashed var(--line); text-align: right; white-space: normal !important; }
  .comparison-table td::before { content: attr(data-label); flex: 0 0 auto; color: var(--muted); font-size: 12px; font-weight: 700; text-align: left; }
  .comparison-table td:last-child { border-bottom: 0; }
  .comparison-table td[colspan] { display: block; padding: 24px 16px; color: var(--muted); text-align: center; }
  .comparison-table td[colspan]::before { content: none; }
  .step-grid { grid-template-columns: 1fr; }
  .step-grid li { min-height: 0; }
  .contact-checklist { grid-template-columns: 1fr; }
  .contact-checklist span { min-height: 52px; }
  .footer-inner > div { align-items: flex-start; flex-direction: column; gap: 6px; }
  .footer-links { flex-wrap: wrap; gap: 10px 16px; }
  .page-hero, .tutorial-hero { padding: 44px 0 28px; }
  .stage-bar { grid-template-columns: 1fr; gap: 6px; border-radius: var(--r-l); }
  .stage-bar button { justify-content: flex-start; }
  .stage-steps summary { grid-template-columns: 36px 1fr auto; gap: 12px; padding: 16px 18px; }
  .stage-steps summary > span { width: 32px; height: 32px; font-size: 11px; }
  .stage-steps summary h2 { font-size: 15px; }
  .stage-steps .step-body { padding: 0 18px 18px 62px; }
  .stage-footer { flex-direction: column; align-items: flex-start; }
  .stage-footer .stage-footer-actions { width: 100%; }
  .stage-footer .stage-footer-actions .button, .stage-footer .stage-footer-actions .button-light { flex: 1; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* ============================================================
   移动端底部导航栏（Mobile Tab Bar）
   仅在 ≤960px 视口下显示，由 nav.js 在符合条件的用户页面注入。
   桌面端不显示，登录/注册/管理端不注入。
   适配全面屏 env(safe-area-inset-bottom)，并通过 body 底部留白防遮挡。
   ============================================================ */
.mobile-tabbar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 20;
  display: none;              /* 桌面端默认隐藏 */
  align-items: stretch;
  justify-content: stretch;
  padding: 0;
  padding-bottom: env(safe-area-inset-bottom);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid var(--line);
  box-shadow: 0 -4px 16px rgba(31, 26, 40, .06);
}

.tabbar-item {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  min-height: 56px;          /* 触控目标 ≥ 44px */
  padding: 8px 4px 6px;
  color: var(--muted);
  background: transparent;
  border: 0;
  text-decoration: none;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: color var(--dur) var(--ease);
  -webkit-tap-highlight-color: transparent;
}

.tabbar-item:hover { color: var(--accent-strong); }

.tabbar-item:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: -2px;
  border-radius: var(--r-s);
}

.tabbar-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px; height: 24px;
  color: currentColor;
  pointer-events: none;
}

.tabbar-icon svg {
  width: 22px; height: 22px;
  display: block;
}

.tabbar-label {
  display: block;
  line-height: 1.2;
  pointer-events: none;
}

/* 选中状态：珊瑚粉强调色 + 顶部短指示条 */
.tabbar-item[aria-current="page"] {
  color: var(--accent-strong);
  position: relative;
}

.tabbar-item[aria-current="page"]::before {
  content: "";
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 24px; height: 3px;
  background: var(--accent);
  border-radius: 0 0 var(--r-pill) var(--r-pill);
}

/* 仅在手机端显示底栏 + 主体底部留白（防遮挡）
   断点 767px：360/390/430px 显示底栏；768/1440px 隐藏底栏，使用桌面导航或汉堡菜单。 */
@media (max-width: 767px) {
  body.has-mobile-tabbar { padding-bottom: calc(58px + env(safe-area-inset-bottom)); }
  .mobile-tabbar { display: flex; }
}

/* 极窄屏（≤360px）紧凑布局 */
@media (max-width: 360px) {
  .tabbar-item { font-size: 10px; padding: 6px 2px 4px; gap: 2px; }
  .tabbar-icon svg { width: 20px; height: 20px; }
}

/* 极短屏 / 横屏手机：隐藏文字标签以减少高度 */
@media (max-width: 767px) and (max-height: 480px) {
  .tabbar-item { min-height: 44px; padding: 4px; }
  .tabbar-label { display: none; }
}
