/* ============================================
   im冷钱包 - 深空蓝极光紫渐变科技风格
   style.css
   ============================================ */

/* --- CSS Variables --- */
:root {
  --deep-blue: #0a0e27;
  --aurora-purple: #6c3ce0;
  --aurora-blue: #1e3a8a;
  --neon-cyan: #00f5ff;
  --neon-green: #00ff88;
  --glass-bg: rgba(255,255,255,0.05);
  --glass-border: rgba(255,255,255,0.12);
  --text-primary: #e8eaf6;
  --text-secondary: #9fa8da;
  --text-muted: #5c6bc0;
  --card-radius: 16px;
  --transition: all 0.3s 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 {
  font-family: 'Inter', 'PingFang SC', 'Microsoft YaHei', -apple-system, BlinkMacSystemFont, sans-serif;
  background: linear-gradient(135deg, var(--deep-blue) 0%, #0d1b3e 40%, #1a0a3e 70%, var(--deep-blue) 100%);
  color: var(--text-primary);
  line-height: 1.7;
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

/* --- Particle / Grid Background --- */
body::before {
  content: '';
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background-image:
    linear-gradient(rgba(108,60,224,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(108,60,224,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  z-index: 0;
  pointer-events: none;
}

/* Floating particles */
.particles {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.particles span {
  position: absolute;
  width: 4px; height: 4px;
  background: var(--neon-cyan);
  border-radius: 50%;
  opacity: 0.3;
  animation: floatParticle 20s infinite linear;
}
.particles span:nth-child(1) { left: 10%; top: 20%; animation-delay: 0s; animation-duration: 25s; }
.particles span:nth-child(2) { left: 30%; top: 60%; animation-delay: 2s; animation-duration: 18s; }
.particles span:nth-child(3) { left: 50%; top: 40%; animation-delay: 4s; animation-duration: 22s; }
.particles span:nth-child(4) { left: 70%; top: 80%; animation-delay: 1s; animation-duration: 20s; }
.particles span:nth-child(5) { left: 90%; top: 10%; animation-delay: 3s; animation-duration: 28s; }
.particles span:nth-child(6) { left: 20%; top: 90%; animation-delay: 5s; animation-duration: 16s; }
.particles span:nth-child(7) { left: 60%; top: 30%; animation-delay: 7s; animation-duration: 24s; }
.particles span:nth-child(8) { left: 80%; top: 50%; animation-delay: 6s; animation-duration: 19s; }

@keyframes floatParticle {
  0% { transform: translateY(100vh) translateX(0); opacity: 0; }
  10% { opacity: 0.4; }
  90% { opacity: 0.4; }
  100% { transform: translateY(-100vh) translateX(100px); opacity: 0; }
}

/* --- Container --- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
  z-index: 1;
}

/* --- Glassmorphism Card --- */
.glass-card {
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  border-radius: var(--card-radius);
  padding: 28px;
  transition: var(--transition);
}
.glass-card:hover {
  border-color: rgba(108,60,224,0.4);
  box-shadow: 0 8px 32px rgba(108,60,224,0.15);
  transform: translateY(-2px);
}

/* --- Header / Navigation --- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10,14,39,0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--glass-border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text-primary);
}
.logo-icon {
  width: 36px; height: 36px;
  background: linear-gradient(135deg, var(--aurora-purple), var(--neon-cyan));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 16px;
  color: #fff;
}
.logo-text {
  font-size: 20px;
  font-weight: 700;
  background: linear-gradient(90deg, var(--neon-cyan), var(--aurora-purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.main-nav { display: flex; gap: 6px; align-items: center; }
.main-nav a {
  color: var(--text-secondary);
  text-decoration: none;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  transition: var(--transition);
}
.main-nav a:hover, .main-nav a.active {
  color: var(--neon-cyan);
  background: rgba(0,245,255,0.08);
}
.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 24px;
  cursor: pointer;
}

/* --- Search Bar --- */
.search-bar {
  background: rgba(255,255,255,0.03);
  border-bottom: 1px solid var(--glass-border);
  padding: 10px 0;
}
.search-wrapper {
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 600px;
  margin: 0 auto;
}
.search-wrapper input {
  flex: 1;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  padding: 10px 16px;
  color: var(--text-primary);
  font-size: 14px;
  outline: none;
  transition: var(--transition);
}
.search-wrapper input:focus {
  border-color: var(--aurora-purple);
  box-shadow: 0 0 0 3px rgba(108,60,224,0.2);
}
.search-wrapper button {
  background: linear-gradient(135deg, var(--aurora-purple), var(--aurora-blue));
  border: none;
  color: #fff;
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 14px;
  cursor: pointer;
  transition: var(--transition);
}
.search-wrapper button:hover { opacity: 0.9; }
.search-status {
  text-align: center;
  font-size: 12px;
  color: var(--text-muted);
  padding: 6px 0;
  display: none;
}
.search-status.active { display: block; }

/* --- Breadcrumb --- */
.breadcrumb {
  padding: 16px 0;
  font-size: 13px;
  color: var(--text-muted);
}
.breadcrumb a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: var(--transition);
}
.breadcrumb a:hover { color: var(--neon-cyan); }
.breadcrumb span { margin: 0 6px; }

/* --- Hero Section --- */
.hero {
  padding: 80px 0 60px;
  text-align: center;
  position: relative;
}
.hero::before {
  content: '';
  position: absolute;
  top: -50%; left: 50%;
  transform: translateX(-50%);
  width: 800px; height: 800px;
  background: radial-gradient(circle, rgba(108,60,224,0.15) 0%, transparent 70%);
  pointer-events: none;
}
.hero h1 {
  font-size: 48px;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 20px;
  background: linear-gradient(135deg, #fff 0%, var(--neon-cyan) 50%, var(--aurora-purple) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero .subtitle {
  font-size: 18px;
  color: var(--text-secondary);
  max-width: 700px;
  margin: 0 auto 30px;
  line-height: 1.8;
}
.hero-btns {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--aurora-purple), #4338ca);
  color: #fff;
  padding: 14px 32px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 4px 20px rgba(108,60,224,0.3);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(108,60,224,0.4);
}
.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--neon-cyan);
  padding: 14px 32px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
  border: 1px solid var(--neon-cyan);
  cursor: pointer;
  transition: var(--transition);
}
.btn-secondary:hover {
  background: rgba(0,245,255,0.1);
  transform: translateY(-2px);
}

/* --- Stats Dashboard --- */
.dashboard {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin: 40px 0;
}
.stat-card {
  text-align: center;
  padding: 24px 16px;
}
.stat-card .stat-value {
  font-size: 32px;
  font-weight: 800;
  background: linear-gradient(135deg, var(--neon-cyan), var(--neon-green));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: pulseNum 3s ease-in-out infinite;
}
.stat-card .stat-label {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 6px;
}
@keyframes pulseNum {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

/* --- Section Titles --- */
.section-title {
  text-align: center;
  margin-bottom: 40px;
}
.section-title h2 {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 12px;
}
.section-title h4, .section-title h5, .section-title h6 {
  color: var(--text-muted);
  font-weight: 400;
  font-size: 15px;
}
.section-title .accent {
  color: var(--neon-cyan);
}

/* --- Grid Layouts --- */
.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; }

/* --- News / Security Cards --- */
.news-card { overflow: hidden; }
.news-card .card-img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 12px 12px 0 0;
  margin: -28px -28px 20px;
  width: calc(100% + 56px);
}
.news-card .card-tag {
  display: inline-block;
  background: rgba(108,60,224,0.2);
  color: var(--aurora-purple);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 10px;
}
.news-card h5 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
  line-height: 1.5;
}
.news-card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
}
.news-card .card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 14px;
  font-size: 12px;
  color: var(--text-muted);
}

/* --- Video Card --- */
.video-card {
  position: relative;
  overflow: hidden;
  cursor: pointer;
}
.video-card .video-thumb {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 12px;
  transition: var(--transition);
}
.video-card:hover .video-thumb { transform: scale(1.05); }
.video-card .play-btn {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%) scale(0);
  width: 60px; height: 60px;
  background: rgba(108,60,224,0.8);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}
.video-card:hover .play-btn { transform: translate(-50%, -50%) scale(1); }
.play-btn::after {
  content: '';
  width: 0; height: 0;
  border-left: 18px solid #fff;
  border-top: 12px solid transparent;
  border-bottom: 12px solid transparent;
  margin-left: 4px;
}

/* --- Expert / Testimonial Cards --- */
.expert-card {
  text-align: center;
}
.expert-card .avatar {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--aurora-purple), var(--neon-cyan));
  margin: 0 auto 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 700;
  color: #fff;
}
.expert-card h6 { font-size: 15px; font-weight: 600; margin-bottom: 4px; }
.expert-card .role { font-size: 12px; color: var(--text-muted); margin-bottom: 10px; }
.expert-card p { font-size: 13px; color: var(--text-secondary); line-height: 1.6; }

/* --- AI Section --- */
.ai-feature {
  display: flex;
  align-items: center;
  gap: 20px;
}
.ai-feature .ai-icon {
  width: 56px; height: 56px;
  min-width: 56px;
  background: linear-gradient(135deg, rgba(108,60,224,0.3), rgba(0,245,255,0.2));
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
}
.ai-feature h5 { font-size: 16px; font-weight: 600; margin-bottom: 6px; }
.ai-feature p { font-size: 13px; color: var(--text-secondary); }

/* --- Share Buttons --- */
.share-bar {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  margin: 30px 0;
}
.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 20px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  color: #fff;
  transition: var(--transition);
}
.share-btn:hover { transform: translateY(-2px); }
.share-btn.wechat { background: #07c160; }
.share-btn.weibo { background: #e6162d; }
.share-btn.douyin { background: #161823; border: 1px solid #333; }
.share-btn.bilibili { background: #00a1d6; }

/* --- Footer --- */
.site-footer {
  background: rgba(5,7,20,0.9);
  border-top: 1px solid var(--glass-border);
  padding: 50px 0 24px;
  margin-top: 80px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-brand .logo { margin-bottom: 14px; }
.footer-brand p { font-size: 13px; color: var(--text-muted); line-height: 1.7; }
.footer-col h6 {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 16px;
  color: var(--text-primary);
}
.footer-col a {
  display: block;
  font-size: 13px;
  color: var(--text-muted);
  text-decoration: none;
  padding: 4px 0;
  transition: var(--transition);
}
.footer-col a:hover { color: var(--neon-cyan); }
.footer-bottom {
  border-top: 1px solid var(--glass-border);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--text-muted);
  flex-wrap: wrap;
  gap: 10px;
}

/* --- Sections Spacing --- */
section { padding: 60px 0; }

/* --- Inner Page Content --- */
.page-content {
  max-width: 900px;
  margin: 0 auto;
  padding: 40px 0;
}
.page-content h2 { font-size: 28px; margin-bottom: 20px; }
.page-content h4 { font-size: 20px; margin: 30px 0 14px; color: var(--neon-cyan); }
.page-content h5 { font-size: 17px; margin: 24px 0 10px; }
.page-content p {
  font-size: 15px;
  line-height: 1.8;
  color: var(--text-secondary);
  margin-bottom: 16px;
}
.page-content img {
  max-width: 100%;
  border-radius: 12px;
  margin: 20px 0;
}

/* --- Step Bar (Guide Page) --- */
.step-bar {
  display: flex;
  gap: 0;
  margin: 30px 0;
  overflow-x: auto;
}
.step-item {
  flex: 1;
  text-align: center;
  padding: 16px 12px;
  cursor: pointer;
  border-bottom: 3px solid transparent;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  transition: var(--transition);
  white-space: nowrap;
}
.step-item:hover, .step-item.active {
  color: var(--neon-cyan);
  border-bottom-color: var(--neon-cyan);
  background: rgba(0,245,255,0.05);
}
.step-content { display: none; }
.step-content.active { display: block; }

/* --- SVG Animation (Security Page) --- */
.encryption-diagram {
  width: 100%;
  max-width: 700px;
  margin: 30px auto;
  text-align: center;
}
.encryption-diagram svg { width: 100%; height: auto; }
.flow-line {
  stroke-dasharray: 200;
  stroke-dashoffset: 200;
  animation: drawLine 3s ease forwards infinite;
}
@keyframes drawLine {
  to { stroke-dashoffset: 0; }
}

/* --- Lazy Load --- */
img[data-src] { opacity: 0; transition: opacity 0.5s; }
img.loaded { opacity: 1; }

/* --- Responsive --- */
@media (max-width: 1024px) {
  .dashboard { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .hero h1 { font-size: 32px; }
  .hero .subtitle { font-size: 15px; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .dashboard { grid-template-columns: repeat(2, 1fr); }
  .main-nav { display: none; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0; background: rgba(10,14,39,0.95); padding: 20px; border-bottom: 1px solid var(--glass-border); }
  .main-nav.open { display: flex; }
  .nav-toggle { display: block; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .header-inner { flex-wrap: wrap; }
  section { padding: 40px 0; }
  .step-bar { flex-wrap: nowrap; }
}
@media (max-width: 480px) {
  .hero h1 { font-size: 26px; }
  .dashboard { grid-template-columns: 1fr 1fr; gap: 12px; }
  .stat-card .stat-value { font-size: 24px; }
  .btn-primary, .btn-secondary { padding: 12px 24px; font-size: 14px; }
  .glass-card { padding: 20px; }
}
