/* ============================================
   Binance Theme - European Modern Style
   Clean, minimal, professional
   ============================================ */

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

:root {
  --primary: #1a2332;
  --primary-light: #2a3a52;
  --accent: #f0b90b;
  --accent-dark: #d4a308;
  --text: #1e2329;
  --text-light: #707a8a;
  --bg: #ffffff;
  --bg-light: #f5f7fa;
  --bg-dark: #0b0e11;
  --border: #eaecef;
  --success: #0ecb81;
  --danger: #f6465d;
  --shadow: 0 2px 20px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 40px rgba(0,0,0,0.12);
  --radius: 12px;
  --radius-sm: 8px;
  --transition: all 0.3s ease;
  --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

html { scroll-behavior: smooth; }
body { font-family: var(--font); color: var(--text); background: var(--bg); line-height: 1.6; overflow-x: hidden; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { max-width: 100%; height: auto; }

/* Header */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
}
.header.scrolled { box-shadow: var(--shadow); }
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.logo { display: flex; align-items: center; gap: 10px; margin-right: auto; }
.logo img { width: 32px; height: 32px; }
.logo-text { font-size: 20px; font-weight: 700; color: var(--primary); }

.nav { display: flex; align-items: center; gap: 4px; }
.nav-link {
  padding: 8px 16px; border-radius: var(--radius-sm);
  font-size: 14px; font-weight: 500; color: var(--text-light);
  transition: var(--transition);
}
.nav-link:hover, .nav-link.active { color: var(--accent-dark); background: rgba(240,185,11,0.12); }

.btn-register { margin-left: auto; 
  display: inline-flex; align-items: center;
  padding: 8px 24px;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: var(--bg-dark); font-weight: 600; font-size: 14px;
  border-radius: 999px; transition: var(--transition);
}
.btn-register:hover { transform: translateY(-1px); box-shadow: 0 4px 15px rgba(240,185,11,0.4); }

.menu-toggle {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 10px;
}
.menu-toggle span {
  display: block; width: 24px; height: 2px; background: var(--text);
  border-radius: 2px; transition: var(--transition);
}

/* Buttons */
.btn-primary, .btn-secondary {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 32px; font-size: 16px; font-weight: 600;
  border-radius: 999px; transition: var(--transition);
  border: none; cursor: pointer;
}
.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: var(--bg-dark);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(240,185,11,0.4); }
.btn-secondary {
  background: transparent; color: var(--primary);
  border: 2px solid var(--border);
}
.btn-secondary:hover { border-color: var(--accent); color: var(--accent-dark); }
.btn-large { padding: 18px 48px; font-size: 18px; }
.btn-sm { padding: 10px 24px; font-size: 14px; }

/* Hero highlight button - 在暗色背景下高亮 */
.btn-highlight {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 32px; font-size: 16px; font-weight: 700;
  border-radius: 999px; border: 2px solid var(--accent);
  background: linear-gradient(135deg, var(--accent), #fcd34d);
  color: #0b0e11; cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 0 20px rgba(240,185,11,0.4), 0 0 60px rgba(240,185,11,0.15);
  text-shadow: 0 1px 2px rgba(255,255,255,0.3);
}
.btn-highlight:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 0 30px rgba(240,185,11,0.6), 0 0 80px rgba(240,185,11,0.25);
  background: linear-gradient(135deg, #fcd34d, var(--accent));
}

/* Hero */
.hero {
  position: relative; min-height: 100vh;
  display: flex; align-items: center;
  padding: 120px 0 80px;
  background: linear-gradient(135deg, #0b0e11 0%, #1a2332 50%, #0b0e11 100%);
  overflow: hidden;
}
.hero-bg {
  position: absolute; top: -50%; left: -50%; width: 200%; height: 200%;
  background: radial-gradient(ellipse at 30% 50%, rgba(240,185,11,0.08) 0%, transparent 50%),
              radial-gradient(ellipse at 70% 50%, rgba(240,185,11,0.05) 0%, transparent 50%);
  animation: heroGlow 8s ease-in-out infinite alternate;
}
@keyframes heroGlow {
  0% { transform: translate(0, 0); }
  100% { transform: translate(-2%, -2%); }
}
.hero-content { position: relative; z-index: 1; text-align: center; color: #fff; }
.hero-title { font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 800; margin-bottom: 16px; line-height: 1.2; }
.hero-subtitle { font-size: clamp(1rem, 2vw, 1.25rem); color: rgba(255,255,255,0.7); margin-bottom: 40px; max-width: 600px; margin-left: auto; margin-right: auto; }
.hero-stats { display: flex; justify-content: center; gap: 60px; margin-bottom: 40px; }
.stat-item { text-align: center; }
.stat-number { display: block; font-size: 2rem; font-weight: 800; color: var(--accent); margin-bottom: 4px; }
.stat-label { font-size: 0.875rem; color: rgba(255,255,255,0.6); }
.hero-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* Section styles */
section { padding: 80px 0; }
.section-header {
  text-align: center; margin-bottom: 48px;
  display: flex; flex-direction: column; align-items: center;
}
.section-header h2 { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 700; margin-bottom: 8px; color: var(--primary); }
.section-header p { color: var(--text-light); font-size: 1rem; }
.section-more { color: var(--accent-dark); font-weight: 600; font-size: 14px; transition: var(--transition); }
.section-more:hover { gap: 4px; }

/* Market Data */
.market-section { background: var(--bg-light); }
.market-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; }
.market-card {
  display: flex; align-items: center; gap: 12px;
  padding: 20px; background: var(--bg); border-radius: var(--radius);
  border: 1px solid var(--border); cursor: pointer;
  transition: var(--transition);
}
.market-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: var(--accent); }
.coin-info { display: flex; align-items: center; gap: 10px; flex: 1; }
.coin-icon { width: 36px; height: 36px; border-radius: 50%; }
.coin-name { font-weight: 600; font-size: 15px; }
.coin-full { font-size: 12px; color: var(--text-light); }
.coin-price { font-weight: 700; font-size: 16px; min-width: 100px; text-align: right; }
.coin-change { font-weight: 600; font-size: 14px; min-width: 70px; text-align: right; }
.coin-change.positive { color: var(--success); }
.coin-change.negative { color: var(--danger); }

/* Features */
.features-section { background: var(--bg); }
.features-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 24px; }
.feature-card {
  padding: 40px 32px; background: var(--bg-light); border-radius: var(--radius);
  border: 1px solid var(--border); transition: var(--transition);
}
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.feature-icon { width: 56px; height: 56px; margin-bottom: 20px; }
.feature-icon img { width: 100%; height: 100%; object-fit: contain; }
.feature-card h3 { font-size: 1.25rem; font-weight: 700; margin-bottom: 12px; }
.feature-card p { color: var(--text-light); font-size: 0.9375rem; margin-bottom: 16px; line-height: 1.7; }
.feature-link { color: var(--accent-dark); font-weight: 600; font-size: 14px; }

/* News */
.news-section { background: var(--bg-light); }
.news-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(360px, 1fr)); gap: 20px; }
.news-card {
  background: var(--bg); border-radius: var(--radius);
  border: 1px solid var(--border); overflow: hidden;
  transition: var(--transition);
}
.news-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.news-card-body { padding: 20px; }
.news-card-category { display: inline-block; padding: 4px 12px; background: rgba(240,185,11,0.1); color: var(--accent-dark); font-size: 12px; font-weight: 600; border-radius: 999px; margin-bottom: 8px; }
.news-card-title { font-size: 1rem; font-weight: 700; margin-bottom: 8px; line-height: 1.4; }
.news-card-title a { color: var(--text); transition: var(--transition); }
.news-card-title a:hover { color: var(--accent-dark); }
.news-card-excerpt { color: var(--text-light); font-size: 0.875rem; line-height: 1.6; margin-bottom: 12px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.news-card-meta { display: flex; justify-content: space-between; align-items: center; font-size: 13px; color: var(--text-light); }
.news-card-meta a { color: var(--accent-dark); font-weight: 600; }

/* FAQ */
.faq-section { background: var(--bg); }
.faq-list { max-width: 720px; margin: 0 auto; }
.faq-item { border: 1px solid var(--border); border-radius: var(--radius-sm); margin-bottom: 12px; overflow: hidden; }
.faq-question {
  width: 100%; display: flex; justify-content: space-between; align-items: center;
  padding: 20px 24px; background: none; border: none; cursor: pointer;
  font-size: 1rem; font-weight: 600; color: var(--text); text-align: left;
  transition: var(--transition);
}
.faq-question:hover { background: var(--bg-light); }
.faq-icon { font-size: 1.25rem; color: var(--accent-dark); font-weight: 700; transition: var(--transition); }
.faq-item.active .faq-icon { transform: rotate(45deg); }
.faq-answer {
  max-height: 0; overflow: hidden; transition: max-height 0.3s ease, padding 0.3s ease;
  padding: 0 24px; color: var(--text-light); font-size: 0.9375rem; line-height: 1.7;
}
.faq-item.active .faq-answer { max-height: 300px; padding: 0 24px 20px; }

/* CTA */
.cta-section {
  background: linear-gradient(135deg, #0b0e11 0%, #1a2332 100%);
  color: #fff; text-align: center;
}
.cta-content h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); font-weight: 700; margin-bottom: 16px; }
.cta-content p { color: rgba(255,255,255,0.7); max-width: 600px; margin: 0 auto 32px; }

/* Footer */
.footer { background: var(--bg-dark); color: rgba(255,255,255,0.8); padding: 60px 0 30px; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 40px; margin-bottom: 40px; }
.footer-col h4 { color: #fff; font-size: 14px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 16px; }
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul li a { font-size: 14px; color: rgba(255,255,255,0.6); transition: var(--transition); }
.footer-col ul li a:hover { color: var(--accent); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 20px; text-align: center; }
.copyright { font-size: 13px; margin-bottom: 4px; }
.disclaimer { font-size: 12px; color: rgba(255,255,255,0.4); }

/* Sticky Bar */
.sticky-bar {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 999;
  display: flex; align-items: center; justify-content: center; gap: 16px;
  padding: 12px 24px;
  background: var(--bg-dark); color: #fff;
  transform: translateY(100%); transition: transform 0.4s ease;
}
.sticky-bar.show { transform: translateY(0); }
.sticky-bar p { font-size: 14px; font-weight: 500; }
.sticky-bar .btn-primary { padding: 8px 20px; font-size: 13px; }

/* Category Page Header */
.category-header {
  padding: 120px 0 40px;
  background: linear-gradient(135deg, #0b0e11 0%, #1a2332 100%);
  color: #fff; text-align: center;
}
.category-header h1 { font-size: 2.25rem; font-weight: 800; margin-bottom: 8px; }
.category-header p { color: rgba(255,255,255,0.6); }

/* Article List Page */
.article-list { background: var(--bg-light); min-height: 60vh; }
.article-grid { display: grid; grid-template-columns: 1fr; gap: 16px; max-width: 860px; margin: 0 auto; }
.article-item {
  display: flex; gap: 24px;
  padding: 24px; background: var(--bg); border-radius: var(--radius);
  border: 1px solid var(--border);
  transition: var(--transition);
}
.article-item:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.article-item .num { font-size: 1.5rem; font-weight: 800; color: var(--accent); min-width: 50px; }
.article-item .content { flex: 1; }
.article-item .content h3 { font-size: 1.1rem; margin-bottom: 8px; }
.article-item .content h3 a { color: var(--text); }
.article-item .content h3 a:hover { color: var(--accent-dark); }
.article-item .content p { color: var(--text-light); font-size: 0.875rem; line-height: 1.6; }
.article-item .content .date { font-size: 0.8rem; color: var(--text-light); margin-top: 8px; }

/* Article Detail Page */
.article-detail { background: var(--bg-light); padding: 40px 0 80px; }
.article-detail .article-wrap { max-width: 800px; margin: 0 auto; background: var(--bg); border-radius: var(--radius); padding: 48px; box-shadow: var(--shadow); }
.article-detail .article-title { font-size: 1.75rem; font-weight: 800; margin-bottom: 8px; line-height: 1.3; }
.article-detail .article-meta { color: var(--text-light); font-size: 0.875rem; margin-bottom: 24px; padding-bottom: 16px; border-bottom: 1px solid var(--border); }
.article-detail .article-body { font-size: 1rem; line-height: 1.85; color: var(--text); }
.article-detail .article-body p { margin-bottom: 16px; }
.article-detail .article-body h2, .article-detail .article-body h3 { margin-top: 32px; margin-bottom: 12px; font-weight: 700; }
.article-detail .article-body h2 { font-size: 1.4rem; }
.article-detail .article-body h3 { font-size: 1.15rem; }
.article-detail .article-actions { margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; }

/* About Page */
.about-section { padding: 120px 0 80px; background: var(--bg-light); }
.about-content { max-width: 800px; margin: 0 auto; }
.about-card { background: var(--bg); border-radius: var(--radius); padding: 48px; box-shadow: var(--shadow); }
.about-card h1 { font-size: 2rem; font-weight: 800; margin-bottom: 24px; }
.about-card h2 { font-size: 1.3rem; font-weight: 700; margin-top: 32px; margin-bottom: 12px; }
.about-card p { color: var(--text-light); line-height: 1.85; margin-bottom: 16px; }

/* Pagination */
.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 40px; }
.pagination a, .pagination span {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: var(--radius-sm);
  font-size: 14px; font-weight: 600;
  border: 1px solid var(--border); background: var(--bg);
  transition: var(--transition);
}
.pagination a:hover { border-color: var(--accent); color: var(--accent-dark); }
.pagination .active { background: var(--accent); color: var(--bg-dark); border-color: var(--accent); }

/* Scroll to top */
.go-top {
  position: fixed; bottom: 80px; right: 20px; z-index: 998;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--primary); color: #fff; border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; opacity: 0; visibility: hidden;
  transition: var(--transition); box-shadow: var(--shadow);
}
.go-top.show { opacity: 1; visibility: visible; }
.go-top:hover { background: var(--primary-light); transform: translateY(-3px); }

/* Loading state */
.loading {
  text-align: center; padding: 60px 0; color: var(--text-light);
}
.loading::after { content: '...'; animation: dots 1.5s steps(4, end) infinite; }
@keyframes dots { 0% { content: ''; } 25% { content: '.'; } 50% { content: '..'; } 75% { content: '...'; } }

/* Responsive */
@media (max-width: 768px) {
  .nav { display: none; position: fixed; top: 64px; left: 0; right: 0; background: var(--bg); flex-direction: column; padding: 20px; gap: 8px; border-bottom: 1px solid var(--border); box-shadow: var(--shadow); }
  .nav.open { display: flex; }
  .nav-link { width: 100%; text-align: center; padding: 12px; }
  .menu-toggle { display: flex; }
  .btn-register { margin-left: auto;  display: none; }
  .hero { padding: 100px 0 60px; }
  .hero-stats { gap: 30px; flex-wrap: wrap; }
  .stat-number { font-size: 1.5rem; }
  .hero-actions { flex-direction: column; align-items: center; }
  .market-grid { grid-template-columns: 1fr; }
  .features-grid, .news-grid { grid-template-columns: 1fr; }
  .article-item { flex-direction: column; gap: 8px; }
  .article-detail .article-wrap { padding: 24px; }
  .about-card { padding: 24px; }
  .sticky-bar p { font-size: 12px; }
  .sticky-bar .btn-primary { padding: 6px 14px; font-size: 12px; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
}

@media (max-width: 480px) {
  .hero-stats { gap: 20px; }
  .stat-item { min-width: 80px; }
  .footer-grid { grid-template-columns: 1fr; }
}
/* Trust Bar */
.trust-bar { padding: 18px 0; background: #f8fafc; border-bottom: 1px solid #e2e8f0; text-align: center; font-size: 13px; color: #64748b; }
.dot { padding: 0 10px; color: #d1d5db; }
.hero-badge { display: inline-block; padding: 4px 16px; background: rgba(14,165,233,.1); color: #0ea5e9; font-size: 12px; font-weight: 700; border-radius: 20px; margin-bottom: 16px; }
.btn-secondary { padding: 13px 30px; border: 2px solid rgba(255,255,255,0.3); border-radius: 8px; font-weight: 600; display: inline-block; color: #fff; background: transparent; }
/* Steps */
.steps-section { padding: 60px 0; background: #f8fafc; }
.steps-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
.step-card { padding: 32px 24px; background: #fff; border: 1px solid #e2e8f0; border-radius: 12px; text-align: center; position: relative; overflow: hidden; }
.step-num { position: absolute; top: 8px; right: 16px; font-size: 3rem; font-weight: 900; color: rgba(14,165,233,.08); line-height: 1; }
.step-ico { font-size: 2rem; display: block; margin-bottom: 10px; }
.step-card h3 { font-size: 1rem; font-weight: 700; margin: 0 0 8px; }
.step-card p { font-size: .85rem; color: #64748b; margin: 0; }
@media (max-width: 768px) { .steps-grid { grid-template-columns: 1fr; } }
