/* ============================================================
   T5tool 官网 — 共享样式
   高级黑主题：近黑底色 + 发丝线描边 + 白色主按钮 + 克制的微光。
   无构建、无外部依赖；四个页面共用这一份。
   ============================================================ */

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
img, svg { display: block; max-width: 100%; }
button, input { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }

/* ---------- Tokens ---------- */
:root {
  color-scheme: dark;

  --bg: #060607;             /* 页面底 */
  --bg-elev: #0b0b0d;        /* 略抬升的分区底 */
  --card: #0e0e11;           /* 卡片底 */
  --card-hover: #131317;

  --line: rgba(255, 255, 255, 0.08);      /* 发丝线 */
  --line-strong: rgba(255, 255, 255, 0.16);

  --text: #ededf0;
  --text-2: #a7a7b0;
  --text-3: #6f6f78;

  --glow: rgba(255, 255, 255, 0.05);

  --radius: 16px;
  --radius-sm: 10px;

  --nav-h: 64px;
  --maxw: 1120px;

  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
}

/* ---------- Base ---------- */
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection { background: rgba(255, 255, 255, 0.85); color: #0a0a0a; }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: #26262c; border-radius: 999px; border: 2px solid var(--bg); }
::-webkit-scrollbar-track { background: transparent; }

:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.6);
  outline-offset: 2px;
  border-radius: 4px;
}

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- 顶部导航 ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--nav-h);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  background: rgba(6, 6, 7, 0.72);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 17px;
  letter-spacing: 0.01em;
}
.nav-brand svg { width: 22px; height: 22px; color: #fff; fill: currentColor; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: 8px;
}
.nav-links a {
  padding: 7px 13px;
  border-radius: 999px;
  font-size: 14px;
  color: var(--text-2);
  transition: color 0.15s ease, background 0.15s ease;
}
.nav-links a:hover { color: var(--text); background: rgba(255, 255, 255, 0.06); }
.nav-links a.active { color: var(--text); background: rgba(255, 255, 255, 0.09); }
.nav-cta { margin-left: auto; display: flex; align-items: center; gap: 10px; }

/* 移动端汉堡 */
.nav-burger {
  display: none;
  margin-left: auto;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: transparent;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}
.nav-burger span {
  display: block;
  width: 16px;
  height: 1.5px;
  background: var(--text);
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-mobile {
  display: none;
  position: absolute;
  top: var(--nav-h);
  left: 0;
  right: 0;
  background: rgba(8, 8, 10, 0.97);
  border-bottom: 1px solid var(--line);
  padding: 10px 24px 18px;
}
.nav-mobile a {
  display: block;
  padding: 12px 4px;
  font-size: 15px;
  color: var(--text-2);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.nav-mobile a.active, .nav-mobile a:hover { color: var(--text); }
.nav.menu-open .nav-mobile { display: block; }
.nav.menu-open .nav-burger span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav.menu-open .nav-burger span:nth-child(2) { opacity: 0; }
.nav.menu-open .nav-burger span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: 999px;
  font-size: 14.5px;
  font-weight: 500;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease,
    border-color 0.15s ease, box-shadow 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: #f4f4f5;
  color: #0a0a0a;
  box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
}
.btn-primary:hover {
  background: #fff;
  box-shadow: 0 4px 24px rgba(255, 255, 255, 0.14);
}
.btn-ghost {
  background: transparent;
  border-color: var(--line-strong);
  color: var(--text);
}
.btn-ghost:hover { border-color: rgba(255, 255, 255, 0.32); background: rgba(255, 255, 255, 0.04); }
.btn-lg { padding: 13px 30px; font-size: 15.5px; }
.btn-sm { padding: 7px 16px; font-size: 13.5px; }
.btn[disabled], .btn.is-disabled {
  cursor: not-allowed;
  opacity: 0.45;
  box-shadow: none;
}
.btn[disabled]:hover, .btn.is-disabled:hover { transform: none; }

/* ---------- 通用分区 ---------- */
.section { padding: 88px 0; }
.section-tight { padding: 64px 0; }
.section-head { max-width: 640px; margin: 0 auto 52px; text-align: center; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 12.5px;
  letter-spacing: 0.08em;
  color: var(--text-2);
  background: rgba(255, 255, 255, 0.03);
}
.eyebrow::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #9a9aa4;
}
h1.hero-title {
  margin: 22px 0 18px;
  font-size: clamp(38px, 6.2vw, 64px);
  line-height: 1.14;
  font-weight: 650;
  letter-spacing: -0.015em;
  background: linear-gradient(180deg, #ffffff 0%, #d8d8de 70%, #b9b9c2 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
h2.section-title {
  font-size: clamp(26px, 3.6vw, 36px);
  font-weight: 640;
  letter-spacing: -0.01em;
  line-height: 1.25;
}
.section-sub { margin-top: 14px; color: var(--text-2); font-size: 16.5px; }
.page-head { padding: 84px 0 8px; text-align: center; }
.page-head .section-sub { max-width: 560px; margin-left: auto; margin-right: auto; }

/* ---------- 首页 Hero ---------- */
.hero {
  position: relative;
  padding: 104px 0 72px;
  text-align: center;
  overflow: hidden;
}
.hero::before {
  /* 顶部微光：让黑不死板 */
  content: "";
  position: absolute;
  inset: -40% -20% auto;
  height: 90%;
  background: radial-gradient(ellipse 55% 45% at 50% 0%, var(--glow), transparent 70%);
  pointer-events: none;
}
.hero .container { position: relative; }
.hero-sub {
  max-width: 620px;
  margin: 0 auto;
  color: var(--text-2);
  font-size: 17.5px;
}
.hero-actions {
  margin-top: 36px;
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}
.hero-note { margin-top: 18px; font-size: 13px; color: var(--text-3); }

/* ---------- 首页：应用窗口示意（纯 CSS） ---------- */
.mock-wrap {
  position: relative;
  margin: 72px auto 0;
  max-width: 880px;
  padding: 0 24px;
}
.mock-wrap::before {
  content: "";
  position: absolute;
  inset: 18% 8% -8%;
  background: radial-gradient(ellipse 60% 55% at 50% 60%, rgba(255, 255, 255, 0.06), transparent 70%);
  pointer-events: none;
}
.mock {
  position: relative;
  display: grid;
  grid-template-columns: 200px 1fr;
  min-height: 380px;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  overflow: hidden;
  background: #0a0a0c;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(0, 0, 0, 0.4);
  text-align: left;
  font-size: 12.5px;
}
.mock-side {
  background: #0d0d10;
  border-right: 1px solid var(--line);
  padding: 14px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.mock-lights { display: flex; gap: 6px; margin: 2px 2px 14px; }
.mock-lights i { width: 10px; height: 10px; border-radius: 50%; background: #2c2c32; }
.mock-side .mock-brand {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--text-2);
  font-weight: 600;
  margin: 0 2px 12px;
}
.mock-side .mock-brand svg { width: 14px; height: 14px; color: #d9d9df; fill: currentColor; }
.mock-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  border-radius: 7px;
  color: var(--text-3);
}
.mock-row.on { background: rgba(255, 255, 255, 0.06); color: var(--text-2); }
.mock-row i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  border: 1px solid #3c3c44;
  flex: none;
}
.mock-row.on i { background: #5b8bd9; border-color: #5b8bd9; }
.mock-main {
  padding: 22px 24px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background:
    radial-gradient(ellipse 70% 40% at 50% 0%, rgba(255, 255, 255, 0.025), transparent 70%),
    #0a0a0c;
}
.mock-bubble {
  align-self: flex-end;
  max-width: 78%;
  padding: 9px 13px;
  border-radius: 12px 12px 3px 12px;
  background: rgba(255, 255, 255, 0.09);
  color: var(--text);
}
.mock-step {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--text-3);
  padding-left: 2px;
}
.mock-step i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #3f8f5f;
  flex: none;
}
.mock-step.run i { background: #c9a24a; }
.mock-step code {
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--text-2);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 1px 6px;
}
.mock-reply {
  align-self: flex-start;
  max-width: 84%;
  padding: 10px 14px;
  border-radius: 12px 12px 12px 3px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.025);
  color: var(--text-2);
}
.mock-input {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  padding: 9px 12px;
  color: var(--text-3);
  background: rgba(255, 255, 255, 0.02);
}
.mock-input b {
  margin-left: auto;
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: #f0f0f2;
  color: #0a0a0a;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
}

/* ---------- 功能网格 ---------- */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.feature-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.025), rgba(255, 255, 255, 0.008));
  padding: 26px 24px 24px;
  transition: border-color 0.2s ease, transform 0.2s ease, background 0.2s ease;
}
.feature-card:hover {
  border-color: var(--line-strong);
  transform: translateY(-2px);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.012));
}
.feature-icon {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.04);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}
.feature-icon svg { width: 19px; height: 19px; color: #d9d9df; }
.feature-card h3 { font-size: 16.5px; font-weight: 600; margin-bottom: 8px; }
.feature-card p { font-size: 14px; color: var(--text-2); line-height: 1.7; }

/* ---------- 三步走 ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  counter-reset: step;
}
.step {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px;
  background: var(--card);
}
.step::before {
  counter-increment: step;
  content: "0" counter(step);
  font-family: var(--mono);
  font-size: 13px;
  color: var(--text-3);
  letter-spacing: 0.1em;
}
.step h3 { margin: 10px 0 6px; font-size: 16px; font-weight: 600; }
.step p { font-size: 14px; color: var(--text-2); }

/* ---------- 尾部 CTA 横幅 ---------- */
.cta-band {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(ellipse 50% 90% at 50% 0%, rgba(255, 255, 255, 0.045), transparent 70%),
    var(--bg-elev);
  text-align: center;
  padding: 84px 0;
}
.cta-band h2 { font-size: clamp(26px, 3.6vw, 38px); font-weight: 650; letter-spacing: -0.01em; }
.cta-band p { margin: 12px auto 30px; color: var(--text-2); max-width: 480px; }

/* ---------- 定价 ---------- */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  align-items: stretch;
}
.price-card {
  position: relative;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  padding: 26px 22px 22px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.price-card:hover { border-color: var(--line-strong); transform: translateY(-2px); }
.price-card.featured {
  border-color: rgba(255, 255, 255, 0.35);
  background:
    radial-gradient(ellipse 80% 40% at 50% 0%, rgba(255, 255, 255, 0.06), transparent 70%),
    var(--card);
}
.price-card .plan-tag {
  position: absolute;
  top: -11px;
  left: 50%;
  transform: translateX(-50%);
  background: #f0f0f2;
  color: #0a0a0a;
  font-size: 11.5px;
  font-weight: 600;
  border-radius: 999px;
  padding: 3px 12px;
  letter-spacing: 0.04em;
}
.plan-name { font-size: 15px; font-weight: 600; color: var(--text-2); letter-spacing: 0.02em; }
.plan-price { margin: 14px 0 4px; display: flex; align-items: baseline; gap: 4px; }
.plan-price b { font-size: 34px; font-weight: 650; letter-spacing: -0.02em; }
.plan-price span { color: var(--text-3); font-size: 13px; }
.plan-desc { font-size: 13px; color: var(--text-3); min-height: 40px; }
.plan-list { margin: 18px 0 22px; display: flex; flex-direction: column; gap: 9px; flex: 1; }
.plan-list li {
  display: flex;
  gap: 9px;
  font-size: 13.5px;
  color: var(--text-2);
  line-height: 1.5;
}
.plan-list li::before {
  content: "";
  flex: none;
  width: 14px;
  height: 14px;
  margin-top: 3px;
  background: currentColor;
  opacity: 0.75;
  -webkit-mask: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16"><path fill="none" stroke="black" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" d="M2.5 8.5l3.5 3.5 7.5-8"/></svg>') center / contain no-repeat;
  mask: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16"><path fill="none" stroke="black" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" d="M2.5 8.5l3.5 3.5 7.5-8"/></svg>') center / contain no-repeat;
}
.price-card .btn { width: 100%; }
.pricing-note {
  margin-top: 22px;
  text-align: center;
  font-size: 13px;
  color: var(--text-3);
}

/* 购买方式 */
.buy-panel {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  padding: 34px;
}
.buy-steps { display: flex; flex-direction: column; gap: 20px; }
.buy-step { display: flex; gap: 16px; }
.buy-step b {
  flex: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-2);
}
.buy-step h3 { font-size: 15.5px; font-weight: 600; margin-bottom: 3px; }
.buy-step p { font-size: 13.5px; color: var(--text-2); }
.buy-qr {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  text-align: center;
}
.buy-qr img { width: 170px; height: 170px; border-radius: 8px; }
.buy-qr p { font-size: 12.5px; color: var(--text-3); }

/* FAQ */
.faq { max-width: 720px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.faq details {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--card);
  padding: 0 20px;
  transition: border-color 0.2s ease;
}
.faq details[open] { border-color: var(--line-strong); }
.faq summary {
  cursor: pointer;
  padding: 16px 0;
  font-size: 15px;
  font-weight: 550;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  color: var(--text-3);
  font-size: 18px;
  font-weight: 400;
  transition: transform 0.2s ease;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .faq-body { padding: 0 0 18px; font-size: 14px; color: var(--text-2); }

/* ---------- 下载页 ---------- */
.dl-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  max-width: 780px;
  margin: 0 auto;
}
.dl-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  padding: 34px 30px 30px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.dl-card:hover { border-color: var(--line-strong); transform: translateY(-2px); }
.dl-card .os-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.04);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}
.dl-card .os-icon svg { width: 26px; height: 26px; color: #e4e4e8; }
.dl-card h3 { font-size: 18px; font-weight: 620; }
.dl-card .dl-meta { margin: 6px 0 20px; font-size: 13px; color: var(--text-3); }
.dl-card .btn { width: 100%; max-width: 240px; }
.dl-card .dl-hint { margin-top: 12px; font-size: 12.5px; color: var(--text-3); }
.version-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  padding: 5px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 12.5px;
  color: var(--text-2);
  font-family: var(--mono);
}
.beta-note {
  max-width: 780px;
  margin: 26px auto 0;
  border: 1px dashed var(--line-strong);
  border-radius: 12px;
  padding: 18px 22px;
  font-size: 14px;
  color: var(--text-2);
  text-align: center;
  background: rgba(255, 255, 255, 0.015);
}
.beta-note a { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
.req-panel {
  max-width: 780px;
  margin: 0 auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  padding: 28px 30px;
}
.req-panel h3 { font-size: 15.5px; font-weight: 600; margin-bottom: 14px; }
.req-panel ul { display: flex; flex-direction: column; gap: 8px; }
.req-panel li { font-size: 14px; color: var(--text-2); display: flex; gap: 10px; }
.req-panel li::before { content: "—"; color: var(--text-3); flex: none; }

/* ---------- 联系页 ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  max-width: 780px;
  margin: 0 auto;
}
.contact-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  padding: 32px 28px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.contact-card:hover { border-color: var(--line-strong); transform: translateY(-2px); }
.contact-card .c-icon {
  width: 46px;
  height: 46px;
  border-radius: 13px;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.04);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.contact-card .c-icon svg { width: 22px; height: 22px; color: #e4e4e8; }
.contact-card h3 { font-size: 16.5px; font-weight: 620; margin-bottom: 6px; }
.contact-card > p { font-size: 13.5px; color: var(--text-2); margin-bottom: 18px; }
.contact-card .email-line {
  font-family: var(--mono);
  font-size: 14.5px;
  color: var(--text);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  border-radius: 9px;
  padding: 9px 14px;
  margin-bottom: 14px;
  word-break: break-all;
}
.contact-card img.qr { width: 176px; height: 176px; border-radius: 10px; margin-bottom: 14px; }
.contact-actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.intent-chips {
  margin: 40px auto 0;
  max-width: 780px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}
.intent-chips span {
  padding: 7px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 13px;
  color: var(--text-2);
  background: rgba(255, 255, 255, 0.02);
}
.reply-note { margin-top: 26px; text-align: center; font-size: 13px; color: var(--text-3); }

/* ---------- 页脚 ---------- */
.footer {
  border-top: 1px solid var(--line);
  background: var(--bg-elev);
  padding: 52px 0 40px;
  margin-top: 0;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}
.footer-brand { max-width: 300px; }
.footer-brand .nav-brand { margin-bottom: 12px; }
.footer-brand p { font-size: 13.5px; color: var(--text-3); }
.footer-col h4 {
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--text-3);
  margin-bottom: 14px;
}
.footer-col ul { display: flex; flex-direction: column; gap: 9px; }
.footer-col a { font-size: 14px; color: var(--text-2); transition: color 0.15s ease; }
.footer-col a:hover { color: var(--text); }
.footer-bottom {
  margin-top: 44px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 12.5px;
  color: var(--text-3);
}

/* ---------- 响应式 ---------- */
@media (max-width: 960px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .pricing-grid { grid-template-columns: repeat(2, 1fr); }
  .buy-panel { grid-template-columns: 1fr; }
  .buy-qr { padding: 26px; }
}
@media (max-width: 720px) {
  .section { padding: 64px 0; }
  .hero { padding: 76px 0 56px; }
  .nav-links, .nav-cta { display: none; }
  .nav-burger { display: flex; }
  .grid-3, .steps, .dl-grid, .contact-grid { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; max-width: 420px; margin: 0 auto; }
  .mock { grid-template-columns: 1fr; min-height: 0; }
  .mock-side { display: none; }
  .footer-inner { flex-direction: column; gap: 28px; }
}

/* ---------- 支付与登录（pricing / pay-result 共用；脚本在 assets/js/pay.js） ---------- */
.pay-mask {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(0, 0, 0, 0.62);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  display: grid; place-items: center; padding: 20px;
}
.pay-dialog {
  width: 100%; max-width: 380px;
  background: var(--card);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.6);
}
.pay-dialog h3 { font-size: 18px; margin-bottom: 4px; }
.pay-dialog .pay-sub { color: var(--text-3); font-size: 13px; margin-bottom: 20px; }
.pay-field { margin-bottom: 14px; }
.pay-field label { display: block; font-size: 12.5px; color: var(--text-2); margin-bottom: 6px; }
.pay-input-row { display: flex; gap: 8px; }
.pay-input {
  width: 100%;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  font-size: 15px;
  color: var(--text);
  outline: none;
}
.pay-input:focus { border-color: rgba(255, 255, 255, 0.35); }
.pay-input::placeholder { color: var(--text-3); }
.pay-err { color: #f0a3a3; font-size: 13px; min-height: 18px; margin: 4px 0 10px; }
.pay-actions { display: flex; gap: 10px; margin-top: 6px; }
.pay-actions .btn { flex: 1; }
.pay-close {
  float: right; border: 0; background: none; cursor: pointer;
  color: var(--text-3); font-size: 18px; line-height: 1; padding: 2px 4px;
}
.pay-close:hover { color: var(--text); }
.pay-code-btn { white-space: nowrap; }
.pay-agree { font-size: 12px; color: var(--text-3); margin-top: 14px; }

/* 支付结果页 */
.pay-result {
  max-width: 460px; margin: 0 auto; text-align: center;
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 44px 36px;
}
.pay-result .pr-icon { font-size: 40px; line-height: 1; margin-bottom: 14px; }
.pay-result h1 { font-size: 24px; margin-bottom: 8px; }
.pay-result p { color: var(--text-2); font-size: 14.5px; }
.pay-result .pr-detail { color: var(--text-3); font-size: 13px; margin-top: 8px; }
.pay-result .pr-actions { display: flex; gap: 10px; justify-content: center; margin-top: 26px; flex-wrap: wrap; }
.pay-spin {
  width: 28px; height: 28px; margin: 0 auto 16px;
  border: 3px solid var(--line-strong); border-top-color: var(--text);
  border-radius: 50%;
  animation: pay-rotate 0.9s linear infinite;
}
@keyframes pay-rotate { to { transform: rotate(360deg); } }

/* 定价卡上由脚本补充的额度行 */
.plan-quota-note { color: var(--text-3); font-size: 12.5px; margin-top: 10px; }

/* ---------- 账户页（account.html，内容由 assets/js/account.js 渲染） ---------- */
.acc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  max-width: 880px;
  margin: 0 auto;
}
.acc-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  padding: 26px 26px 24px;
}
.acc-span { grid-column: 1 / -1; }
.acc-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}
.acc-card-head h3 { font-size: 16px; font-weight: 620; }
.acc-rows { display: flex; flex-direction: column; }
.acc-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 14px;
}
.acc-row:last-child { border-bottom: 0; }
.acc-row span { color: var(--text-3); flex: none; }
.acc-row b { font-weight: 550; text-align: right; word-break: break-all; }
.acc-hint {
  font-size: 12.5px;
  color: var(--text-3);
  border: 1px dashed var(--line-strong);
  border-radius: 8px;
  padding: 8px 12px;
  margin-bottom: 12px;
}
.acc-msg { color: var(--text-2); font-size: 13.5px; margin-bottom: 14px; }
.acc-actions { display: flex; gap: 10px; margin-top: 14px; flex-wrap: wrap; }
.acc-edit-form { margin-top: 4px; }
.tier-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.03em;
  border: 1px solid var(--line-strong);
  color: var(--text-2);
}
.tier-badge.paid { background: #f0f0f2; color: #0a0a0a; border-color: transparent; }
.model-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.model-pills span {
  padding: 5px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 13px;
  color: var(--text-2);
  background: rgba(255, 255, 255, 0.02);
}
.acc-center { text-align: center; margin-top: 26px; }
.acc-login-card {
  max-width: 420px;
  margin: 0 auto;
  text-align: center;
  padding: 40px 32px 34px;
}
.acc-login-card h3 { font-size: 19px; margin-bottom: 10px; }
.acc-login-card .acc-msg { margin-bottom: 22px; }
@media (max-width: 720px) {
  .acc-grid { grid-template-columns: 1fr; }
}

/* 在线支付开关（assets/js/config.js 的 payEnabled）：pay.js 打开时给 <html> 标 data-pay="open"，
   否则（含脚本没跑）一律按关闭态展示——默认关闭，脚本失败也不会露出点了没用的购买入口 */
html[data-pay="open"] [data-pay-closed] { display: none; }
html:not([data-pay="open"]) [data-pay-open] { display: none; }
