/* ============================================================
   HOME — flagship page
   ============================================================ */

/* ---------------- HERO ---------------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(56px, 9vw, 120px) 0 clamp(64px, 8vw, 110px);
  border-bottom: 1px solid var(--line-soft);
}

.hero-grid-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(120% 90% at 70% 0%, #000 30%, transparent 78%);
  -webkit-mask-image: radial-gradient(120% 90% at 70% 0%, #000 30%, transparent 78%);
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: clamp(32px, 5vw, 72px);
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 6px 12px 6px 10px;
  border: 1px solid var(--line-strong);
  border-radius: 100px;
  font-family: var(--font-mono);
  font-size: calc(12px * var(--sv-font-scale, 1));
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--text-secondary);
  margin-bottom: 28px;
}

.live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--up);
  box-shadow: 0 0 0 0 rgba(46, 189, 133, 0.5);
  animation: pulse-dot 2s ease-out infinite;
}

@keyframes pulse-dot {
  0% { box-shadow: 0 0 0 0 rgba(46, 189, 133, 0.5); }
  70% { box-shadow: 0 0 0 8px rgba(46, 189, 133, 0); }
  100% { box-shadow: 0 0 0 0 rgba(46, 189, 133, 0); }
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(38px, 6vw, 74px);
  font-weight: 800;
  /* ⚠️ 行高必须容得下中文字形(糖哥 2026-09-02,用户反馈首页标题重叠)。
     1.02 是按 Archivo 调的 —— 拉丁字母 x-height 小,这个值绰绰有余;
     但中文是满框方块字,而且 Archivo 不含中文字形、实际由系统字体接管:
     实测 38px 字号下中文渲染高 **42px**,比 38.76px 的行高高出 3.24px。
     .ht-line 又是 inline-block(高度由 line-height 定死),超出的部分直接压到相邻行,
     三行标题就糊成一片。1.15 = 1.105(实测所需)+ 4% 余量,覆盖不同系统的中文字体差异。 */
  line-height: 1.15;
  letter-spacing: -0.035em;
  margin-bottom: 26px;
}

/* 标题按「整行」切分:每行一个完整文本节点,外语才能整句翻译、自由决定语序。
   2026-08-22 之前是把「可交易」三字单独 <span>,导致外语拼成 "inhandelbar"/"을(를)거래" 这类碎句。*/
.ht-line { display: inline-block; }

.ht-outline {
  color: transparent;
  -webkit-text-stroke: 1.4px var(--text-main);
  text-stroke: 1.4px var(--text-main);
}

.hero-sub {
  font-size: clamp(15px, 1.4vw, 17px);
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 36px;
  max-width: 520px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 48px;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 28px;
}

.stat-item { display: flex; flex-direction: column; gap: 6px; }

.stat-value {
  font-family: var(--font-mono);
  font-size: clamp(26px, 3vw, 34px);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1;
}

.stat-unit { font-size: 0.6em; color: var(--text-muted); margin-left: 1px; }

.stat-live { color: var(--up); }

.stat-label {
  font-size: calc(12px * var(--sv-font-scale, 1));
  color: var(--text-muted);
  font-family: var(--font-mono);
  letter-spacing: 0.02em;
}

.stat-divider {
  width: 1px;
  height: 34px;
  background: var(--line-soft);
}

/* ---------------- HERO TERMINAL (signature) ---------------- */
.hero-terminal {
  position: relative;
  background: var(--screen-bg);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  padding: 22px;
  box-shadow: var(--shadow-lift);
  backdrop-filter: blur(8px);
}

.hero-terminal::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(180deg, var(--hair-stroke), transparent 40%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.term-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.term-symbol { display: flex; align-items: center; gap: 12px; }

.term-tk {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: calc(12px * var(--sv-font-scale, 1));
  font-weight: 700;
  color: var(--text-main);
  background: var(--bg-core);
}

.term-pair {
  font-family: var(--font-display);
  font-size: calc(15px * var(--sv-font-scale, 1));
  font-weight: 700;
  letter-spacing: -0.01em;
}

.term-market {
  font-family: var(--font-mono);
  font-size: calc(11px * var(--sv-font-scale, 1));
  color: var(--text-muted);
  margin-top: 2px;
}

.term-live {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-mono);
  font-size: calc(11px * var(--sv-font-scale, 1));
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--up);
}

.term-price {
  display: flex;
  align-items: flex-end;
  gap: 16px;
  margin-bottom: 20px;
}

.term-last {
  font-family: var(--font-mono);
  font-size: clamp(34px, 4.4vw, 52px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.term-last.flash { animation: px-flash 0.5s ease; }
@keyframes px-flash { 0% { color: var(--up); } 100% { color: var(--text-main); } }

.term-delta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  font-family: var(--font-mono);
  font-size: calc(13px * var(--sv-font-scale, 1));
  font-weight: 600;
  padding-bottom: 4px;
}

.term-delta.up { color: var(--up); }
.term-delta.down { color: var(--down); }
.term-pct { font-size: calc(15px * var(--sv-font-scale, 1)); }

.term-chart {
  position: relative;
  height: 150px;
  margin-bottom: 18px;
  border-radius: var(--radius-sm);
  background:
    linear-gradient(var(--grid-line) 1px, transparent 1px) 0 0 / 100% 37.5px,
    var(--bg-core);
  border: 1px solid var(--line-soft);
  overflow: hidden;
}

.term-chart-svg {
  position: absolute;
  inset: 10px 44px 8px 12px;
}

.hero-pulse {
  transform-origin: center;
  transform-box: fill-box;
  animation: hero-ping 2s ease-out infinite;
}

@keyframes hero-ping {
  0% { transform: scale(1); opacity: 0.8; }
  70% { transform: scale(3.4); opacity: 0; }
  100% { transform: scale(3.4); opacity: 0; }
}

.term-axis {
  position: absolute;
  top: 10px;
  right: 8px;
  bottom: 10px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: calc(9px * var(--sv-font-scale, 1));
  color: var(--text-muted);
  text-align: right;
}

.term-foot {
  display: grid;
  grid-template-columns: repeat(4, 1fr); /* 2026-07-24 新增换手率格 */
  gap: 10px;
}
/* 4 格在窄屏放不下(实测 375px 溢出容器)→ 折成 2×2,不横向溢出 */
@media (max-width: 768px) {
  .term-foot { grid-template-columns: repeat(2, 1fr); }
}

.term-metric {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0; /* 允许收缩,防数值把格子撑出容器 */
  padding: 10px 12px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm);
  background: var(--bg-core);
}

.term-metric span {
  font-family: var(--font-mono);
  font-size: calc(10px * var(--sv-font-scale, 1));
  color: var(--text-muted);
  letter-spacing: 0.04em;
}

.term-metric b {
  font-family: var(--font-mono);
  font-size: calc(13px * var(--sv-font-scale, 1));
  font-weight: 600;
  color: var(--text-main);
}

/* ---------------- MODULES ---------------- */
.modules { padding: clamp(72px, 9vw, 120px) 0; }

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

.module-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 26px;
  background: var(--bg-card);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: inset 0 1px 0 var(--hair-stroke);
  transition: border-color var(--transition-normal), transform var(--transition-normal), background var(--transition-normal), box-shadow var(--transition-normal);
}

/* 底部光效 */
.module-card::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 96px;
  z-index: 0;
  background: radial-gradient(70% 120% at 50% 130%, var(--up-soft), transparent 72%);
  opacity: 0.55;
  transition: opacity var(--transition-normal);
  pointer-events: none;
}

.module-card:hover {
  border-color: var(--line-strong);
  transform: translateY(-4px);
  background: var(--bg-elevated);
  box-shadow: inset 0 1px 0 var(--hair-stroke), 0 20px 50px -20px var(--up-soft);
}
.module-card:hover::after { opacity: 1; }

/* 内嵌主题背景图 */
.module-bg {
  position: absolute;
  right: -16px;
  bottom: -16px;
  width: 148px;
  height: 148px;
  z-index: 0;
  color: var(--text-main);
  opacity: 0.05;
  pointer-events: none;
  transition: opacity var(--transition-normal), color var(--transition-normal), transform var(--transition-slow);
}
.module-bg svg { width: 100%; height: 100%; display: block; }
.module-card:hover .module-bg { opacity: 0.14; color: var(--up); transform: scale(1.06) rotate(-3deg); }

.module-top {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 22px;
}

.module-ic {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  background: var(--bg-core);
  transition: color var(--transition-normal), border-color var(--transition-normal);
}

.module-card:hover .module-ic {
  color: var(--up);
  border-color: rgba(46, 189, 133, 0.3);
}

.module-id {
  font-family: var(--font-mono);
  font-size: calc(11px * var(--sv-font-scale, 1));
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.module-top,
.module-title,
.module-desc { position: relative; z-index: 1; }

.module-title {
  font-family: var(--font-display);
  font-size: calc(21px * var(--sv-font-scale, 1));
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}

.module-desc {
  font-size: calc(14px * var(--sv-font-scale, 1));
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 22px;
  flex: 1;
}

.module-link {
  position: relative;
  z-index: 1;
  font-family: var(--font-mono);
  font-size: calc(13px * var(--sv-font-scale, 1));
  font-weight: 500;
  color: var(--text-main);
  transition: letter-spacing var(--transition-fast);
}

.module-card:hover .module-link { letter-spacing: 0.02em; }

/* ---------------- MARKET BOARD ---------------- */
.market-preview {
  padding: clamp(72px, 9vw, 120px) 0;
  border-top: 1px solid var(--line-soft);
}

.market-board {
  background: var(--bg-panel);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.market-tabs {
  display: flex;
  gap: 2px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line-soft);
  overflow-x: auto;
  scrollbar-width: none;
}
.market-tabs::-webkit-scrollbar { display: none; }

.market-tab {
  flex: 0 0 auto;
  min-height: 44px;
  padding: 8px 18px;
  font-size: calc(13px * var(--sv-font-scale, 1));
  font-weight: 600;
  color: var(--text-muted);
  background: transparent;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition-fast);
  font-family: var(--font-body);
}

.market-tab:hover { color: var(--text-main); }

.market-tab.active {
  color: var(--text-main);
  background: var(--accent-soft);
}

.market-table-container { overflow-x: auto; }

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

.market-table th,
.market-table td {
  padding: 15px 18px;
  text-align: left;
}

.market-table th.num,
.market-table td.num { text-align: right; font-variant-numeric: tabular-nums; }
.market-table th.right,
.market-table td.right { text-align: right; }

.market-table th {
  font-family: var(--font-mono);
  font-size: calc(11px * var(--sv-font-scale, 1));
  font-weight: 500;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-bottom: 1px solid var(--line-soft);
}

.market-table tbody tr {
  border-bottom: 1px solid var(--line-soft);
  transition: background var(--transition-fast);
}

.market-table tbody tr:hover { background: var(--accent-soft); }
.market-table tbody tr:last-child { border-bottom: none; }

.th-go, .cell-go { width: 40px; text-align: right; }
.go-arrow {
  display: inline-block; color: var(--text-muted); font-size: calc(20px * var(--sv-font-scale, 1)); line-height: 1;
  transition: color var(--transition-fast), transform var(--transition-fast);
}
.market-table tbody tr:hover .go-arrow { color: var(--text-main); transform: translateX(2px); }

.symbol-cell { display: flex; align-items: center; gap: 12px; }

.symbol-icon {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  background: var(--bg-core);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: calc(11px * var(--sv-font-scale, 1));
  font-weight: 700;
  color: var(--text-main);
}

.symbol-name { font-size: calc(14px * var(--sv-font-scale, 1)); font-weight: 600; }
.symbol-tag { font-size: calc(12px * var(--sv-font-scale, 1)); color: var(--text-muted); }

.price-cell {
  font-family: var(--font-mono);
  font-size: calc(14px * var(--sv-font-scale, 1));
  font-weight: 600;
}

.change-cell {
  font-family: var(--font-mono);
  font-size: calc(14px * var(--sv-font-scale, 1));
  font-weight: 600;
}

.change-cell.up { color: var(--up); }
.change-cell.down { color: var(--down); }

.volume-cell {
  font-family: var(--font-mono);
  font-size: calc(13px * var(--sv-font-scale, 1));
  color: var(--text-secondary);
}

.table-link {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  background: transparent;
  color: var(--text-main);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: calc(12px * var(--sv-font-scale, 1));
  font-weight: 600;
  text-decoration: none;
  transition: all var(--transition-fast);
}

.table-link:hover {
  background: var(--text-main);
  color: var(--bg-core);
  border-color: var(--text-main);
}

/* ---------------- WORKBENCH SHOWCASE ---------------- */
.workbench-showcase {
  padding: clamp(72px, 9vw, 120px) 0;
  border-top: 1px solid var(--line-soft);
}

.showcase-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(40px, 5vw, 72px);
  align-items: center;
}

.showcase-content .section-label,
.showcase-content .section-title { text-align: left; }

.showcase-content .section-title { margin-bottom: 20px; }

.showcase-description {
  font-size: calc(16px * var(--sv-font-scale, 1));
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 32px;
}

.showcase-features {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 34px;
}

.showcase-feature {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 0;
  border-top: 1px solid var(--line-soft);
}

.showcase-feature:last-child { border-bottom: 1px solid var(--line-soft); }

.sf-index {
  width: 30px;
  height: 30px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: calc(12px * var(--sv-font-scale, 1));
  font-weight: 600;
  color: var(--text-muted);
}

.showcase-feature-title { font-size: calc(15px * var(--sv-font-scale, 1)); font-weight: 600; margin-bottom: 3px; }
.showcase-feature-desc { font-size: calc(13px * var(--sv-font-scale, 1)); color: var(--text-muted); }

.showcase-actions { display: flex; gap: 12px; }

/* mockup */
.mockup-frame {
  background: var(--bg-panel);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lift);
}

.mockup-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 16px;
  background: var(--bg-core);
  border-bottom: 1px solid var(--line-soft);
}

.mockup-dots { display: flex; gap: 6px; }
.mockup-dots span {
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--line-strong);
}

.mockup-title {
  font-family: var(--font-mono);
  font-size: calc(12px * var(--sv-font-scale, 1));
  color: var(--text-muted);
}

.mockup-chart {
  position: relative;
  padding: 14px 16px 16px;
}

.wb-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  padding-bottom: 12px;
  margin-bottom: 6px;
  border-bottom: 1px solid var(--line-soft);
}

.wb-quote {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-family: var(--font-mono);
}

.wb-pair { font-size: calc(13px * var(--sv-font-scale, 1)); font-weight: 600; color: var(--text-secondary); }
.wb-last { font-size: calc(18px * var(--sv-font-scale, 1)); font-weight: 700; letter-spacing: -0.02em; }
.wb-last.up, .wb-chg.up { color: var(--up); }
.wb-chg { font-size: calc(12px * var(--sv-font-scale, 1)); font-weight: 600; }

.wb-legend {
  display: flex;
  gap: 14px;
  font-family: var(--font-mono);
  font-size: calc(11px * var(--sv-font-scale, 1));
  color: var(--text-muted);
}

.wb-legend span { display: inline-flex; align-items: center; gap: 6px; }
.wb-legend i { width: 12px; height: 2px; border-radius: 1px; }
.lg-ma7 { background: var(--text-main); }
.lg-ma25 { background: var(--warn); }
.lg-vol { background: var(--text-muted); }

.wb-chart {
  height: 300px;
  background:
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px) 0 0 / 63px 100%,
    var(--bg-core);
  border-radius: var(--radius-sm);
}

.wb-chart svg { display: block; }

/* ---------------- CTA ---------------- */
.cta-section {
  padding: clamp(72px, 9vw, 120px) 0;
  border-top: 1px solid var(--line-soft);
}

.cta-content {
  position: relative;
  text-align: center;
  max-width: 780px;
  margin: 0 auto;
  padding: clamp(48px, 7vw, 80px) 40px;
  background: var(--bg-panel);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-xl);
  overflow: hidden;
}

.cta-grid-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(80% 80% at 50% 50%, #000, transparent 75%);
  -webkit-mask-image: radial-gradient(80% 80% at 50% 50%, #000, transparent 75%);
}

.cta-art {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  width: 100%; height: 55%;
  z-index: 0;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 20%, #000 80%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 20%, #000 80%, transparent);
}

.cta-glow {
  position: absolute;
  left: 50%; bottom: -40%;
  transform: translateX(-50%);
  width: 620px; height: 320px;
  z-index: 0;
  background: radial-gradient(closest-side, var(--up-soft), transparent 72%);
  pointer-events: none;
}

.cta-title {
  position: relative;
  z-index: 1;
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 14px;
}

.cta-description {
  position: relative;
  z-index: 1;
  font-size: calc(16px * var(--sv-font-scale, 1));
  color: var(--text-secondary);
  margin-bottom: 32px;
}

.cta-actions {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
}

/* ---------------- BANNER CAROUSEL ---------------- */
.banner { padding: clamp(28px, 4vw, 44px) 0 0; }

.banner-viewport {
  position: relative;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-panel);
}

.banner-track {
  display: flex;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.banner-slide {
  position: relative;
  flex: 0 0 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 300px;
  padding: 44px clamp(28px, 5vw, 56px);
  overflow: hidden;
  background: #08090c;
}
.banner-photo {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: center;
  z-index: 0;
}
.banner-scrim {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(90deg, rgba(6,7,10,0.94) 0%, rgba(6,7,10,0.78) 40%, rgba(6,7,10,0.28) 74%, rgba(6,7,10,0.05) 100%);
}
.banner-copy { position: relative; z-index: 2; max-width: 56%; }
/* text sits over dark photo → always light, both themes */
.banner-tag { color: rgba(255,255,255,0.88) !important; }
.banner-title { color: #ffffff !important; }
.banner-text { color: rgba(255,255,255,0.82) !important; }

.banner-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: calc(12px * var(--sv-font-scale, 1));
  letter-spacing: 0.04em;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.banner-title {
  font-family: var(--font-display);
  font-size: clamp(22px, 3vw, 34px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 12px;
}

.banner-text {
  font-size: calc(15px * var(--sv-font-scale, 1));
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 480px;
  margin-bottom: 24px;
}

.banner-art {
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: 56%;
  z-index: 1;
  pointer-events: none;
  user-select: none;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 32%);
  mask-image: linear-gradient(90deg, transparent, #000 32%);
}
.banner-svg { width: 100%; height: 100%; display: block; }
.art-word { font-family: var(--font-mono); font-size: calc(12px * var(--sv-font-scale, 1)); letter-spacing: 0.4em; fill: var(--text-disabled); }

/* candlestick poster */
.art-candles .cu { fill: var(--up); stroke: var(--up); stroke-width: 1.5; }
.art-candles .cd { fill: var(--down); stroke: var(--down); stroke-width: 1.5; }
.art-bars rect { fill: var(--ice); }

/* radar sweep + blips */
.radar-sweep { transform-box: view-box; transform-origin: 300px 130px; animation: radar-spin 4.5s linear infinite; }
@keyframes radar-spin { to { transform: rotate(360deg); } }
.blip { animation: blip-pulse 2.4s ease-out infinite; transform-box: fill-box; transform-origin: center; }
.blip.b2 { animation-delay: 0.8s; }
.blip.b3 { animation-delay: 1.6s; }
@keyframes blip-pulse { 0% { opacity: 0.3; } 40% { opacity: 1; } 100% { opacity: 0.3; } }

.banner-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: var(--bg-glass);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition-fast);
  backdrop-filter: blur(6px);
}

.banner-arrow:hover { color: var(--text-main); border-color: var(--text-main); }
.banner-arrow.prev { left: 16px; }
.banner-arrow.next { right: 16px; }

.banner-dots {
  position: absolute;
  bottom: 18px;
  left: clamp(28px, 5vw, 56px);
  display: flex;
  gap: 8px;
}

.banner-dot {
  width: 22px;
  height: 4px;
  border: none;
  border-radius: 2px;
  background: var(--line-strong);
  cursor: pointer;
  transition: background var(--transition-fast), width var(--transition-fast);
}

.banner-dot.is-active { background: var(--text-main); width: 34px; }

/* ---------------- PARTNERS ---------------- */
.partners {
  padding: clamp(72px, 9vw, 120px) 0;
  border-top: 1px solid var(--line-soft);
}

.partners-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 16px;
}

.partner-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 18px;
  min-height: 150px;
  padding: 28px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  overflow: hidden;
  transition: border-color var(--transition-normal), background var(--transition-normal);
}

.partner-card.featured:hover { border-color: var(--line-strong); background: var(--bg-elevated); }

.partner-logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--text-main);
  opacity: 0.55;
  transition: opacity var(--transition-normal);
}

.partner-card.featured:hover .partner-logo { opacity: 1; }

.partner-word {
  font-family: var(--font-display);
  font-size: calc(30px * var(--sv-font-scale, 1));
  font-weight: 800;
  letter-spacing: -0.02em;
}

.partner-meta { display: flex; flex-direction: column; gap: 3px; }

.partner-role {
  font-family: var(--font-mono);
  font-size: calc(11px * var(--sv-font-scale, 1));
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.partner-name { font-size: calc(14px * var(--sv-font-scale, 1)); font-weight: 600; color: var(--text-secondary); }

.partner-card.placeholder {
  align-items: center;
  justify-content: center;
  text-align: center;
  border-style: dashed;
  background: transparent;
}

.partner-soon {
  font-family: var(--font-display);
  font-size: calc(16px * var(--sv-font-scale, 1));
  font-weight: 700;
  color: var(--text-muted);
}

.partner-hint {
  font-family: var(--font-mono);
  font-size: calc(11px * var(--sv-font-scale, 1));
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-disabled);
}

/* ---------------- RESPONSIVE ---------------- */
@media (max-width: 1024px) {
  .partners-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-terminal { max-width: 520px; }
  .modules-grid { grid-template-columns: repeat(2, 1fr); }
  .showcase-grid { grid-template-columns: 1fr; }
  .showcase-mockup { order: -1; }
}

@media (max-width: 768px) {
  .hero-stats { gap: 18px; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; }
  .modules-grid { grid-template-columns: 1fr; }
  .cta-actions { flex-direction: column; }
  .cta-actions .btn { width: 100%; }
  .wb-chart { height: 240px; }
  .banner-slide { min-height: 0; padding: 30px 24px 46px; }
  .banner-copy { max-width: 100%; }
  .banner-art { display: none; }
  .banner-arrow { display: none; }
  .partners-grid { grid-template-columns: 1fr; }

  /* 市场预览:手机上免横滑,只留 标的/最新价/涨跌(+箭头) */
  .market-table-container { overflow-x: visible; }
  .market-table { min-width: 0; }
  .market-table .col-opt { display: none; }
  .market-table th, .market-table td { padding: 13px 12px; }
}

/* 公告轮播条(banner 下方):与重要公告弹窗共享主题令牌 */
.ann-strip { border-top: 1px solid var(--line-strong); border-bottom: 1px solid var(--line-soft); background: var(--bg-elevated); box-shadow: var(--shadow-soft); }
.ann-strip[hidden] { display: none; }
.ann-strip-inner { display: flex; align-items: center; gap: 12px; padding: 9px 32px; }
.ann-strip-tag { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 7px; font-size: calc(11px * var(--sv-font-scale, 1)); font-weight: 750; letter-spacing: .08em; color: var(--warn); }
.ann-strip-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--warn); box-shadow: 0 0 0 4px var(--warn-soft); }
.ann-strip-track { flex: 1; min-width: 0; overflow: hidden; }
.ann-item { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: calc(13px * var(--sv-font-scale, 1)); color: var(--text-secondary); animation: annFade .4s ease; }
@keyframes annFade { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
@media (max-width: 640px) { .ann-strip-inner { padding: 8px 14px; } .ann-item { font-size: calc(12px * var(--sv-font-scale, 1)); } }

/* ============================================================
   Footer Launch — 首页页脚:实拍火箭发射长曝光照做整块背景
   构图对标 TradingView:轨迹在右、地平线压底、左侧压暗留给文案
   图源 Artemis I 发射(NASA),公共领域
   ============================================================ */

.footer-launch {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: clamp(420px, 42vw, 620px);
  background: var(--bg-core);
  /* 照片是夜景,页脚固定走深色:局部改写文本/描线令牌,
     浅色与藏青主题下页脚内文字自动转浅色,无需第二套配色 */
  --text-main: #f4f5f7;
  --accent: #f4f5f7;
  --text-secondary: #b0b4bd;
  --text-muted: #8a8e97;
  --line-soft: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.16);
  /* color 是从 body 继承的已算出颜色,只改变量对它无效,必须显式重设 */
  color: var(--text-main);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-launch::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image: url('../assets/footer-launch.webp');
  /* 高度铺满、右对齐:宽屏下照片整段轨迹完整可见,
     左侧不足的部分交给下面的横向渐变填成深色(本来就要压暗放文案) */
  background-size: auto 100%;
  background-position: right bottom;
  background-repeat: no-repeat;
  /* 关键:screen 混合让照片的暗天空被页面底色顶掉,
     天空 = 当前主题的 --bg-core,只留下发光的轨迹与云,和主页背景零冲突 */
  mix-blend-mode: screen;
  transition: filter .25s ease;
}

/* 一张图三套观感:主题切换时照片跟着调色 */
:root[data-theme="navy"] .footer-launch::before {
  filter: hue-rotate(-14deg) saturate(1.12) brightness(1.08);
}

/* 浅色主题:换成真实的白天发射照(Artemis II,NASA 公共领域)。
   白天空本身就是浅色,和白色页面底自然衔接,不需要任何混合或反相,
   照片零处理呈现;页脚文字令牌整组翻回深字 */
:root[data-theme="light"] .footer-launch::before {
  background-image: url('../assets/footer-launch-day.webp');
  mix-blend-mode: normal;
}

:root[data-theme="light"] .footer-launch {
  --text-main: #0f1115;
  --accent: #0f1115;
  --text-secondary: #4a5058;
  --text-muted: #767b84;
  --text-disabled: #a8adb5;
  --line-soft: rgba(15, 17, 21, 0.08);
  --line-strong: rgba(15, 17, 21, 0.16);
  border-top-color: rgba(15, 17, 21, 0.08);
}

:root[data-theme="light"] .footer-launch::after {
  background:
    linear-gradient(90deg, var(--bg-core) 0%, var(--bg-core) 30%, rgba(255, 255, 255, 0.88) 42%, rgba(255, 255, 255, 0.46) 58%, rgba(255, 255, 255, 0.14) 70%, transparent 82%),
    linear-gradient(180deg, var(--bg-core) 0%, rgba(255, 255, 255, 0.42) 22%, transparent 46%),
    linear-gradient(0deg, rgba(255, 255, 255, 0.5) 0%, rgba(255, 255, 255, 0.22) 14%, transparent 30%);
}

:root[data-theme="light"] .footer-launch .footer-description,
:root[data-theme="light"] .footer-launch .footer-column a,
:root[data-theme="light"] .footer-launch .footer-column h4,
:root[data-theme="light"] .footer-launch .footer-bottom,
:root[data-theme="light"] .footer-launch .footer-bottom * {
  text-shadow: 0 1px 4px rgba(255, 255, 255, 0.92);
}

/* 左侧与顶部压暗:保证页脚文字对比度,同时让照片从页面底色里长出来 */
.footer-launch::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, var(--bg-core) 0%, var(--bg-core) 30%, rgba(5, 7, 11, 0.9) 42%, rgba(0, 0, 0, 0.46) 58%, rgba(0, 0, 0, 0.16) 70%, transparent 82%),
    linear-gradient(180deg, var(--bg-core) 0%, rgba(0, 0, 0, 0.42) 22%, transparent 46%),
    linear-gradient(0deg, rgba(0, 0, 0, 0.62) 0%, rgba(0, 0, 0, 0.3) 14%, transparent 30%);
}

/* 文字全程压在照片上,统一给一层投影兜住对比度 */
.footer-launch .footer-description,
.footer-launch .footer-column a,
.footer-launch .footer-column h4,
.footer-launch .footer-bottom,
.footer-launch .footer-bottom * {
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.85);
}

.footer-launch .container {
  position: relative;
  z-index: 1;
}

@media (max-width: 900px) {
  .footer-launch { min-height: 520px; }
  .footer-launch::before {
    background-size: cover;
    background-position: 72% bottom;
  }
  /* 窄屏文字铺满宽度,改为整体压暗 */
  .footer-launch::after {
    background:
      linear-gradient(180deg, var(--bg-core) 0%, rgba(0, 0, 0, 0.82) 26%, rgba(0, 0, 0, 0.62) 62%, rgba(0, 0, 0, 0.35) 100%);
  }
}

/* 文案区收在左侧,右半幅完整留给照片(对标 TradingView 页脚排布) */
.footer-launch .footer-grid {
  max-width: min(1040px, 68%);
  margin-bottom: 0;
}

/* 版权/声明并入品牌列,竖排在描述下方:不再横跨底部压住火箭 */
.footer-launch .footer-bottom {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  margin-top: 32px;
  padding-top: 0;
  border-top: 0;
  line-height: 1.7;
}

.footer-launch .footer-bottom .footer-tag {
  margin-top: 6px;
  color: var(--text-disabled);
}

@media (max-width: 900px) {
  .footer-launch .footer-grid { max-width: none; }
  .footer-launch .footer-bottom { align-items: flex-start; text-align: left; }
}

/* 首页是营销页:版心走窄档(见 global.css 的 --page-narrow)。
   放到 --page-max 那一档的话,六张模块卡在 2K 屏上每张要撑到 579px,里面就那几行字,越大越空。 */
.container { max-width: var(--page-narrow); }
