/* ===== coinglass 数据分析仪表盘风格 ===== */
:root {
  --bg-primary: #0b0e1a;
  --bg-secondary: #111627;
  --bg-card: #161b2e;
  --bg-card-hover: #1c2340;
  --blue: #3b82f6;
  --blue-light: #60a5fa;
  --blue-dark: #1d4ed8;
  --gold: #f59e0b;
  --gold-light: #fbbf24;
  --green: #10b981;
  --green-light: #34d399;
  --red: #ef4444;
  --red-light: #f87171;
  --white: #ffffff;
  --text-primary: #e2e8f0;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --border: #1e293b;
  --border-light: #334155;
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 16px;
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.5);
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.7;
  overflow-x: hidden;
}

a { color: var(--blue); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--blue-light); }

img { max-width: 100%; height: auto; display: block; }

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

/* ===== Header / Navigation ===== */
header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(11, 14, 26, 0.92); backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
}

header .container {
  display: flex; align-items: center; justify-content: space-between;
  height: 70px;
}

.logo {
  font-size: 1.5rem; font-weight: 700; color: var(--white);
  display: flex; align-items: center; gap: 8px;
}
.logo .icon {
  width: 36px; height: 36px; background: linear-gradient(135deg, var(--blue), var(--blue-dark));
  border-radius: 8px; display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
}

nav ul { display: flex; list-style: none; gap: 4px; }
nav ul li a {
  display: block; padding: 8px 18px; border-radius: var(--radius-sm);
  color: var(--text-secondary); font-size: 0.95rem; font-weight: 500;
  transition: var(--transition);
}
nav ul li a:hover,
nav ul li a.active { color: var(--white); background: rgba(59, 130, 246, 0.15); }

.menu-toggle {
  display: none; background: none; border: none; color: var(--white);
  font-size: 1.5rem; cursor: pointer; padding: 8px;
}

/* ===== Hero Section ===== */
.hero {
  padding: 140px 0 80px;
  background: radial-gradient(ellipse at 50% 0%, rgba(59, 130, 246, 0.15), transparent 60%),
              radial-gradient(ellipse at 80% 50%, rgba(245, 158, 11, 0.08), transparent 50%);
  min-height: 100vh; display: flex; align-items: center;
}

.hero .container { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }

.hero-content h1 {
  font-size: 2.8rem; font-weight: 800; line-height: 1.25; margin-bottom: 20px;
  background: linear-gradient(135deg, var(--white), var(--blue-light));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}

.hero-content p {
  font-size: 1.15rem; color: var(--text-secondary); margin-bottom: 32px; max-width: 520px;
}

.hero-badges { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 32px; }
.hero-badges span {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 14px; border-radius: 20px; font-size: 0.85rem; font-weight: 500;
  background: var(--bg-card); border: 1px solid var(--border); color: var(--text-secondary);
}

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 32px; border-radius: var(--radius); font-size: 1rem; font-weight: 600;
  cursor: pointer; transition: var(--transition); border: none; text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--blue), var(--blue-dark));
  color: var(--white); box-shadow: 0 4px 20px rgba(59, 130, 246, 0.35);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 6px 28px rgba(59, 130, 246, 0.5); color: var(--white); }

.btn-gold {
  background: linear-gradient(135deg, var(--gold), #d97706);
  color: #1e1b0f; box-shadow: 0 4px 20px rgba(245, 158, 11, 0.3);
}
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 6px 28px rgba(245, 158, 11, 0.45); }

.btn-outline {
  background: transparent; border: 2px solid var(--border-light); color: var(--text-primary);
}
.btn-outline:hover { border-color: var(--blue); color: var(--blue-light); }

.hero-visual { position: relative; }
.hero-visual img { border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }

.data-badge {
  position: absolute; padding: 12px 18px; border-radius: var(--radius-sm);
  background: var(--bg-card); border: 1px solid var(--border);
  font-size: 0.85rem; font-weight: 600; white-space: nowrap;
  animation: dataFloat 3s ease-in-out infinite;
}
.data-badge.top-right { top: -10px; right: -10px; animation-delay: 0s; }
.data-badge.bottom-left { bottom: -10px; left: -10px; animation-delay: 1.5s; }
.data-badge .val { color: var(--green); font-size: 1.1rem; }
.data-badge .label { color: var(--text-muted); font-size: 0.75rem; }

@keyframes dataFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

/* ===== Section Common ===== */
section { padding: 90px 0; }

.section-header { text-align: center; margin-bottom: 56px; }
.section-header h2 {
  font-size: 2.2rem; font-weight: 700; margin-bottom: 14px; color: var(--white);
}
.section-header p { color: var(--text-secondary); max-width: 600px; margin: 0 auto; font-size: 1.05rem; }

/* ===== Stats Section ===== */
.stats { background: var(--bg-secondary); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; text-align: center; }
.stat-item .stat-number { font-size: 2.5rem; font-weight: 800; background: linear-gradient(135deg, var(--blue-light), var(--gold-light)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.stat-item .stat-label { color: var(--text-muted); font-size: 0.9rem; margin-top: 4px; }

/* ===== Features Grid ===== */
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }

.feature-card {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 32px 28px; transition: var(--transition); position: relative; overflow: hidden;
}
.feature-card:hover { transform: translateY(-4px); border-color: var(--blue); box-shadow: var(--shadow); }
.feature-card .icon {
  width: 52px; height: 52px; border-radius: var(--radius-sm); display: flex; align-items: center;
  justify-content: center; font-size: 1.5rem; margin-bottom: 18px;
}
.feature-card .icon.blue { background: rgba(59, 130, 246, 0.15); color: var(--blue); }
.feature-card .icon.gold { background: rgba(245, 158, 11, 0.15); color: var(--gold); }
.feature-card .icon.green { background: rgba(16, 185, 129, 0.15); color: var(--green); }
.feature-card h3 { font-size: 1.15rem; margin-bottom: 8px; color: var(--white); }
.feature-card p { color: var(--text-secondary); font-size: 0.92rem; }

/* ===== CTA Section ===== */
.cta {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(245, 158, 11, 0.05));
  border: 1px solid var(--border); border-radius: var(--radius-lg); text-align: center;
  padding: 60px 40px; margin: 0 20px;
}
.cta h2 { font-size: 2rem; margin-bottom: 12px; color: var(--white); }
.cta p { color: var(--text-secondary); margin-bottom: 28px; font-size: 1.05rem; }
.cta .btn-group { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

.btn-pulse {
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.5); }
  50% { box-shadow: 0 0 0 16px rgba(59, 130, 246, 0); }
}

/* ===== Page Hero (sub-pages) ===== */
.page-hero {
  padding: 130px 0 60px;
  background: radial-gradient(ellipse at 50% 0%, rgba(59, 130, 246, 0.1), transparent 60%);
  text-align: center;
}
.page-hero h1 { font-size: 2.5rem; font-weight: 800; margin-bottom: 14px; color: var(--white); }
.page-hero p { color: var(--text-secondary); max-width: 600px; margin: 0 auto; font-size: 1.05rem; }

/* ===== Content Sections ===== */
.content-section { padding: 70px 0; }
.content-section:nth-child(even) { background: var(--bg-secondary); }

.content-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.content-grid.reverse { direction: rtl; }
.content-grid.reverse > * { direction: ltr; }

.content-text h2 { font-size: 1.8rem; margin-bottom: 16px; color: var(--white); }
.content-text p { color: var(--text-secondary); margin-bottom: 14px; font-size: 0.98rem; }
.content-text ul { list-style: none; }
.content-text ul li {
  padding: 8px 0; color: var(--text-secondary); font-size: 0.95rem;
  display: flex; align-items: flex-start; gap: 10px;
}
.content-text ul li::before { content: "▸"; color: var(--blue); flex-shrink: 0; margin-top: 2px; }
.content-image img { border-radius: var(--radius-lg); box-shadow: var(--shadow); }

/* ===== Timeline ===== */
.timeline { position: relative; padding-left: 30px; }
.timeline::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 2px;
  background: linear-gradient(180deg, var(--blue), var(--gold), var(--green));
}
.timeline-item { position: relative; margin-bottom: 36px; }
.timeline-item::before {
  content: ""; position: absolute; left: -35px; top: 4px; width: 12px; height: 12px;
  border-radius: 50%; background: var(--blue); border: 2px solid var(--bg-primary);
}
.timeline-year { font-size: 0.85rem; color: var(--blue); font-weight: 600; margin-bottom: 4px; }
.timeline-title { font-size: 1.1rem; font-weight: 600; color: var(--white); margin-bottom: 4px; }
.timeline-desc { color: var(--text-secondary); font-size: 0.9rem; }

/* ===== Security Cards ===== */
.security-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.security-card {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 30px 24px; text-align: center; transition: var(--transition);
}
.security-card:hover { border-color: var(--green); transform: translateY(-3px); }
.security-card .icon { font-size: 2rem; margin-bottom: 14px; }
.security-card h3 { font-size: 1.05rem; margin-bottom: 8px; color: var(--white); }
.security-card p { color: var(--text-secondary); font-size: 0.9rem; }

/* ===== Team Grid ===== */
.team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.team-card {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 24px; text-align: center; transition: var(--transition);
}
.team-card:hover { transform: translateY(-3px); border-color: var(--blue); }
.team-card img { width: 80px; height: 80px; border-radius: 50%; margin: 0 auto 14px; border: 2px solid var(--border); }
.team-card h3 { font-size: 1rem; color: var(--white); margin-bottom: 4px; }
.team-card .role { color: var(--blue); font-size: 0.85rem; margin-bottom: 8px; }
.team-card p { color: var(--text-muted); font-size: 0.82rem; }

/* ===== Service Cards ===== */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }

.service-card {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 36px 28px; transition: var(--transition);
}
.service-card:hover { transform: translateY(-4px); border-color: var(--gold); box-shadow: var(--shadow); }
.service-card .icon { font-size: 2.4rem; margin-bottom: 18px; }
.service-card h3 { font-size: 1.15rem; margin-bottom: 10px; color: var(--white); }
.service-card p { color: var(--text-secondary); font-size: 0.92rem; margin-bottom: 16px; }
.service-card .tag-list { display: flex; flex-wrap: wrap; gap: 8px; }
.service-card .tag {
  padding: 4px 12px; border-radius: 20px; font-size: 0.78rem; font-weight: 500;
  background: var(--bg-secondary); color: var(--text-muted); border: 1px solid var(--border);
}

/* ===== FAQ ===== */
.faq-list { max-width: 800px; margin: 0 auto; }

details.faq-item {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-sm);
  margin-bottom: 12px; overflow: hidden; transition: var(--transition);
}
details.faq-item[open] { border-color: var(--blue); }
details.faq-item summary {
  padding: 18px 24px; cursor: pointer; font-weight: 600; color: var(--white);
  list-style: none; display: flex; justify-content: space-between; align-items: center;
  user-select: none; font-size: 0.98rem;
}
details.faq-item summary::after {
  content: "+"; font-size: 1.2rem; color: var(--text-muted); transition: transform 0.3s;
}
details.faq-item[open] summary::after { content: "−"; transform: rotate(180deg); }
details.faq-item .faq-answer {
  padding: 0 24px 20px; color: var(--text-secondary); font-size: 0.92rem; line-height: 1.8;
}

.faq-category { margin-bottom: 32px; }
.faq-category h3 { font-size: 1.2rem; margin-bottom: 14px; color: var(--white); padding-left: 4px; border-left: 3px solid var(--blue); padding-left: 12px; }

.faq-search { max-width: 500px; margin: 0 auto 40px; }
.faq-search input {
  width: 100%; padding: 14px 20px; border-radius: var(--radius); border: 1px solid var(--border);
  background: var(--bg-card); color: var(--white); font-size: 0.95rem; outline: none;
  transition: var(--transition);
}
.faq-search input:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15); }
.faq-search input::placeholder { color: var(--text-muted); }

/* ===== Contact ===== */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }

.contact-form { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 36px; }
.contact-form h3 { font-size: 1.3rem; margin-bottom: 24px; color: var(--white); }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; margin-bottom: 6px; color: var(--text-secondary); font-size: 0.9rem; font-weight: 500; }
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%; padding: 12px 16px; border-radius: var(--radius-sm); border: 1px solid var(--border);
  background: var(--bg-secondary); color: var(--white); font-size: 0.95rem;
  outline: none; transition: var(--transition); font-family: inherit;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1); }
.form-group textarea { resize: vertical; min-height: 120px; }

.contact-info { display: flex; flex-direction: column; gap: 20px; }
.info-card {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 24px; transition: var(--transition);
}
.info-card:hover { border-color: var(--blue); }
.info-card h4 { font-size: 1rem; margin-bottom: 8px; color: var(--white); }
.info-card p { color: var(--text-secondary); font-size: 0.9rem; }
.info-card .icon-title { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.info-card .icon-title .ic { font-size: 1.3rem; }

/* ===== Footer ===== */
footer {
  background: var(--bg-secondary); border-top: 1px solid var(--border);
  padding: 50px 0 24px; margin-top: 40px;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-col h4 { font-size: 1rem; margin-bottom: 16px; color: var(--white); }
.footer-col p { color: var(--text-muted); font-size: 0.88rem; margin-bottom: 10px; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul li a { color: var(--text-muted); font-size: 0.88rem; }
.footer-col ul li a:hover { color: var(--blue-light); }
.footer-bottom {
  border-top: 1px solid var(--border); padding-top: 20px; text-align: center;
  color: var(--text-muted); font-size: 0.85rem;
}

/* ===== Animations ===== */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
.fade-in-up { animation: fadeInUp 0.6s ease-out forwards; }

.reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.6s ease-out, transform 0.6s ease-out; }
.reveal.visible { opacity: 1; transform: translateY(0); }

.data-flicker {
  animation: dataFlicker 3s ease-in-out infinite;
}
@keyframes dataFlicker {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.75; }
}

/* ===== Table Styles ===== */
.comparison-table { width: 100%; border-collapse: separate; border-spacing: 0; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); }
.comparison-table thead th { background: var(--bg-card); padding: 14px 18px; text-align: left; font-size: 0.9rem; color: var(--text-primary); border-bottom: 1px solid var(--border); }
.comparison-table tbody td { padding: 12px 18px; font-size: 0.9rem; color: var(--text-secondary); border-bottom: 1px solid var(--border); background: var(--bg-primary); }
.comparison-table tbody tr:last-child td { border-bottom: none; }
.comparison-table .check { color: var(--green); }
.comparison-table .cross { color: var(--red); }

/* ===== Breadcrumb ===== */
.breadcrumb { padding: 90px 0 0; font-size: 0.85rem; color: var(--text-muted); }
.breadcrumb a { color: var(--text-muted); }
.breadcrumb span { color: var(--text-primary); }

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .hero .container { grid-template-columns: 1fr; text-align: center; }
  .hero-content p { margin: 0 auto 32px; }
  .hero-badges { justify-content: center; }
  .hero-visual { max-width: 500px; margin: 0 auto; }
  .features-grid, .services-grid { grid-template-columns: repeat(2, 1fr); }
  .security-grid { grid-template-columns: repeat(2, 1fr); }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .content-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .menu-toggle { display: block; }
  nav { display: none; position: absolute; top: 70px; left: 0; right: 0; background: var(--bg-secondary); border-bottom: 1px solid var(--border); }
  nav.open { display: block; }
  nav ul { flex-direction: column; padding: 12px; }
  nav ul li a { padding: 12px 18px; }

  .hero { padding: 120px 0 60px; }
  .hero-content h1 { font-size: 2rem; }
  .page-hero h1 { font-size: 1.8rem; }
  .section-header h2 { font-size: 1.6rem; }

  .features-grid, .services-grid { grid-template-columns: 1fr; }
  .security-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; }

  .cta { padding: 40px 24px; }
  .cta h2 { font-size: 1.5rem; }
  .btn { padding: 12px 24px; font-size: 0.9rem; }
}

@media (max-width: 480px) {
  .hero-content h1 { font-size: 1.6rem; }
  .stats-grid { grid-template-columns: 1fr; }
  .cta .btn-group { flex-direction: column; align-items: center; }
}
