/* =======================================================================
   style.css —— Atlasa Card 的视觉系统
   
   设计基调：
     主色   黑 / 深灰
     文字   白
     点缀   电光蓝 → 紫（只用在关键处，不要满屏）
     质感   苹果"液态玻璃"：半透明层 + 背景模糊 + 顶部高光 + 内描边
   
   小学生版比喻：
     HTML 是骨架，CSS 是衣服。
     这套衣服走的是"深夜里的高级感"：大部分是黑的，
     只有少数几个地方发光，所以发光的地方才显眼。
   ======================================================================= */

:root {
  /* ---- 底色 ---- */
  --bg: #07080a;
  --bg-2: #0c0e12;
  --surface: #121419;
  --surface-2: #181b21;

  /* ---- 玻璃 ---- */
  --glass-bg: linear-gradient(160deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.022));
  --glass-bg-strong: linear-gradient(160deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.04));
  --glass-border: rgba(255, 255, 255, 0.11);
  --glass-border-strong: rgba(255, 255, 255, 0.18);
  --glass-blur: saturate(180%) blur(30px);
  --glass-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    inset 0 -1px 0 rgba(255, 255, 255, 0.04),
    0 22px 60px rgba(0, 0, 0, 0.55);

  /* ---- 描边 ---- */
  --border: rgba(255, 255, 255, 0.09);
  --border-soft: rgba(255, 255, 255, 0.055);
  --border-strong: rgba(255, 255, 255, 0.17);

  /* ---- 文字 ---- */
  --text: #ffffff;
  --muted: #8b9099;
  --muted-2: #61666e;

  /* ---- 点缀（少量！）---- */
  --accent: #4d7cff;          /* 电光蓝 */
  --accent-2: #8b5cf6;        /* 紫 */
  --accent-grad: linear-gradient(100deg, #4d7cff 0%, #8b5cf6 100%);
  --accent-soft: rgba(77, 124, 255, 0.14);
  --accent-ring: rgba(77, 124, 255, 0.35);

  /* ---- 语义色 ---- */
  --ok: #34d399;
  --warn: #fbbf24;
  --danger: #f87171;

  --radius: 14px;
  --radius-lg: 22px;
  --radius-xl: 30px;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.6);

  /* iPhone 刘海/底部小横条的安全距离 */
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

* { box-sizing: border-box; }

/* ★ 关键：hidden 属性必须永远赢
   不然任何写了 display:grid/flex 的元素都会把 hidden 顶掉，
   结果就是"本该藏起来的弹窗自己跳出来"（这个坑我们踩过）。*/
[hidden] { display: none !important; }

html, body { margin: 0; padding: 0; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI",
    "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Inter, Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.55;
  letter-spacing: -0.011em;
  min-height: 100vh;
  overflow-x: hidden;
}

/* 背景里那两团极淡的光 —— 全站只在暗处泛一点蓝紫 */
body::before {
  content: "";
  position: fixed;
  inset: -20% -10% auto -10%;
  height: 120vh;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(46% 40% at 18% 4%, rgba(77, 124, 255, 0.16), transparent 70%),
    radial-gradient(44% 42% at 88% 12%, rgba(139, 92, 246, 0.14), transparent 72%);
  filter: blur(20px);
}

body > * { position: relative; z-index: 1; }

a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { margin: 0; line-height: 1.08; letter-spacing: -0.032em; font-weight: 700; }
p { margin: 0; }
button { font: inherit; cursor: pointer; }
input, select, textarea { font: inherit; }
img { max-width: 100%; display: block; }

/* =======================================================================
   液态玻璃：核心质感
   ======================================================================= */
.glass,
.panel,
.feature,
.step,
.method,
.instructions,
.modal,
.card-visual,
.nav,
.sidebar,
.coverage-stats > div {
  background: var(--glass-bg);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
}

/* 顶部那道高光，是"玻璃"和"塑料"的区别 */
.panel, .feature, .step, .method, .modal, .card-visual {
  position: relative;
  overflow: hidden;
}
.panel::before,
.feature::before,
.step::before,
.modal::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.3) 22%,
    rgba(255, 255, 255, 0.42) 50%,
    rgba(255, 255, 255, 0.3) 78%,
    transparent
  );
  pointer-events: none;
}

/* 不支持 backdrop-filter 的老浏览器：给个不透明的底，至少能看清 */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .glass, .panel, .feature, .step, .method, .instructions, .modal,
  .card-visual, .nav, .sidebar, .coverage-stats > div {
    background: var(--surface);
  }
}

/* =======================================================================
   按钮
   ======================================================================= */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--text);
  font-weight: 600;
  font-size: 14.5px;
  white-space: nowrap;
  transition: transform 0.14s cubic-bezier(0.2, 0.8, 0.2, 1),
    background 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, opacity 0.18s ease;
}
.btn:active { transform: scale(0.975); }
.btn[disabled] { opacity: 0.4; pointer-events: none; }

/* 主按钮：白底黑字（Revolut 那一路）*/
.btn-primary {
  background: #ffffff;
  color: #08090b;
  box-shadow: 0 8px 26px rgba(255, 255, 255, 0.14);
}
.btn-primary:hover { background: #f2f3f5; box-shadow: 0 10px 32px rgba(255, 255, 255, 0.2); }

/* 次按钮：黑玻璃 + 白字 */
.btn-ghost {
  background: var(--glass-bg);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  border-color: var(--glass-border);
  color: var(--text);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14);
}
.btn-ghost:hover { background: var(--glass-bg-strong); border-color: var(--glass-border-strong); }

/* 偶尔用一下的点缀色按钮 */
.btn-accent { background: var(--accent-grad); color: #fff; box-shadow: 0 10px 30px rgba(77, 124, 255, 0.3); }

.btn-danger { border-color: rgba(248, 113, 113, 0.4); color: #fca5a5; background: rgba(248, 113, 113, 0.07); }
.btn-danger:hover { background: rgba(248, 113, 113, 0.14); }

.btn-lg { padding: 15px 30px; font-size: 16px; }
.btn-sm { padding: 7px 15px; font-size: 13px; }
.btn-block { width: 100%; }

/* =======================================================================
   顶部导航
   ======================================================================= */
.nav {
  position: sticky;
  top: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: calc(12px + var(--safe-top)) 26px 12px;
  border-width: 0 0 1px 0;
  border-color: var(--glass-border);
  background: linear-gradient(180deg, rgba(10, 11, 14, 0.72), rgba(10, 11, 14, 0.5));
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 750; }
.brand-mark {
  /* 现在是真正的商标图形（白色 SVG），不再是"白底方块+字母A" */
  width: 30px; height: 30px;
  display: block; flex: none;
  object-fit: contain;
}
.brand-text { font-size: 14px; letter-spacing: 0.16em; font-weight: 700; }
.nav-links { display: flex; gap: 28px; font-size: 14.5px; color: var(--muted); }
.nav-links a { transition: color 0.15s ease; }
.nav-links a:hover { color: var(--text); }
.nav-actions { display: flex; gap: 10px; align-items: center; }
.nav-right { display: flex; align-items: center; gap: 16px; }

/* 语言切换器 */
.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--glass-border);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
}
.lang-btn {
  min-width: 31px; padding: 5px 8px;
  border: none; border-radius: 8px;
  background: transparent; color: var(--muted-2);
  font-size: 12px; font-weight: 700;
  transition: background 0.15s ease, color 0.15s ease;
}
.lang-btn:hover { color: var(--text); }
.lang-btn.is-active { background: rgba(255, 255, 255, 0.14); color: var(--text); }
.side-foot .lang-switch { margin-bottom: 12px; width: 100%; justify-content: center; }

/* =======================================================================
   首屏
   ======================================================================= */
.hero {
  display: grid;
  grid-template-columns: 1.06fr 0.94fr;
  gap: 64px;
  align-items: center;
  max-width: 1240px;
  margin: 0 auto;
  padding: 96px 28px 104px;
}
.pill {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 7px 15px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--glass-border);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  font-size: 12.5px; color: var(--muted);
  margin-bottom: 28px;
}
.pill .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent), 0 0 24px rgba(77, 124, 255, 0.6);
  animation: pulse 2.6s ease-in-out infinite;
}
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.45; } }

.hero h1 {
  font-size: clamp(26px, 3.5vw, 50px);
  font-weight: 760;
  letter-spacing: -0.042em;
}
.grad {
  background: var(--accent-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.lede {
  margin-top: 26px;
  font-size: 17px;
  color: var(--muted);
  max-width: 52ch;
  line-height: 1.62;
}
.hero-cta { display: flex; gap: 13px; margin-top: 36px; flex-wrap: wrap; }
.hero-points {
  display: flex; flex-wrap: wrap; gap: 10px 24px;
  list-style: none; padding: 0; margin: 36px 0 0;
  font-size: 13.5px; color: var(--muted-2);
}
.hero-points li::before { content: "✦ "; color: var(--accent); }

/* ---- 卡片视觉 ---- */
.hero-art { position: relative; display: grid; place-items: center; min-height: 350px; perspective: 1400px; }
.card-visual {
  position: relative;
  width: min(430px, 100%);
  aspect-ratio: 1.586;
  border-radius: 22px;
  padding: 24px 26px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background:
    radial-gradient(120% 130% at 10% 0%, rgba(77, 124, 255, 0.28), transparent 46%),
    radial-gradient(120% 130% at 92% 100%, rgba(139, 92, 246, 0.3), transparent 50%),
    linear-gradient(150deg, rgba(30, 34, 46, 0.9), rgba(9, 10, 14, 0.94));
  box-shadow: var(--glass-shadow), 0 40px 90px rgba(0, 0, 0, 0.6);
  transform: rotateX(4deg) rotateY(-8deg) translateZ(0);
  transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.card-visual:hover { transform: rotateX(0deg) rotateY(0deg); }
.card-shine {
  position: absolute; inset: -40% -12%;
  background: linear-gradient(115deg, transparent 38%, rgba(255, 255, 255, 0.14) 50%, transparent 62%);
  animation: sweep 7s linear infinite;
  pointer-events: none;
}
@keyframes sweep { 0% { transform: translateX(-58%); } 100% { transform: translateX(58%); } }
.card-top { display: flex; justify-content: space-between; align-items: flex-start; }
.card-brand { font-weight: 750; letter-spacing: 0.2em; font-size: 14px; }
.card-net { font-size: 12px; font-weight: 700; color: #d5dae6; letter-spacing: 0.08em; }
.card-chip {
  width: 44px; height: 33px; border-radius: 7px;
  background: linear-gradient(135deg, #e6d79b, #94834a);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.35);
  align-self: flex-start;
}
.card-number {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 19.5px; letter-spacing: 0.13em; color: #eef2f8;
}
.card-bottom { display: flex; justify-content: space-between; align-items: flex-end; font-size: 12px; }
.card-bottom .lbl {
  display: block; color: var(--muted-2);
  font-size: 9.5px; text-transform: uppercase; letter-spacing: 0.15em; margin-bottom: 3px;
}
.card-bottom strong { font-size: 13.5px; letter-spacing: 0.05em; }

.float-chip {
  position: absolute;
  padding: 10px 16px; border-radius: 14px;
  background: rgba(18, 20, 25, 0.72);
  border: 1px solid var(--glass-border-strong);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  font-size: 12.5px; color: var(--muted);
  box-shadow: var(--glass-shadow);
}
.float-chip b { color: var(--text); }
.chip-1 { top: 4%; right: 0%; }
.chip-2 { bottom: 6%; left: -2%; color: var(--ok); }

/* =======================================================================
   五大卖点（一排玻璃胶囊）
   ======================================================================= */
.pillars {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 28px 8px;
  display: grid;
  /* 卖点数量会变，用 auto-fit 自动适应 */
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
}
.pillar {
  padding: 20px 18px;
  border-radius: var(--radius-lg);
  background: var(--glass-bg);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14);
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.pillar:hover { transform: translateY(-3px); border-color: var(--glass-border-strong); }
.pillar .p-ico {
  display: block; height: 26px; line-height: 26px;
  font-size: 18px;
  background: var(--accent-grad);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  font-weight: 700;
}
.pillar b { display: block; margin-top: 12px; font-size: 14.5px; font-weight: 650; }
.pillar span { display: block; margin-top: 6px; font-size: 12.5px; color: var(--muted); line-height: 1.5; }

/* =======================================================================
   通用区块
   ======================================================================= */
.section {
  max-width: 1240px; margin: 0 auto;
  padding: 88px 28px;
  border-top: 1px solid var(--border-soft);
}
.section-title { font-size: clamp(27px, 3.5vw, 42px); font-weight: 720; }
.section-sub { margin-top: 15px; color: var(--muted); font-size: 16.5px; max-width: 60ch; line-height: 1.6; }

.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 50px; }
/* 卡片产品介绍有 6 条，用三列更整齐 */
.feature-grid.card-grid { grid-template-columns: repeat(3, 1fr); margin-top: 44px; }
.feature {
  border-radius: var(--radius-lg);
  padding: 28px 24px 30px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.feature:hover { transform: translateY(-4px); border-color: var(--glass-border-strong); }
.feature .ico {
    /* ★ 原来 12px 太小，配上渐变文字裁切几乎看不见 —— 提到 20px 并给足行高 */
    display: block;
    height: 24px;
    line-height: 24px;
    font-size: 20px;
    letter-spacing: 0;
    background: var(--accent-grad);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-weight: 700;
  }
.feature h3 { margin-top: 18px; font-size: 18px; font-weight: 650; }
.feature p { margin-top: 11px; color: var(--muted); font-size: 14.5px; line-height: 1.6; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 50px; }
.step { border-radius: var(--radius-lg); padding: 32px 26px; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12); }
.step-no {
  display: grid; place-items: center;
  width: 36px; height: 36px; border-radius: 50%;
  background: #ffffff; color: #08090b;
  font-weight: 800; font-size: 15px;
}
.step h3 { margin-top: 20px; font-size: 18px; font-weight: 650; }
.step p { margin-top: 11px; color: var(--muted); font-size: 14.5px; }

.coverage { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 44px; align-items: center; }
.coverage-copy .btn { margin-top: 30px; }
.coverage-stats { display: grid; gap: 12px; }
.coverage-stats > div {
  display: flex; align-items: baseline; gap: 16px;
  padding: 20px 24px; border-radius: var(--radius-lg);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}
.coverage-stats strong {
  font-size: 27px; font-weight: 720;
  background: var(--accent-grad);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.coverage-stats span { color: var(--muted); font-size: 14px; }

/* =======================================================================
   页脚
   ======================================================================= */
.footer {
  border-top: 1px solid var(--border-soft);
  padding: 60px 28px calc(46px + var(--safe-bottom));
  max-width: 1240px; margin: 0 auto;
}
.footer-top { display: flex; justify-content: space-between; gap: 44px; flex-wrap: wrap; }
.footer-cols { display: flex; gap: 64px; flex-wrap: wrap; }
.footer-cols h4 {
  font-size: 11.5px; text-transform: uppercase; letter-spacing: 0.13em;
  color: var(--muted-2); margin-bottom: 13px; font-weight: 650;
}
.footer-cols a { display: block; color: var(--muted); font-size: 14px; padding: 3.5px 0; transition: color 0.15s ease; }
.footer-cols a:hover { color: var(--text); }
.footer-note {
  margin-top: 46px; padding: 18px 22px;
  border-radius: var(--radius);
  background: rgba(251, 191, 36, 0.05);
  border: 1px solid rgba(251, 191, 36, 0.18);
  border-left: 3px solid rgba(251, 191, 36, 0.6);
  color: #d8c69a;
  font-size: 13px; line-height: 1.6;
}
.footer-note strong { color: var(--warn); }
.footer-copy { margin-top: 24px; color: var(--muted-2); font-size: 12.5px; }

/* =======================================================================
   弹窗
   ======================================================================= */
.modal-backdrop {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(3, 4, 6, 0.7);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  display: grid; place-items: center;
  padding: 24px;
  animation: fade 0.18s ease;
}
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.modal {
  position: relative;
  width: min(520px, 100%);
  max-height: 92vh; overflow: auto;
  border-radius: var(--radius-xl);
  box-shadow: var(--glass-shadow);
  padding: 28px 30px 32px;
  animation: rise-modal 0.26s cubic-bezier(0.2, 0.8, 0.2, 1);
}
@keyframes rise-modal {
  from { opacity: 0; transform: translateY(14px) scale(0.985); }
  to { opacity: 1; transform: none; }
}
.modal-close {
  position: absolute; top: 16px; right: 16px;
  width: 33px; height: 33px; border-radius: 50%;
  border: 1px solid var(--glass-border);
  background: rgba(255, 255, 255, 0.05);
  color: var(--muted); font-size: 18px; line-height: 1;
  transition: color 0.15s ease, background 0.15s ease;
}
.modal-close:hover { color: var(--text); background: rgba(255, 255, 255, 0.1); }
.tabs { display: flex; gap: 6px; margin-bottom: 24px; padding: 4px; border-radius: 13px; background: rgba(0, 0, 0, 0.3); border: 1px solid var(--border-soft); }
.tab {
  flex: 1; padding: 9px 12px; border-radius: 10px;
  border: none; background: transparent;
  color: var(--muted); font-size: 13.5px; font-weight: 600;
  transition: background 0.16s ease, color 0.16s ease;
}
.tab.is-active { background: rgba(255, 255, 255, 0.1); color: var(--text); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14); }

/* =======================================================================
   表单
   ======================================================================= */
.form h2 { font-size: 22px; font-weight: 700; }
.form-sub { margin-top: 9px; margin-bottom: 24px; color: var(--muted); font-size: 13.5px; }
.form label { display: block; margin-bottom: 15px; font-size: 12.5px; color: var(--muted); }
.form input, .form select, .field input, .field select {
  display: block; width: 100%; margin-top: 7px;
  padding: 12px 14px;
  background: rgba(0, 0, 0, 0.32);
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--text);
  font-size: 15px;
  outline: none;
  transition: border-color 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}
.form input:focus, .form select:focus, .field input:focus, .field select:focus {
  border-color: var(--accent-ring);
  background: rgba(0, 0, 0, 0.42);
  box-shadow: 0 0 0 3.5px rgba(77, 124, 255, 0.14);
}
.form input::placeholder, .field input::placeholder { color: #4b5058; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.checkbox { display: flex !important; align-items: center; gap: 10px; font-size: 13px !important; }
.checkbox input { width: 16px !important; height: 16px; margin: 0 !important; accent-color: var(--accent); }
.form-error {
  margin: 4px 0 15px; padding: 11px 14px;
  border-radius: 11px; font-size: 13px;
  background: rgba(248, 113, 113, 0.1);
  border: 1px solid rgba(248, 113, 113, 0.3);
  color: #fca5a5;
}
.form-foot { margin-top: 18px; text-align: center; font-size: 13px; color: var(--muted); }
.form-foot a { color: #9db4ff; }
.form-foot a:hover { text-decoration: underline; }

/* =======================================================================
   提示条
   ======================================================================= */
.toast {
  position: fixed; z-index: 400;
  left: 50%; bottom: calc(34px + var(--safe-bottom));
  transform: translateX(-50%);
  padding: 13px 22px; border-radius: 14px;
  background: rgba(22, 25, 31, 0.86);
  border: 1px solid var(--glass-border-strong);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  box-shadow: var(--glass-shadow);
  font-size: 14px;
  max-width: min(520px, 90vw);
  animation: rise 0.22s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.toast.is-error { border-color: rgba(248, 113, 113, 0.45); color: #fca5a5; }
.toast.is-ok { border-color: rgba(52, 211, 153, 0.4); color: #86efac; }
@keyframes rise {
  from { opacity: 0; transform: translate(-50%, 10px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}

/* =======================================================================
   安装到主屏幕的提示条（只在 Safari 里出现）
   ======================================================================= */
.install-tip {
  position: fixed;
  left: 50%; transform: translateX(-50%);
  bottom: calc(20px + var(--safe-bottom));
  z-index: 300;
  display: flex; align-items: center; gap: 12px;
  padding: 12px 16px 12px 14px;
  border-radius: 16px;
  background: rgba(22, 25, 31, 0.88);
  border: 1px solid var(--glass-border-strong);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  box-shadow: var(--glass-shadow);
  font-size: 13px; color: var(--muted);
  max-width: min(440px, 92vw);
  animation: rise 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.install-tip b { color: var(--text); font-weight: 650; }
.install-tip .tip-close {
  border: none; background: transparent; color: var(--muted-2);
  font-size: 17px; padding: 0 2px; line-height: 1;
}
.install-tip .tip-ico {
  flex: none; width: 34px; height: 34px; border-radius: 9px;
  display: block; object-fit: cover;
}

/* =======================================================================
   登录后的面板
   ======================================================================= */
.app-shell { display: grid; grid-template-columns: 256px 1fr; min-height: 100vh; }

.sidebar {
  border-width: 0 1px 0 0;
  border-color: var(--glass-border);
  background: linear-gradient(180deg, rgba(12, 14, 18, 0.8), rgba(8, 9, 12, 0.9));
  padding: calc(22px + var(--safe-top)) 16px calc(18px + var(--safe-bottom));
  display: flex; flex-direction: column; gap: 8px;
  position: sticky; top: 0; height: 100vh;
}
.sidebar .brand { margin-bottom: 24px; padding-left: 6px; }
.side-nav { display: flex; flex-direction: column; gap: 3px; }
.side-nav a {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 13px; border-radius: 12px;
  color: var(--muted); font-size: 14.5px; font-weight: 500;
  transition: background 0.16s ease, color 0.16s ease;
}
.side-nav a:hover { background: rgba(255, 255, 255, 0.05); color: var(--text); }
.side-nav a.is-active {
  background: rgba(255, 255, 255, 0.085);
  color: var(--text);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}
.side-ico { width: 18px; text-align: center; opacity: 0.85; }

.side-foot { margin-top: auto; border-top: 1px solid var(--border-soft); padding-top: 15px; }
.user-chip { display: flex; align-items: center; gap: 11px; padding: 8px 6px 13px; }
.avatar {
  width: 35px; height: 35px; border-radius: 50%;
  background: var(--accent-grad);
  color: #fff; display: grid; place-items: center;
  font-weight: 750; font-size: 14px; flex: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3);
}
.user-chip .who { min-width: 0; }
.user-chip .who b { display: block; font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-chip .who span { font-size: 11.5px; color: var(--muted-2); }

.app-main { min-width: 0; display: flex; flex-direction: column; }
.testmode {
  padding: 10px 22px; font-size: 12.5px; color: #d8c69a;
  background: rgba(251, 191, 36, 0.055);
  border-bottom: 1px solid rgba(251, 191, 36, 0.16);
}
.testmode b { color: var(--warn); }
.app-content { padding: 32px 34px 80px; max-width: 1140px; width: 100%; }

.page-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; flex-wrap: wrap; margin-bottom: 28px; }
.page-head h1 { font-size: 27px; font-weight: 720; }
.page-head p { margin-top: 8px; color: var(--muted); font-size: 14.5px; }

.grid { display: grid; gap: 16px; }
.grid-2 { grid-template-columns: 1.35fr 1fr; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }

.panel {
  border-radius: var(--radius-lg);
  padding: 24px 26px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 18px 46px rgba(0, 0, 0, 0.35);
}
.panel-head { display: flex; justify-content: space-between; align-items: center; gap: 14px; margin-bottom: 17px; }
.panel-head h2 { font-size: 16px; font-weight: 650; }
.panel-head .hint { font-size: 12px; color: var(--muted-2); }

.balance { font-size: 44px; font-weight: 730; letter-spacing: -0.038em; margin: 8px 0 4px; }
.balance .cur { font-size: 23px; color: var(--muted); margin-right: 5px; font-weight: 600; }
.bal-meta { display: flex; gap: 24px; flex-wrap: wrap; color: var(--muted); font-size: 13px; margin-top: 11px; }
.bal-meta b { color: var(--text); }

.kv { display: grid; gap: 12px; }
.kv-row {
  display: flex; justify-content: space-between; gap: 14px;
  font-size: 14px; padding-bottom: 12px;
  border-bottom: 1px solid var(--border-soft);
}
.kv-row:last-child { border-bottom: none; padding-bottom: 0; }
.kv-row span { color: var(--muted); }
.kv-row b { font-weight: 600; }
.mono { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 13px; letter-spacing: 0.03em; }

.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4.5px 12px; border-radius: 999px;
  font-size: 11.5px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.05);
  color: var(--muted);
}
.chip.ok { color: #6ee7b7; border-color: rgba(52, 211, 153, 0.35); background: rgba(52, 211, 153, 0.1); }
.chip.warn { color: #fcd34d; border-color: rgba(251, 191, 36, 0.35); background: rgba(251, 191, 36, 0.1); }
.chip.bad { color: #fca5a5; border-color: rgba(248, 113, 113, 0.35); background: rgba(248, 113, 113, 0.1); }
.chip.info { color: #a5b8ff; border-color: rgba(77, 124, 255, 0.35); background: rgba(77, 124, 255, 0.12); }

.tx-list { display: flex; flex-direction: column; }
.tx { display: flex; align-items: center; gap: 14px; padding: 13px 2px; border-bottom: 1px solid var(--border-soft); }
.tx:last-child { border-bottom: none; }
.tx-ico {
  width: 37px; height: 37px; border-radius: 12px; flex: none;
  display: grid; place-items: center; font-size: 15px;
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid var(--border);
}
.tx-main { flex: 1; min-width: 0; }
.tx-main b { display: block; font-size: 14px; font-weight: 600; }
.tx-main span { font-size: 12px; color: var(--muted-2); }
.tx-amt { font-weight: 700; font-size: 14.5px; font-variant-numeric: tabular-nums; }
.tx-amt.credit { color: var(--ok); }
.tx-amt.debit { color: var(--text); }
.tx-amt.pending { color: var(--warn); }

.empty { padding: 36px 10px; text-align: center; color: var(--muted-2); font-size: 14px; }

table.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
table.tbl th {
  text-align: left; font-size: 11.5px; text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--muted-2); font-weight: 650; padding: 0 12px 12px 0;
  border-bottom: 1px solid var(--border);
}
table.tbl td { padding: 14px 12px 14px 0; border-bottom: 1px solid var(--border-soft); vertical-align: middle; }
table.tbl td.num { text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; }
table.tbl tr:last-child td { border-bottom: none; }

.method-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; }
.method-grid.wide { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.method {
  text-align: left; padding: 20px 19px;
  border-radius: var(--radius-lg);
  color: var(--text);
  transition: border-color 0.16s ease, background 0.16s ease, transform 0.16s ease;
}
.method:hover { border-color: var(--glass-border-strong); transform: translateY(-2px); }
.method.is-active {
  border-color: rgba(77, 124, 255, 0.55);
  background: linear-gradient(160deg, rgba(77, 124, 255, 0.16), rgba(139, 92, 246, 0.08));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), 0 0 0 1px rgba(77, 124, 255, 0.2);
}
.method .m-ico {
  display: block; height: 26px; line-height: 26px; font-size: 19px;
}
.method b { display: block; margin-top: 13px; font-size: 15px; font-weight: 640; }
.method span { display: block; margin-top: 6px; color: var(--muted); font-size: 13px; line-height: 1.45; }

.field { margin-bottom: 15px; }
.field label { display: block; font-size: 12.5px; color: var(--muted); margin-bottom: 2px; }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.row-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }

.instructions {
  margin-top: 16px; padding: 20px 22px;
  border-radius: var(--radius-lg);
}
.instructions h4 {
  font-size: 12px; color: var(--muted); text-transform: uppercase;
  letter-spacing: 0.11em; margin-bottom: 13px; font-weight: 650;
}
.addr {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 14px; border-radius: 12px;
  background: rgba(0, 0, 0, 0.42);
  border: 1px solid var(--border);
  font-family: ui-monospace, monospace; font-size: 12.5px;
  word-break: break-all;
}
.addr button { margin-left: auto; flex: none; }
.steps-mini { margin: 15px 0 0; padding-left: 19px; color: var(--muted); font-size: 13.5px; }
.steps-mini li { margin-bottom: 6px; }

.actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }

.card-visual.sm { width: 100%; max-width: 370px; font-size: 0.9em; transform: none; }
.card-visual.sm:hover { transform: none; }
.card-visual.frozen { filter: saturate(0.22) brightness(0.82); }
.card-visual.closed { filter: grayscale(1) brightness(0.5); }

.danger-zone { border-color: rgba(248, 113, 113, 0.26) !important; }
.danger-zone h2 { color: #fca5a5; }
.blockers { margin: 0 0 17px; padding-left: 20px; color: #fecaca; font-size: 13.5px; }
.blockers li { margin-bottom: 7px; }

.note {
  margin-top: 15px; padding: 13px 16px; border-radius: 12px;
  background: rgba(77, 124, 255, 0.08);
  border: 1px solid rgba(77, 124, 255, 0.24);
  color: #bac8ff; font-size: 13px; line-height: 1.6;
}
.note.warn {
  background: rgba(251, 191, 36, 0.07);
  border-color: rgba(251, 191, 36, 0.25);
  color: #e5cf9f;
}

.spinner {
  display: inline-block; width: 14px; height: 14px;
  border: 2px solid rgba(0, 0, 0, 0.25);
  border-top-color: #0a0d05; border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.center-screen { display: grid; place-items: center; min-height: 100vh; color: var(--muted); }

/* =======================================================================
   窄屏适配
   ======================================================================= */
@media (max-width: 1080px) {
  .hero { grid-template-columns: 1fr; padding-top: 62px; gap: 48px; }
  .pillars { grid-template-columns: repeat(2, 1fr); }
  .feature-grid, .feature-grid.card-grid { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr; }
  .coverage { grid-template-columns: 1fr; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .app-shell { grid-template-columns: 1fr; }
  .sidebar {
    position: sticky; height: auto;
    flex-direction: row; align-items: center;
    overflow-x: auto;
    padding: calc(12px + var(--safe-top)) 14px 12px;
    border-width: 0 0 1px 0;
  }
  .sidebar .brand { margin: 0 14px 0 0; }
  .side-nav { flex-direction: row; }
  .side-foot { margin: 0 0 0 auto; border: none; padding: 0; display: flex; align-items: center; gap: 10px; }
  .side-foot .lang-switch { margin: 0; width: auto; }
  .user-chip { padding: 0; }
  .user-chip .who { display: none; }
  .nav-links { display: none; }
  .app-content { padding: 24px 18px 70px; }
}

@media (max-width: 620px) {
  .pillars { grid-template-columns: 1fr; }
  .feature-grid { grid-template-columns: 1fr; }
  .two-col, .row-2, .row-3, .method-grid { grid-template-columns: 1fr; }
  .nav { padding: calc(11px + var(--safe-top)) 16px 11px; }
  .section, .hero { padding-left: 18px; padding-right: 18px; }
  .hero h1 { font-size: clamp(38px, 12vw, 54px); }
  .float-chip { display: none; }
}

/* 减少动效偏好（有人会晕） */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* 大标题保持一行（宽屏时禁止换行；窄屏仍然允许换行，否则会溢出） */
@media (min-width: 1100px) {
	.hero h1 { white-space: nowrap; }
}

/* =======================================================================
   ★ 手机端导航精简 ★
   问题：390px 宽的屏幕上，「logo + 语言切换 + Sign in + Get your card」
        总宽度超过屏幕，右侧按钮被挤出可视区（截图验证过）。
   做法：缩小 + 藏掉手机上和主按钮重复的 "Sign in"。
   ======================================================================= */
@media (max-width: 620px) {
	.nav {
		padding: calc(10px + var(--safe-top)) 14px 10px;
		gap: 8px;
	}
	.brand-text { font-size: 13px; letter-spacing: 0.12em; }
	.brand-mark { width: 24px; height: 24px; }
	.nav-right { gap: 8px; }
	.lang-switch { padding: 2px; }
	.lang-switch button { padding: 5px 7px; font-size: 11px; }
	/* 手机上 "Sign in" 和 "Get your card" 功能重复（点哪个都会进登录/注册），
	   空间不够就只留主按钮 */
	.nav-actions .btn-ghost { display: none; }
	.nav-actions .btn { padding: 9px 14px; font-size: 13px; white-space: nowrap; }

	/* 首页大标题在手机上不要强制一行 */
	.hero h1 { font-size: clamp(30px, 9.5vw, 44px); line-height: 1.12; }

	/* 双按钮在手机上并排会太窄，改成各占一行、左对齐更好点 */
	.hero-cta { flex-direction: column; align-items: stretch; }
	.hero-cta .btn { width: 100%; justify-content: center; }
}

/* 超窄屏（比如 iPhone SE 375px）再收一档 */
@media (max-width: 380px) {
	.brand-text { display: none; }          /* 只留商标图形 */
	.lang-switch button { padding: 4px 6px; font-size: 10px; }
	.nav-actions .btn { padding: 8px 11px; font-size: 12px; }
}

/* =======================================================================
   ★ 手机端第二轮修正 ★
   ======================================================================= */
@media (max-width: 620px) {
	/* ① PWA 安装提示：手机改成贴底通栏，不要浮在内容中间挡东西 */
	.install-tip {
		left: 0;
		right: 0;
		bottom: 0;
		transform: none;
		max-width: none;
		border-radius: 18px 18px 0 0;
		padding: 14px 16px calc(14px + var(--safe-bottom));
		justify-content: flex-start;
	}

	/* ② 侧边栏在手机上变成横向滑动条 —— 藏掉滚动条，右侧加渐隐提示"还能滑" */
	.sidebar {
		scrollbar-width: none;
		-ms-overflow-style: none;
		-webkit-overflow-scrolling: touch;
		mask-image: linear-gradient(90deg, #000 0, #000 calc(100% - 40px), transparent 100%);
		-webkit-mask-image: linear-gradient(90deg, #000 0, #000 calc(100% - 40px), transparent 100%);
	}
	.sidebar::-webkit-scrollbar { display: none; }

	/* 导航项之间留点空隙，手指点得准 */
	.side-nav { gap: 4px; }
	.side-nav a { padding: 9px 13px; white-space: nowrap; font-size: 14px; }
	.side-nav a .side-ico { margin-right: 5px; }

	/* ③ 内容区左右留白收窄，手机上多出一点显示空间 */
	.app-content { padding: 20px 14px calc(90px + var(--safe-bottom)); }

	/* ④ 表格在手机上别撑破屏幕 */
	.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
	table { font-size: 13px; }

	/* ⑤ 卡片视觉在手机上别太高 */
	.card-visual { max-width: 100%; }
}

/* 页脚客服栏 */
.footer-hint { display: block; color: var(--muted-2); font-size: 12.5px; margin-top: 6px; }
.footer a .mono { font-size: 13px; }

/* 卡片消费明细列表 */
.tx-list { display: flex; flex-direction: column; }
.tx-row {
  display: flex; align-items: center; justify-content: space-between;
  gap: 14px; padding: 13px 2px;
  border-bottom: 1px solid rgba(255,255,255,.055);
}
.tx-row:last-child { border-bottom: 0; }
.tx-main { min-width: 0; }
.tx-name { font-size: 14.5px; font-weight: 550; color: var(--text); }
.tx-time { font-size: 12.5px; color: var(--muted-2); margin-top: 3px; }
.tx-amt {
  font: 600 15px/1 ui-monospace, SFMono-Regular, Menlo, monospace;
  color: var(--text); white-space: nowrap;
}

/* 登录页的「或者」分隔 */
.or-split {
  display: flex; align-items: center; gap: 12px;
  margin: 16px 0; color: var(--muted-2);
  font-size: 12.5px; text-transform: uppercase; letter-spacing: .08em;
}
.or-split::before, .or-split::after {
  content: ''; flex: 1; height: 1px; background: rgba(255,255,255,.1);
}

/* 注册页：验证码输入 + 发送按钮 */
.code-row { display: flex; gap: 8px; align-items: stretch; }
.code-row input { flex: 1; min-width: 0; }
.code-row .btn { flex-shrink: 0; white-space: nowrap; }
.field-hint {
  display: block; margin-top: 6px;
  font-size: 12px; line-height: 1.5; color: var(--muted-2);
}
.field-hint.is-ok { color: #4ade80; }

/* 注册页：@ 前缀输入框 */
.at-input {
  display: flex; align-items: center;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 12px; overflow: hidden;
}
.at-input:focus-within { border-color: rgba(120,140,255,.55); }
.at-input .at-prefix {
  padding: 0 2px 0 14px; font-size: 15px; font-weight: 600;
  color: var(--muted); user-select: none;
}
.at-input input {
  flex: 1; min-width: 0; border: 0; background: transparent;
  padding: 13px 14px 13px 4px; font-size: 15px; color: var(--text); outline: none;
}
