/* ==========================================================================
   极夜深空靛青 / 极光宝蓝流光主题 (Deep Night Indigo & Aurora Cyan-Blue)
   ========================================================================== */

:root {
  --bg-deep: #050a14;
  --bg-surface: #0b1628;
  --bg-card: rgba(11, 22, 40, 0.85);
  --bg-card-hover: rgba(15, 30, 54, 0.92);

  --accent-blue: #3b82f6;
  --accent-cyan: #06b6d4;
  --accent-gradient: linear-gradient(135deg, #3b82f6 0%, #06b6d4 100%);
  --accent-gradient-hover: linear-gradient(135deg, #2563eb 0%, #0891b2 100%);

  --border-subtle: rgba(6, 182, 212, 0.25);
  --border-strong: rgba(6, 182, 212, 0.5);
  --glow-cyan: rgba(6, 182, 212, 0.18);
  --glow-blue: rgba(59, 130, 246, 0.28);

  --text-primary: #f1f5f9;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-pill: 9999px;

  --max-width: 1120px;
  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--bg-deep);
  color: var(--text-primary);
}

body {
  min-height: 100vh;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  line-height: 1.7;
  color: var(--text-primary);
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(6, 182, 212, 0.14), transparent 70%),
    radial-gradient(ellipse 60% 45% at 85% 20%, rgba(59, 130, 246, 0.12), transparent 65%),
    linear-gradient(180deg, #050a14 0%, #0b1628 50%, #050a14 100%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a {
  color: var(--accent-cyan);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: #38bdf8;
}

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

/* ---------- 布局容器 ---------- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding: 64px 0;
}

.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 40px;
}

.section-title {
  font-size: clamp(1.6rem, 3.2vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.section-subtitle {
  color: var(--text-secondary);
  font-size: 1rem;
}

/* ---------- 顶部导航栏 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(5, 10, 20, 0.82);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 68px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: 0.02em;
}

.brand-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--accent-gradient);
  color: #ffffff;
  font-weight: 800;
  box-shadow: 0 0 18px var(--glow-cyan);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  list-style: none;
}

.nav-links a {
  color: var(--text-secondary);
  font-size: 0.95rem;
  font-weight: 500;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text-primary);
}

/* ---------- Hero 视觉区 ---------- */
.hero {
  padding: 84px 0 68px;
  text-align: center;
  position: relative;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  background: rgba(6, 182, 212, 0.1);
  border: 1px solid var(--border-subtle);
  color: #67e8f9;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 22px;
  box-shadow: 0 0 20px var(--glow-cyan);
}

.hero h1 {
  font-size: clamp(2rem, 4.8vw, 3.25rem);
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: -0.025em;
  margin-bottom: 20px;
  background: linear-gradient(135deg, #ffffff 20%, #93c5fd 65%, #22d3ee 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-desc {
  max-width: 680px;
  margin: 0 auto 34px;
  font-size: 1.08rem;
  color: var(--text-secondary);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}

/* ---------- 流光按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: var(--radius-pill);
  font-size: 0.98rem;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition),
    background var(--transition), border-color var(--transition);
  text-decoration: none;
}

.btn-primary {
  position: relative;
  color: #ffffff;
  background: linear-gradient(135deg, #3b82f6 0%, #06b6d4 50%, #3b82f6 100%);
  background-size: 200% 200%;
  box-shadow: 0 8px 26px rgba(6, 182, 212, 0.28), 0 0 18px var(--glow-blue);
  animation: aurora-flow 5s ease infinite;
}

.btn-primary:hover {
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(6, 182, 212, 0.4), 0 0 24px rgba(59, 130, 246, 0.4);
}

.btn-secondary {
  color: var(--text-primary);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.btn-secondary:hover {
  color: #67e8f9;
  border-color: var(--border-strong);
  box-shadow: 0 0 22px var(--glow-cyan);
  transform: translateY(-2px);
}

.btn-sm {
  padding: 9px 18px;
  font-size: 0.88rem;
}

@keyframes aurora-flow {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

/* ---------- 磨砂玻璃卡片 & 网格 ---------- */
.grid {
  display: grid;
  gap: 22px;
}

.grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.card {
  background: rgba(11, 22, 40, 0.85);
  border: 1px solid rgba(6, 182, 212, 0.25);
  border-radius: var(--radius-md);
  padding: 26px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35), 0 0 24px rgba(6, 182, 212, 0.18);
  transition: transform var(--transition), border-color var(--transition),
    box-shadow var(--transition), background var(--transition);
}

.card:hover {
  transform: translateY(-3px);
  background: var(--bg-card-hover);
  border-color: var(--border-strong);
  box-shadow: 0 14px 38px rgba(0, 0, 0, 0.45), 0 0 32px rgba(6, 182, 212, 0.28);
}

.card-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 10px;
}

.card-text {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  font-size: 0.84rem;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.tag {
  display: inline-block;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  font-size: 0.78rem;
  font-weight: 600;
  color: #67e8f9;
  background: rgba(6, 182, 212, 0.12);
  border: 1px solid rgba(6, 182, 212, 0.25);
}

/* ---------- 数据指标 / 对比表格 ---------- */
.table-wrap {
  width: 100%;
  overflow-x: auto;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  background: var(--bg-card);
  box-shadow: 0 0 24px var(--glow-cyan);
}

table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.94rem;
}

th,
td {
  padding: 14px 18px;
  border-bottom: 1px solid rgba(6, 182, 212, 0.15);
}

th {
  background: rgba(59, 130, 246, 0.12);
  color: var(--text-primary);
  font-weight: 600;
  white-space: nowrap;
}

td {
  color: var(--text-secondary);
}

tr:last-child td {
  border-bottom: none;
}

/* ---------- 文章排版区 ---------- */
.article-wrap {
  max-width: 840px;
  margin: 0 auto;
  padding: 40px 0 72px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.article-body {
  background: rgba(11, 22, 40, 0.85);
  border: 1px solid rgba(6, 182, 212, 0.25);
  border-radius: var(--radius-lg);
  padding: 38px 34px;
  box-shadow: 0 10px 36px rgba(0, 0, 0, 0.4), 0 0 24px rgba(6, 182, 212, 0.18);
}

.article-body h1 {
  font-size: clamp(1.65rem, 3.6vw, 2.35rem);
  line-height: 1.3;
  margin-bottom: 16px;
  color: #ffffff;
}

.article-body h2 {
  font-size: 1.38rem;
  margin: 32px 0 14px;
  padding-left: 12px;
  border-left: 3px solid var(--accent-cyan);
  color: var(--text-primary);
}

.article-body h3 {
  font-size: 1.12rem;
  margin: 22px 0 10px;
  color: #bae6fd;
}

.article-body p {
  margin-bottom: 16px;
  color: var(--text-secondary);
}

.article-body ul,
.article-body ol {
  margin: 0 0 18px 22px;
  color: var(--text-secondary);
}

.article-body li {
  margin-bottom: 8px;
}

.callout {
  padding: 18px 20px;
  margin: 22px 0;
  border-radius: var(--radius-sm);
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid var(--border-subtle);
  border-left: 4px solid var(--accent-blue);
  color: var(--text-primary);
}

/* ---------- FAQ 手风琴 ---------- */
.faq-list {
  display: grid;
  gap: 14px;
}

.faq-item {
  background: rgba(11, 22, 40, 0.85);
  border: 1px solid rgba(6, 182, 212, 0.25);
  border-radius: var(--radius-md);
  padding: 18px 22px;
  box-shadow: 0 0 18px rgba(6, 182, 212, 0.12);
}

.faq-item summary {
  font-weight: 600;
  color: var(--text-primary);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  color: var(--accent-cyan);
  font-size: 1.2rem;
  font-weight: 700;
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-item p {
  margin-top: 12px;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* ---------- 页脚 ---------- */
.site-footer {
  margin-top: 64px;
  padding: 36px 0;
  border-top: 1px solid var(--border-subtle);
  background: rgba(5, 10, 20, 0.9);
  color: var(--text-muted);
  font-size: 0.88rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

/* ---------- 响应式适配 ---------- */
@media (max-width: 960px) {
  .grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .grid-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .nav-inner {
    flex-wrap: wrap;
    padding: 12px 0;
  }
  .nav-links {
    gap: 14px;
    font-size: 0.88rem;
  }
  .hero {
    padding: 56px 0 44px;
  }
  .section {
    padding: 44px 0;
  }
  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }
  .article-body {
    padding: 24px 18px;
  }
}
