/* =============================================================================
   RCS Portal — Resend Dark
   #000 背景,白字,深灰卡片,1px 暗边框,所有 hover 都保留
   ========================================================================== */

:root {
  /* 深色调:Resend 自家用的 dark brand palette */
  --bg:          #000;
  --bg-soft:     #0a0a0a;
  --surface:     #0f0f0f;       /* 卡片底色 */
  --surface-2:   #161616;       /* 嵌套底色 / hover */
  --surface-3:   #1f1f1f;       /* 更深嵌套 */
  --surface-elev: #1a1a1a;      /* nav blur 后的色 */

  --border:      #1f1f1f;       /* 默认 hairline */
  --border-2:    #2a2a2a;       /* hover 边框 */
  --border-3:    #3f3f3f;       /* focus / active 边框 */

  --text:        #fafafa;       /* 主白文字 */
  --text-2:      #a3a3a3;       /* 副文字 */
  --text-3:      #737373;       /* muted */
  --text-4:      #525252;       /* 最弱 */
  --text-link:   #e5e5e5;

  /* 唯一品牌强调色:琥珀 */
  --accent:        #f5a524;
  --accent-bright: #fbbf24;
  --accent-soft:   rgba(245, 165, 36, 0.12);
  --accent-glow:   rgba(245, 165, 36, 0.18);

  /* 功能色(克制使用,只在必要的状态提示) */
  --ok:        #22c55e;
  --ok-soft:   rgba(34, 197, 94, 0.12);
  --warn:      #f59e0b;
  --warn-soft: rgba(245, 158, 11, 0.12);
  --danger:    #ef4444;
  --danger-soft: rgba(239, 68, 68, 0.12);

  /* 圆角 */
  --r-xs: 4px;
  --r-sm: 6px;
  --r:    10px;
  --r-lg: 14px;
  --r-xl: 18px;
  --r-pill: 999px;

  /* 阴影(深色下很微妙) */
  --sh:    0 1px 3px rgba(0,0,0,.6), 0 0 0 1px rgba(255,255,255,.04);
  --sh-lg: 0 24px 48px rgba(0,0,0,.5);

  /* 排版 */
  --font: "Inter", -apple-system, BlinkMacSystemFont, "PingFang SC",
          "Microsoft YaHei", "Hiragino Sans GB", "Helvetica Neue",
          Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  /* 容器宽度 */
  --max-w-narrow: 440px;
  --max-w:        920px;
  --max-w-wide:   1180px;

  /* 过渡 */
  --t-fast: .15s ease;
  --t:      .2s ease;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.55;
  font-feature-settings: "cv11", "ss01";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
}

body {
  /* hero 上方那一抹琥珀色光晕,所有页面都有,非常 subtle */
  background:
    radial-gradient(ellipse 1200px 600px at 50% -200px,
      var(--accent-glow) 0%,
      transparent 50%),
    var(--bg);
  background-attachment: fixed;
}

a {
  color: var(--text-link);
  text-decoration: none;
  transition: color var(--t-fast);
}
a:hover { color: var(--text); }

button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; border: none; background: none; }
img, svg { max-width: 100%; vertical-align: middle; }

::-webkit-scrollbar { width: 12px; height: 12px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb {
  background: var(--surface-3);
  border-radius: 99px;
  border: 3px solid var(--bg);
}
::-webkit-scrollbar-thumb:hover { background: var(--border-3); }
::selection { background: var(--accent); color: #000; }


/* ===== 顶部导航 ==========================================================
   Resend 同款:近黑半透明 + backdrop blur,链接 hover 颜色变白
   ====================================================================== */

.nav-bar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid var(--border);
}
.nav {
  display: flex; align-items: center; gap: 24px;
  padding: 14px 32px;
  max-width: var(--max-w-wide); margin: 0 auto;
}
.nav .brand {
  display: flex; align-items: center; gap: 9px;
  font-weight: 600; font-size: 15.5px;
  letter-spacing: -.015em; color: var(--text);
  transition: opacity var(--t-fast);
}
.nav .brand:hover { opacity: .8; }
.nav .brand .mark {
  width: 26px; height: 26px; border-radius: var(--r-sm);
  background: var(--text);
  display: grid; place-items: center;
}
.nav .brand .mark svg { width: 14px; height: 14px; }
.nav .links { display: flex; gap: 0; flex: 1; margin-left: 8px; }
.nav .links a {
  padding: 7px 12px; border-radius: var(--r-sm);
  font-size: 13.5px; color: var(--text-3); font-weight: 500;
  transition: color var(--t-fast), background var(--t-fast);
}
/* hover 时不是变白,而是变浅灰 — 区分于当前页(.on 才是白色) */
.nav .links a:hover { color: var(--text-2); background: var(--surface-2); }
.nav .links a.on { color: var(--text); }
.nav .actions { display: flex; gap: 8px; align-items: center; }

/* 语言切换器(放 nav 右侧) */
.lang-switch {
  position: relative;
  display: inline-block;
}
.lang-switch-btn {
  display: inline-flex; align-items: center; gap: 6px;
  height: 32px; padding: 0 10px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  color: var(--text-3); font-size: 12.5px; font-weight: 500;
  transition: all var(--t-fast);
}
.lang-switch-btn:hover {
  color: var(--text-2);
  border-color: var(--border-2);
  background: var(--surface-2);
}
.lang-switch-btn svg { width: 12px; height: 12px; opacity: .6; }
.lang-menu {
  position: absolute; right: 0; top: calc(100% + 6px);
  background: var(--surface);
  border: 1px solid var(--border-2);
  border-radius: var(--r);
  padding: 4px;
  min-width: 140px;
  box-shadow: var(--sh-lg);
  display: none;
  z-index: 100;
}
.lang-menu.open { display: block; }
.lang-menu a {
  display: block;
  padding: 7px 12px;
  border-radius: var(--r-xs);
  font-size: 13px;
  color: var(--text-2);
  transition: background var(--t-fast), color var(--t-fast);
}
.lang-menu a:hover { background: var(--surface-2); color: var(--text); }
.lang-menu a.on { color: var(--text); background: var(--surface-2); }
.lang-menu a.on::before { content: "✓"; margin-right: 6px; color: var(--accent); }


/* ===== 按钮 ==============================================================
   Resend 主按钮:白底黑字(深色背景下最强对比);次按钮:透明 + 1px 边
   全部带 hover 过渡
   ====================================================================== */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 38px; padding: 0 16px;
  border-radius: var(--r-sm);
  font-weight: 500; font-size: 14px;
  letter-spacing: -.005em;
  white-space: nowrap;
  border: 1px solid transparent;
  transition: background var(--t-fast), border-color var(--t-fast),
              color var(--t-fast), transform var(--t-fast),
              box-shadow var(--t-fast), opacity var(--t-fast);
  position: relative;
}
.btn:active { transform: scale(.98); }
.btn[disabled] { opacity: .4; pointer-events: none; }
.btn.block { width: 100%; }
.btn.sm { height: 32px; padding: 0 12px; font-size: 13px; }
.btn.lg { height: 44px; padding: 0 22px; font-size: 14.5px; font-weight: 600; }

/* 主按钮:白底黑字,hover 时轻微减亮 */
.btn-primary {
  background: var(--text);
  color: #000;
  box-shadow: 0 1px 0 rgba(255,255,255,.1) inset;
}
.btn-primary:hover {
  background: #fff;
  box-shadow: 0 0 0 4px rgba(255,255,255,.06);
}

/* 次按钮:透明 + 1px 浅描边,hover 时背景变深、描边变亮 */
.btn-outline {
  background: transparent;
  color: var(--text);
  border-color: var(--border-2);
}
.btn-outline:hover {
  background: var(--surface-2);
  border-color: var(--border-3);
}

/* 软按钮:深底无边 */
.btn-soft {
  background: var(--surface-2);
  color: var(--text);
}
.btn-soft:hover { background: var(--surface-3); }

/* 幽灵按钮:纯文字链接样 */
.btn-ghost {
  color: var(--text-3); height: auto; padding: 4px 2px;
  font-size: 13.5px;
}
.btn-ghost:hover { color: var(--text); }

/* 强调按钮:琥珀色(只用在罕见高优先级 CTA) */
.btn-accent {
  background: var(--accent); color: #1a1100;
  font-weight: 600;
}
.btn-accent:hover {
  background: var(--accent-bright);
  box-shadow: 0 0 0 4px var(--accent-soft);
}


/* ===== 布局 ============================================================ */

.container { max-width: var(--max-w); margin: 0 auto; padding: 0 32px; }
.container.narrow { max-width: var(--max-w-narrow); }
.container.wide   { max-width: var(--max-w-wide); }
.page { padding: 56px 0 100px; }
.section { padding: 96px 0; }


/* ===== 卡片 ==============================================================
   深色,1px 暗描边,hover 时描边变亮(关键交互细节)
   ====================================================================== */

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 32px;
  margin-bottom: 20px;
  transition: border-color var(--t-fast), background var(--t-fast);
}
.card.hover-lift {
  cursor: pointer;
}
.card.hover-lift:hover {
  border-color: var(--border-2);
  background: var(--surface);
}
.card.flush { padding: 0; overflow: hidden; }
.card.tight { padding: 20px 24px; }

.card h1 {
  font-size: 30px; font-weight: 600;
  letter-spacing: -.028em; line-height: 1.15;
  margin-bottom: 8px;
  color: var(--text);
}
.card h2 {
  font-size: 18px; font-weight: 600;
  letter-spacing: -.015em;
  margin-bottom: 8px;
  color: var(--text);
}
.card .sub {
  font-size: 14px; color: var(--text-3);
  margin-bottom: 28px; line-height: 1.55;
}


/* ===== 表单 ============================================================ */

.field { margin-bottom: 18px; }
.field label {
  display: block; font-size: 13px; font-weight: 500;
  color: var(--text); margin-bottom: 6px;
  letter-spacing: -.005em;
}
.field .hint {
  font-size: 12px; color: var(--text-3);
  margin-top: 6px; line-height: 1.5;
}

.input, .select, .textarea {
  width: 100%;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  padding: 9px 12px; font-size: 14px;
  color: var(--text);
  transition: border-color var(--t-fast), background var(--t-fast),
              box-shadow var(--t-fast);
}
.input:hover, .select:hover, .textarea:hover {
  border-color: var(--border-2);
  background: var(--surface-3);
}
.input:focus, .select:focus, .textarea:focus {
  outline: none;
  border-color: var(--border-3);
  background: var(--surface-2);
  box-shadow: 0 0 0 3px rgba(255,255,255,.04);
}
.input::placeholder { color: var(--text-4); }
.textarea {
  resize: vertical; min-height: 96px;
  font-family: var(--mono); font-size: 13px; line-height: 1.55;
}


/* ===== 提示框 ============================================================ */

.alert {
  padding: 14px 16px;
  border-radius: var(--r);
  font-size: 13.5px; line-height: 1.6;
  margin-bottom: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-2);
}
.alert strong { font-weight: 600; color: var(--text); }
.alert-danger {
  background: var(--danger-soft);
  border-color: rgba(239, 68, 68, 0.25);
  color: #fca5a5;
}
.alert-danger strong { color: #fee2e2; }
.alert-warn {
  background: var(--warn-soft);
  border-color: rgba(245, 158, 11, 0.25);
  color: #fcd34d;
}
.alert-warn strong { color: #fef3c7; }
.alert-ok {
  background: var(--ok-soft);
  border-color: rgba(34, 197, 94, 0.25);
  color: #86efac;
}


/* ===== Pill 徽章 ========================================================= */

.pill {
  display: inline-flex; align-items: center; gap: 5px;
  height: 22px; padding: 0 9px; border-radius: var(--r-pill);
  font-size: 11.5px; font-weight: 500;
  background: var(--surface-2); color: var(--text-2);
  border: 1px solid var(--border);
}
.pill .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.pill-ok {
  background: var(--ok-soft); color: #86efac;
  border-color: rgba(34, 197, 94, 0.25);
}
.pill-warn {
  background: var(--warn-soft); color: #fcd34d;
  border-color: rgba(245, 158, 11, 0.25);
}
.pill-danger {
  background: var(--danger-soft); color: #fca5a5;
  border-color: rgba(239, 68, 68, 0.25);
}
.pill-mute {
  background: var(--surface-2); color: var(--text-3);
  border-color: var(--border);
}
.pill-accent {
  background: var(--accent-soft); color: var(--accent-bright);
  border-color: rgba(245, 165, 36, 0.25);
}
.pill-dark {
  background: var(--text); color: #000;
  border-color: var(--text);
}


/* ===== Hero(Resend 标志性元素) =========================================
   超大白字,中央对齐,下方双 CTA。背景渐变光晕已经在 body 上做了。
   ====================================================================== */

.hero {
  text-align: center;
  padding: 120px 32px 80px;
  position: relative;
}
.hero h1 {
  font-size: 72px; font-weight: 600;
  letter-spacing: -.045em; line-height: 1.0;
  margin-bottom: 24px;
  color: var(--text);
}
.hero h1 .text-accent {
  /* Resend 风格的强调:不用 gradient,直接用 brand color */
  color: var(--accent);
}
.hero .lede {
  font-size: 18px; color: var(--text-2);
  max-width: 580px; margin: 0 auto 36px;
  line-height: 1.55;
}
.hero .cta { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }

@media (max-width: 800px) { .hero h1 { font-size: 52px; } }
@media (max-width: 480px) { .hero { padding: 64px 24px 56px; } .hero h1 { font-size: 40px; } }

/* hero 顶部的小 pill(eyebrow) */
.eyebrow {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  font-size: 12px; color: var(--text-2);
  margin-bottom: 28px;
  transition: border-color var(--t-fast), background var(--t-fast);
}
.eyebrow:hover {
  border-color: var(--border-2);
  background: var(--surface-2);
}
.eyebrow .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
}


/* ===== Feature grid(三列,带 hover) ==================================== */

.feature-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 0;
  margin-top: 80px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
@media (max-width: 800px) { .feature-grid { grid-template-columns: 1fr; } }
.feature {
  padding: 36px;
  border-right: 1px solid var(--border);
  transition: background var(--t-fast);
}
.feature:hover { background: var(--bg-soft); }
.feature:last-child { border-right: none; }
@media (max-width: 800px) {
  .feature { border-right: none; border-bottom: 1px solid var(--border); }
  .feature:last-child { border-bottom: none; }
}
.feature .ico {
  width: 32px; height: 32px;
  color: var(--text);
  margin-bottom: 18px;
  transition: color var(--t-fast);
}
.feature:hover .ico { color: var(--accent); }
.feature .ico svg { width: 32px; height: 32px; stroke-width: 1.5; }
.feature h3 {
  font-size: 15px; font-weight: 600;
  letter-spacing: -.01em; margin-bottom: 8px;
  color: var(--text);
}
.feature p {
  font-size: 13.5px; color: var(--text-3);
  line-height: 1.6;
}


/* ===== 档位卡片(深色,hover 描边变亮,featured 用琥珀色) ============== */

.plan-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px;
  margin: 32px 0;
}
@media (max-width: 980px) { .plan-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .plan-grid { grid-template-columns: 1fr; } }

.plan {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 28px;
  display: flex; flex-direction: column;
  transition: border-color var(--t-fast), background var(--t-fast),
              transform var(--t-fast);
}
.plan:hover {
  border-color: var(--border-2);
  transform: translateY(-2px);
}
.plan.featured {
  border-color: var(--accent);
  background: linear-gradient(180deg, var(--surface) 0%, var(--bg-soft) 100%);
  position: relative;
}
.plan.featured:hover {
  border-color: var(--accent-bright);
}
.plan.featured::before {
  content: "推荐";
  position: absolute; top: -10px; left: 28px;
  background: var(--accent); color: #1a1100;
  padding: 4px 11px; border-radius: var(--r-pill);
  font-size: 10.5px; font-weight: 700; letter-spacing: .04em;
}

.plan .pname {
  font-size: 11.5px; font-weight: 600;
  color: var(--text-2);
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.plan .pdesc {
  font-size: 13px; color: var(--text-3);
  margin: 12px 0 22px;
  line-height: 1.55;
  min-height: 42px;
}
.plan .pprice {
  font-size: 36px; font-weight: 600;
  letter-spacing: -.028em;
  color: var(--text);
  margin-bottom: 2px;
  line-height: 1;
}
.plan .pprice .u {
  font-size: 14px; color: var(--text-3);
  font-weight: 500; letter-spacing: 0;
}
.plan .pcycle {
  font-size: 12.5px; color: var(--text-3);
  margin: 8px 0 24px;
  min-height: 18px;
}
.plan .pcycle .save {
  background: var(--accent-soft); color: var(--accent-bright);
  padding: 2px 7px; border-radius: var(--r-pill);
  font-size: 10.5px; font-weight: 600;
  margin-left: 4px;
  border: 1px solid rgba(245, 165, 36, 0.2);
}
.plan ul {
  list-style: none; flex: 1; margin-bottom: 22px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}
.plan li {
  display: flex; gap: 9px;
  font-size: 13.5px; padding: 6px 0;
  color: var(--text-2);
}
.plan li svg {
  width: 14px; height: 14px;
  color: var(--accent);
  flex: none; margin-top: 4px;
}


/* ===== KV 详情 =========================================================== */

.kv {
  display: flex; justify-content: space-between; align-items: baseline;
  gap: 12px; padding: 13px 0;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}
.kv:last-child { border-bottom: none; }
.kv .k { color: var(--text-3); font-weight: 400; font-size: 13px; }
.kv .v { font-weight: 500; text-align: right; color: var(--text); }
.kv .v.mono { font-family: var(--mono); font-size: 12.5px; }


/* ===== 支付页 =========================================================== */

.qr-box {
  background: #fff;
  padding: 12px;
  border-radius: var(--r-lg);
  display: inline-block;
}
.qr-box img { display: block; width: 220px; height: 220px; }

.addr-row {
  display: flex; align-items: stretch; gap: 8px; margin-top: 10px;
}
.addr-row .addr {
  flex: 1; background: var(--surface-2);
  border: 1px solid var(--border);
  padding: 11px 14px;
  border-radius: var(--r-sm);
  font-family: var(--mono); font-size: 12.5px;
  word-break: break-all;
  color: var(--text);
  transition: border-color var(--t-fast);
}
.addr-row .addr:hover { border-color: var(--border-2); }
.copy-btn {
  background: var(--surface-2); padding: 0 16px;
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  font-size: 13px; font-weight: 500; color: var(--text);
  transition: all var(--t-fast);
}
.copy-btn:hover {
  background: var(--surface-3);
  border-color: var(--border-2);
}
.copy-btn.ok {
  background: var(--ok-soft); color: #86efac;
  border-color: rgba(34, 197, 94, 0.3);
}

.steps {
  display: flex; gap: 8px; margin: 22px 0 0;
  list-style: none;
}
.step {
  flex: 1; background: var(--surface);
  padding: 10px 12px; border-radius: var(--r-sm);
  font-size: 12.5px; color: var(--text-3);
  border: 1px solid var(--border);
  transition: all var(--t-fast);
}
.step.done {
  background: var(--ok-soft); color: #86efac;
  border-color: rgba(34, 197, 94, 0.25);
}
.step.active {
  background: var(--text); color: #000;
  border-color: var(--text);
}
.step .num { font-weight: 600; margin-right: 5px; }

.timer {
  font-family: var(--mono); font-size: 16px;
  color: var(--text); font-weight: 600;
  letter-spacing: -.01em;
}
.timer.warn { color: var(--accent-bright); }
.timer.danger { color: #fca5a5; }

/* 支付页"重要提示"清晰排版 — 分三行,标签+内容左右分明 */
.notice-block {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 0;
  margin-top: 20px;
  overflow: hidden;
}
.notice-row {
  display: grid;
  grid-template-columns: 100px 1fr;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  align-items: baseline;
  gap: 16px;
}
.notice-row:last-child { border-bottom: none; }
.notice-label {
  font-size: 11.5px; font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--text-3);
}
.notice-body {
  font-size: 13.5px; line-height: 1.6;
  color: var(--text-2);
}
.notice-body strong { font-weight: 600; color: var(--text); }
.notice-body code {
  font-family: var(--mono);
  background: var(--surface-2);
  padding: 1px 6px;
  border-radius: var(--r-xs);
  font-size: 12.5px;
  border: 1px solid var(--border);
  color: var(--accent-bright);
}


/* ===== 状态图标圆框 ====================================================== */

.state-icon {
  width: 64px; height: 64px; margin: 0 auto 20px;
  border-radius: var(--r-lg);
  display: grid; place-items: center;
  background: var(--surface);
  border: 1px solid var(--border);
}
.state-icon svg { width: 30px; height: 30px; stroke-width: 1.5; }
.state-icon.lg { width: 80px; height: 80px; }
.state-icon.lg svg { width: 40px; height: 40px; }

.state-icon.state-ok {
  background: var(--ok-soft); color: #4ade80;
  border-color: rgba(34, 197, 94, 0.25);
}
.state-icon.state-warn {
  background: var(--warn-soft); color: var(--accent-bright);
  border-color: rgba(245, 158, 11, 0.25);
}
.state-icon.state-danger {
  background: var(--danger-soft); color: #fca5a5;
  border-color: rgba(239, 68, 68, 0.25);
}
.state-icon.state-info {
  background: var(--surface-2); color: var(--text);
  border-color: var(--border-2);
}
.state-icon.state-dark {
  background: var(--text); color: #000;
  border-color: var(--text);
}
.state-icon.state-accent {
  background: var(--accent-soft); color: var(--accent-bright);
  border-color: rgba(245, 165, 36, 0.3);
  box-shadow: 0 0 24px var(--accent-glow);
}


/* ===== 空状态 ============================================================ */

.empty {
  text-align: center; padding: 60px 24px; color: var(--text-3);
}
.empty .e-title {
  font-size: 17px; font-weight: 600;
  letter-spacing: -.01em;
  color: var(--text); margin-bottom: 8px;
}
.empty .e-sub {
  font-size: 13.5px; line-height: 1.55;
  max-width: 380px; margin: 0 auto;
}
.empty .e-cta { margin-top: 24px; }


/* ===== 下载页平台图标 ==================================================== */

.dl-icon {
  width: 48px; height: 48px;
  margin: 0 0 18px;
  display: flex; align-items: center;
  color: var(--text);
  transition: color var(--t-fast);
}
.plan:hover .dl-icon { color: var(--accent); }
.dl-icon svg { width: 40px; height: 40px; stroke-width: 1.4; }


/* ===== 验证码 ============================================================ */

.captcha-row {
  display: flex; gap: 10px; align-items: flex-end;
}
.captcha-row .captcha-input-wrap { flex: 1; }
.captcha-row .captcha-img-box {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  padding: 3px;
  cursor: pointer;
  transition: border-color var(--t-fast), background var(--t-fast);
}
.captcha-row .captcha-img-box:hover {
  border-color: var(--border-2);
  background: var(--surface-3);
}
.captcha-row .captcha-img-box img {
  display: block; height: 38px;
  border-radius: var(--r-xs);
}


/* ===== 链选择 ============================================================ */

.chain-radio { display: flex; gap: 8px; margin-top: 6px; }
.chain-radio label {
  flex: 1; padding: 13px 15px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  cursor: pointer;
  transition: all var(--t-fast);
  display: flex; align-items: center; gap: 10px;
}
.chain-radio label:hover {
  border-color: var(--border-2);
  background: var(--surface-2);
}
.chain-radio label:has(input:checked) {
  border-color: var(--accent);
  background: var(--accent-soft);
}
.chain-radio input { accent-color: var(--accent); }
.chain-radio .chain-name { font-weight: 600; font-size: 14px; color: var(--text); }
.chain-radio .chain-meta {
  font-size: 12px; color: var(--text-3); margin-top: 2px;
}


/* ===== Seg cycle 切换 ==================================================== */

.seg {
  display: inline-flex;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  padding: 3px;
}
.seg button {
  padding: 7px 16px; border-radius: var(--r-xs);
  font-size: 13px; font-weight: 500;
  color: var(--text-3);
  transition: all var(--t-fast);
}
.seg button:hover { color: var(--text); }
.seg button.on {
  background: var(--surface-3);
  color: var(--text);
  font-weight: 600;
}
.seg button .save {
  background: var(--accent-soft); color: var(--accent-bright);
  padding: 1px 6px; border-radius: var(--r-pill);
  font-size: 10px; margin-left: 5px;
  font-weight: 600;
  border: 1px solid rgba(245, 165, 36, 0.2);
}


/* ===== 策略选择 ========================================================== */

.strat-picker {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px;
  margin-top: 6px;
}
@media (max-width: 560px) { .strat-picker { grid-template-columns: 1fr; } }

.strat-opt {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 12px 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  cursor: pointer;
  transition: all var(--t-fast);
}
.strat-opt:hover {
  border-color: var(--border-2);
  background: var(--surface-2);
}
.strat-opt input { margin-top: 2px; accent-color: var(--accent); }
.strat-opt:has(input:checked) {
  border-color: var(--accent);
  background: var(--accent-soft);
}
.strat-opt.disabled {
  opacity: .3;
  cursor: not-allowed;
  pointer-events: none;
}
.strat-info { flex: 1; }
.strat-info .name { font-size: 13.5px; font-weight: 500; color: var(--text); }
.strat-info .tag {
  font-size: 11.5px; color: var(--text-3); margin-top: 2px;
}


/* ===== 通用 utility ====================================================== */

.row { display: flex; align-items: center; gap: 12px; }
.row.wrap { flex-wrap: wrap; }
.row.between { justify-content: space-between; }
.spacer-sm { height: 8px; } .spacer { height: 18px; } .spacer-lg { height: 32px; }
.muted { color: var(--text-3); }
.center { text-align: center; }
.mono { font-family: var(--mono); font-size: 13px; }
.text-sm { font-size: 13px; }
.text-xs { font-size: 12px; }
.text-accent { color: var(--accent); }
.text-accent-bright { color: var(--accent-bright); }

.code-out {
  background: var(--surface-2);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  padding: 12px 14px;
  font-family: var(--mono); font-size: 12.5px;
  line-height: 1.6;
  word-break: break-all;
  max-height: 240px; overflow: auto;
}

/* dashboard 订单行 hover 效果(继续支付场景关键)*/
.order-row {
  display: flex; padding: 16px 24px;
  border-bottom: 1px solid var(--border);
  justify-content: space-between;
  align-items: center;
  text-decoration: none;
  color: var(--text);
  transition: background var(--t-fast);
}
.order-row:last-child { border-bottom: none; }
.order-row.clickable { cursor: pointer; }
.order-row.clickable:hover { background: var(--surface-2); }
.order-row.disabled { opacity: .55; }


/* ===== 页脚 =============================================================== */

footer {
  border-top: 1px solid var(--border);
  padding: 56px 32px;
  color: var(--text-4);
  font-size: 13px;
  text-align: center;
  margin-top: 80px;
}
footer .row { justify-content: center; gap: 20px; flex-wrap: wrap; }
footer a {
  color: var(--text-3);
  transition: color var(--t-fast);
}
footer a:hover { color: var(--text); }


/* ===== Dialog =========================================================== */

dialog {
  border: 1px solid var(--border-2);
  border-radius: var(--r-lg);
  padding: 0;
  max-width: 480px;
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--sh-lg);
}
dialog::backdrop { background: rgba(0,0,0,.7); backdrop-filter: blur(4px); }


/* ===== 加载 spinner ====================================================== */

.spinner {
  display: inline-block;
  width: 14px; height: 14px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,.15);
  border-top-color: var(--text);
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }


/* =============================================================================
   Resend 风落地页扩展样式
   ========================================================================== */

/* ===== 新的 hero 布局:左标题 + 右沙漏 ================================== */

.hero-split {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 48px;
  align-items: center;
  padding: 100px 0 80px;
  max-width: var(--max-w-wide);
  margin: 0 auto;
}
@media (max-width: 880px) {
  .hero-split { grid-template-columns: 1fr; padding: 64px 0 48px; gap: 32px; }
}

.hero-left { text-align: left; padding: 0 32px; }
.hero-left .eyebrow { margin-bottom: 24px; }
.hero-left h1 {
  font-size: 64px; font-weight: 600;
  letter-spacing: -.045em; line-height: 1.0;
  margin-bottom: 24px;
  color: var(--text);
}
.hero-left h1 .text-accent { color: var(--accent); }
.hero-left .lede {
  font-size: 17px; color: var(--text-2);
  line-height: 1.65;
  margin: 0 0 32px;
  max-width: 540px;
}
.hero-left .cta { display: flex; gap: 10px; flex-wrap: wrap; }

@media (max-width: 880px) {
  .hero-left h1 { font-size: 48px; }
  .hero-left .lede { font-size: 15.5px; }
}
@media (max-width: 480px) {
  .hero-left h1 { font-size: 38px; }
}

/* 右侧沙漏容器 */
.hero-right {
  position: relative;
  height: 480px;
  display: flex; align-items: center; justify-content: center;
  padding: 0 32px;
}
.hero-right canvas {
  width: 100%; height: 100%;
  cursor: grab;
  touch-action: none;
}
.hero-right canvas:active { cursor: grabbing; }
.hero-right .hourglass-hint {
  position: absolute; bottom: 18px; left: 50%;
  transform: translateX(-50%);
  font-size: 11.5px;
  color: var(--text-4);
  letter-spacing: .03em;
  pointer-events: none;
}
@media (max-width: 880px) {
  .hero-right { height: 360px; }
}


/* ===== Section 通用 ===================================================== */

.section-wrap {
  padding: 100px 32px;
  border-top: 1px solid var(--border);
}
.section-wrap .container { padding: 0; }
.section-eyebrow {
  display: inline-flex; align-items: center;
  font-size: 12px; font-weight: 500;
  color: var(--accent); letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.section-title {
  font-size: 42px; font-weight: 600;
  letter-spacing: -.035em;
  line-height: 1.1;
  margin-bottom: 18px;
  color: var(--text);
  max-width: 720px;
}
.section-lead {
  font-size: 17px; color: var(--text-2);
  line-height: 1.65;
  max-width: 640px;
  margin-bottom: 56px;
}

@media (max-width: 640px) {
  .section-wrap { padding: 64px 24px; }
  .section-title { font-size: 30px; }
  .section-lead { font-size: 15px; margin-bottom: 36px; }
}


/* ===== How it works:四步纵向 ============================================ */

.steps-vert {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
}
@media (max-width: 640px) { .steps-vert { grid-template-columns: 1fr; } }
.steps-vert .step-card {
  background: var(--surface);
  padding: 32px;
  transition: background var(--t-fast);
}
.steps-vert .step-card:hover { background: var(--bg-soft); }
.steps-vert .step-num {
  font-size: 12px; color: var(--accent); font-weight: 600;
  letter-spacing: .08em;
  margin-bottom: 12px;
}
.steps-vert .step-title {
  font-size: 17px; font-weight: 600;
  letter-spacing: -.015em;
  color: var(--text); margin-bottom: 8px;
}
.steps-vert .step-body {
  font-size: 14px; color: var(--text-3); line-height: 1.65;
}


/* ===== Why us:长文 + 占位图 ============================================ */

.why-content {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 64px;
  align-items: start;
}
@media (max-width: 880px) { .why-content { grid-template-columns: 1fr; gap: 32px; } }
.why-text p {
  font-size: 15.5px;
  color: var(--text-2);
  line-height: 1.75;
  margin-bottom: 20px;
}
.why-text p strong { color: var(--text); font-weight: 600; }

/* 占位图(写"占位图 - 待替换",上传后改 src) */
.placeholder-img {
  background: var(--surface);
  border: 1px dashed var(--border-2);
  border-radius: var(--r-lg);
  aspect-ratio: 4 / 3;
  display: flex; align-items: center; justify-content: center;
  flex-direction: column;
  gap: 8px;
  color: var(--text-4);
  font-size: 13px;
  position: relative;
  overflow: hidden;
}
.placeholder-img::before {
  content: "";
  position: absolute; inset: 0;
  background:
    repeating-linear-gradient(45deg,
      transparent 0, transparent 20px,
      rgba(255,255,255,.015) 20px, rgba(255,255,255,.015) 40px);
}
.placeholder-img .ph-label {
  position: relative;
  z-index: 1;
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-3);
}
.placeholder-img .ph-name {
  position: relative;
  z-index: 1;
  font-size: 14px;
  color: var(--text-2);
  font-family: var(--mono);
}


/* ===== 数字统计 grid ==================================================== */

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
@media (max-width: 720px) { .stats-grid { grid-template-columns: repeat(2, 1fr); } }
.stat-tile {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 32px 24px;
  transition: border-color var(--t-fast), background var(--t-fast);
}
.stat-tile:hover {
  border-color: var(--border-2);
  background: var(--surface);
}
.stat-tile .stat-value {
  font-size: 44px; font-weight: 600;
  color: var(--text);
  letter-spacing: -.03em;
  line-height: 1;
  margin-bottom: 10px;
}
.stat-tile .stat-value.accent { color: var(--accent); }
.stat-tile .stat-label {
  font-size: 13px;
  color: var(--text-3);
}


/* ===== 截图轮播(3 列占位) ============================================= */

.shots-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
@media (max-width: 880px) { .shots-grid { grid-template-columns: 1fr; } }
.shot-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 22px;
  transition: border-color var(--t-fast);
}
.shot-card:hover { border-color: var(--border-2); }
.shot-card .placeholder-img {
  aspect-ratio: 16 / 10;
  margin-bottom: 18px;
}
.shot-card .shot-title {
  font-size: 15px; font-weight: 600;
  letter-spacing: -.01em;
  color: var(--text); margin-bottom: 6px;
}
.shot-card .shot-body {
  font-size: 13px;
  color: var(--text-3); line-height: 1.6;
}


/* ===== 底部 CTA section ================================================= */

.cta-bottom {
  text-align: center;
  padding: 100px 32px;
  border-top: 1px solid var(--border);
}
.cta-bottom h2 {
  font-size: 52px; font-weight: 600;
  letter-spacing: -.04em;
  line-height: 1.05;
  margin-bottom: 16px;
  color: var(--text);
}
.cta-bottom p {
  font-size: 17px; color: var(--text-2);
  margin-bottom: 32px;
}
@media (max-width: 640px) {
  .cta-bottom { padding: 64px 24px; }
  .cta-bottom h2 { font-size: 36px; }
}
