/* ==========================================================================
   链光 · 多链资产浏览器 —— 全站样式
   设计：深色宇宙底色 + 玻璃拟态面板 + 链色点缀；移动端优先，PC 自适应。
   ========================================================================== */

:root {
  --bg: #070b14;
  --bg-2: #0b1120;
  --surface: rgba(18, 25, 43, 0.72);
  --surface-solid: #121a2b;
  --surface-2: rgba(26, 36, 60, 0.6);
  --line: rgba(120, 145, 200, 0.16);
  --line-strong: rgba(130, 160, 220, 0.34);
  --text: #e9eefc;
  --muted: #8b9ab8;
  --muted-2: #64708c;
  --accent: #4fd1c5;
  --accent-2: #7c8cf8;
  --accent-3: #c084fc;
  --up: #22d39a;
  --down: #ff6b81;
  --warn: #f5b544;
  --radius: 16px;
  --radius-sm: 10px;
  --radius-lg: 22px;
  --shadow: 0 18px 50px rgba(2, 6, 18, 0.55);
  --shadow-soft: 0 6px 22px rgba(2, 6, 18, 0.4);
  --mono: ui-monospace, SFMono-Regular, "SF Mono", "JetBrains Mono", Menlo, Consolas, "Liberation Mono", monospace;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", "Noto Sans SC", Roboto, Helvetica, Arial, sans-serif;
  --max: 1180px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 15.5px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ---------- 背景装饰 ---------- */
.bg-grid {
  position: fixed;
  inset: 0;
  z-index: -2;
  background-image:
    linear-gradient(rgba(124, 140, 248, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(124, 140, 248, 0.055) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: radial-gradient(ellipse 90% 65% at 50% 0%, #000 20%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 90% 65% at 50% 0%, #000 20%, transparent 78%);
}

.bg-aurora {
  position: fixed;
  inset: -20% -10% auto -10%;
  height: 78vh;
  z-index: -3;
  background:
    radial-gradient(42% 55% at 18% 22%, rgba(79, 209, 197, 0.20), transparent 70%),
    radial-gradient(38% 50% at 78% 12%, rgba(192, 132, 252, 0.20), transparent 72%),
    radial-gradient(50% 62% at 50% 0%, rgba(124, 140, 248, 0.22), transparent 75%);
  filter: blur(18px);
  pointer-events: none;
}

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: 20px; }

/* ⚠️ 这条规则必须有，而且要 !important。
   浏览器自带的 [hidden]{display:none} 优先级极低，任何作者写的
   display:inline-flex / grid / block 都会盖过它 —— 于是 element.hidden = true
   完全失效。本项目里 .icon-btn / .clear-btn / .qr-badge / .qr-box canvas
   都设了自己的 display，导致「安装 App」按钮、清除按钮、以及二维码
   「已校验」绿标无论 JS 怎么隐藏都一直显示（绿标尤其危险：配置校验失败、
   二维码被拒绝渲染时，它仍然挂着，用户会以为码是可信的）。 */
[hidden] { display: none !important; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--accent); color: #04121a; padding: 10px 16px; border-radius: 0 0 10px 0;
  font-weight: 700; text-decoration: none;
}
.skip-link:focus { left: 0; }

/* ---------- 顶栏 ---------- */
.site-header {
  position: sticky; top: 0; z-index: 40;
  backdrop-filter: blur(16px) saturate(1.5);
  -webkit-backdrop-filter: blur(16px) saturate(1.5);
  background: linear-gradient(180deg, rgba(7, 11, 20, 0.92), rgba(7, 11, 20, 0.68));
  border-bottom: 1px solid var(--line);
}

.header-inner { display: flex; align-items: center; gap: 18px; height: 64px; }

.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; color: inherit; flex: none; }
.brand-mark::after {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  background: radial-gradient(circle, rgba(124, 140, 248, 0.55), transparent 70%);
  animation: brand-pulse 3.4s ease-in-out infinite;
  will-change: transform, opacity;
  pointer-events: none;
}
.brand-mark {
  position: relative;
  display: grid; place-items: center; width: 42px; height: 42px; border-radius: 13px;
  background: rgba(124, 140, 248, 0.10);
  border: 1px solid var(--line-strong);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08);
  overflow: hidden;
  position: relative;
}
/* 品牌标的缓慢旋转光晕：纯 transform 动画，开销很低 */
.brand-mark::before {
  content: ""; position: absolute; inset: -50%;
  background: conic-gradient(from 0deg, transparent 0 62%, rgba(79, 209, 197, 0.55) 78%, rgba(192, 132, 252, 0.55) 92%, transparent 100%);
  animation: spin-slow 7s linear infinite;
}
.brand-mark > svg { position: relative; z-index: 1; }
@keyframes spin-slow { to { transform: rotate(360deg); } }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { font-size: 16.5px; letter-spacing: 0.02em; }
.brand-text small { color: var(--muted); font-size: 11.5px; letter-spacing: 0.08em; text-transform: uppercase; }

.header-nav { display: flex; gap: 4px; margin-left: auto; }
.nav-link {
  color: var(--muted); text-decoration: none; font-size: 14px; padding: 8px 12px; border-radius: 9px;
  transition: color 0.2s var(--ease), background 0.2s var(--ease);
}
.nav-link:hover { color: var(--text); background: rgba(124, 140, 248, 0.12); }

.header-actions { display: flex; align-items: center; gap: 8px; }

.icon-btn {
  display: inline-flex; align-items: center; gap: 7px; cursor: pointer;
  background: rgba(124, 140, 248, 0.10); color: var(--text);
  border: 1px solid var(--line-strong); border-radius: 10px;
  padding: 8px 12px; font: inherit; font-size: 13px; font-weight: 600;
  transition: transform 0.15s var(--ease), background 0.2s var(--ease);
}
.icon-btn:hover { background: rgba(124, 140, 248, 0.2); transform: translateY(-1px); }

/* ---------- Hero / 查询 ---------- */
.hero { padding: 56px 0 34px; text-align: center; }
.hero-title {
  margin: 0 0 14px; font-size: clamp(28px, 5.2vw, 48px); line-height: 1.14;
  letter-spacing: -0.02em; font-weight: 800;
}
.grad {
  background: linear-gradient(100deg, var(--accent) 0%, var(--accent-2) 48%, var(--accent-3) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-sub {
  margin: 0 auto 26px; max-width: 720px; color: var(--muted); font-size: clamp(14px, 1.7vw, 16.5px);
}

/* ---------- 四条链的大图标入口 ---------- */
.chain-hero {
  display: grid; gap: 14px; margin: 26px 0 18px;
  grid-template-columns: repeat(5, minmax(0, 1fr));
}
.chain-card {
  --chain: #7c8cf8;
  position: relative; isolation: isolate;
  display: flex; flex-direction: column; align-items: center; gap: 9px;
  padding: 18px 10px 15px; cursor: pointer; font: inherit; color: var(--text);
  background: linear-gradient(180deg, rgba(20, 28, 48, 0.72), rgba(12, 18, 32, 0.72));
  border: 1px solid var(--line); border-radius: 20px;
  transition: transform 0.25s var(--ease), border-color 0.25s var(--ease), box-shadow 0.3s var(--ease);
  transform: translateZ(0);
}
.chain-card:hover { transform: translateY(-4px); }
.chain-card:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* 两圈装饰：静止光晕 + 缓慢自转的虚线环 */
.chain-ring, .chain-ring-spin {
  position: absolute; top: 10px; left: 50%; margin-left: -52px;
  width: 104px; height: 104px; border-radius: 50%; pointer-events: none; z-index: -1;
}
.chain-ring {
  background: radial-gradient(circle, var(--chain) 0%, transparent 68%);
  opacity: 0.22; transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
}
.chain-ring-spin {
  border: 1px dashed var(--chain);
  opacity: 0; animation: spin-slow 22s linear infinite;
  transition: opacity 0.35s var(--ease);
}
.chain-card:hover .chain-ring { opacity: 0.4; transform: scale(1.06); }
.chain-card:hover .chain-ring-spin,
.chain-card[aria-pressed="true"] .chain-ring-spin { opacity: 0.5; }

.chain-icon {
  display: grid; place-items: center; width: 96px; height: 96px; border-radius: 50%;
  background: rgba(7, 11, 20, 0.55);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  transition: box-shadow 0.35s var(--ease);
}
.chain-icon img {
  width: 88px; height: 88px; display: block; border-radius: 50%;
  transition: transform 0.35s var(--ease);
}
.chain-card:hover .chain-icon img { transform: scale(1.07) rotate(-3deg); }
.chain-card[aria-pressed="true"] .chain-icon::after {
  content: "";
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  border: 2px solid var(--chain);
  animation: selected-ring 2.4s ease-in-out infinite;
  will-change: transform, opacity;
}
.chain-card[aria-pressed="true"] .chain-icon {
  box-shadow: 0 0 0 2px var(--chain), 0 10px 34px rgba(0, 0, 0, 0.45);
}
.chain-card[aria-pressed="true"] { border-color: var(--chain); }
.chain-name { font-size: 14px; font-weight: 700; letter-spacing: 0.01em; }
.chain-sub { font-size: 11.4px; color: var(--muted-2); font-family: var(--mono); }

.chain-card[aria-pressed="true"] .chain-icon img { animation: breathe 3.4s ease-in-out infinite; }
@keyframes breathe {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

/* 标题流动渐变 + 按钮呼吸光圈 + 结果区入场 */
.hero-title .grad { background-size: 260% 100%; animation: grad-flow 7s ease-in-out infinite; }
@keyframes grad-flow {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}
.primary-btn { position: relative; }
.primary-btn::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  /* 环本身固定，靠 scale 放大 —— 不产生重绘 */
  box-shadow: 0 0 0 2px rgba(79, 209, 197, 0.9);
  animation: halo 3.2s ease-out infinite;
  will-change: transform, opacity;
}
/**
 * 光晕扩散环。
 *
 * ⚠️ 这里刻意**不用 box-shadow**。
 *    box-shadow 的扩散每一帧都要重新绘制，手机 GPU 顶不住 —— 滑表格时掉帧。
 *    改成「固定大小的环 + transform: scale 放大 + opacity 淡出」，
 *    只走合成层，不触发绘制。视觉几乎一样，帧率差很多。
 */
@keyframes halo {
  0% { transform: scale(1); opacity: 0.42; }
  70% { transform: scale(1.55); opacity: 0; }
  100% { transform: scale(1.55); opacity: 0; }
}
.results .panel, .results .stat-card { animation: fadeUp 0.5s var(--ease) both; }
.stat-card:nth-child(2) { animation-delay: 0.05s; }
.stat-card:nth-child(3) { animation-delay: 0.1s; }
.stat-card:nth-child(4) { animation-delay: 0.15s; }

.chain-pills { display: flex; flex-wrap: wrap; gap: 9px; justify-content: center; margin-bottom: 18px; }
.chain-pill {
  display: inline-flex; align-items: center; gap: 8px; cursor: pointer;
  padding: 8px 15px 8px 9px; border-radius: 999px; font: inherit; font-size: 13.5px; font-weight: 600;
  color: var(--muted); background: rgba(18, 25, 43, 0.7); border: 1px solid var(--line);
  transition: all 0.2s var(--ease);
}
.chain-pill img { width: 28px; height: 28px; display: block; }
.chain-pill:hover { color: var(--text); border-color: var(--line-strong); transform: translateY(-1px); }
.chain-pill[aria-selected="true"] {
  color: #fff; border-color: transparent;
  background: linear-gradient(135deg, rgba(79, 209, 197, 0.22), rgba(124, 140, 248, 0.26));
  box-shadow: 0 0 0 1px rgba(124, 140, 248, 0.45), 0 8px 26px rgba(79, 209, 197, 0.16);
}
.chain-pill .pill-sub { color: var(--muted-2); font-weight: 500; font-size: 12px; }
.chain-pill[aria-selected="true"] .pill-sub { color: rgba(233, 238, 252, 0.72); }

.search-card {
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  padding: 16px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  text-align: left;
}
.search-row { display: flex; gap: 10px; }
.search-field { position: relative; flex: 1 1 auto; display: flex; align-items: center; }
.search-icon { position: absolute; left: 14px; color: var(--muted-2); pointer-events: none; }
#search-input {
  width: 100%; padding: 15px 44px 15px 44px; font: inherit; font-size: 15.5px;
  font-family: var(--mono); color: var(--text);
  background: rgba(7, 11, 20, 0.72); border: 1px solid var(--line);
  border-radius: 13px; outline: none; transition: border-color 0.2s, box-shadow 0.2s;
}
#search-input::placeholder { font-family: var(--sans); color: var(--muted-2); }
#search-input:focus { border-color: rgba(79, 209, 197, 0.65); box-shadow: 0 0 0 4px rgba(79, 209, 197, 0.12); }
#search-input.invalid { border-color: rgba(255, 107, 129, 0.7); box-shadow: 0 0 0 4px rgba(255, 107, 129, 0.12); }

.clear-btn {
  position: absolute; right: 10px; width: 26px; height: 26px; border-radius: 50%;
  border: none; cursor: pointer; background: rgba(140, 160, 200, 0.18); color: var(--muted);
  font-size: 17px; line-height: 1; display: grid; place-items: center;
}
.clear-btn:hover { background: rgba(140, 160, 200, 0.3); color: var(--text); }

.primary-btn {
  position: relative; flex: none; min-width: 132px; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 15px 26px; border: none; border-radius: 13px; font: inherit; font-size: 15.5px; font-weight: 700;
  color: #04121a; background: linear-gradient(120deg, var(--accent), var(--accent-2));
  box-shadow: 0 12px 30px rgba(79, 209, 197, 0.26);
  transition: transform 0.15s var(--ease), box-shadow 0.2s var(--ease), filter 0.2s;
}
.primary-btn:hover { transform: translateY(-2px); box-shadow: 0 16px 38px rgba(79, 209, 197, 0.34); }
.primary-btn:active { transform: translateY(0); }
.primary-btn:disabled { cursor: progress; filter: saturate(0.65) brightness(0.9); transform: none; }

.spinner {
  width: 17px; height: 17px; border-radius: 50%;
  border: 2.4px solid rgba(4, 18, 26, 0.28); border-top-color: #04121a;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.search-meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px;
  margin-top: 13px; padding-top: 13px; border-top: 1px dashed var(--line);
}
.detect-hint { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
.detect-hint .dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--muted-2); flex: none;
  transition: background 0.2s, box-shadow 0.2s;
}
.detect-hint.ok .dot { background: var(--up); box-shadow: 0 0 0 4px rgba(34, 211, 154, 0.14); }
.detect-hint.bad .dot { background: var(--down); box-shadow: 0 0 0 4px rgba(255, 107, 129, 0.14); }

.samples { display: flex; flex-wrap: wrap; gap: 8px; margin-left: auto; align-items: center; }
.samples .samples-label { font-size: 12.5px; color: var(--muted-2); }
.sample-chip {
  cursor: pointer; font-family: var(--mono); font-size: 12px; color: var(--muted);
  background: rgba(124, 140, 248, 0.1); border: 1px solid var(--line);
  padding: 4px 10px; border-radius: 999px; transition: all 0.18s var(--ease);
}
.sample-chip:hover { color: var(--text); border-color: var(--line-strong); background: rgba(124, 140, 248, 0.2); }

.alert {
  margin-top: 16px; padding: 13px 16px; border-radius: var(--radius-sm); font-size: 14px;
  border: 1px solid rgba(255, 107, 129, 0.4); background: rgba(255, 107, 129, 0.1); color: #ffd7de;
  text-align: left;
}
.alert.warn { border-color: rgba(245, 181, 68, 0.4); background: rgba(245, 181, 68, 0.1); color: #ffe9c2; }
.alert.info { border-color: rgba(124, 140, 248, 0.4); background: rgba(124, 140, 248, 0.1); color: #dfe4ff; }

.feature-strip {
  list-style: none; margin: 30px 0 0; padding: 0; display: grid; gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); text-align: left;
}
.feature-strip li {
  display: flex; flex-direction: column; gap: 3px; padding: 14px 16px;
  background: rgba(18, 25, 43, 0.5); border: 1px solid var(--line); border-radius: var(--radius-sm);
}
.feature-strip b { font-size: 14.5px; }
.feature-strip span { color: var(--muted); font-size: 12.8px; }

/* ---------- 结果区 ---------- */
.results { padding: 22px 0 10px; animation: fadeUp 0.45s var(--ease); }
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

.result-head {
  display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between;
  padding: 16px 18px; margin-bottom: 16px;
  background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}
.result-identity { display: flex; align-items: center; gap: 13px; min-width: 0; }
.chain-badge {
  display: grid; place-items: center; width: 48px; height: 48px; flex: none;
  border-radius: 14px; background: rgba(255, 255, 255, 0.05); border: 1px solid var(--line);
}
.chain-badge img { border-radius: 50%; }
.result-chain { font-weight: 700; font-size: 15.5px; }
.addr-copy {
  display: inline-flex; align-items: center; gap: 7px; cursor: pointer;
  background: none; border: none; padding: 2px 0; color: var(--muted);
  font-size: 13px; font-family: var(--mono); max-width: 100%;
}
.addr-copy:hover { color: var(--accent); }
.addr-copy .mono { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.result-actions { display: flex; gap: 9px; flex-wrap: wrap; }

.ghost-btn {
  display: inline-flex; align-items: center; gap: 7px; cursor: pointer; text-decoration: none;
  background: rgba(124, 140, 248, 0.09); color: var(--text); border: 1px solid var(--line-strong);
  border-radius: 10px; padding: 9px 14px; font: inherit; font-size: 13.5px; font-weight: 600;
  transition: all 0.18s var(--ease);
}
.ghost-btn:hover { background: rgba(124, 140, 248, 0.2); transform: translateY(-1px); }
.ghost-btn.small { padding: 6px 12px; font-size: 13px; }

.stat-grid {
  display: grid; gap: 12px; margin-bottom: 16px;
  grid-template-columns: repeat(auto-fit, minmax(178px, 1fr));
}
.stat-card {
  padding: 15px 16px; border-radius: var(--radius); position: relative; overflow: hidden;
  background: var(--surface); border: 1px solid var(--line);
}
.stat-card::after {
  content: ""; position: absolute; inset: auto -30% -60% auto; width: 150px; height: 150px;
  background: radial-gradient(circle, var(--tint, rgba(124, 140, 248, 0.35)), transparent 68%);
  opacity: 0.5;
}
.stat-label { display: flex; align-items: center; gap: 7px; color: var(--muted); font-size: 12.4px; }
.stat-label img { width: 17px; height: 17px; border-radius: 50%; }
.stat-value {
  font-family: var(--mono); font-size: clamp(19px, 3vw, 25px); font-weight: 700; margin-top: 6px;
  letter-spacing: -0.01em; word-break: break-all;
}
.stat-value .unit { font-family: var(--sans); font-size: 0.6em; color: var(--muted); margin-left: 5px; font-weight: 600; }
.stat-sub { color: var(--muted-2); font-size: 12px; margin-top: 3px; }

.panel {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  margin-bottom: 16px; overflow: hidden; box-shadow: var(--shadow-soft);
}
.panel-head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 15px 18px; border-bottom: 1px solid var(--line);
}
.panel-head h2 { margin: 0; font-size: 16px; font-weight: 700; letter-spacing: 0.01em; }
.panel-tools { display: flex; align-items: center; gap: 12px; }
.panel-note { padding: 12px 18px; font-size: 13px; color: var(--warn); background: rgba(245, 181, 68, 0.07); border-bottom: 1px solid var(--line); }

.switch { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); cursor: pointer; user-select: none; }
.switch input { accent-color: var(--accent); width: 15px; height: 15px; }

.select {
  font: inherit; font-size: 13px; color: var(--text); background: rgba(7, 11, 20, 0.8);
  border: 1px solid var(--line-strong); border-radius: 9px; padding: 6px 10px; cursor: pointer;
}

.table-scroll { overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.data-table th {
  text-align: left; font-size: 12.2px; text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--muted-2); font-weight: 600; padding: 11px 18px; white-space: nowrap;
  background: rgba(7, 11, 20, 0.4);
}
.data-table td { padding: 13px 18px; border-top: 1px solid var(--line); vertical-align: middle; }
.data-table tbody tr { transition: background 0.15s var(--ease); }
.data-table tbody tr:hover { background: rgba(124, 140, 248, 0.06); }
.data-table .num { text-align: right; font-family: var(--mono); }
.data-table th.num { text-align: right; }
.data-table .asset-cell { display: flex; align-items: center; gap: 11px; }
.data-table .asset-cell img { width: 30px; height: 30px; border-radius: 50%; flex: none; }
.data-table .asset-name { font-weight: 650; }
.data-table .asset-tag {
  font-size: 10.6px; color: var(--muted-2); border: 1px solid var(--line); border-radius: 5px;
  padding: 1px 6px; margin-left: 7px; text-transform: uppercase; letter-spacing: 0.04em; vertical-align: 1px;
}
.balance-main { font-weight: 650; }
.balance-zero { color: var(--muted-2); font-weight: 400; }
.contract-link {
  font-family: var(--mono); font-size: 12.4px; color: var(--muted); text-decoration: none;
  border-bottom: 1px dashed var(--line-strong);
}
.contract-link:hover { color: var(--accent); }
.row-actions { display: flex; gap: 7px; }
.mini-btn {
  display: inline-grid; place-items: center; width: 30px; height: 30px; cursor: pointer;
  border-radius: 8px; border: 1px solid var(--line); background: rgba(124, 140, 248, 0.08);
  color: var(--muted); transition: all 0.16s var(--ease); text-decoration: none;
}
.mini-btn:hover { color: var(--text); background: rgba(124, 140, 248, 0.22); border-color: var(--line-strong); }
.tag-na { color: var(--muted-2); font-size: 12.5px; }

/* ---------- 交易列表 ---------- */
.tx-list { display: flex; flex-direction: column; }
.tx-item {
  display: grid; gap: 4px 14px; padding: 13px 18px; border-top: 1px solid var(--line);
  grid-template-columns: 42px minmax(0, 1.25fr) minmax(0, 1.4fr) auto;
  align-items: center; transition: background 0.15s var(--ease);
}
.tx-item:first-child { border-top: none; }
.tx-item:hover { background: rgba(124, 140, 248, 0.06); }
.tx-dir {
  display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; font-size: 15px;
  font-weight: 800; flex: none;
}
.tx-dir.in { color: var(--up); background: rgba(34, 211, 154, 0.12); }
.tx-dir.out { color: var(--down); background: rgba(255, 107, 129, 0.12); }
.tx-dir.self { color: var(--accent-2); background: rgba(124, 140, 248, 0.14); }
.tx-main { min-width: 0; }
.tx-line { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.tx-asset { display: inline-flex; align-items: center; gap: 7px; font-weight: 650; }
.tx-asset img { width: 18px; height: 18px; border-radius: 50%; }
.tx-badge {
  font-size: 10.5px; padding: 1px 6px; border-radius: 5px; letter-spacing: 0.04em;
  border: 1px solid var(--line-strong); color: var(--muted); text-transform: uppercase;
}
.tx-badge.ok { color: var(--up); border-color: rgba(34, 211, 154, 0.35); background: rgba(34, 211, 154, 0.09); }
.tx-badge.bad { color: var(--down); border-color: rgba(255, 107, 129, 0.35); background: rgba(255, 107, 129, 0.09); }
.tx-badge.pending { color: var(--warn); border-color: rgba(245, 181, 68, 0.35); background: rgba(245, 181, 68, 0.09); }
.tx-sub { color: var(--muted-2); font-size: 12.2px; font-family: var(--mono); overflow: hidden; text-overflow: ellipsis; }
.tx-hash { font-family: var(--mono); font-size: 12.4px; color: var(--muted); text-decoration: none; }
.tx-hash:hover { color: var(--accent); }
.tx-amount { text-align: right; font-family: var(--mono); font-weight: 650; white-space: nowrap; }
.tx-amount.in { color: var(--up); }
.tx-amount.out { color: var(--down); }
.tx-amount small { display: block; font-family: var(--sans); font-weight: 500; color: var(--muted-2); font-size: 11.5px; }
.tx-when { color: var(--muted-2); font-size: 12px; text-align: right; white-space: nowrap; }

.empty-state {
  padding: 34px 20px; text-align: center; color: var(--muted); font-size: 14px;
}
.skeleton { display: flex; flex-direction: column; gap: 11px; padding: 18px; }
.skeleton-row {
  height: 42px; border-radius: 10px;
  /* 静态渐变 + 透明度呼吸：不再移动背景 */
  background: linear-gradient(90deg, rgba(124, 140, 248, 0.10), rgba(124, 140, 248, 0.05));
  animation: shimmer 1.5s ease-in-out infinite;
}
/* 骨架屏「正在加载」提示。
   ⚠️ 原来动的是 background-position（渐变扫过），每帧都要重新绘制。
      这是最后一个还在重绘的常驻动画，手机上滑表格时它一直在跑。
      现在改成透明度脉冲：底色保持静态渐变，只让明暗呼吸。
      opacity 只走合成层，不触发绘制，视觉上同样是「正在加载」。 */
@keyframes shimmer { 0% { opacity: 0.35; } 50% { opacity: 1; } 100% { opacity: 0.35; } }

.footnote { color: var(--muted-2); font-size: 12.4px; text-align: center; padding: 6px 0 0; }

/* ---------- 说明区 ---------- */
.info { padding: 46px 0 36px; }

/* ---------- 页脚 ---------- */
.site-footer { border-top: 1px solid var(--line); background: rgba(7, 11, 20, 0.72); padding: 34px 0 22px; margin-top: 22px; }
.footer-inner { display: grid; gap: 26px; grid-template-columns: 1.6fr 1fr 1.2fr; }
.footer-brand { font-weight: 750; font-size: 16px; margin-bottom: 8px; }
.footer-title { font-size: 12.6px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted-2); margin-bottom: 10px; }
.footer-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 7px; font-size: 13.6px; }
.footer-list a { color: var(--muted); text-decoration: none; }
.footer-list a:hover { color: var(--accent); }
.footer-list .mail { color: var(--accent); font-family: var(--mono); font-size: 13.4px; }
.muted { color: var(--muted); font-size: 13.4px; margin: 0; }
.footer-bottom {
  display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; align-items: center;
  margin-top: 26px; padding-top: 16px; border-top: 1px solid var(--line);
  color: var(--muted-2); font-size: 12.6px;
}

/* ---------- 扫码 / 下载 App 弹窗 ---------- */




@media (max-width: 720px) {
}

/* ================================================================== *
 *  实时行情跑马灯
 * ================================================================== */
.ticker {
  position: relative; z-index: 3;
  display: flex; align-items: stretch;
  height: 46px; overflow: hidden;
  background: linear-gradient(90deg, rgba(9, 13, 24, 0.96) 0%, rgba(13, 19, 34, 0.9) 12%, rgba(13, 19, 34, 0.9) 88%, rgba(9, 13, 24, 0.96) 100%);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.ticker[hidden] { display: none; }

.ticker-label {
  display: inline-flex; align-items: center; gap: 7px; flex: none;
  padding: 0 14px 0 18px; font-size: 12px; font-weight: 700; letter-spacing: 0.04em;
  color: var(--muted); border-right: 1px solid var(--line);
  background: rgba(7, 11, 20, 0.6);
  white-space: nowrap;
}
.ticker-live::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: #22d39a;
  animation: tk-pulse 2s ease-out infinite;
  will-change: transform, opacity;
}
.ticker-live {
  width: 7px; height: 7px; border-radius: 50%; background: #22d39a;
  position: relative;
  /* 脉冲环用 ::after 画，走合成层 */
}
/* 同上：圆点脉冲也改成缩放环，不重绘 */
@keyframes tk-pulse {
  0% { transform: scale(1); opacity: 0.6; }
  70% { transform: scale(2.1); opacity: 0; }
  100% { transform: scale(2.1); opacity: 0; }
}

.ticker-viewport { position: relative; flex: 1; overflow: hidden; }
/* 两端羽化，让内容从边缘淡入淡出而不是硬切 */
.ticker-viewport::before,
.ticker-viewport::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: 46px; z-index: 2; pointer-events: none;
}
.ticker-viewport::before { left: 0; background: linear-gradient(90deg, rgba(9, 13, 24, 0.98), transparent); }
.ticker-viewport::after { right: 0; background: linear-gradient(270deg, rgba(9, 13, 24, 0.98), transparent); }

.ticker-track {
  display: flex; height: 100%; width: max-content;
  will-change: transform;
}
.ticker-track.is-ready { animation: tk-scroll var(--tk-duration, 60s) linear infinite; }
@keyframes tk-scroll {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(calc(-1 * var(--tk-shift, 50%)), 0, 0); }
}
/* 悬停暂停：用户想看清某一条时不用追着跑 */
.ticker:hover .ticker-track { animation-play-state: paused; }

.tk-run { display: flex; align-items: center; flex: none; }

.tk-item {
  display: inline-flex; align-items: center; gap: 7px; flex: none;
  padding: 0 18px; height: 46px; font-size: 13.2px; font-variant-numeric: tabular-nums;
  border-right: 1px solid rgba(140, 160, 220, 0.09);
  white-space: nowrap;
}
.tk-icon { width: 20px; height: 20px; border-radius: 50%; display: block; flex: none; }
.tk-badge {
  display: grid; place-items: center; min-width: 34px; height: 20px; padding: 0 5px;
  border-radius: 5px; font-size: 10px; font-weight: 800; letter-spacing: 0.03em;
  background: rgba(124, 140, 248, 0.18); border: 1px solid var(--line-strong); color: var(--text);
}
.tk-name { color: var(--muted); font-weight: 600; }
.tk-price { color: var(--text); font-weight: 700; letter-spacing: -0.01em; }
.tk-pct { font-weight: 700; font-size: 12.6px; }
.tk-arrow { font-size: 9px; line-height: 1; }

.tk-up .tk-pct, .tk-up .tk-arrow { color: #2ee6a8; }
.tk-down .tk-pct, .tk-down .tk-arrow { color: #ff6b81; }
.tk-flat .tk-pct, .tk-flat .tk-arrow { color: var(--muted-2); }

/* 数据更新时轻微闪一下，让人知道数字变了 */
.tk-item.is-flash { animation: tk-flash 0.7s ease-out; }
@keyframes tk-flash {
  0% { background: rgba(124, 140, 248, 0.22); }
  100% { background: transparent; }
}

@media (max-width: 720px) {
  .ticker { height: 40px; }
  .ticker-label { padding: 0 10px 0 12px; font-size: 11px; }
  .tk-item { height: 40px; padding: 0 13px; font-size: 12.4px; gap: 5px; }
  .tk-icon { width: 17px; height: 17px; }
  .tk-name { display: none; }          /* 窄屏优先显示数字 */
  .tk-badge { min-width: 30px; height: 17px; font-size: 9px; }
}

/* 系统开了「减弱动态效果」时停止滚动，改成静止可横向滑动的列表 */
@media (prefers-reduced-motion: reduce) {
  .ticker-track.is-ready { animation: none; }
  .ticker-viewport { overflow-x: auto; }
  .tk-run[aria-hidden="true"] { display: none; }
}

/* ---------- Toast ---------- */.toast {
  position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%) translateY(14px);
  background: rgba(18, 25, 43, 0.96); border: 1px solid var(--line-strong); color: var(--text);
  padding: 11px 20px; border-radius: 12px; font-size: 13.6px; box-shadow: var(--shadow);
  z-index: 90; opacity: 0; transition: opacity 0.25s, transform 0.25s;
  backdrop-filter: blur(10px); max-width: calc(100vw - 40px); text-align: center;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ==========================================================================
   响应式：平板 / 手机
   ========================================================================== */
@media (max-width: 900px) {
  .header-nav { display: none; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  .chain-hero { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  body { font-size: 15px; }
  .chain-hero { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 20px 0 14px; }
  .chain-card { padding: 13px 7px 11px; border-radius: 16px; }
  .chain-icon { width: 68px; height: 68px; }
  .chain-icon img { width: 62px; height: 62px; }
  .chain-ring, .chain-ring-spin { width: 74px; height: 74px; margin-left: -37px; top: 7px; }
  .chain-name { font-size: 12.6px; }
  .chain-sub { font-size: 10.4px; }
  .chain-card[data-chain="all"] { display: none; }
  .wrap { padding-inline: 15px; }
  .hero { padding: 34px 0 22px; }
  .hero-sub { margin-bottom: 20px; }
  .brand-text small { display: none; }
  .search-card { padding: 13px; border-radius: 18px; }
  .search-row { flex-direction: column; }
  .primary-btn { width: 100%; padding: 14px; }
  .search-meta { flex-direction: column; align-items: flex-start; }
  .samples { margin-left: 0; }
  .result-head { padding: 14px; }
  .result-actions { width: 100%; }
  .result-actions .ghost-btn { flex: 1 1 auto; justify-content: center; }
  .stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .stat-card { padding: 12px 13px; }
  .stat-value { font-size: 18px; }

  /* 表格在手机上改成卡片式 */
  .data-table thead { display: none; }
  .data-table, .data-table tbody, .data-table tr, .data-table td { display: block; width: 100%; }
  .data-table tr { padding: 13px 14px; border-top: 1px solid var(--line); }
  .data-table tr:first-child { border-top: none; }
  .data-table td { border: none; padding: 2px 0; }
  .data-table td.num { text-align: left; font-size: 16px; }
  .data-table td.hide-sm { display: none; }
  .data-table td[data-label]::before {
    content: attr(data-label) " "; color: var(--muted-2); font-size: 12px; font-family: var(--sans);
  }
  .row-actions { margin-top: 8px; }

  /* 交易行改成两行式 */
  .tx-item { grid-template-columns: 36px minmax(0, 1fr); grid-template-areas: "dir main" ". amount"; padding: 12px 14px; }
  .tx-dir { grid-area: dir; }
  .tx-main { grid-area: main; }
  .tx-amount { grid-area: amount; text-align: left; padding-left: 50px; }
  .tx-when { position: absolute; right: 14px; }
  .tx-item { position: relative; }
  .tx-item .tx-when { top: 14px; }
  .footer-inner { grid-template-columns: 1fr; gap: 20px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 400px) {
  .stat-grid { grid-template-columns: 1fr; }
  .chain-pill { padding: 7px 12px 7px 8px; font-size: 12.6px; }
}

/* 大屏 PC：略微放大 */
@media (min-width: 1280px) {
  body { font-size: 16px; }
  :root { --max: 1240px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
  html { scroll-behavior: auto; }
}

/* 打印：隐藏装饰 */
@media print {
  .bg-grid, .bg-aurora, .site-header, .site-footer, .primary-btn, .result-actions { display: none !important; }
  body { background: #fff; color: #000; }
}

/* 页面不可见（切到别的标签页 / 手机锁屏）时暂停所有动画。
   JS 里的 visibilitychange 会给 <html> 加 .is-hidden。
   这样长期挂着的标签页不会在后台持续重绘。 */
html.is-hidden *,
html.is-hidden *::before,
html.is-hidden *::after {
  animation-play-state: paused !important;
}

/* ---------- 无障碍：尊重系统的「减弱动态效果」 ---------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .chain-ring-spin, .brand-mark::before { opacity: 0.3; }
}

/* ================================================================== *
 *  入场动效（进来就是动态的）
 *  全部只用 transform / opacity —— GPU 合成，不触发重排。
 * ================================================================== */
@keyframes enter-up {
  from { opacity: 0; transform: translate3d(0, 22px, 0); }
  to { opacity: 1; transform: none; }
}
@keyframes enter-drop {
  from { opacity: 0; transform: translate3d(0, -100%, 0); }
  to { opacity: 1; transform: none; }
}
@keyframes enter-pop {
  0% { opacity: 0; transform: scale(0.6) rotate(-8deg); }
  60% { opacity: 1; transform: scale(1.06) rotate(2deg); }
  100% { opacity: 1; transform: none; }
}

/* 跑马灯：从上方落下来 */
.ticker { animation: enter-drop 0.5s var(--ease) both; }

/* 主标题与副标题上浮 */
.hero-title { animation: enter-up 0.6s var(--ease) both; animation-delay: 0.06s; }
.hero-sub { animation: enter-up 0.6s var(--ease) both; animation-delay: 0.14s; }

/* 链大图标：依次弹出（错位延迟，形成波浪感） */
.chain-card {
  animation: enter-pop 0.62s cubic-bezier(0.22, 1.2, 0.36, 1) both;
}
.chain-card:nth-child(1) { animation-delay: 0.20s; }
.chain-card:nth-child(2) { animation-delay: 0.28s; }
.chain-card:nth-child(3) { animation-delay: 0.36s; }
.chain-card:nth-child(4) { animation-delay: 0.44s; }
.chain-card:nth-child(5) { animation-delay: 0.52s; }

/* 搜索卡片与示例地址 */
.search-card { animation: enter-up 0.6s var(--ease) both; animation-delay: 0.5s; }
.samples { animation: enter-up 0.5s var(--ease) both; animation-delay: 0.6s; }

/* 链图标本身持续微动：Solana 三条斜杠错位滑动，BNB 四角轻微呼吸 */
.chain-card[data-chain="solana"]:hover .chain-icon img { animation: sol-slide 1.4s ease-in-out infinite; }
@keyframes sol-slide {
  0%, 100% { transform: translateX(0) scale(1.05); }
  50% { transform: translateX(3px) scale(1.05); }
}
.chain-card[data-chain="bsc"]:hover .chain-icon img { animation: bnb-pulse 1.8s ease-in-out infinite; }
@keyframes bnb-pulse {
  0%, 100% { transform: scale(1.05); }
  50% { transform: scale(1.11); }
}
.chain-card[data-chain="ethereum"]:hover .chain-icon img { animation: eth-glow 2s ease-in-out infinite; }
@keyframes eth-glow {
  0%, 100% { transform: scale(1.05); filter: brightness(1); }
  50% { transform: scale(1.08); filter: brightness(1.18); }
}

/* 减弱动态效果时全部关闭，只保留最终状态 */
@media (prefers-reduced-motion: reduce) {
  .ticker, .hero-title, .hero-sub, .chain-card, .search-card, .samples {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}

/* ================================================================== *
 *  动效增强（站长要求更明显的动态感）
 *  依然只用 transform / opacity —— 不动布局，不掉帧。
 * ================================================================== */

/* --- 1. 入场：更大幅度 + 回弹 --- */
@keyframes enter-up {
  0%   { opacity: 0; transform: translate3d(0, 46px, 0) scale(0.96); filter: blur(6px); }
  60%  { opacity: 1; filter: blur(0); }
  100% { opacity: 1; transform: none; filter: none; }
}
@keyframes enter-drop {
  0%   { opacity: 0; transform: translate3d(0, -110%, 0); }
  70%  { opacity: 1; transform: translate3d(0, 6%, 0); }
  100% { opacity: 1; transform: none; }
}
@keyframes enter-pop {
  0%   { opacity: 0; transform: scale(0.42) rotate(-14deg) translateY(30px); }
  55%  { opacity: 1; transform: scale(1.14) rotate(4deg) translateY(-6px); }
  75%  { transform: scale(0.96) rotate(-1.5deg) translateY(2px); }
  100% { opacity: 1; transform: none; }
}
.ticker { animation: enter-drop 0.68s cubic-bezier(0.34, 1.56, 0.64, 1) both; }
.hero-title { animation: enter-up 0.78s cubic-bezier(0.22, 1.4, 0.36, 1) both; animation-delay: 0.05s; }
.hero-sub { animation: enter-up 0.78s var(--ease) both; animation-delay: 0.16s; }
.chain-card { animation: enter-pop 0.9s cubic-bezier(0.22, 1.5, 0.36, 1) both; }
.chain-card:nth-child(1) { animation-delay: 0.22s; }
.chain-card:nth-child(2) { animation-delay: 0.34s; }
.chain-card:nth-child(3) { animation-delay: 0.46s; }
.chain-card:nth-child(4) { animation-delay: 0.58s; }
.chain-card:nth-child(5) { animation-delay: 0.70s; }
.search-card { animation: enter-up 0.72s var(--ease) both; animation-delay: 0.62s; }
.samples { animation: enter-up 0.6s var(--ease) both; animation-delay: 0.74s; }

/* --- 2. 入场后给链卡片扫一道高光 --- */
.chain-card::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, 0.16) 48%, transparent 66%);
  background-size: 280% 100%; background-position: 130% 0;
  opacity: 0; animation: card-sheen 1.1s ease-out 1;
  animation-delay: inherit;
}
@keyframes card-sheen {
  0%   { opacity: 0; background-position: 130% 0; }
  25%  { opacity: 1; }
  100% { opacity: 0; background-position: -40% 0; }
}

/* --- 3. 标题常驻微浮动 + 渐变更快更明显 --- */
.hero-title .grad {
  background-size: 320% 100%;
  animation: grad-flow 4.2s ease-in-out infinite;
}

}
.hero-title { animation: enter-up 0.78s cubic-bezier(0.22, 1.4, 0.36, 1) both, title-float 6s ease-in-out 1.1s infinite; }
@keyframes title-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

/* --- 4. 品牌标光晕更快，加一层外扩脉冲 --- */
.brand-mark::before { animation-duration: 4.5s; }
.brand-mark { animation: brand-pulse 3.4s ease-in-out infinite; }
/**
 * 品牌标呼吸。
 * 原来 50% 处把 box-shadow 撑到 22px 模糊 —— 每帧重绘一大片。
 * 现在用「外层 scale + opacity」，品牌标本体不动。
 */
@keyframes brand-pulse {
  0%, 100% { transform: scale(1); opacity: 0.42; }
  50% { transform: scale(1.06); opacity: 0.18; }
}

/* --- 5. 链图标：常驻轻柔浮动，悬停时幅度加大 --- */
.chain-card .chain-icon img { animation: icon-bob 5.2s ease-in-out infinite; }
.chain-card:nth-child(2) .chain-icon img { animation-delay: -0.9s; }
.chain-card:nth-child(3) .chain-icon img { animation-delay: -1.8s; }
.chain-card:nth-child(4) .chain-icon img { animation-delay: -2.7s; }
.chain-card:nth-child(5) .chain-icon img { animation-delay: -3.6s; }
@keyframes icon-bob {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-4px) rotate(-2deg); }
}
.chain-card:hover .chain-icon img {
  animation: icon-bob-fast 1.6s ease-in-out infinite;
  filter: brightness(1.12) saturate(1.08);
}
@keyframes icon-bob-fast {
  0%, 100% { transform: translateY(-2px) rotate(-3deg) scale(1.07); }
  50% { transform: translateY(-8px) rotate(3deg) scale(1.13); }
}

/* 选中态：外圈持续呼吸，看得见「正在查这条链」。
   呼吸效果由 .chain-icon::after 的 transform 完成，
   ⚠️ 不要在 .chain-icon 自身上再写 animation —— 会覆盖伪元素方案。 */
/**
 * 选中链的呼吸环。
 * 原来每帧改 box-shadow（环宽 2px→4px 且阴影跟着变），是手机上的一个大头。
 * 现在：外环固定 2px，另外用 ::after 做一个缩放淡出的光晕。
 */
@keyframes selected-ring {
  0% { transform: scale(1); opacity: 0.5; }
  50% { transform: scale(1.12); opacity: 0.14; }
  100% { transform: scale(1); opacity: 0.5; }
}
.chain-card[aria-pressed="true"] .chain-ring-spin { opacity: 0.85; animation-duration: 11s; }

/* --- 6. 按钮光圈 ---
   只调时长，不再重新定义关键帧。
   ⚠️ 这里原来有一份 @keyframes halo，用的是 box-shadow 扩散（22px）——
      它把上面那份 transform/opacity 的版本覆盖掉了，等于白改。
      CSS 以最后一份定义为准，不要再往回加 box-shadow 版本。 */
.primary-btn::after { animation-duration: 2.2s; }
.primary-btn:hover { transform: translateY(-2px); }

/* --- 7. 跑马灯 ---
   同上：原来这里有一份 box-shadow 版的 @keyframes tk-pulse，覆盖了正确的那份。
   现在只保留时长调整，脉冲环由 .ticker-live::after 用 transform 完成。 */
.ticker-live::after { animation-duration: 1.4s; }
/* 每条行情进入视口时的轻微高亮 */
.tk-item { transition: background 0.3s var(--ease); }
.tk-item:hover { background: rgba(124, 140, 248, 0.10); }

/* --- 8. 结果卡片：更强入场 + 悬停抬起 --- */
@keyframes fadeUp {
  0% { opacity: 0; transform: translateY(26px) scale(0.97); }
  100% { opacity: 1; transform: none; }
}
.results .panel, .results .stat-card { animation-duration: 0.62s; }
.stat-card { transition: transform 0.28s var(--ease), border-color 0.28s var(--ease); }
.stat-card:hover { transform: translateY(-4px); border-color: var(--line-strong); }

/* --- 无障碍：用户开了「减弱动态效果」就全部关掉 --- */
@media (prefers-reduced-motion: reduce) {
  .chain-card::after,
  .brand-mark,
  .chain-card .chain-icon img,
  .hero-title {
    animation: none !important;
  }
  .chain-card .chain-icon img { transform: none !important; filter: none !important; }
}

/* ==================================================================
 *  手机性能：省掉纯装饰性的「重绘动画」
 *
 *  下面的动画每帧都在改 background-position / box-shadow，
 *  也就是每帧都要重新绘制。桌面 GPU 有余量，手机没有 ——
 *  滑资产表格时能明显感到掉帧。
 *
 *  这里在「触屏 / 无悬停」设备上把它们关掉，把 GPU 留给滚动。
 *  只关装饰，功能性的（骨架屏 shimmer、跑马灯滚动、入场动画）全部保留。
 *
 *  ⚠️ 判断条件用 (hover: none) 而不是宽度：
 *     触屏笔记本、折叠屏展开后宽度可能超过 1024px，
 *     但它们的 GPU 和手机是一档的，按宽度判断会漏掉。
 * ================================================================== */
@media (hover: none) {
  /* 渐变文字：320% 宽的渐变来回跑，纯装饰 */
  .hero-title .grad {
    animation: none;
    background-position: 0% 50%;
  }
  /* 卡片扫光 */
  .chain-card::after {
    animation: none;
    opacity: 0;
  }
  /* 按钮光圈 */
  .primary-btn::after {
    animation: none;
    opacity: 0;
  }
  /* 品牌标光晕 */
  .brand-mark::after {
    animation: none;
    opacity: 0.22;
  }
}

/* 低端设备更激进：连脉冲环和浮动也停掉，只留必要的反馈 */
@media (hover: none) and (max-width: 480px) {
  .ticker-live::after {
    /* 圆点常亮，不再脉冲 —— 一像素的装饰不值得每帧合成 */
    animation: none;
    opacity: 0.35;
  }
  .chain-card .chain-icon img {
    animation: none;
  }
  .hero-title {
    animation: none;
    opacity: 1;
  }
}

/* ==================================================================
 *  手机分辨率适配
 *
 *  目标：任何尺寸的手机打开都自动铺满、不出横向滚动条、不被刘海或圆角遮挡。
 * ================================================================== */

/* --- 1. 刘海屏 / 圆角屏：内容避开被遮挡的区域 ---
   viewport-fit=cover 已经写在 index.html 里，但还需要在这里把安全区
   变成内边距，否则页头和页脚的文字会钻进刘海或圆角下面。 */
:root {
  --safe-t: env(safe-area-inset-top, 0px);
  --safe-r: env(safe-area-inset-right, 0px);
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-l: env(safe-area-inset-left, 0px);
}

.site-header {
  padding-top: var(--safe-t);
}

.site-footer {
  padding-bottom: calc(18px + var(--safe-b));
}

/* 横向：横屏时左右也吃安全区，否则内容贴边 */
.wrap {
  padding-inline: max(15px, calc(12px + var(--safe-l)), calc(12px + var(--safe-r)));
}

/* --- 2. 触屏点按：去掉灰色高亮方块，换成我们自己的反馈 --- */
@media (hover: none) {
  * {
    -webkit-tap-highlight-color: transparent;
  }
  /* 按钮按下时给一点缩放，手指有反馈就不会觉得"没反应" */
  .primary-btn:active { transform: scale(0.985); }
  .ghost-btn:active,
  .icon-btn:active,
  .chain-pill:active { transform: scale(0.96); }
}

/* --- 3. 触屏滚动更跟手，并避免橡皮筋露白 --- */
@media (hover: none) {
  html {
    /* 纵向滚动交给浏览器原生处理，横向手势留给组件（跑马灯） */
    touch-action: pan-y;
    overscroll-behavior-y: none;
  }
  /* 跑马灯横向可拖，不把它变成页面滚动 */
  .ticker-viewport {
    touch-action: pan-x;
    overscroll-behavior-x: contain;
  }
}

/* --- 4. 图片不溢出容器 --- */
img,
svg,
canvas {
  max-width: 100%;
}

/* --- 5. 横屏（手机横过来）：高度紧张，压缩纵向留白 ---
   判断条件是「高度小 + 触屏」，横屏和折叠屏都能覆盖。 */
@media (hover: none) and (max-height: 520px) and (orientation: landscape) {
  .hero { padding: 18px 0 12px; }
  .hero-title { font-size: clamp(22px, 4.6vw, 32px); }
  .hero-sub { margin-bottom: 14px; font-size: 13.5px; }
  .chain-hero { grid-template-columns: repeat(5, minmax(0, 1fr)); margin: 14px 0 10px; }
  .chain-card[data-chain="all"] { display: block; }
  .chain-icon { width: 54px; height: 54px; }
  .chain-icon img { width: 48px; height: 48px; }
  .chain-ring, .chain-ring-spin { width: 58px; height: 58px; margin-left: -29px; top: 6px; }
  .search-card { padding: 12px; }
  .samples { margin-left: 0; }
}

/* --- 6. 超窄屏（老机型 320px 宽，如 iPhone SE 一代）---
   再收一档内边距，保证不出现横向滚动条。 */
@media (max-width: 340px) {
  .wrap { padding-inline: 11px; }
  .chain-hero { gap: 7px; }
  .chain-card { padding: 10px 5px 9px; }
  .chain-icon { width: 58px; height: 58px; }
  .chain-icon img { width: 53px; height: 53px; }
  .chain-ring, .chain-ring-spin { width: 63px; height: 63px; margin-left: -31.5px; top: 6px; }
  .chain-name { font-size: 11.6px; }
  .chain-sub { font-size: 9.6px; }
  .hero-title { font-size: clamp(22px, 8.4vw, 30px); }
  .tk-item { padding: 0 10px; font-size: 11.8px; }
}

/* --- 7. 竖屏大屏手机 / 小平板：给内容更多呼吸 --- */
@media (min-width: 721px) and (max-width: 1024px) and (hover: none) {
  .chain-hero { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .chain-card[data-chain="all"] { display: block; }
}

/* --- 8. 输入框在 iOS 上不小于 16px，否则聚焦时会自动放大整个页面 --- */
@media (hover: none) {
  #search-input {
    font-size: max(16px, 1rem);
  }
}
