/* =========================================================
   火币 HTX 站群 · 黑蓝色高审美
   ========================================================= */
:root {
  --bg: #070b12;
  --bg-elevated: #0d1420;
  --bg-card: #111a28;
  --bg-soft: #162234;
  --text: #f4f7fb;
  --text-muted: #9fb0c6;
  --text-dim: #6d7f96;
  --blue-a: #60a5fa;
  --blue-b: #2563eb;
  --accent: linear-gradient(135deg, #93c5fd 0%, #60a5fa 40%, #2563eb 100%);
  --border: rgba(96, 165, 250, 0.14);
  --shadow: 0 12px 36px rgba(0, 0, 0, 0.42);
  --radius: 18px;
  --container: 1120px;
  --header-h: 70px;
  --font: "Avenir Next", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --font-display: "DIN Alternate", "Avenir Next", "PingFang SC", "Microsoft YaHei", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  background:
    radial-gradient(900px 480px at 85% -10%, rgba(37, 99, 235, 0.18), transparent 60%),
    radial-gradient(700px 420px at -10% 20%, rgba(96, 165, 250, 0.10), transparent 55%),
    var(--bg);
  color: var(--text);
  line-height: 1.8;
  letter-spacing: 0.02em;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; border: 0; background: none; color: inherit; cursor: pointer; }
.container { width: min(100% - 32px, var(--container)); margin-inline: auto; }

.gradient-text {
  background: var(--accent);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 0 22px; border-radius: 999px;
  font-weight: 700; letter-spacing: 0.04em;
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease;
}
.btn-primary {
  background: var(--accent); color: #061018;
  box-shadow: 0 10px 28px rgba(37, 99, 235, 0.28);
}
.btn-primary:hover { transform: translateY(-2px); }
.btn-ghost {
  border: 1px solid rgba(96, 165, 250, 0.28);
  background: rgba(96, 165, 250, 0.06);
}
.btn-ghost:hover { background: rgba(96, 165, 250, 0.12); }

.site-header {
  position: sticky; top: 0; z-index: 100; height: var(--header-h);
  backdrop-filter: blur(18px);
  background: rgba(7, 11, 18, 0.82);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 20px;
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-display); font-weight: 800; font-size: 1.15rem; letter-spacing: 0.04em;
}
.brand-mark {
  width: 36px; height: 36px; border-radius: 12px; display: grid; place-items: center;
  background: var(--accent); color: #061018; font-size: 0.78rem; font-weight: 900;
  box-shadow: 0 0 22px rgba(96, 165, 250, 0.28);
}
.nav { display: flex; align-items: center; gap: 6px; }
.nav a {
  padding: 8px 14px; border-radius: 999px; color: var(--text-muted);
  font-size: 0.94rem; font-weight: 600; transition: .2s ease;
}
.nav a:hover, .nav a.is-active { color: #fff; background: rgba(96, 165, 250, 0.1); }
.menu-toggle {
  display: none; width: 42px; height: 42px; border-radius: 12px;
  border: 1px solid var(--border); background: var(--bg-soft);
}
.menu-toggle span { display: block; width: 18px; height: 2px; margin: 4px auto; background: #fff; }

.hero { position: relative; padding: 58px 0 42px; overflow: hidden; }
.hero-grid {
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 36px; align-items: center;
}
.hero-kicker {
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 16px;
  color: var(--text-muted); font-size: 0.9rem; font-weight: 600;
}
.hero-kicker i {
  width: 8px; height: 8px; border-radius: 50%; background: var(--blue-a);
  box-shadow: 0 0 12px #60a5fa;
}
.hero h1 {
  margin: 0 0 16px; font-family: var(--font-display);
  font-size: clamp(2rem, 4.8vw, 3.2rem); line-height: 1.18; font-weight: 900;
}
.hero-lead { margin: 0 0 28px; color: var(--text-muted); font-size: 1.04rem; max-width: 36em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 28px; }
.hero-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.stat {
  padding: 14px 12px; border-radius: 14px;
  background: rgba(255,255,255,0.03); border: 1px solid var(--border);
}
.stat strong { display: block; font-size: 1.15rem; font-weight: 800; }
.stat span { color: var(--text-dim); font-size: 0.82rem; }
.hero-visual {
  position: relative; border-radius: 24px; overflow: hidden;
  border: 1px solid var(--border); box-shadow: var(--shadow); aspect-ratio: 4/3;
}
.hero-visual img { width: 100%; height: 100%; object-fit: cover; }
.hero-badge {
  position: absolute; left: 16px; bottom: 16px; padding: 10px 14px; border-radius: 12px;
  background: rgba(7, 11, 18, 0.72); backdrop-filter: blur(10px);
  border: 1px solid rgba(96, 165, 250, 0.22); font-size: 0.85rem; font-weight: 700;
}

.section { padding: 56px 0; }
.section-alt {
  background: linear-gradient(180deg, rgba(96, 165, 250, 0.04), rgba(255,255,255,0));
}
.section-head {
  display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 28px;
}
.section-head h2 {
  margin: 0; font-family: var(--font-display);
  font-size: clamp(1.55rem, 3vw, 2.1rem); font-weight: 900; line-height: 1.2;
}
.section-head p { margin: 8px 0 0; color: var(--text-muted); max-width: 36em; }
.section-link { color: var(--text-muted); font-weight: 700; white-space: nowrap; }
.section-link:hover { color: #fff; }

.card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.card {
  display: flex; flex-direction: column; background: var(--bg-card);
  border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden;
  box-shadow: 0 8px 24px rgba(0,0,0,0.25);
  transition: transform .28s ease, box-shadow .28s ease, border-color .28s ease;
}
.card > a { display: flex; flex-direction: column; flex: 1; color: inherit; min-height: 100%; }
.card:hover {
  transform: translateY(-5px);
  border-color: rgba(96, 165, 250, 0.35);
  box-shadow: 0 18px 40px rgba(0,0,0,0.4), 0 0 0 1px rgba(96,165,250,0.18);
}
.card-cover { position: relative; aspect-ratio: 16/10; overflow: hidden; background: var(--bg-soft); }
.card-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.card:hover .card-cover img { transform: scale(1.05); }
.card-tag {
  position: absolute; top: 12px; left: 12px; padding: 4px 10px; border-radius: 999px;
  font-size: 0.75rem; font-weight: 800; background: rgba(7,11,18,0.78);
  border: 1px solid rgba(255,255,255,0.12);
}
.card-tag.hot { background: var(--accent); border: 0; color: #061018; }
.card-body { display: flex; flex-direction: column; gap: 10px; padding: 18px 18px 20px; flex: 1; }
.card-meta { display: flex; gap: 10px; color: var(--text-dim); font-size: 0.82rem; }
.card-body h3 { margin: 0; font-size: 1.12rem; line-height: 1.35; font-weight: 800; }
.card-body p { margin: 0; color: var(--text-muted); font-size: 0.95rem; flex: 1; }
.card-more {
  margin-top: 6px; font-weight: 700; font-size: 0.9rem;
  background: var(--accent); -webkit-background-clip: text; background-clip: text; color: transparent;
}

.feature-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 24px; align-items: stretch; }
.feature-panel {
  padding: 28px; border-radius: 22px; background: var(--bg-elevated);
  border: 1px solid var(--border); box-shadow: var(--shadow);
}
.feature-panel h2 { margin: 0 0 12px; font-size: clamp(1.45rem, 3vw, 1.95rem); font-weight: 900; line-height: 1.25; }
.feature-panel > p { color: var(--text-muted); margin: 0 0 20px; }
.feature-list { display: grid; gap: 14px; }
.feature-item {
  display: grid; grid-template-columns: 42px 1fr; gap: 12px; padding: 14px;
  border-radius: 14px; background: rgba(255,255,255,0.03); border: 1px solid var(--border);
}
.feature-icon {
  width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center;
  background: var(--accent); color: #061018; font-weight: 900; font-size: 0.85rem;
}
.feature-item h3 { margin: 0 0 4px; font-size: 1rem; }
.feature-item p { margin: 0; color: var(--text-muted); font-size: 0.92rem; }
.feature-visual {
  border-radius: 22px; overflow: hidden; border: 1px solid var(--border);
  min-height: 100%; aspect-ratio: 4/5;
}
.feature-visual img { width: 100%; height: 100%; object-fit: cover; }

.news-layout { display: grid; grid-template-columns: 1.4fr 1fr; gap: 20px; }
.news-feature {
  position: relative; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--border); min-height: 360px; box-shadow: var(--shadow);
  transition: transform .28s ease;
}
.news-feature:hover { transform: translateY(-5px); }
.news-feature img { width: 100%; height: 100%; object-fit: cover; }
.news-feature-body {
  position: absolute; inset: auto 0 0 0; padding: 24px;
  background: linear-gradient(180deg, transparent, rgba(0,0,0,0.86));
}
.news-feature-body h3 { margin: 8px 0; font-size: 1.4rem; line-height: 1.3; }
.news-feature-body p { margin: 0; color: rgba(255,255,255,0.78); }
.news-list { display: grid; gap: 12px; }
.news-item {
  display: grid; grid-template-columns: 110px 1fr; gap: 14px; padding: 12px;
  border-radius: 14px; background: var(--bg-card); border: 1px solid var(--border);
  transition: transform .25s ease, border-color .25s ease;
}
.news-item:hover { transform: translateY(-5px); border-color: rgba(96,165,250,0.4); }
.news-item-cover { aspect-ratio: 16/10; border-radius: 10px; overflow: hidden; background: var(--bg-soft); }
.news-item-cover img { width: 100%; height: 100%; object-fit: cover; }
.news-item h3 { margin: 0 0 6px; font-size: 1rem; line-height: 1.35; }
.news-item p {
  margin: 0; color: var(--text-muted); font-size: 0.88rem;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.news-item time { display: block; margin-top: 8px; color: var(--text-dim); font-size: 0.78rem; }

.cta {
  margin: 20px 0 60px; padding: 36px 28px; border-radius: 24px; text-align: center;
  background:
    radial-gradient(circle at 18% 20%, rgba(96,165,250,0.18), transparent 42%),
    radial-gradient(circle at 85% 80%, rgba(37,99,235,0.22), transparent 45%),
    var(--bg-elevated);
  border: 1px solid var(--border);
}
.cta h2 { margin: 0 0 10px; font-size: clamp(1.55rem, 3vw, 2.1rem); font-weight: 900; }
.cta p { margin: 0 auto 22px; max-width: 36em; color: var(--text-muted); }

.site-footer { border-top: 1px solid var(--border); padding: 40px 0 28px; background: #05080e; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 24px; margin-bottom: 28px; }
.footer-brand { font-weight: 900; font-size: 1.15rem; margin-bottom: 10px; }
.site-footer p, .site-footer a { color: var(--text-muted); font-size: 0.92rem; }
.site-footer a:hover { color: #fff; }
.footer-col h4 { margin: 0 0 12px; font-size: 0.95rem; }
.footer-col ul { display: grid; gap: 8px; }
.footer-bottom {
  padding-top: 18px; border-top: 1px solid var(--border);
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  color: var(--text-dim); font-size: 0.85rem;
}

.page-hero { padding: 42px 0 10px; }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; color: var(--text-dim); font-size: 0.88rem; margin-bottom: 18px; }
.breadcrumb a:hover { color: #fff; }
.page-hero h1 {
  margin: 0 0 14px; font-size: clamp(1.75rem, 4vw, 2.5rem); line-height: 1.2; font-weight: 900;
}
.page-meta { display: flex; flex-wrap: wrap; gap: 14px; color: var(--text-muted); font-size: 0.92rem; margin-bottom: 22px; }
.detail-cover {
  border-radius: 20px; overflow: hidden; border: 1px solid var(--border);
  aspect-ratio: 21/9; margin-bottom: 28px; box-shadow: var(--shadow);
}
.detail-cover img { width: 100%; height: 100%; object-fit: cover; }
.detail-layout {
  display: grid; grid-template-columns: minmax(0,1fr) 300px; gap: 28px;
  padding-bottom: 60px; align-items: start;
}
.article-content {
  padding: 28px; border-radius: 20px; background: var(--bg-card); border: 1px solid var(--border);
}
.article-content h2 { margin: 1.6em 0 0.6em; font-size: 1.35rem; font-weight: 900; }
.article-content h2:first-child { margin-top: 0; }
.article-content p, .article-content li {
  color: rgba(244,247,251,0.88); font-size: 1.02rem; line-height: 1.8;
}
.article-content ul, .article-content ol { margin: 0 0 1.2em; padding-left: 1.2em; list-style: disc; }
.article-content ol { list-style: decimal; }
.article-content li { margin-bottom: 0.45em; }
.article-content blockquote {
  margin: 1.4em 0; padding: 16px 18px;
  border-left: 3px solid #60a5fa; background: rgba(96,165,250,0.06); color: var(--text-muted);
}
.sidebar-card {
  position: sticky; top: calc(var(--header-h) + 16px); padding: 20px;
  border-radius: 18px; background: var(--bg-elevated); border: 1px solid var(--border);
}
.sidebar-card h3 { margin: 0 0 14px; font-size: 1.05rem; }
.sidebar-list { display: grid; gap: 12px; }
.sidebar-list a { display: grid; grid-template-columns: 72px 1fr; gap: 10px; align-items: center; }
.sidebar-list .thumb { aspect-ratio: 16/10; border-radius: 8px; overflow: hidden; background: var(--bg-soft); }
.sidebar-list .thumb img { width: 100%; height: 100%; object-fit: cover; }
.sidebar-list strong { display: block; font-size: 0.9rem; line-height: 1.35; font-weight: 700; }
.sidebar-list span { color: var(--text-dim); font-size: 0.78rem; }

@media (max-width: 960px) {
  .hero-grid, .feature-grid, .news-layout, .detail-layout, .footer-grid { grid-template-columns: 1fr; }
  .card-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .feature-visual { aspect-ratio: 16/10; min-height: auto; }
  .detail-cover { aspect-ratio: 16/9; }
  .sidebar-card { position: static; }
}
@media (max-width: 720px) {
  .menu-toggle { display: grid; place-items: center; }
  .nav {
    position: absolute; top: var(--header-h); left: 0; right: 0; display: none;
    flex-direction: column; align-items: stretch; gap: 4px; padding: 12px 16px 16px;
    background: rgba(7,11,18,0.96); border-bottom: 1px solid var(--border);
  }
  .nav.is-open { display: flex; }
  .card-grid, .hero-stats { grid-template-columns: 1fr; }
  .news-item { grid-template-columns: 96px 1fr; }
  .section-head { flex-direction: column; align-items: start; }
  .article-content { padding: 20px 16px; }
}
