/* =========================================================
   欧易 OKX 站点模版 · 黑浅蓝色
   ========================================================= */
:root {
  --bg: #0a0f16;
  --bg-elevated: #101823;
  --bg-card: #121c2a;
  --bg-soft: #182433;
  --text: #ffffff;
  --text-muted: #a8b7c7;
  --text-dim: #6f8194;
  --neon-a: #5eb3ff;
  --neon-b: #3d9be8;
  --neon: linear-gradient(135deg, #8fd0ff 0%, #5eb3ff 45%, #2f86d6 100%);
  --border: rgba(94, 179, 255, 0.16);
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
  --radius: 16px;
  --container: 1120px;
  --header-h: 68px;
  --font: "DIN Alternate", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei",
    "Noto Sans SC", sans-serif;
  --font-display: "Avenir Next", "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  background: 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;
}

/* ---------- Neon helpers ---------- */
.gradient-text {
  background: var(--neon);
  -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 0.25s ease, box-shadow 0.25s ease, opacity 0.25s ease;
}

.btn-primary {
  background: var(--neon);
  color: #fff;
  box-shadow: 0 8px 24px rgba(94, 179, 255, 0.28);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(61, 155, 232, 0.35);
}

.btn-ghost {
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.04);
}

.btn-ghost:hover {
  border-color: rgba(94, 179, 255, 0.55);
  background: rgba(94, 179, 255, 0.08);
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  backdrop-filter: blur(16px);
  background: rgba(18, 18, 20, 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.25rem;
  letter-spacing: 0.06em;
}

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--neon);
  display: grid;
  place-items: center;
  font-size: 0.85rem;
  font-weight: 900;
  box-shadow: 0 0 20px rgba(94, 179, 255, 0.35);
}

.nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav a {
  padding: 8px 14px;
  border-radius: 999px;
  color: var(--text-muted);
  font-size: 0.95rem;
  font-weight: 600;
  transition: color 0.2s ease, background 0.2s ease;
}

.nav a:hover,
.nav a.is-active {
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
}

.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 ---------- */
.hero {
  position: relative;
  padding: 56px 0 40px;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: -20% auto auto 40%;
  width: 520px;
  height: 520px;
  background: radial-gradient(circle, rgba(94, 179, 255, 0.22), transparent 65%);
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 10% auto auto -10%;
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, rgba(61, 155, 232, 0.2), transparent 65%);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  z-index: 1;
  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(--neon-a);
  box-shadow: 0 0 12px #5eb3ff;
}

.hero h1 {
  margin: 0 0 16px;
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  line-height: 1.15;
  letter-spacing: 0.01em;
  font-weight: 900;
}

.hero-lead {
  margin: 0 0 28px;
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 34em;
}

.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.2rem;
  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(18, 18, 20, 0.72);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.85rem;
  font-weight: 700;
}

/* ---------- Sections ---------- */
.section {
  padding: 56px 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.6rem, 3vw, 2.2rem);
  font-weight: 900;
  letter-spacing: 0.02em;
  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;
}

.section-alt {
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.02),
    rgba(255, 255, 255, 0)
  );
}

/* ---------- Cards / Grid ---------- */
.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.22);
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

.card > a {
  display: flex;
  flex-direction: column;
  flex: 1;
  color: inherit;
  min-height: 100%;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.38), 0 0 0 1px rgba(94, 179, 255, 0.18);
  border-color: rgba(94, 179, 255, 0.28);
}

.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 0.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;
  letter-spacing: 0.04em;
  background: rgba(18, 18, 20, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.card-tag.hot {
  background: var(--neon);
  border: 0;
}

.card-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 18px 18px 20px;
  flex: 1;
}

.card-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-dim);
  font-size: 0.82rem;
}

.card-body h3 {
  margin: 0;
  font-size: 1.15rem;
  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(--neon);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Feature / About ---------- */
.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.5rem, 3vw, 2rem);
  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(--neon);
  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;
}

.compare-table-wrap {
  margin-top: 28px;
  overflow-x: auto;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: var(--bg-card);
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 640px;
}

.compare-table th,
.compare-table td {
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  font-size: 0.95rem;
}

.compare-table th {
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-muted);
  font-weight: 700;
}

.compare-table tr:last-child td {
  border-bottom: 0;
}

.compare-table td:nth-child(2) {
  color: #5eb3ff;
  font-weight: 700;
}

/* ---------- News rail ---------- */
.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 0.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.85));
}

.news-feature-body h3 {
  margin: 8px 0;
  font-size: 1.45rem;
  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);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.news-item:hover {
  transform: translateY(-5px);
  border-color: rgba(94, 179, 255, 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 ---------- */
.cta {
  margin: 20px 0 60px;
  padding: 36px 28px;
  border-radius: 24px;
  background:
    radial-gradient(circle at 20% 20%, rgba(94, 179, 255, 0.22), transparent 40%),
    radial-gradient(circle at 80% 80%, rgba(61, 155, 232, 0.25), transparent 42%),
    var(--bg-elevated);
  border: 1px solid var(--border);
  text-align: center;
}

.cta h2 {
  margin: 0 0 10px;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 900;
}

.cta p {
  margin: 0 auto 22px;
  max-width: 36em;
  color: var(--text-muted);
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 40px 0 28px;
  background: #0e0e10;
}

.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.2rem;
  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;
}

/* ---------- Detail pages ---------- */
.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.8rem, 4vw, 2.6rem);
  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.4rem;
  font-weight: 900;
}

.article-content h2:first-child {
  margin-top: 0;
}

.article-content p,
.article-content li {
  color: rgba(255, 255, 255, 0.86);
  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 transparent;
  border-image: linear-gradient(180deg, #5eb3ff, #3d9be8) 1;
  background: rgba(255, 255, 255, 0.03);
  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;
}

/* ---------- Responsive ---------- */
@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(18, 18, 20, 0.96);
    border-bottom: 1px solid var(--border);
  }

  .nav.is-open {
    display: flex;
  }

  .nav a {
    padding: 12px 14px;
  }

  .card-grid {
    grid-template-columns: 1fr;
  }

  .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;
  }
}
