/* ============================================
   冷钱包导购站 — 主样式文件
   设计风格：高级科技感 · 暗黑主题 · 金融安全
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@300;400;500;600;700;900&family=Space+Mono:wght@400;700&family=Syne:wght@400;600;700;800&display=swap');

/* === CSS Variables === */
:root {
  --bg-primary: #080c14;
  --bg-secondary: #0d1422;
  --bg-card: #111827;
  --bg-card-hover: #1a2337;
  --border: rgba(255,255,255,0.07);
  --border-accent: rgba(245,158,11,0.4);
  --gold: #f5a623;
  --gold-light: #fbbf24;
  --gold-dim: rgba(245,166,35,0.15);
  --cyan: #22d3ee;
  --cyan-dim: rgba(34,211,238,0.1);
  --green: #10b981;
  --red: #ef4444;
  --text-primary: #f1f5f9;
  --text-secondary: #94a3b8;
  --text-muted: #475569;
  --shadow-gold: 0 0 40px rgba(245,166,35,0.15);
  --shadow-card: 0 4px 32px rgba(0,0,0,0.5);
  --radius: 12px;
  --radius-lg: 20px;
  --font-display: 'Syne', sans-serif;
  --font-body: 'Noto Sans SC', sans-serif;
  --font-mono: 'Space Mono', monospace;
  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* === Reset & Base === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  background: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-body);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* === Noise texture overlay === */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
  opacity: 0.4;
}

/* === Typography === */
h1, h2, h3, h4, h5 { font-family: var(--font-display); font-weight: 700; line-height: 1.2; }
h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.4rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.6rem); }
h4 { font-size: 1.1rem; font-weight: 600; }

p { color: var(--text-secondary); margin-bottom: 1em; }
a { color: var(--gold); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--gold-light); }

strong { color: var(--text-primary); font-weight: 600; }
code { font-family: var(--font-mono); font-size: 0.85em; background: var(--bg-card); padding: 2px 6px; border-radius: 4px; color: var(--cyan); }

/* === Layout === */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.container-wide { max-width: 1400px; margin: 0 auto; padding: 0 24px; }
section { position: relative; z-index: 1; }

/* === Navigation === */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(8,12,20,0.92);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 0 24px;
}
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 24px;
}
.nav-logo {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text-primary);
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 8px;
}
.nav-logo .logo-icon { color: var(--gold); font-size: 1.3rem; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  flex-wrap: wrap;
}
.nav-links a {
  color: var(--text-secondary);
  font-size: 0.875rem;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: 8px;
  transition: all var(--transition);
  white-space: nowrap;
}
.nav-links a:hover, .nav-links a.active {
  color: var(--text-primary);
  background: var(--bg-card);
}
.nav-cta {
  background: linear-gradient(135deg, var(--gold), #e8941a) !important;
  color: #000 !important;
  font-weight: 700 !important;
  padding: 8px 16px !important;
  border-radius: 8px !important;
}
.nav-cta:hover { opacity: 0.9; transform: translateY(-1px); }

/* Mobile nav */
.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  color: var(--text-primary);
  padding: 8px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1.2rem;
}
@media (max-width: 768px) {
  .nav-toggle { display: flex; align-items: center; justify-content: center; }
  .nav-links {
    display: none;
    position: absolute;
    top: 64px; left: 0; right: 0;
    background: rgba(8,12,20,0.98);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: stretch;
    padding: 12px 24px 20px;
    gap: 2px;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 10px 12px; font-size: 0.95rem; }
}

/* === Hero Section === */
.hero {
  padding: 80px 24px 72px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -20%;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 500px;
  background: radial-gradient(ellipse, rgba(245,166,35,0.08) 0%, transparent 70%);
  pointer-events: none;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--gold-dim);
  border: 1px solid var(--border-accent);
  color: var(--gold);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 99px;
  margin-bottom: 24px;
}
.hero h1 { margin-bottom: 20px; }
.hero h1 em { color: var(--gold); font-style: normal; }
.hero-desc { font-size: 1.1rem; max-width: 640px; margin: 0 auto 32px; color: var(--text-secondary); }
.hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* === Buttons === */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all var(--transition);
  border: none;
  text-decoration: none;
}
.btn-primary {
  background: linear-gradient(135deg, var(--gold), #e8941a);
  color: #000;
  box-shadow: 0 4px 20px rgba(245,166,35,0.3);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(245,166,35,0.4); color: #000; }
.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border);
}
.btn-outline:hover { border-color: var(--gold); color: var(--gold); background: var(--gold-dim); }
.btn-sm { padding: 8px 16px; font-size: 0.85rem; }
.btn-lg { padding: 16px 32px; font-size: 1.05rem; }

/* === Cards === */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}
.card:hover {
  border-color: rgba(245,166,35,0.2);
  box-shadow: var(--shadow-gold);
  transform: translateY(-2px);
}
.card-highlight {
  border-color: var(--border-accent);
  background: linear-gradient(135deg, var(--bg-card), rgba(245,166,35,0.03));
}

/* === Section Headers === */
.section-header {
  text-align: center;
  margin-bottom: 48px;
}
.section-label {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--gold);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.section-header h2 { margin-bottom: 12px; }
.section-header p { max-width: 580px; margin: 0 auto; }

/* === Grid Systems === */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
@media (max-width: 1024px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; } }

/* === Brand Cards === */
.brand-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
}
.brand-card:hover {
  border-color: rgba(245,166,35,0.3);
  transform: translateY(-3px);
  box-shadow: 0 8px 40px rgba(0,0,0,0.4), 0 0 30px rgba(245,166,35,0.08);
}
.brand-tier {
  position: absolute;
  top: 16px; right: 16px;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 4px;
}
.tier-1 { background: rgba(245,166,35,0.15); color: var(--gold); border: 1px solid rgba(245,166,35,0.3); }
.tier-2 { background: rgba(34,211,238,0.1); color: var(--cyan); border: 1px solid rgba(34,211,238,0.3); }
.tier-3 { background: rgba(16,185,129,0.1); color: var(--green); border: 1px solid rgba(16,185,129,0.3); }
.tier-4 { background: rgba(148,163,184,0.1); color: var(--text-secondary); border: 1px solid var(--border); }

.brand-logo-area {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 4px;
}
.brand-icon {
  width: 44px; height: 44px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}
.brand-name { font-family: var(--font-display); font-size: 1.2rem; font-weight: 800; }
.brand-origin { font-size: 0.75rem; color: var(--text-muted); }
.brand-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag {
  font-size: 0.72rem;
  padding: 3px 8px;
  border-radius: 4px;
  background: var(--bg-secondary);
  color: var(--text-secondary);
  border: 1px solid var(--border);
  font-family: var(--font-mono);
}
.tag-gold { background: var(--gold-dim); color: var(--gold); border-color: rgba(245,166,35,0.2); }
.tag-cyan { background: var(--cyan-dim); color: var(--cyan); border-color: rgba(34,211,238,0.2); }

/* === Comparison Table === */
.compare-table-wrapper {
  overflow-x: auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
}
.compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}
.compare-table th {
  background: var(--bg-secondary);
  padding: 14px 16px;
  text-align: left;
  font-weight: 600;
  color: var(--text-primary);
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
  font-size: 0.85rem;
}
.compare-table th:first-child { color: var(--text-muted); font-weight: 400; }
.compare-table td {
  padding: 12px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  color: var(--text-secondary);
  vertical-align: middle;
}
.compare-table tr:last-child td { border-bottom: none; }
.compare-table tr:hover td { background: rgba(255,255,255,0.02); }
.compare-table td:first-child { color: var(--text-muted); font-size: 0.82rem; font-weight: 500; }
.check-yes { color: var(--green); font-size: 1rem; }
.check-no { color: var(--text-muted); }
.check-partial { color: var(--gold); }
.col-highlight th, .col-highlight td { background: rgba(245,166,35,0.04) !important; }

/* === Score / Rating === */
.score-bar { display: flex; align-items: center; gap: 8px; }
.score-track {
  flex: 1;
  height: 4px;
  background: var(--bg-secondary);
  border-radius: 2px;
  overflow: hidden;
}
.score-fill { height: 100%; border-radius: 2px; background: linear-gradient(90deg, var(--gold), var(--gold-light)); }
.score-num { font-family: var(--font-mono); font-size: 0.8rem; color: var(--gold); width: 28px; }

/* === FAQ Accordion === */
.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 8px;
  transition: border-color var(--transition);
}
.faq-item:hover { border-color: rgba(245,166,35,0.2); }
.faq-question {
  width: 100%;
  background: var(--bg-card);
  border: none;
  padding: 18px 20px;
  text-align: left;
  color: var(--text-primary);
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  font-family: var(--font-body);
  transition: background var(--transition);
}
.faq-question:hover { background: var(--bg-card-hover); }
.faq-icon { color: var(--gold); font-size: 1.1rem; transition: transform var(--transition); flex-shrink: 0; }
.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-answer {
  display: none;
  padding: 0 20px 18px;
  background: var(--bg-card);
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.8;
}
.faq-item.open .faq-answer { display: block; }

/* === Breadcrumb === */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--gold); }
.breadcrumb span { color: var(--text-muted); }

/* === Verdict Box === */
.verdict-box {
  background: linear-gradient(135deg, var(--bg-card), rgba(245,166,35,0.05));
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-lg);
  padding: 28px;
  margin: 32px 0;
}
.verdict-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--gold);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.verdict-box h3 { margin-bottom: 8px; color: var(--gold); }

/* === CTA Section === */
.cta-section {
  background: linear-gradient(135deg, rgba(245,166,35,0.08), rgba(245,166,35,0.02));
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-lg);
  padding: 48px 32px;
  text-align: center;
  margin: 48px 0;
}

/* === Footer === */
.site-footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  padding: 48px 24px 32px;
  position: relative;
  z-index: 1;
}
.footer-grid {
  max-width: 1200px;
  margin: 0 auto 40px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
}
@media (max-width: 768px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-brand p { font-size: 0.85rem; margin-top: 12px; line-height: 1.7; }
.footer-col h4 { font-size: 0.85rem; font-weight: 600; margin-bottom: 16px; color: var(--text-primary); letter-spacing: 0.05em; }
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.footer-links a { font-size: 0.85rem; color: var(--text-muted); transition: color var(--transition); }
.footer-links a:hover { color: var(--gold); }
.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: var(--text-muted);
  flex-wrap: wrap;
  gap: 8px;
}

/* === Utility === */
.text-gold { color: var(--gold); }
.text-cyan { color: var(--cyan); }
.text-green { color: var(--green); }
.text-muted { color: var(--text-muted); }
.text-center { text-align: center; }
.mt-8 { margin-top: 8px; } .mt-16 { margin-top: 16px; } .mt-24 { margin-top: 24px; } .mt-32 { margin-top: 32px; } .mt-48 { margin-top: 48px; } .mt-64 { margin-top: 64px; }
.mb-8 { margin-bottom: 8px; } .mb-16 { margin-bottom: 16px; } .mb-24 { margin-bottom: 24px; } .mb-32 { margin-bottom: 32px; } .mb-48 { margin-bottom: 48px; }
.py-64 { padding-top: 64px; padding-bottom: 64px; }
.py-80 { padding-top: 80px; padding-bottom: 80px; }

/* === Divider === */
.divider { height: 1px; background: var(--border); margin: 48px 0; }

/* === Sticky Floating CTA (mobile) === */
.floating-cta {
  display: none;
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 200;
  width: calc(100% - 48px);
  max-width: 400px;
}
@media (max-width: 768px) { .floating-cta { display: block; } }
.floating-cta .btn { width: 100%; justify-content: center; box-shadow: 0 8px 30px rgba(0,0,0,0.6); }

/* === Schema markup (visually hidden) === */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }

/* === Animations === */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes pulse-gold {
  0%, 100% { box-shadow: 0 0 0 0 rgba(245,166,35,0.3); }
  50% { box-shadow: 0 0 0 8px rgba(245,166,35,0); }
}
.animate-fade-up { animation: fadeUp 0.6s ease forwards; }
.animate-delay-1 { animation-delay: 0.1s; opacity: 0; }
.animate-delay-2 { animation-delay: 0.2s; opacity: 0; }
.animate-delay-3 { animation-delay: 0.3s; opacity: 0; }

/* Intersection observer helper */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* === Brand page specific === */
.brand-hero { padding: 64px 0 48px; }
.spec-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; margin: 32px 0; }
.spec-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 18px;
}
.spec-label { font-size: 0.75rem; color: var(--text-muted); font-family: var(--font-mono); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 4px; }
.spec-value { font-size: 1rem; font-weight: 600; color: var(--text-primary); }

.pros-cons { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin: 24px 0; }
@media (max-width: 640px) { .pros-cons { grid-template-columns: 1fr; } }
.pros-box { background: rgba(16,185,129,0.05); border: 1px solid rgba(16,185,129,0.2); border-radius: var(--radius); padding: 20px; }
.cons-box { background: rgba(239,68,68,0.05); border: 1px solid rgba(239,68,68,0.2); border-radius: var(--radius); padding: 20px; }
.pros-box h4 { color: var(--green); margin-bottom: 12px; }
.cons-box h4 { color: var(--red); margin-bottom: 12px; }
.pros-box ul, .cons-box ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.pros-box li, .cons-box li { font-size: 0.88rem; color: var(--text-secondary); display: flex; gap: 8px; }
.pros-box li::before { content: '✓'; color: var(--green); flex-shrink: 0; font-weight: 700; }
.cons-box li::before { content: '✕'; color: var(--red); flex-shrink: 0; font-weight: 700; }

/* Security badge */
.security-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  font-family: var(--font-mono);
}
.badge-gold { background: var(--gold-dim); color: var(--gold); border: 1px solid rgba(245,166,35,0.3); }
.badge-cyan { background: var(--cyan-dim); color: var(--cyan); border: 1px solid rgba(34,211,238,0.3); }
.badge-green { background: rgba(16,185,129,0.1); color: var(--green); border: 1px solid rgba(16,185,129,0.3); }

/* Compare page highlight column */
.winner-col { background: rgba(245,166,35,0.04) !important; }
.winner-header {
  background: linear-gradient(135deg, rgba(245,166,35,0.15), rgba(245,166,35,0.05)) !important;
  position: relative;
}
.winner-badge {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gold);
  color: #000;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 99px;
  white-space: nowrap;
  font-family: var(--font-mono);
  letter-spacing: 0.05em;
}
