/* ===== 火帀交易APP_huobi高效便捷的数字货币交易平台 样式 ===== */
:root {
  --bg-dark: #0a0f1c;
  --huobi-red: #e74c3c;
  --huobi-blue: #1a56db;
  --eff-cyan: #06b6d4;
  --dist-purple: #8b5cf6;
  --trade-gold: #f59e0b;
  --white: #ffffff;
  --text-muted: #9aa6c0;
  --card-bg: #121a2e;
  --border: rgba(255, 255, 255, 0.08);
}

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

html { scroll-behavior: smooth; }

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

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }

/* ===== 导航栏 ===== */
header.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(10, 15, 28, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
}
.brand {
  font-size: 22px;
  font-weight: 800;
  background: linear-gradient(90deg, var(--huobi-red), var(--trade-gold));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.nav-links { display: flex; gap: 28px; list-style: none; }
.nav-links a {
  font-size: 15px;
  color: var(--text-muted);
  transition: color 0.3s;
  position: relative;
}
.nav-links a:hover, .nav-links a.active { color: var(--white); }
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -6px;
  width: 0; height: 2px;
  background: var(--eff-cyan);
  transition: width 0.3s;
}
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.nav-toggle { display: none; background: none; border: none; color: var(--white); font-size: 26px; cursor: pointer; }

/* ===== 通用容器 ===== */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
section { padding: 80px 0; }
.section-title {
  font-size: 34px;
  font-weight: 800;
  text-align: center;
  margin-bottom: 16px;
}
.section-sub { text-align: center; color: var(--text-muted); margin-bottom: 48px; font-size: 16px; }

/* ===== Hero ===== */
.hero {
  position: relative;
  padding: 120px 0 100px;
  text-align: center;
  background:
    radial-gradient(circle at 20% 20%, rgba(231, 76, 60, 0.18), transparent 40%),
    radial-gradient(circle at 80% 30%, rgba(26, 86, 219, 0.18), transparent 40%),
    radial-gradient(circle at 50% 80%, rgba(139, 92, 246, 0.15), transparent 45%);
  overflow: hidden;
}
.hero h1 {
  font-size: 52px;
  font-weight: 900;
  line-height: 1.2;
  margin-bottom: 20px;
  background: linear-gradient(90deg, var(--white), var(--eff-cyan));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero p.lead { font-size: 20px; color: var(--text-muted); max-width: 760px; margin: 0 auto 36px; }
.hero-badges { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-bottom: 40px; }
.badge {
  padding: 8px 18px;
  border-radius: 30px;
  font-size: 14px;
  border: 1px solid var(--border);
  background: var(--card-bg);
}
.badge.red { border-color: var(--huobi-red); color: var(--huobi-red); }
.badge.blue { border-color: var(--huobi-blue); color: var(--huobi-blue); }
.badge.cyan { border-color: var(--eff-cyan); color: var(--eff-cyan); }
.badge.gold { border-color: var(--trade-gold); color: var(--trade-gold); }
.badge.purple { border-color: var(--dist-purple); color: var(--dist-purple); }

/* ===== 按钮 ===== */
.btn {
  display: inline-block;
  padding: 15px 38px;
  border-radius: 8px;
  font-size: 17px;
  font-weight: 700;
  cursor: pointer;
  border: none;
  transition: transform 0.25s, box-shadow 0.25s;
}
.btn-primary {
  background: linear-gradient(90deg, var(--huobi-red), var(--trade-gold));
  color: var(--white);
  box-shadow: 0 8px 24px rgba(231, 76, 60, 0.35);
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 12px 32px rgba(231, 76, 60, 0.5); }
.btn-cta {
  background: linear-gradient(90deg, var(--eff-cyan), var(--huobi-blue));
  color: var(--white);
  box-shadow: 0 8px 24px rgba(6, 182, 212, 0.35);
}
.btn-cta:hover { transform: translateY(-3px); }
.btn-pulse { animation: pulse 2s infinite; }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(6, 182, 212, 0.6); }
  70% { box-shadow: 0 0 0 18px rgba(6, 182, 212, 0); }
  100% { box-shadow: 0 0 0 0 rgba(6, 182, 212, 0); }
}

/* ===== 卡片网格 ===== */
.grid { display: grid; gap: 24px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 30px;
  transition: transform 0.3s, border-color 0.3s;
}
.card:hover { transform: translateY(-6px); border-color: var(--eff-cyan); }
.card .icon { font-size: 34px; margin-bottom: 16px; }
.card h3 { font-size: 20px; margin-bottom: 12px; color: var(--eff-cyan); }
.card p { color: var(--text-muted); font-size: 15px; }

/* ===== 性能仪表盘 ===== */
.dashboard { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.metric {
  text-align: center;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 36px 20px;
}
.metric .num {
  font-size: 46px;
  font-weight: 900;
  background: linear-gradient(90deg, var(--trade-gold), var(--huobi-red));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.metric .label { color: var(--text-muted); margin-top: 8px; font-size: 15px; }

/* ===== 架构图 ===== */
.arch-wrap { text-align: center; }
.arch-img { border-radius: 14px; border: 1px solid var(--border); }

/* ===== 行情表 ===== */
table.market {
  width: 100%;
  border-collapse: collapse;
  background: var(--card-bg);
  border-radius: 14px;
  overflow: hidden;
}
table.market th, table.market td { padding: 16px 18px; text-align: left; border-bottom: 1px solid var(--border); }
table.market th { background: rgba(26, 86, 219, 0.15); color: var(--eff-cyan); font-size: 14px; }
table.market td { font-size: 15px; }
.up { color: #2ecc71; }
.down { color: var(--huobi-red); }

/* ===== 分布式节点动画 ===== */
.nodes { position: relative; height: 220px; margin: 40px auto; max-width: 800px; }
.node {
  position: absolute;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--eff-cyan);
  box-shadow: 0 0 16px var(--eff-cyan);
  animation: blink 2s infinite;
}
.node:nth-child(2) { background: var(--huobi-red); box-shadow: 0 0 16px var(--huobi-red); animation-delay: 0.4s; }
.node:nth-child(3) { background: var(--dist-purple); box-shadow: 0 0 16px var(--dist-purple); animation-delay: 0.8s; }
.node:nth-child(4) { background: var(--trade-gold); box-shadow: 0 0 16px var(--trade-gold); animation-delay: 1.2s; }
.node:nth-child(5) { background: var(--huobi-blue); box-shadow: 0 0 16px var(--huobi-blue); animation-delay: 1.6s; }
@keyframes blink { 0%,100% { opacity: 0.4; } 50% { opacity: 1; } }
.flow-line {
  position: absolute;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--eff-cyan), transparent);
  animation: flow 3s linear infinite;
}
@keyframes flow { 0% { background-position: -200px 0; } 100% { background-position: 200px 0; } }

/* ===== 数据流动线条 ===== */
.dataflow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(90deg, transparent, rgba(6,182,212,0.08), transparent);
  background-size: 200px 100%;
  animation: flow 4s linear infinite;
}

/* ===== FAQ ===== */
details.faq-item {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  margin-bottom: 14px;
  padding: 4px 20px;
}
details.faq-item summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 17px;
  padding: 16px 0;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
details.faq-item summary::after { content: "+"; color: var(--eff-cyan); font-size: 24px; }
details.faq-item[open] summary::after { content: "\2212"; }
details.faq-item p { color: var(--text-muted); padding-bottom: 16px; }

/* ===== 表单 ===== */
form.contact-form { max-width: 600px; margin: 0 auto; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; margin-bottom: 8px; font-size: 15px; color: var(--text-muted); }
.form-group input, .form-group textarea {
  width: 100%;
  padding: 14px 16px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--white);
  font-size: 15px;
}
.form-group input:focus, .form-group textarea:focus { outline: none; border-color: var(--eff-cyan); }

/* ===== 页脚 ===== */
footer.site-footer {
  background: #060a14;
  border-top: 1px solid var(--border);
  padding: 40px 0;
  text-align: center;
  color: var(--text-muted);
  font-size: 14px;
}
.footer-links { display: flex; gap: 20px; justify-content: center; margin-bottom: 16px; flex-wrap: wrap; }
.footer-links a:hover { color: var(--eff-cyan); }

/* ===== 滚动揭示动画 ===== */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity 0.7s, transform 0.7s; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ===== 渐入 ===== */
@keyframes fadeInUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
.fade-in { animation: fadeInUp 0.8s ease both; }

/* ===== 响应式 ===== */
@media (max-width: 900px) {
  .grid-3, .grid-4, .dashboard { grid-template-columns: repeat(2, 1fr); }
  .hero h1 { font-size: 38px; }
}
@media (max-width: 640px) {
  .nav-links { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; background: var(--bg-dark); padding: 20px; gap: 16px; }
  .nav-links.open { display: flex; }
  .nav-toggle { display: block; }
  .grid-2, .grid-3, .grid-4, .dashboard { grid-template-columns: 1fr; }
  .hero h1 { font-size: 30px; }
  section { padding: 56px 0; }
}
