:root {
  --bg-body: #030612;
  --bg-surface: #0a1126;
  --bg-surface-2: #0f1936;
  --bg-glass: rgba(12, 22, 48, 0.72);
  --border-subtle: rgba(120, 165, 255, 0.16);
  --border-strong: rgba(32, 113, 255, 0.45);
  --text-primary: #f4f7ff;
  --text-secondary: #a5b4d4;
  --text-muted: #7384a8;
  --brand: #2071ff;
  --brand-hover: #3b85ff;
  --brand-glow: rgba(32, 113, 255, 0.42);
  --cyan: #38bdf8;
  --success: #22c55e;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-pill: 9999px;
  --max-w: 1200px;
  --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Roboto, sans-serif;
  background-color: var(--bg-body);
  color: var(--text-primary);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }

.container { width: 100%; max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 100;
  height: var(--header-h);
  background: rgba(3, 6, 18, 0.82);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
}
.header-inner {
  height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 20px;
}
.brand-logo {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 1.35rem; font-weight: 800; letter-spacing: -0.02em; color: var(--brand);
}
.brand-logo span { color: var(--text-primary); font-weight: 600; font-size: 1rem; opacity: 0.9; }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a {
  font-size: 0.95rem; font-weight: 500; color: var(--text-secondary);
  transition: color 0.2s ease; position: relative; padding: 6px 0;
}
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--text-primary); }
.nav-links a[aria-current="page"]::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px;
  height: 2px; background: var(--brand); border-radius: 2px;
}
.header-actions { display: flex; align-items: center; gap: 14px; }
.lang-switch {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 14px; border-radius: var(--radius-pill);
  border: 1px solid var(--border-subtle); color: var(--text-secondary);
  font-size: 0.85rem; font-weight: 500; transition: all 0.2s ease;
}
.lang-switch:hover { border-color: var(--brand); color: var(--text-primary); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 12px 26px; border-radius: var(--radius-pill);
  font-weight: 600; font-size: 0.95rem; cursor: pointer;
  border: 1px solid transparent; transition: all 0.22s ease;
}
.btn-primary {
  background: linear-gradient(135deg, #2071ff 0%, #1a56db 100%);
  color: #ffffff; box-shadow: 0 8px 26px var(--brand-glow);
}
.btn-primary:hover { background: linear-gradient(135deg, #3b85ff 0%, #2071ff 100%); transform: translateY(-1px); }
.btn-outline {
  background: rgba(255, 255, 255, 0.04); color: var(--text-primary);
  border-color: var(--border-subtle);
}
.btn-outline:hover { border-color: var(--brand); background: rgba(32, 113, 255, 0.12); }
.btn-sm { padding: 8px 18px; font-size: 0.88rem; }

.menu-toggle {
  display: none; background: transparent; border: 1px solid var(--border-subtle);
  color: var(--text-primary); width: 40px; height: 40px; border-radius: 10px;
  align-items: center; justify-content: center; cursor: pointer;
}

/* Hero Section */
.hero {
  position: relative; min-height: 82vh; display: flex; align-items: center;
  padding: 80px 0 64px; overflow: hidden;
  background: #030612 url("/assets/images/hero-portal.jpg") center right / cover no-repeat;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(3,6,18,0.92) 0%, rgba(3,6,18,0.68) 48%, rgba(3,6,18,0.18) 100%),
              linear-gradient(180deg, rgba(3,6,18,0.35) 0%, rgba(3,6,18,0) 60%, #030612 100%);
}
.hero-content { position: relative; z-index: 2; max-width: 620px; }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px; border-radius: var(--radius-pill);
  background: rgba(32, 113, 255, 0.14); border: 1px solid var(--border-strong);
  color: #8ab8ff; font-size: 0.85rem; font-weight: 600; margin-bottom: 20px;
}
.hero h1 {
  margin: 0 0 20px; font-size: clamp(2.4rem, 5vw, 3.8rem);
  line-height: 1.15; font-weight: 800; letter-spacing: -0.03em;
}
.hero p { margin: 0 0 32px; font-size: 1.12rem; color: var(--text-secondary); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 44px; }
.hero-stats {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px;
  padding-top: 28px; border-top: 1px solid var(--border-subtle);
}
.stat-value { font-size: 1.6rem; font-weight: 800; color: var(--text-primary); }
.stat-label { font-size: 0.85rem; color: var(--text-muted); margin-top: 4px; }

/* Page Hero (Subpages) */
.page-hero {
  padding: 72px 0 48px;
  background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(32, 113, 255, 0.22), transparent 70%);
  border-bottom: 1px solid var(--border-subtle);
}
.breadcrumb {
  display: flex; align-items: center; gap: 8px;
  font-size: 0.88rem; color: var(--text-muted); margin-bottom: 16px;
}
.breadcrumb a:hover { color: var(--brand); }
.page-hero h1 { margin: 0 0 14px; font-size: clamp(2rem, 4vw, 3rem); font-weight: 800; line-height: 1.2; }
.page-hero p { margin: 0; max-width: 720px; color: var(--text-secondary); font-size: 1.08rem; }

/* Sections */
.section { padding: 80px 0; }
.section-alt { background: linear-gradient(180deg, rgba(10,17,38,0.5) 0%, rgba(3,6,18,0.8) 100%); }
.section-header { text-align: center; max-width: 720px; margin: 0 auto 48px; }
.section-header h2 { margin: 0 0 14px; font-size: clamp(1.75rem, 3.2vw, 2.5rem); font-weight: 800; }
.section-header p { margin: 0; color: var(--text-secondary); font-size: 1.05rem; }

/* Split Grid & Cards */
.split-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }

.card {
  background: var(--bg-surface); border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg); padding: 28px;
  transition: border-color 0.22s ease, transform 0.22s ease;
}
.card:hover { border-color: var(--border-strong); transform: translateY(-2px); }
.card h3 { margin: 0 0 10px; font-size: 1.2rem; font-weight: 700; }
.card p { margin: 0; color: var(--text-secondary); font-size: 0.95rem; }
.card-media { border-radius: var(--radius-md); overflow: hidden; margin-bottom: 18px; border: 1px solid var(--border-subtle); }
.card-media img { width: 100%; height: 200px; object-fit: cover; }

.icon-badge {
  width: 48px; height: 48px; border-radius: 14px;
  background: rgba(32, 113, 255, 0.16); border: 1px solid var(--border-strong);
  display: inline-flex; align-items: center; justify-content: center;
  color: #60a5fa; font-weight: 800; font-size: 1.2rem; margin-bottom: 16px;
}

/* Promo Banner */
.promo-card {
  background: linear-gradient(135deg, rgba(32, 113, 255, 0.2) 0%, rgba(10, 17, 38, 0.95) 60%);
  border: 1px solid var(--border-strong); border-radius: var(--radius-lg);
  padding: 40px; display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 36px; align-items: center;
}
.promo-tag {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(32, 113, 255, 0.22); color: #93c5fd;
  padding: 6px 14px; border-radius: var(--radius-pill); font-size: 0.85rem; font-weight: 700; margin-bottom: 16px;
}
.promo-list { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 20px 0 28px; }
.promo-list li { display: flex; align-items: center; gap: 8px; color: var(--text-secondary); font-size: 0.94rem; }
.promo-list li::before { content: "✓"; color: var(--cyan); font-weight: 800; }
.countdown-box {
  background: rgba(3, 6, 18, 0.72); border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md); padding: 28px; text-align: center;
}
.discount-big { font-size: 3.4rem; font-weight: 900; color: var(--cyan); line-height: 1; margin-bottom: 14px; }
.timer-row { display: flex; justify-content: center; gap: 12px; margin: 18px 0 24px; }
.timer-cell {
  background: var(--bg-surface-2); border: 1px solid var(--border-subtle);
  border-radius: 12px; padding: 10px 14px; min-width: 64px;
}
.timer-cell strong { display: block; font-size: 1.4rem; font-variant-numeric: tabular-nums; }
.timer-cell span { font-size: 0.72rem; color: var(--text-muted); }

/* Pricing */
.pricing-card { position: relative; display: flex; flex-direction: column; }
.pricing-card.featured {
  border-color: var(--brand);
  background: linear-gradient(180deg, rgba(32,113,255,0.16) 0%, var(--bg-surface) 100%);
  box-shadow: 0 14px 40px rgba(32, 113, 255, 0.18);
}
.badge-popular {
  position: absolute; top: -13px; right: 24px;
  background: var(--brand); color: #fff; font-size: 0.78rem; font-weight: 700;
  padding: 4px 12px; border-radius: var(--radius-pill);
}
.price-amount { font-size: 2.5rem; font-weight: 900; margin: 16px 0 6px; }
.price-amount span { font-size: 0.95rem; font-weight: 500; color: var(--text-muted); }
.feature-list { margin: 20px 0 28px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.feature-list li { color: var(--text-secondary); font-size: 0.94rem; display: flex; gap: 8px; }
.feature-list li::before { content: "✓"; color: var(--cyan); font-weight: 700; }

/* Payment Strip */
.payment-strip {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 16px;
  margin-top: 28px;
}
.pay-pill {
  padding: 10px 22px; border-radius: var(--radius-pill);
  background: var(--bg-surface); border: 1px solid var(--border-subtle);
  font-weight: 700; color: var(--text-primary); letter-spacing: 0.02em;
}

/* FAQ Accordion */
.faq-list { max-width: 840px; margin: 0 auto; display: flex; flex-direction: column; gap: 14px; }
.faq-item {
  background: var(--bg-surface); border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md); overflow: hidden;
}
.faq-item summary {
  padding: 20px 24px; font-weight: 600; font-size: 1.02rem; cursor: pointer;
  list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 1.35rem; color: var(--brand); font-weight: 400; }
.faq-item[open] summary::after { content: "−"; }
.faq-answer { padding: 0 24px 20px; color: var(--text-secondary); font-size: 0.95rem; }

/* Legal / Prose */
.prose-card {
  max-width: 880px; margin: 0 auto; background: var(--bg-surface);
  border: 1px solid var(--border-subtle); border-radius: var(--radius-lg); padding: 40px;
}
.prose-card h2 { margin: 28px 0 12px; font-size: 1.35rem; color: var(--text-primary); }
.prose-card h2:first-child { margin-top: 0; }
.prose-card p, .prose-card li { color: var(--text-secondary); font-size: 0.96rem; margin-bottom: 12px; }
.prose-card ul { padding-left: 20px; list-style: disc; margin-bottom: 16px; }

/* Footer */
.site-footer {
  border-top: 1px solid var(--border-subtle);
  background: #02040c; padding: 64px 0 36px;
}
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 36px; margin-bottom: 44px; }
.footer-col h3 { margin: 0 0 16px; font-size: 0.95rem; font-weight: 700; color: var(--text-primary); }
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col a { color: var(--text-muted); font-size: 0.92rem; transition: color 0.2s ease; }
.footer-col a:hover { color: var(--text-primary); }
.footer-bottom {
  padding-top: 24px; border-top: 1px solid var(--border-subtle);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px;
  color: var(--text-muted); font-size: 0.86rem;
}
.footer-legal { display: flex; gap: 20px; }
.footer-legal a:hover { color: var(--text-primary); }

@media (max-width: 960px) {
  .split-grid, .promo-card, .grid-3, .grid-4, .footer-grid { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .promo-list { grid-template-columns: 1fr; }
  .nav-links {
    display: none; position: absolute; top: var(--header-h); left: 0; right: 0;
    background: rgba(3, 6, 18, 0.98); border-bottom: 1px solid var(--border-subtle);
    flex-direction: column; padding: 20px 24px; gap: 16px; align-items: flex-start;
  }
  .nav-links.open { display: flex; }
  .menu-toggle { display: inline-flex; }
}
