
/* ============================================================
   WalletHub — Apple 风格样式
   设计语言：大量留白、SF 字体栈、毛玻璃、圆角、柔和阴影、滚动淡入
   ============================================================ */

:root {
  --bg: #ffffff;
  --bg-soft: #f5f5f7;
  --bg-dark: #000000;
  --text: #1d1d1f;
  --text-soft: #6e6e73;
  --text-dim: #86868b;
  --line: #d2d2d7;
  --blue: #0066cc;
  --blue-hover: #0077ed;
  --radius: 18px;
  --radius-lg: 28px;
  --shadow-sm: 0 2px 12px rgba(0,0,0,.06);
  --shadow-md: 0 12px 40px rgba(0,0,0,.10);
  --maxw: min(100% - 44px, 2200px);
  --nav-h: 52px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text",
          "Helvetica Neue", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.5;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }
img, svg { display: block; }

/* ---------- 导航 ---------- */
.nav {
  position: sticky; top: 0; z-index: 100;
  height: var(--nav-h);
  background: rgba(255,255,255,.72);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(0,0,0,.07);
}
.nav-inner {
  max-width: var(--maxw); height: 100%; margin: 0 auto;
  padding: 0 22px;
  display: flex; align-items: center; gap: 28px;
}
.nav-logo {
  display: flex; align-items: center; gap: 7px;
  font-weight: 600; font-size: 18px; letter-spacing: -.02em;
}
.nav-logo svg { color: var(--text); }
.nav-links { display: flex; gap: 26px; margin-left: 8px; }
.nav-links a {
  font-size: 13px; color: var(--text-soft);
  transition: color .2s;
}
.nav-links a:hover { color: var(--text); }
.nav-right { margin-left: auto; display: flex; align-items: center; gap: 14px; }
.nav-search {
  background: none; border: none; cursor: pointer;
  color: var(--text-soft); padding: 6px; border-radius: 50%;
  display: grid; place-items: center; transition: color .2s, background .2s;
}
.nav-search:hover { color: var(--text); background: rgba(0,0,0,.05); }
.nav-cta {
  font-size: 13px; font-weight: 400;
  background: var(--blue); color: #fff;
  padding: 6px 14px; border-radius: 980px;
  transition: background .2s;
}
.nav-cta:hover { background: var(--blue-hover); }

.search-bar {
  max-width: var(--maxw); margin: 0 auto; padding: 0 22px;
  max-height: 0; overflow: hidden;
  transition: max-height .35s ease;
}
.search-bar.open { max-height: 70px; padding-top: 10px; padding-bottom: 14px; }
/* 探索区常驻搜索框（不再需要点图标才展开） */
.search-bar.search-inline {
  max-height: none; overflow: visible;
  padding: 18px 22px 0; margin-bottom: 4px;
}
.search-bar input {
  width: 100%; border: 1px solid var(--line);
  background: var(--bg-soft); border-radius: 12px;
  padding: 11px 16px; font-size: 15px; font-family: var(--font);
  outline: none; transition: border-color .2s, box-shadow .2s;
}
.search-bar input:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(0,102,204,.15); }

/* 语言切换（中 / EN） */
.lang-toggle {
  display: inline-flex; background: var(--bg-soft);
  padding: 2px; border-radius: 980px; gap: 2px;
}
.lang-toggle button {
  border: none; background: none; cursor: pointer;
  font-family: var(--font); font-size: 13px; color: var(--text-soft);
  padding: 5px 11px; border-radius: 980px; transition: all .2s; line-height: 1.2;
}
.lang-toggle button.active { background: #fff; color: var(--text); box-shadow: var(--shadow-sm); font-weight: 500; }

/* ---------- 通用按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 17px; border-radius: 980px; padding: 12px 24px;
  transition: transform .15s, background .2s, color .2s; cursor: pointer;
}
.btn-primary { background: var(--blue); color: #fff; border: none; }
.btn-primary:hover { background: var(--blue-hover); }
.btn-link { color: var(--blue); }
.btn-link:hover { text-decoration: underline; }

/* ---------- Hero ---------- */
.hero {
  position: relative; text-align: center;
  padding: 92px 22px 60px;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(60% 50% at 50% 0%, rgba(0,102,204,.10), transparent 70%),
    radial-gradient(40% 40% at 80% 20%, rgba(180,120,255,.10), transparent 70%),
    linear-gradient(180deg, #fafafc 0%, #ffffff 60%);
}
.hero-eyebrow {
  font-size: 19px; font-weight: 600; color: var(--blue);
  letter-spacing: .04em; margin-bottom: 8px;
}
.hero-title {
  font-size: clamp(48px, 8vw, 88px); font-weight: 700;
  line-height: 1.04; letter-spacing: -.03em; margin-bottom: 20px;
}
.hero-sub {
  font-size: clamp(19px, 2.4vw, 24px); color: var(--text-soft);
  font-weight: 400; max-width: 640px; margin: 0 auto 32px;
}
.hero-actions { display: flex; gap: 22px; justify-content: center; align-items: center; flex-wrap: wrap; margin-bottom: 64px; }

.hero-stats {
  display: flex; justify-content: center; gap: clamp(28px, 6vw, 72px);
  flex-wrap: wrap;
}
.stat { display: flex; flex-direction: column; align-items: center; }
.stat-num {
  font-size: clamp(34px, 5vw, 52px); font-weight: 700; line-height: 1;
  background: linear-gradient(135deg, #0066cc, #8a4bff);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  letter-spacing: -.02em;
}
.stat-label { font-size: 14px; color: var(--text-dim); margin-top: 8px; }

/* ---------- 区块通用 ---------- */
section { padding: 80px 22px; scroll-margin-top: 72px; }
/* 钱包网格区：直接顶到屏幕两边，0 边距，不再浪费横向空间 */
section.explore { padding-left: 0; padding-right: 0; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 48px; }
.section-head h2 {
  font-size: clamp(32px, 5vw, 48px); font-weight: 700;
  letter-spacing: -.02em; line-height: 1.1;
}
.section-head p { font-size: 19px; color: var(--text-soft); margin-top: 14px; }

/* ---------- 筛选 ---------- */
.filters { max-width: var(--maxw); margin: 0 auto 44px; display: flex; flex-direction: column; gap: 20px; align-items: center; }
.segmented {
  display: inline-flex; background: var(--bg-soft);
  padding: 3px; border-radius: 980px; gap: 2px;
}
.seg {
  border: none; background: none; cursor: pointer;
  font-family: var(--font); font-size: 14px; color: var(--text-soft);
  padding: 8px 18px; border-radius: 980px; transition: all .2s;
}
.seg.active { background: #fff; color: var(--text); box-shadow: var(--shadow-sm); font-weight: 500; }

.chips { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.chip {
  border: 1px solid var(--line); background: #fff; cursor: pointer;
  font-family: var(--font); font-size: 13px; color: var(--text-soft);
  padding: 7px 15px; border-radius: 980px; transition: all .2s;
}
.chip:hover { border-color: var(--text-soft); color: var(--text); }
.chip.active { background: var(--text); border-color: var(--text); color: #fff; }

/* ---------- 钱包网格（一行四个） ---------- */
.grid {
  max-width: var(--maxw); margin: 0 auto;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
}
/* ---------- 默认视图：三行横向跑马灯（仿 rabby.io "Chosen, Used, Recommended"） ---------- */
.marquee {
  display: flex; flex-direction: column; gap: 24px;
  padding: 6px 0 10px;
}
.marquee-row {
  position: relative; overflow: hidden; width: 100%;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 4%, #000 96%, transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0, #000 4%, #000 96%, transparent 100%);
}
.marquee-track {
  display: flex; gap: 18px; width: max-content;
  animation: mq-scroll 150s linear infinite;
  will-change: transform;
}
.marquee-row:nth-child(2) .marquee-track { animation-direction: reverse; animation-duration: 170s; }
.marquee-row:nth-child(3) .marquee-track { animation-delay: -55s; animation-duration: 180s; }
.marquee-row:hover .marquee-track { animation-play-state: paused; }
.marquee-track .card {
  width: 280px; flex: 0 0 280px; min-height: 150px; padding: 15px;
}
.marquee-track .card-name { font-size: 19px; }
.marquee-track .card-tagline { font-size: 13.5px; line-height: 1.4; }
.marquee-track .card-cta { font-size: 14px; }

@keyframes mq-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; }
}
.card {
  background: var(--bg-soft); border-radius: var(--radius-lg);
  padding: 28px; cursor: pointer; position: relative; overflow: hidden;
  transition: transform .35s cubic-bezier(.2,.8,.2,1), box-shadow .35s;
  display: flex; flex-direction: column; min-height: 170px;
}
.card::before {
  content: ""; position: absolute; top: -40%; right: -30%;
  width: 220px; height: 220px; border-radius: 50%;
  background: var(--accent, #0066cc); opacity: .10; filter: blur(8px);
  transition: opacity .35s, transform .5s;
}
.card:hover { transform: translateY(-6px) scale(1.012); box-shadow: var(--shadow-md); }
.card:hover::before { opacity: .18; transform: scale(1.15); }

.card-top { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.card-icon {
  width: 52px; height: 52px; border-radius: 14px; flex: 0 0 auto;
  display: grid; place-items: center; color: #fff; font-weight: 700; font-size: 22px;
  background: var(--accent, #0066cc);
}
.card-name { font-size: 21px; font-weight: 600; letter-spacing: -.02em; }
.card-type { font-size: 12px; color: var(--text-dim); margin-top: 2px; }
.card-tagline { font-size: 14.5px; color: var(--text-soft); line-height: 1.45; margin-bottom: 16px; }
.card-chains { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; margin-bottom: 18px; }
.chain-tag {
  font-size: 11px; color: var(--text-soft);
  background: rgba(0,0,0,.05); padding: 3px 9px; border-radius: 980px;
}
.card-meta { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.badge {
  font-size: 11px; padding: 3px 9px; border-radius: 980px; font-weight: 500;
}
.badge-open { background: rgba(0,170,90,.12); color: #008a4a; }
.badge-closed { background: rgba(0,0,0,.06); color: var(--text-soft); }
.badge-audit { background: rgba(0,102,204,.10); color: var(--blue); }
.badge-noaudit { background: rgba(255,140,0,.12); color: #c97700; }

.card-cta {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 15px; color: var(--blue); font-weight: 500;
}
.card-cta svg { transition: transform .2s; }
.card:hover .card-cta svg { transform: translateX(3px); }

.empty { text-align: center; color: var(--text-dim); font-size: 17px; padding: 40px 0; }

/* ---------- 硬件特色区 ---------- */
.feature { background: var(--bg-dark); color: #f5f5f7; }
.feature-inner {
  max-width: var(--maxw); margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center;
}
.feature-eyebrow { color: #86868b; font-size: 15px; font-weight: 600; letter-spacing: .02em; }
.feature h2 { font-size: clamp(34px, 5vw, 56px); font-weight: 700; letter-spacing: -.02em; line-height: 1.06; margin: 12px 0 18px; }
.feature-text { font-size: 19px; color: #a1a1a6; max-width: 440px; }
.feature .btn-link { color: #2997ff; display: inline-block; margin-top: 22px; }
.feature-visual {
  background: linear-gradient(160deg, #1a1a1c, #2a2a2e);
  border-radius: var(--radius-lg); min-height: 360px;
  display: flex; flex-wrap: wrap; gap: 16px; padding: 28px; align-content: center; justify-content: center;
}
.hw-pill {
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1);
  border-radius: 16px; padding: 18px 20px; min-width: 130px; text-align: center;
  transition: transform .3s, background .3s;
}
.hw-pill:hover { transform: translateY(-4px); background: rgba(255,255,255,.10); }
.hw-pill .hw-name { font-weight: 600; font-size: 16px; }
.hw-pill .hw-sub { font-size: 12px; color: #86868b; margin-top: 4px; }

/* ---------- 选购指南 Bento ---------- */
.bento {
  max-width: var(--maxw); margin: 0 auto;
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px;
}
.bento-card {
  background: var(--bg-soft); border-radius: var(--radius-lg); padding: 36px;
  transition: transform .3s;
}
.bento-card:hover { transform: translateY(-4px); }
.bento-wide { grid-column: span 2; background: linear-gradient(135deg, #0066cc, #8a4bff); color: #fff; }
.bento-wide h3, .bento-wide p { color: #fff; }
.bento-step { font-size: 40px; font-weight: 700; color: var(--blue); letter-spacing: -.02em; margin-bottom: 12px; }
.bento-card h3 { font-size: 24px; font-weight: 600; letter-spacing: -.02em; margin-bottom: 10px; }
.bento-card p { font-size: 16px; color: var(--text-soft); }

/* ---------- 安全声明 ---------- */
.safety { background: var(--bg-soft); }
.safety-inner { max-width: 820px; margin: 0 auto; text-align: center; }
.safety-inner > svg { color: var(--text); margin: 0 auto 18px; }
.safety h2 { font-size: clamp(28px, 4vw, 40px); font-weight: 700; letter-spacing: -.02em; margin-bottom: 28px; }
.safety-list { list-style: none; text-align: left; max-width: 640px; margin: 0 auto; display: flex; flex-direction: column; gap: 16px; }
.safety-list li {
  font-size: 17px; color: var(--text-soft); line-height: 1.55;
  padding-left: 30px; position: relative;
}
.safety-list li::before {
  content: ""; position: absolute; left: 0; top: 9px;
  width: 8px; height: 8px; border-radius: 50%; background: var(--blue);
}
.safety-list strong { color: var(--text); font-weight: 600; }

/* ---------- 页脚 ---------- */
.footer { background: var(--bg-soft); padding: 50px 22px 30px; font-size: 12px; color: var(--text-dim); }
.footer-inner { max-width: var(--maxw); margin: 0 auto; }
.footer-cols { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 30px; padding-bottom: 30px; border-bottom: 1px solid var(--line); }
.footer-brand p { margin-top: 12px; max-width: 240px; line-height: 1.5; }
.footer-col h4 { font-size: 12px; color: var(--text); margin-bottom: 12px; font-weight: 600; }
.footer-col a { display: block; color: var(--text-dim); margin-bottom: 9px; transition: color .2s; }
.footer-col a:hover { color: var(--text); }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; padding-top: 20px; }
.footer-fine { color: #b0b0b5; }

/* ---------- 滚动淡入 ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s cubic-bezier(.2,.8,.2,1), transform .8s cubic-bezier(.2,.8,.2,1); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- 响应式 ---------- */
@media (max-width: 900px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
  .feature-inner { grid-template-columns: 1fr; }
  .footer-cols { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .nav-links { display: none; }
  .grid { grid-template-columns: 1fr; }
  .bento { grid-template-columns: 1fr; }
  .bento-wide { grid-column: span 1; }
  .footer-cols { grid-template-columns: 1fr 1fr; }
  section { padding: 56px 18px; }
  .hero { padding-top: 64px; }
}

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ============================================================
   钱包独立详情页
   ============================================================ */
.detail { padding: 40px 22px 80px; }
.detail-wrap { max-width: 880px; margin: 0 auto; }
.breadcrumb { font-size: 14px; color: var(--text-dim); margin-bottom: 26px; }
.breadcrumb a { color: var(--text-soft); }
.breadcrumb a:hover { color: var(--text); }
.breadcrumb .sep { margin: 0 8px; color: var(--line); }

.detail-hero { display: flex; align-items: center; gap: 22px; margin-bottom: 26px; }
.detail-icon {
  width: 76px; height: 76px; border-radius: 20px; flex: 0 0 auto;
  display: grid; place-items: center; color: #fff; font-weight: 700; font-size: 30px;
  background: var(--accent, #0066cc);
}
.detail-hero h1 { font-size: clamp(30px, 5vw, 44px); font-weight: 700; letter-spacing: -.02em; line-height: 1.1; }
.detail-hero .card-type { font-size: 14px; color: var(--text-dim); margin-top: 6px; }
.detail-tagline { font-size: 19px; color: var(--text-soft); margin-top: 10px; max-width: 620px; }

.detail-actions { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; margin-bottom: 44px; }

.detail-section { margin-bottom: 40px; }
.detail-section h2 {
  font-size: clamp(22px, 3vw, 28px); font-weight: 700; letter-spacing: -.02em;
  margin-bottom: 16px; padding-bottom: 12px; border-bottom: 1px solid var(--line);
}
.detail-about { font-size: 17px; color: var(--text-soft); line-height: 1.7; }
.detail-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.detail-note { font-size: 14.5px; color: var(--text-dim); margin-top: 14px; line-height: 1.6; }

.proscons { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.proscons h3 { font-size: 16px; margin-bottom: 10px; }
.proscons ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.proscons li { font-size: 15px; color: var(--text-soft); padding-left: 22px; position: relative; line-height: 1.5; }
.proscons .pros li::before { content: "✓"; position: absolute; left: 0; top: 0; color: #008a4a; font-weight: 700; }
.proscons .cons li::before { content: "!"; position: absolute; left: 0; top: 0; color: #c97700; font-weight: 700; }

.related { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.rel-card {
  background: var(--bg-soft); border-radius: 16px; padding: 18px;
  transition: transform .3s, box-shadow .3s; display: flex; flex-direction: column; gap: 6px;
}
.rel-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-sm); }
.rel-icon {
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
  color: #fff; font-weight: 700; font-size: 18px; background: var(--accent, #0066cc);
}
.rel-name { font-size: 16px; font-weight: 600; }
.rel-tag { font-size: 12.5px; color: var(--text-soft); line-height: 1.45; }

.detail-back { margin-top: 20px; }

@media (max-width: 760px) {
  .detail-cols, .proscons { grid-template-columns: 1fr; }
  .related { grid-template-columns: repeat(2, 1fr); }
}

