@import url("https://fonts.googleapis.com/css2?family=Archivo+Black&family=Instrument+Serif:ital@0;1&family=Inter:wght@400;500;600;700;800;900&display=swap");

/* ===== PayUp Fintech theme（紫罗兰 · 暖纸）=====
   参考 jiro.build / fintech-banking-website-payup 视觉系统：
   底色：暖纸 #fafaf7 + 动态紫/淡紫极光晕染
   品牌：紫罗兰 #7c3aec → 深紫 #4803bd；淡紫 #c9a7ff / #e2caff
   语义：绿 #4ade80 / #5be39a（上涨、在线）
   区块：白色卡片 + 大圆角 + 紫光晕投影；计算器为深色窗口面板
   文字：标题走 Instrument Serif 衬线，正文 Inter 无衬线
   交互：卡片上浮、图片放大、按钮流光、背景极光浮动 */

:root {
  color-scheme: light;

  /* 参考页设计令牌 */
  --wl-brand: #7c3aec;
  --wl-brand-deep: #4803bd;
  --wl-brand-a: #8b4df5;
  --wl-brand-b: #6a26db;
  --wl-brand-c: #3e0aa8;
  --wl-accent: #c9a7ff;
  --wl-lilac: #e2caff;
  --wl-lilac-soft: #efe7ff;
  --wl-lilac-4: #b794ff;
  --wl-green: #4ade80;
  --wl-live: #5be39a;
  --wl-paper: #fafaf7;
  --wl-ink: #121212;
  --wl-text: #1a1a1a;
  --wl-text-2: #5d5b52;
  --wl-grey: #737373;
  --wl-line: #e6e4dd;
  --wl-chip: #f3f2ee;
  --wl-panel: #1c1f26;
  --wl-panel-deep: #121317;

  /* 兼容既有结构变量 */
  --ink: #14121a;
  --muted: #5d5b52;
  --soft: rgba(124, 58, 236, 0.06);
  --line: rgba(20, 20, 20, 0.1);
  --panel: rgba(255, 255, 255, 0.9);
  --panel-strong: #ffffff;
  --gold: #7c3aec;
  --teal: #6a26db;
  --red: #e11d48;
  --blue: #6a26db;
  --green: #16a34a;
  --rose: #db2777;
  --violet: #7c3aec;
  --orange: #f59e0b;
  --cyan: #0891b2;
  --shadow: 0 24px 70px rgba(72, 3, 189, 0.14);
  --radius: 16px;

  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

::selection {
  background: rgba(124, 58, 236, 0.24);
  color: #121212;
}

/* ---- 背景：暖纸 + 点阵 + 动态极光 ---- */
body {
  background:
    radial-gradient(60% 48% at 14% 0%, rgba(124, 58, 236, 0.1), transparent 62%),
    radial-gradient(52% 44% at 90% 4%, rgba(201, 167, 255, 0.22), transparent 60%),
    linear-gradient(180deg, #fafaf7 0%, #f7f4ee 60%, #f2eee6 100%);
  color: var(--wl-text);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image: radial-gradient(rgba(18, 18, 18, 0.07) 1px, transparent 1px);
  background-size: 26px 26px;
  mask-image: radial-gradient(120% 78% at 50% 0%, rgba(0, 0, 0, 0.9), transparent 72%);
  pointer-events: none;
}

body::after {
  content: "";
  position: fixed;
  inset: -22%;
  z-index: -2;
  background:
    radial-gradient(36% 32% at 18% 24%, rgba(124, 58, 236, 0.28), transparent 62%),
    radial-gradient(32% 30% at 82% 18%, rgba(201, 167, 255, 0.4), transparent 60%),
    radial-gradient(38% 34% at 70% 82%, rgba(72, 3, 189, 0.2), transparent 64%),
    radial-gradient(28% 26% at 26% 80%, rgba(91, 227, 154, 0.14), transparent 60%);
  filter: blur(34px);
  animation: wl-aurora 22s ease-in-out infinite;
  pointer-events: none;
}

@keyframes wl-aurora {
  0%,
  100% {
    transform: translate3d(-3%, -2%, 0) scale(1.02);
  }
  50% {
    transform: translate3d(4%, 3%, 0) scale(1.14);
  }
}

@keyframes wl-sheen {
  0% {
    transform: translate(-140%) skew(-18deg);
  }
  60%,
  100% {
    transform: translate(260%) skew(-18deg);
  }
}

@keyframes wl-pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.45;
  }
}

/* ---- 顶栏：玻璃 + 细描边 ---- */
.topbar {
  background: #ffffff;
  border-bottom: 1px solid var(--wl-line);
  box-shadow: 0 12px 34px rgba(72, 3, 189, 0.06);
  backdrop-filter: blur(18px);
}

button.brand:focus-visible {
  outline: 2px solid var(--wl-brand);
  outline-offset: 3px;
  border-radius: 10px;
}

.brand::before {
  border-color: rgba(124, 58, 236, 0.28);
  border-radius: 11px;
  background: linear-gradient(140deg, var(--wl-brand-a), var(--wl-brand-deep));
  box-shadow: 0 10px 24px rgba(124, 58, 236, 0.32);
}

.brand-title {
  color: var(--wl-ink);
  font-weight: 900;
  letter-spacing: -0.01em;
}

.tape-chip {
  border-color: var(--wl-line);
  border-radius: 999px;
  color: var(--wl-text-2);
  background: var(--wl-chip);
  box-shadow: none;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.tape-chip:hover {
  transform: translateY(-2px);
  background: #ffffff;
  border-color: rgba(124, 58, 236, 0.28);
}

.tape-chip b {
  color: var(--wl-ink);
}

.up {
  color: #16a34a;
}

.down {
  color: #e11d48;
}

/* ---- Hero 文案卡 ---- */
.hero-copy {
  border: 1px solid var(--wl-line);
  border-radius: 28px;
  background:
    linear-gradient(100deg, rgba(255, 255, 255, 0.96) 0%, rgba(255, 255, 255, 0.86) 46%, rgba(239, 231, 255, 0.42) 100%),
    url("../../../../img/local/fx-01.jpg") center / cover;
  box-shadow: 0 30px 80px rgba(72, 3, 189, 0.1);
}

.edition,
.kicker {
  color: var(--wl-brand);
  letter-spacing: 0.1em;
}

.edition::before {
  background: linear-gradient(90deg, var(--wl-brand), var(--wl-accent));
}

h1,
h2 {
  font-family: "Instrument Serif", Georgia, "Times New Roman", serif;
  font-weight: 400;
  color: var(--wl-ink);
  letter-spacing: -0.01em;
}

h1 {
  line-height: 0.97;
}

h2 {
  line-height: 1.02;
}

.lead,
.section-note {
  color: var(--wl-text-2);
}

.hero-stat {
  border-top: 0;
  border-left: 3px solid var(--wl-brand);
  border-radius: 12px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 10px 30px rgba(72, 3, 189, 0.06);
}

.hero-stat:nth-child(2) {
  border-left-color: var(--wl-brand-deep);
  background: rgba(255, 255, 255, 0.78);
}

.hero-stat:nth-child(3) {
  border-left-color: var(--wl-green);
  background: rgba(255, 255, 255, 0.78);
}

.hero-stat strong {
  color: var(--wl-ink);
}

.hero-stat span {
  color: var(--wl-text-2);
}

/* ---- 计算器：深色窗口面板 + 紫光晕 ---- */
.calculator {
  border: 1px solid rgba(201, 167, 255, 0.22);
  border-radius: 24px;
  color: #f8fafc;
  background:
    linear-gradient(158deg, rgba(28, 31, 38, 0.98), rgba(18, 19, 23, 0.98) 58%, rgba(42, 17, 84, 0.96)),
    url("../../../../img/local/fx-03.jpg") center / cover;
  box-shadow: 0 40px 100px rgba(72, 3, 189, 0.35), 0 0 60px rgba(124, 58, 236, 0.28);
  overflow: hidden;
}

.calculator::before {
  inset: 0;
  height: auto;
  opacity: 1;
  background:
    radial-gradient(circle at 85% 6%, rgba(124, 58, 236, 0.5), transparent 46%),
    radial-gradient(circle at 8% 96%, rgba(201, 167, 255, 0.24), transparent 44%),
    linear-gradient(120deg, rgba(255, 255, 255, 0.1), transparent 40%);
}

.calc-title {
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  color: #ffffff;
  font-weight: 900;
  letter-spacing: -0.01em;
}

.calc-header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.lang-status {
  color: rgba(248, 250, 252, 0.66);
}

.lang-status.error {
  color: #fca5a5;
}

.lang-toggle {
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.08);
}

.lang-toggle select {
  color: #f8fafc;
  background: rgba(15, 12, 30, 0.72);
  border-color: rgba(255, 255, 255, 0.12);
}

.calc-tabs {
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  padding: 5px;
}

.calc-tabs button {
  color: rgba(248, 250, 252, 0.72);
  border-radius: 999px;
  position: relative;
  overflow: hidden;
  transition: color 0.2s ease, background 0.25s ease, box-shadow 0.25s ease;
}

.calc-tabs button:hover {
  color: #ffffff;
}

.calc-tabs button.active {
  color: #ffffff;
  border-color: transparent;
  background: linear-gradient(140deg, var(--wl-brand-a), var(--wl-brand-b) 60%, var(--wl-brand-c));
  box-shadow: 0 14px 30px rgba(124, 58, 236, 0.42);
}

.field,
.result-box,
.rate-card {
  border-color: rgba(255, 255, 255, 0.13);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(14px);
}

.field label {
  color: rgba(248, 250, 252, 0.66);
}

.field input,
.field select {
  color: #ffffff;
}

.swap-btn {
  color: #ffffff;
  border-color: rgba(201, 167, 255, 0.4);
  background: linear-gradient(140deg, var(--wl-brand-a), var(--wl-brand-deep));
  box-shadow: 0 14px 30px rgba(124, 58, 236, 0.4);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.swap-btn:hover {
  transform: rotate(180deg);
  box-shadow: 0 18px 40px rgba(124, 58, 236, 0.55);
}

.result-box {
  border-color: rgba(201, 167, 255, 0.34);
  background: linear-gradient(135deg, rgba(124, 58, 236, 0.22), rgba(91, 227, 154, 0.08));
}

.result-value {
  color: var(--wl-accent);
  text-shadow: 0 0 24px rgba(124, 58, 236, 0.45);
}

.calculator .result-meta,
.calculator .rate-card span {
  color: rgba(248, 250, 252, 0.66);
}

.calculator .rate-card b {
  color: #ffffff;
}

.calculator .rate-card {
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.calculator .rate-card:hover {
  transform: translateY(-2px);
  border-color: rgba(201, 167, 255, 0.42);
  background: rgba(255, 255, 255, 0.12);
}

.calculator .field select option,
.calculator .lang-toggle select option {
  color: #111827;
}

/* ---- 区块与标题 ---- */
.section-head {
  border-bottom: 1px solid var(--wl-line);
}

h2 {
  color: var(--wl-ink);
}

/* ---- 文章卡片（含未来重新加入的板块）---- */
.lead-story,
.side-stack article,
.feature-card,
.policy-card,
.crypto-card,
.rank-card,
.quote,
#hot .lead-story,
#hot .side-stack article,
#hot .hot-river article,
#magazine .feature-card {
  border-color: var(--wl-line);
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 18px 50px rgba(72, 3, 189, 0.08);
  transition: transform 0.3s cubic-bezier(0.2, 0.7, 0.3, 1), box-shadow 0.3s ease, border-color 0.3s ease;
}

.lead-story:hover,
.side-stack article:hover,
.feature-card:hover,
.policy-card:hover,
.crypto-card:hover,
.quote:hover,
#hot .lead-story:hover,
#hot .side-stack article:hover,
#hot .hot-river article:hover,
#magazine .feature-card:hover {
  transform: translateY(-5px);
  border-color: rgba(124, 58, 236, 0.32);
  box-shadow: 0 30px 70px rgba(72, 3, 189, 0.18);
}

#hot .lead-story,
.lead-story {
  background: #ffffff;
}

.story-body h3,
.policy-card h3,
.crypto-card h3,
.rank-name b {
  color: var(--wl-ink);
  font-weight: 800;
}

.story-body p,
.policy-card p,
.crypto-card p,
.story-meta,
.rank-name span,
.result-meta,
.rate-card span,
.legal-dialog p {
  color: var(--wl-text-2);
}

/* 标签：紫罗兰药丸 */
.tag,
#hot .tag,
#magazine .tag {
  color: #ffffff;
  border-radius: 999px;
  background: linear-gradient(140deg, var(--wl-brand-a), var(--wl-brand-b));
  box-shadow: 0 8px 20px rgba(124, 58, 236, 0.28);
}

article:nth-child(2n) .tag,
.crypto-card:nth-child(2n) .tag,
.policy-card:nth-child(2n) .tag {
  color: #ffffff;
  background: linear-gradient(140deg, var(--wl-brand), var(--wl-brand-deep));
}

article:nth-child(3n) .tag,
.crypto-card:nth-child(3n) .tag,
.policy-card:nth-child(3n) .tag {
  color: #06231f;
  background: linear-gradient(140deg, #86efac, #4ade80);
}

/* ---- 排行 / 政策 / 加密 视觉 ---- */
.markets-band {
  background:
    linear-gradient(135deg, rgba(124, 58, 236, 0.07), rgba(201, 167, 255, 0.05)),
    rgba(255, 255, 255, 0.5);
  border-block: 1px solid var(--wl-line);
}

.rank-no {
  color: var(--wl-brand);
}

.rank-share {
  color: var(--wl-brand-deep);
}

.rank-item {
  border-bottom-color: var(--wl-line);
}

.crypto-hero::after {
  background: linear-gradient(90deg, rgba(20, 10, 40, 0.86), rgba(20, 10, 40, 0.28) 58%, rgba(20, 10, 40, 0.18));
}

.policy-card::after {
  background: linear-gradient(180deg, rgba(20, 10, 40, 0.12), rgba(20, 10, 40, 0.88));
}

.policy-card:not(:first-child)::before {
  background: rgba(255, 255, 255, 0.9);
}

#hot .lead-story .story-body {
  border-color: var(--wl-line);
  background: rgba(255, 255, 255, 0.96);
}

/* ---- 页脚 / 弹窗 ---- */
.site-footer {
  background: linear-gradient(180deg, #17131f, #120d1c);
  border-top: 1px solid rgba(201, 167, 255, 0.16);
}

.site-footer-inner {
  color: #cfc6e6;
}

.footer-actions button {
  color: #f4f1ff;
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(201, 167, 255, 0.3);
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.footer-actions button:hover {
  background: rgba(124, 58, 236, 0.24);
  border-color: rgba(201, 167, 255, 0.6);
  transform: translateY(-1px);
}

.legal-modal {
  background: rgba(20, 10, 40, 0.5);
}

.legal-dialog {
  border-color: var(--wl-line);
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 40px 90px rgba(72, 3, 189, 0.28);
}

.legal-dialog h3 {
  font-family: "Instrument Serif", Georgia, serif;
  color: var(--wl-ink);
}

.legal-close {
  border-color: transparent;
  color: #ffffff;
  background: linear-gradient(140deg, var(--wl-brand-a), var(--wl-brand-b) 60%, var(--wl-brand-c));
  box-shadow: 0 14px 30px rgba(124, 58, 236, 0.36);
}

/* ---- 交互：流光 / 焦点 ---- */
.calc-tabs button.active::after,
.legal-close::after {
  content: "";
  position: absolute;
  top: -60%;
  left: 0;
  width: 40%;
  height: 220%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5), transparent);
  animation: wl-sheen 3.6s ease-in-out infinite;
  pointer-events: none;
}

.legal-close {
  position: relative;
  overflow: hidden;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 2px solid var(--wl-brand);
  outline-offset: 2px;
}

/* ---- 响应式微调 ---- */
@media (max-width: 640px) {
  .hero-copy {
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.97) 0%, rgba(255, 255, 255, 0.9) 58%, rgba(239, 231, 255, 0.42) 100%),
      url("../../../../img/local/fx-01.jpg") center / cover;
  }

  .calculator {
    border-radius: 20px;
    box-shadow: 0 26px 70px rgba(72, 3, 189, 0.32);
  }
}

@media (prefers-reduced-motion: reduce) {
  body::after,
  .calc-tabs button.active::after,
  .legal-close::after {
    animation: none;
  }

  article:hover .story-image img {
    transform: none;
  }

  .lead-story:hover,
  .side-stack article:hover,
  .feature-card:hover,
  .policy-card:hover,
  .crypto-card:hover,
  .quote:hover,
  .tape-chip:hover,
  .calculator .rate-card:hover,
  .footer-actions button:hover {
    transform: none;
  }
}

/* ===== 复古终端 · 外汇计算器（双层描边 + 顶部圆点条）===== */
.calculator {
  border: 1px solid rgba(238, 240, 248, 0.9);
  border-radius: 3px;
  color: #e8eaf2;
  background:
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.03) 0 1px, transparent 1px 4px),
    radial-gradient(120% 70% at 50% -8%, rgba(124, 58, 236, 0.3), transparent 60%),
    linear-gradient(180deg, #12131a 0%, #0d0e14 58%, #150f24 100%);
  box-shadow:
    0 0 0 3px rgba(13, 14, 20, 1),
    0 0 0 4px rgba(124, 58, 236, 0.6),
    0 0 0 5px rgba(201, 167, 255, 0.28),
    0 30px 80px rgba(72, 3, 189, 0.42);
  overflow: hidden;
}

/* 顶部圆点条（终端窗口栏） */
.calculator::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 34px;
  opacity: 1;
  background:
    radial-gradient(circle at 18px 17px, #ff5f57 0 5px, transparent 6px),
    radial-gradient(circle at 36px 17px, #febc2e 0 5px, transparent 6px),
    radial-gradient(circle at 54px 17px, #28c840 0 5px, transparent 6px),
    linear-gradient(180deg, rgba(201, 167, 255, 0.16), rgba(201, 167, 255, 0.02));
  border-bottom: 1px solid rgba(201, 167, 255, 0.4);
}

/* 内层描边（与外框形成双线） */
.calculator::after {
  content: "";
  position: absolute;
  inset: 8px;
  z-index: 2;
  border: 1px solid rgba(201, 167, 255, 0.32);
  border-radius: 1px;
  pointer-events: none;
}

.calculator .calc-inner {
  position: relative;
  z-index: 1;
  padding-top: 52px;
}

.calculator .calc-header {
  border-bottom: 1px dashed rgba(201, 167, 255, 0.28);
}

.calculator .calc-title {
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
  color: #ffffff;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.calculator .calc-title::after {
  content: "_";
  color: var(--wl-live);
  animation: fx-blink 1.1s steps(1) infinite;
}

.calculator .calc-tabs,
.calculator .calc-tabs button,
.calculator .field,
.calculator .result-box,
.calculator .rate-card,
.calculator .swap-btn,
.calculator .lang-toggle,
.calculator .lang-toggle select {
  border-radius: 3px;
}

.calculator .calc-tabs {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(201, 167, 255, 0.24);
}

.calculator .calc-tabs button.active {
  color: #0c0a14;
  background: linear-gradient(140deg, #ede9ff, #c9a7ff);
  box-shadow: 0 0 0 1px rgba(201, 167, 255, 0.6), 0 10px 26px rgba(124, 58, 236, 0.35);
}

.calculator .field,
.calculator .result-box,
.calculator .rate-card {
  border-color: rgba(201, 167, 255, 0.2);
  background: rgba(255, 255, 255, 0.045);
}

.calculator .field input,
.calculator .field select,
.calculator .result-value,
.calculator .rate-card b {
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
  letter-spacing: 0.01em;
}

.calculator .result-value {
  color: var(--wl-live);
  text-shadow: 0 0 18px rgba(91, 227, 154, 0.45);
}

.calculator .swap-btn {
  background: linear-gradient(140deg, #c9a7ff, #7c3aec);
  border-color: rgba(226, 232, 240, 0.6);
  box-shadow:
    0 0 0 1px rgba(13, 14, 20, 1),
    0 0 0 2px rgba(124, 58, 236, 0.5),
    0 12px 26px rgba(124, 58, 236, 0.42);
}

.calculator .rate-card:hover {
  border-color: rgba(201, 167, 255, 0.55);
  box-shadow: inset 0 0 0 1px rgba(201, 167, 255, 0.25);
}

@keyframes fx-blink {
  50% {
    opacity: 0;
  }
}

@media (max-width: 640px) {
  .calculator {
    border-radius: 3px;
  }

  .calculator .calc-inner {
    padding-top: 46px;
  }

  .calculator::before {
    height: 30px;
  }
}

/* ===== 顶栏右上角语言选择器 ===== */
.topbar .lang-control {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 10px;
}

.topbar .lang-toggle {
  padding: 4px;
  border: 1px solid var(--wl-line);
  border-radius: 999px;
  background: var(--wl-chip);
}

.topbar .lang-toggle select {
  width: auto;
  max-width: 168px;
  min-height: 36px;
  border: 0;
  border-radius: 999px;
  background: #ffffff;
  color: var(--wl-ink);
  padding: 6px 30px 6px 12px;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
}

.topbar .lang-toggle select:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px rgba(124, 58, 236, 0.5);
}

.topbar .lang-status {
  display: none;
}

@media (max-width: 640px) {
  .topbar .lang-toggle select {
    max-width: 104px;
    font-size: 12px;
  }
}

/* ===== 货币跑马灯国旗 ===== */
.band-flag {
  width: 24px;
  height: 18px;
  border-radius: 3px;
  object-fit: cover;
  background: #ffffff;
  box-shadow: 0 0 0 1px rgba(20, 20, 20, 0.08);
}

.band-sym {
  font-size: 18px;
  line-height: 1;
  color: var(--wl-brand);
}

/* ===== 数字资产安全观察板块（参考 PayUp 模板排版 / 交互）===== */
.security {
  padding-top: 12px;
}

/* 关键词跑马灯 */
.security-ticker {
  position: relative;
  overflow: hidden;
  margin-bottom: 20px;
  border: 1px solid var(--wl-line);
  border-radius: 999px;
  background: #ffffff;
  box-shadow: 0 12px 30px rgba(72, 3, 189, 0.06);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}

.security-ticker-track {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  padding: 12px 0;
  animation: security-marquee 34s linear infinite;
  will-change: transform;
}

.security-ticker-track span {
  position: relative;
  padding: 0 24px;
  color: var(--wl-text-2);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.security-ticker-track span::after {
  content: "";
  position: absolute;
  right: 0;
  top: 50%;
  width: 5px;
  height: 5px;
  transform: translateY(-50%) rotate(45deg);
  background: var(--wl-brand);
  border-radius: 1px;
}

.security-ticker:hover .security-ticker-track {
  animation-play-state: paused;
}

@keyframes security-marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

/* 主图（Lead） */
.security-lead {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  border: 1px solid var(--wl-line);
  border-radius: 28px;
  overflow: hidden;
  background: #ffffff;
  box-shadow: 0 24px 60px rgba(72, 3, 189, 0.1);
  margin-bottom: 18px;
}

.security-lead .security-media {
  position: relative;
  min-height: 340px;
  overflow: hidden;
}

.security-lead .security-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.3, 1);
}

.security-lead:hover .security-media img {
  transform: scale(1.05);
}

.security-lead .security-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 62%, rgba(255, 255, 255, 0.92));
  pointer-events: none;
}

.security-lead .security-body {
  padding: 34px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 12px;
}

.security-lead h3 {
  margin: 0;
  font-family: "Instrument Serif", Georgia, "Times New Roman", serif;
  font-weight: 400;
  font-size: clamp(26px, 3.4vw, 42px);
  line-height: 1.06;
  color: var(--wl-ink);
}

.security-lead p {
  margin: 0;
  color: var(--wl-text-2);
  line-height: 1.78;
}

/* Bento 卡片网格（6 列，首卡跨 4 列）*/
.security-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 16px;
  counter-reset: security;
}

.security-card {
  grid-column: span 2;
  position: relative;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--wl-line);
  border-radius: 22px;
  overflow: hidden;
  background: #ffffff;
  box-shadow: 0 16px 44px rgba(72, 3, 189, 0.08);
  transition: transform 0.3s cubic-bezier(0.2, 0.7, 0.3, 1), box-shadow 0.3s ease, border-color 0.3s ease;
}

.security-card:nth-child(1) {
  grid-column: span 4;
}

.security-card:hover {
  transform: translateY(-6px);
  border-color: rgba(124, 58, 236, 0.32);
  box-shadow: 0 32px 74px rgba(72, 3, 189, 0.2);
}

.security-card .security-media {
  height: 150px;
  overflow: hidden;
  flex: 0 0 auto;
}

.security-card:nth-child(1) .security-media {
  height: 210px;
}

.security-card .security-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.3, 1);
}

.security-card:hover .security-media img {
  transform: scale(1.07);
}

.security-card .security-body {
  position: relative;
  padding: 20px 18px 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.security-card .security-body::before {
  counter-increment: security;
  content: counter(security, decimal-leading-zero);
  position: absolute;
  top: 12px;
  right: 16px;
  font-family: "Instrument Serif", Georgia, serif;
  font-size: 40px;
  line-height: 1;
  color: rgba(124, 58, 236, 0.12);
  pointer-events: none;
}

.security-card h3 {
  margin: 2px 0 0;
  font-size: 18px;
  line-height: 1.28;
  color: var(--wl-ink);
  font-weight: 800;
}

.security-card ul {
  margin: 0;
  padding-left: 16px;
  display: grid;
  gap: 8px;
}

.security-card li {
  color: var(--wl-text-2);
  font-size: 13px;
  line-height: 1.62;
}

.security-card li::marker {
  color: var(--wl-brand);
}

/* 冷钱包对比表 */
.security-extra {
  margin-top: 20px;
}

.wallet-panel {
  border: 1px solid var(--wl-line);
  border-radius: 26px;
  background: #ffffff;
  box-shadow: 0 20px 54px rgba(72, 3, 189, 0.08);
  padding: 24px;
}

.wallet-panel h3 {
  margin: 8px 0 18px;
  font-family: "Instrument Serif", Georgia, "Times New Roman", serif;
  font-weight: 400;
  font-size: clamp(22px, 2.8vw, 34px);
  color: var(--wl-ink);
}

.wallet-scroll {
  overflow-x: auto;
}

.wallet-table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
}

.wallet-table th,
.wallet-table td {
  text-align: left;
  padding: 13px 15px;
  border-bottom: 1px solid var(--wl-line);
  font-size: 13px;
  color: var(--wl-text-2);
  white-space: nowrap;
}

.wallet-table th {
  color: var(--wl-brand);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.wallet-table td:first-child {
  color: var(--wl-ink);
  font-weight: 700;
}

.wallet-table tbody tr {
  transition: background 0.2s ease;
}

.wallet-table tbody tr:hover {
  background: rgba(124, 58, 236, 0.05);
}

/* 滚动揭示（JS 增强） */
.reveal-init {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.7, 0.3, 1);
}

.reveal-in {
  opacity: 1;
  transform: none;
}

/* 响应式 */
@media (max-width: 1100px) {
  .security-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .security-card,
  .security-card:nth-child(1) {
    grid-column: span 1;
  }
}

@media (max-width: 760px) {
  .security-lead {
    grid-template-columns: 1fr;
  }

  .security-lead .security-media {
    min-height: 230px;
  }

  .security-lead .security-media::after {
    background: linear-gradient(180deg, transparent 58%, rgba(255, 255, 255, 0.92));
  }

  .security-lead .security-body {
    padding: 22px;
  }
}

@media (max-width: 640px) {
  .security-grid {
    grid-template-columns: 1fr;
  }

  .security-card:nth-child(1) .security-media {
    height: 178px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .reveal-init {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ===== 安全板块卡片：图片完整显示（不裁切）===== */
.security-grid .security-card .security-media {
  height: auto;
  aspect-ratio: 16 / 10;
  background: var(--wl-chip);
  border-bottom: 1px solid var(--wl-line);
}

.security-grid .security-card:nth-child(1) .security-media {
  aspect-ratio: 2 / 1;
}

.security-grid .security-card .security-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

@media (prefers-reduced-motion: reduce) {
  .security-lead:hover .security-media img,
  .security-card:hover .security-media img,
  .security-card:hover {
    transform: none;
  }
}

/* ===== 首屏 hero 居中 + 跑马灯 + 交易台 + FAQ（参考 PayUp 排版）===== */

/* 居中英雄区（计算器已下移，不在首屏）*/
.hero {
  min-height: calc(100svh - 64px);
  display: grid;
  place-items: center;
  text-align: center;
  padding: 40px 0;
}

.hero-intro {
  max-width: 900px;
  display: grid;
  justify-items: center;
  gap: 20px;
  animation: hero-rise 0.9s cubic-bezier(0.2, 0.7, 0.3, 1) both;
}

@keyframes hero-rise {
  from {
    opacity: 0;
    transform: translateY(28px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.hero-intro .edition {
  justify-content: center;
}

.hero-intro h1,
.hero-display {
  font-family: "Archivo Black", "Arial Black", Impact, system-ui, sans-serif;
  font-weight: 900;
  text-transform: uppercase;
  font-size: clamp(38px, 8.6vw, 118px);
  line-height: 0.9;
  letter-spacing: -0.02em;
  color: #0f0f0f;
  max-width: 16ch;
}

.hero-coin {
  display: inline-block;
  width: auto;
  height: 0.82em;
  margin: 0 0.05em;
  vertical-align: -0.06em;
  object-fit: contain;
  mix-blend-mode: multiply;
  pointer-events: none;
}

.hero-intro .lead {
  max-width: 640px;
  font-size: clamp(16px, 1.9vw, 21px);
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 4px;
}

.btn-primary,
.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 26px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 15px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.btn-primary {
  color: #ffffff;
  background: linear-gradient(140deg, var(--wl-brand-a), var(--wl-brand-b) 60%, var(--wl-brand-c));
  box-shadow: 0 16px 36px rgba(124, 58, 236, 0.38);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 46px rgba(124, 58, 236, 0.5);
}

.btn-ghost {
  color: var(--wl-ink);
  background: #ffffff;
  border: 1px solid var(--wl-line);
  box-shadow: 0 10px 26px rgba(72, 3, 189, 0.06);
}

.btn-ghost:hover {
  transform: translateY(-2px);
  border-color: rgba(124, 58, 236, 0.4);
}

.hero-intro .hero-stats {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  width: 100%;
  max-width: 640px;
  margin-top: 14px;
}

.hero-intro .hero-stat {
  text-align: left;
}

/* 货币跑马灯条带 */
.band {
  overflow: hidden;
  padding: 6px 0;
  border-block: 1px solid var(--wl-line);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.band-track {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  animation: band-marquee 30s linear infinite;
  will-change: transform;
}

.band-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 26px;
  font-size: 15px;
  font-weight: 800;
  color: var(--wl-ink);
  letter-spacing: 0.02em;
}

.band:hover .band-track {
  animation-play-state: paused;
}

@keyframes band-marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

/* 交易台 section（计算器独立成屏）*/
.desk .calculator {
  max-width: 760px;
  margin: 0 auto;
}

/* FAQ 手风琴 */
.faq-list {
  display: grid;
  gap: 12px;
}

.faq-item {
  border: 1px solid var(--wl-line);
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 14px 38px rgba(72, 3, 189, 0.07);
  overflow: hidden;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.faq-item:hover {
  border-color: rgba(124, 58, 236, 0.32);
  box-shadow: 0 22px 54px rgba(72, 3, 189, 0.14);
}

.faq-item summary {
  position: relative;
  cursor: pointer;
  list-style: none;
  padding: 20px 56px 20px 22px;
  font-weight: 800;
  color: var(--wl-ink);
  font-size: 16px;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 22px;
  top: 50%;
  transform: translateY(-50%);
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: var(--wl-brand);
  background: rgba(124, 58, 236, 0.1);
  font-weight: 800;
  transition: transform 0.3s ease, background 0.3s ease, color 0.3s ease;
}

.faq-item[open] summary::after {
  content: "–";
  color: #ffffff;
  background: linear-gradient(140deg, var(--wl-brand-a), var(--wl-brand-b));
  transform: translateY(-50%) rotate(180deg);
}

.faq-item p {
  margin: 0;
  padding: 0 22px 22px;
  color: var(--wl-text-2);
  line-height: 1.78;
  animation: faq-open 0.35s ease both;
}

@keyframes faq-open {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* 巨型页脚水印 */
.site-footer {
  position: relative;
  overflow: hidden;
  padding-top: 42px;
}

.footer-mark {
  width: min(1240px, calc(100% - 40px));
  margin: 0 auto;
  font-family: "Instrument Serif", Georgia, "Times New Roman", serif;
  font-size: clamp(40px, 9vw, 132px);
  line-height: 0.86;
  letter-spacing: -0.02em;
  color: rgba(201, 167, 255, 0.14);
  white-space: nowrap;
  user-select: none;
  pointer-events: none;
  text-align: center;
}

@media (max-width: 640px) {
  .hero-intro h1 {
    max-width: none;
  }

  .hero-intro .hero-stats {
    grid-template-columns: 1fr;
  }

  .desk .calculator {
    max-width: none;
  }

  .footer-mark {
    font-size: clamp(34px, 11vw, 72px);
    text-align: left;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-intro,
  .faq-item p {
    animation: none;
  }

  .btn-primary:hover,
  .btn-ghost:hover {
    transform: none;
  }
}

/* ===== 首屏漂浮钱物（代码动画：漂浮 + 鼠标视差）===== */
.hero-stage {
  position: relative;
  width: 100%;
  min-height: min(640px, 74svh);
  display: grid;
  place-items: center;
}

.hero-float {
  position: absolute;
  z-index: 3;
  width: clamp(76px, 11vw, 150px);
  height: auto;
  pointer-events: none;
  mix-blend-mode: multiply;
  filter: drop-shadow(0 20px 26px rgba(72, 3, 189, 0.18));
  translate: var(--px, 0px) var(--py, 0px);
  rotate: var(--rot, -6deg);
  transition: translate 0.35s ease-out;
  animation: float-y 6s ease-in-out infinite alternate;
  will-change: transform, translate;
}

.float-pouch {
  top: 1%;
  left: 2%;
  --rot: -9deg;
}

.float-roll {
  top: 12%;
  right: 2%;
  width: clamp(84px, 13vw, 176px);
  --rot: 15deg;
  animation-duration: 7.4s;
  animation-delay: 0.5s;
}

.float-roll2 {
  bottom: 3%;
  left: 12%;
  width: clamp(56px, 8vw, 108px);
  --rot: -24deg;
  animation-duration: 8.6s;
  animation-delay: 1.1s;
}

@keyframes float-y {
  from {
    transform: translateY(-12px);
  }
  to {
    transform: translateY(12px);
  }
}

@media (max-width: 640px) {
  .hero-float {
    mix-blend-mode: multiply;
  }

  .float-pouch {
    top: -1%;
    left: -2%;
    width: 66px;
  }

  .float-roll {
    top: 5%;
    right: -4%;
    width: 82px;
  }

  .float-roll2 {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-float {
    animation: none;
    transition: none;
    translate: 0 0;
  }
}

/* ===== 首屏纯白背景 ===== */
.hero {
  position: relative;
  isolation: isolate;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 50%;
  width: 100vw;
  transform: translateX(-50%);
  background: #ffffff;
  z-index: -1;
  pointer-events: none;
}

/* ===== 顶栏行情跑马灯（自动循环滚动）===== */
.market-tape {
  flex: 1;
  display: flex;
  justify-content: flex-start;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}

.tape-track {
  display: flex;
  flex-wrap: nowrap;
  flex: 0 0 auto;
  width: max-content;
  white-space: nowrap;
  animation: tape-marquee 26s linear infinite;
  will-change: transform;
}

.tape-track .tape-chip {
  margin-right: 10px;
}

.market-tape:hover .tape-track {
  animation-play-state: paused;
}

@keyframes tape-marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}
