/* ===================================================================
   闪电加速器 (flashvpn.mom) - 玄甲磐石与工业级高可用设计系统 (Cyber Aegis Bunker)
   视觉基调：战术深沉黑曜底色 + 工业黄铜金 + 装甲钛灰微倒角 + 坚若磐石的抗灾质感
   =================================================================== */

:root {
  --bg-canvas: #070a10;
  --bg-surface: #0e131e;
  --bg-panel: #141c2c;
  --bg-panel-hover: #1c263c;
  --bg-glass: rgba(14, 19, 30, 0.92);

  --brand-brass: #d97706;
  --brand-brass-hover: #b45309;
  --brand-gold: #f59e0b;
  --brand-amber-glow: rgba(245, 158, 11, 0.25);
  --brand-titanium: #94a3b8;
  --brand-slate: #334155;

  --text-main: #f8fafc;
  --text-muted: #cbd5e1;
  --text-dim: #94a3b8;
  --text-inverse: #070a10;

  --border-armor: #27344c;
  --border-brass: #d97706;
  --border-glow: rgba(217, 119, 6, 0.4);

  --font-system: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;

  --radius-xs: 3px;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;

  --shadow-bunker: 0 4px 20px rgba(0, 0, 0, 0.7), inset 0 0 0 1px var(--border-armor);
  --shadow-brass: 0 0 25px rgba(217, 119, 6, 0.2);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-system);
  background-color: var(--bg-canvas);
  color: var(--text-main);
  line-height: 1.75;
  overflow-x: hidden;
  background-image: 
    linear-gradient(rgba(217, 119, 6, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(217, 119, 6, 0.02) 1px, transparent 1px);
  background-size: 40px 40px;
}

a {
  color: var(--brand-gold);
  text-decoration: none;
  transition: all 0.2s ease;
}

a:hover {
  color: #fbbf24;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg-glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-armor);
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.85rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.logo-img {
  display: block;
  border-radius: 6px;
  box-shadow: 0 0 12px rgba(217, 119, 6, 0.4);
}

.brand-text-wrap {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--brand-gold);
  letter-spacing: 0.02em;
}

.brand-sub {
  font-size: 0.72rem;
  color: var(--text-dim);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 1.3rem;
}

.nav-link {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-muted);
  padding: 0.35rem 0.65rem;
  border-radius: var(--radius-xs);
  transition: all 0.2s ease;
}

.nav-link:hover, .nav-link.active {
  color: #fff;
  background: var(--bg-panel);
  border: 1px solid var(--border-armor);
}

.btn-header-cta {
  background: linear-gradient(135deg, var(--brand-gold) 0%, var(--brand-brass) 100%);
  color: var(--text-inverse) !important;
  font-weight: 700;
  font-size: 0.88rem;
  padding: 0.45rem 1.15rem;
  border-radius: var(--radius-sm);
  box-shadow: 0 2px 12px rgba(217, 119, 6, 0.35);
  transition: all 0.2s ease;
}

.btn-header-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 18px rgba(245, 158, 11, 0.45);
}

/* Page Layout */
.page-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 4rem;
}

/* Hero Section */
.hero-section {
  text-align: center;
  padding: 3.5rem 1rem 3rem;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 1.2rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-brass);
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--brand-gold);
  margin-bottom: 1.5rem;
}

.hero-pill-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brand-gold);
  box-shadow: 0 0 8px #f59e0b;
}

.hero-title {
  font-size: clamp(2.1rem, 4.2vw, 3.2rem);
  font-weight: 900;
  line-height: 1.25;
  color: var(--text-main);
  margin-bottom: 1.25rem;
  letter-spacing: -0.01em;
}

.hero-title-highlight {
  color: var(--brand-gold);
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 780px;
  margin: 0 auto 2.25rem;
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}

.btn-primary-action {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: var(--text-inverse) !important;
  font-size: 1.05rem;
  font-weight: 800;
  padding: 0.85rem 2.2rem;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-brass);
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  transition: all 0.25s ease;
}

.btn-primary-action:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(245, 158, 11, 0.45);
}

.btn-secondary-action {
  background: var(--bg-surface);
  color: var(--text-muted) !important;
  border: 1px solid var(--border-armor);
  font-size: 1.05rem;
  font-weight: 600;
  padding: 0.85rem 1.8rem;
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
}

.btn-secondary-action:hover {
  border-color: var(--brand-gold);
  color: #fff !important;
}

/* Metrics Badges */
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
  margin-top: 1rem;
}

.metric-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-armor);
  border-radius: var(--radius-md);
  padding: 1.4rem;
  box-shadow: var(--shadow-bunker);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: all 0.25s ease;
  position: relative;
}

.metric-card::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 20%;
  right: 20%;
  height: 2px;
  background: var(--brand-brass);
  opacity: 0.6;
}

.metric-card:hover {
  border-color: var(--border-brass);
  transform: translateY(-3px);
  box-shadow: var(--shadow-brass);
}

.metric-value {
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--brand-gold);
  font-family: var(--font-mono);
  margin-bottom: 0.35rem;
}

.metric-label {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 0.25rem;
}

.metric-note {
  font-size: 0.82rem;
  color: var(--text-dim);
}

/* Section Header */
.section-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.section-tag {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--brand-gold);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.5rem;
}

.section-title {
  font-size: 1.95rem;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.02em;
}

.section-desc {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 680px;
  margin: 0.5rem auto 0;
}

/* Failover Simulator Tool */
.failover-tool-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-brass);
  border-radius: var(--radius-lg);
  padding: 2.2rem;
  box-shadow: var(--shadow-bunker);
  margin-bottom: 3.5rem;
}

.sim-controls {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.2rem;
  margin-bottom: 1.8rem;
}

.control-item label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 0.45rem;
}

.control-item select {
  width: 100%;
  padding: 0.65rem 0.9rem;
  background: var(--bg-canvas);
  border: 1px solid var(--border-armor);
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  color: var(--text-main);
  outline: none;
  transition: border-color 0.2s;
}

.control-item select:focus {
  border-color: var(--brand-gold);
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.18);
}

.btn-run-drill {
  width: 100%;
  padding: 0.72rem;
  background: linear-gradient(135deg, var(--brand-gold) 0%, var(--brand-brass) 100%);
  color: var(--text-inverse);
  border: none;
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-top: 1.45rem;
}

.btn-run-drill:hover {
  box-shadow: 0 0 20px rgba(245, 158, 11, 0.4);
}

.sim-display-panel {
  background: #05080e;
  border: 1px solid var(--border-armor);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.88rem;
  line-height: 1.6;
}

.sim-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1.2rem;
  margin-bottom: 1.2rem;
  padding-bottom: 1.2rem;
  border-bottom: 1px solid var(--border-armor);
}

.sim-stat-label {
  font-size: 0.75rem;
  color: var(--text-dim);
  text-transform: uppercase;
}

.sim-stat-val {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--brand-gold);
}

/* Feature Grid */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
  margin-bottom: 3.5rem;
}

.feature-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-armor);
  border-radius: var(--radius-md);
  padding: 1.8rem;
  box-shadow: var(--shadow-bunker);
  transition: all 0.25s ease;
  position: relative;
}

.feature-card:hover {
  border-color: var(--border-brass);
  transform: translateY(-4px);
  box-shadow: var(--shadow-brass);
}

.feature-icon-box {
  width: 50px;
  height: 50px;
  border-radius: var(--radius-sm);
  background: var(--bg-panel);
  border: 1px solid var(--border-armor);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.25rem;
  color: var(--brand-gold);
}

.feature-heading {
  font-size: 1.22rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.6rem;
}

.feature-body {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* Articles Grid */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 1.5rem;
  margin-bottom: 3.5rem;
}

.article-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-armor);
  border-radius: var(--radius-md);
  padding: 1.6rem;
  box-shadow: var(--shadow-bunker);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.25s ease;
}

.article-card:hover {
  border-color: var(--border-brass);
  transform: translateY(-3px);
  box-shadow: var(--shadow-brass);
}

.article-tag {
  display: inline-block;
  align-self: flex-start;
  padding: 0.2rem 0.6rem;
  background: rgba(217, 119, 6, 0.12);
  border: 1px solid var(--border-brass);
  border-radius: var(--radius-xs);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--brand-gold);
  margin-bottom: 0.8rem;
}

.article-title-link {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.45;
  margin-bottom: 0.6rem;
  display: block;
}

.article-title-link:hover {
  color: var(--brand-gold);
}

.article-summary {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 1.25rem;
  flex-grow: 1;
}

.article-footer-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.82rem;
  color: var(--text-dim);
  border-top: 1px solid var(--border-armor);
  padding-top: 0.85rem;
}

/* FAQ Accordion */
.faq-container {
  max-width: 860px;
  margin: 0 auto 3.5rem;
}

.faq-item {
  background: var(--bg-surface);
  border: 1px solid var(--border-armor);
  border-radius: var(--radius-sm);
  margin-bottom: 0.85rem;
  overflow: hidden;
  transition: border-color 0.2s;
}

.faq-item.active {
  border-color: var(--border-brass);
  box-shadow: 0 0 15px rgba(217, 119, 6, 0.15);
}

.faq-question {
  width: 100%;
  padding: 1.1rem 1.4rem;
  background: none;
  border: none;
  text-align: left;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-main);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-question:hover {
  color: var(--brand-gold);
}

.faq-icon {
  font-size: 1.1rem;
  color: var(--brand-gold);
  transition: transform 0.25s ease;
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  padding: 0 1.4rem;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
}

.faq-item.active .faq-answer {
  max-height: 400px;
  padding: 0 1.4rem 1.25rem;
}

/* Legal Pages & In-depth Content */
.legal-card, .article-content-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-armor);
  border-radius: var(--radius-lg);
  padding: 2.8rem 2.2rem;
  box-shadow: var(--shadow-bunker);
  margin-bottom: 2.5rem;
}

.page-title {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.3;
  margin-bottom: 0.8rem;
  letter-spacing: -0.02em;
}

.update-time {
  font-size: 0.88rem;
  color: var(--text-dim);
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-armor);
}

.content-body h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-main);
  margin: 2rem 0 1rem;
  padding-bottom: 0.4rem;
  border-bottom: 2px solid var(--border-armor);
}

.content-body h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--brand-gold);
  margin: 1.5rem 0 0.75rem;
}

.content-body p {
  font-size: 1.02rem;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 1.2rem;
}

.content-body ul, .content-body ol {
  margin: 0.8rem 0 1.4rem 1.6rem;
  color: var(--text-muted);
  line-height: 1.75;
}

.content-body li {
  margin-bottom: 0.45rem;
}

.content-body blockquote {
  border-left: 4px solid var(--brand-brass);
  background: var(--bg-panel);
  padding: 1rem 1.25rem;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 1.5rem 0;
  font-size: 0.98rem;
  color: var(--text-muted);
}

.data-table-wrapper {
  overflow-x: auto;
  margin: 1.6rem 0;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-armor);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.92rem;
}

.data-table th {
  background: var(--bg-panel);
  color: var(--text-main);
  padding: 0.85rem 1rem;
  font-weight: 700;
  border-bottom: 1px solid var(--border-armor);
}

.data-table td {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--border-armor);
  color: var(--text-muted);
}

.data-table tr:last-child td {
  border-bottom: none;
}

.data-table tr:hover td {
  background: var(--bg-panel-hover);
}

.code-box {
  background: #05080e;
  border: 1px solid var(--border-armor);
  color: #fbbf24;
  padding: 1.25rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 0.88rem;
  line-height: 1.6;
  overflow-x: auto;
  margin: 1.4rem 0;
}

/* Callout Box */
.aegis-callout {
  background: linear-gradient(135deg, rgba(217, 119, 6, 0.08) 0%, rgba(245, 158, 11, 0.04) 100%);
  border: 1px solid var(--border-brass);
  border-radius: var(--radius-md);
  padding: 1.8rem;
  margin: 2.5rem 0;
  text-align: center;
  box-shadow: 0 0 25px rgba(217, 119, 6, 0.12);
}

.aegis-callout h3 {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--brand-gold);
  margin-bottom: 0.5rem;
}

.aegis-callout p {
  font-size: 0.98rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 1.2rem;
}

/* Footer */
.site-footer {
  background: #080c14;
  border-top: 1px solid var(--border-armor);
  padding: 3.5rem 1.5rem 2rem;
  margin-top: 4rem;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}

.footer-brand p {
  font-size: 0.92rem;
  color: var(--text-dim);
  margin-top: 0.8rem;
  line-height: 1.6;
  max-width: 320px;
}

.footer-col h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 1rem;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-links a {
  font-size: 0.88rem;
  color: var(--text-dim);
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--brand-gold);
}

.footer-bottom {
  border-top: 1px solid var(--border-armor);
  padding-top: 1.8rem;
  font-size: 0.82rem;
  color: var(--text-dim);
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.footer-disclosure {
  line-height: 1.6;
  color: var(--text-dim);
}

/* Responsive */
@media (max-width: 900px) {
  .footer-top {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .header-container {
    padding: 0.75rem 1rem;
  }
  .main-nav .nav-link {
    display: none;
  }
  .page-container {
    padding: 1.8rem 1rem 3rem;
  }
  .hero-section {
    padding: 2.5rem 0.5rem 2rem;
  }
  .footer-top {
    grid-template-columns: 1fr;
    gap: 1.8rem;
  }
  .legal-card, .article-content-card {
    padding: 1.8rem 1.2rem;
  }
}
