/* 迷雾通VPN — Solarized Dark design (measured from geph.io) */
@import url('https://rsms.me/inter/inter.css');
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@300;400;500;700&display=swap');
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.0/css/all.min.css');

/* ─── DESIGN TOKENS (Solarized Dark) ─── */
:root {
  /* Solarized palette */
  --bg:          #002b36;   /* base03 */
  --surface:     #073642;   /* base02 */
  --surface-2:   #073642;
  --muted-bg:    #073642;
  --text:        #eee8d5;   /* base2 */
  --text-muted:  #93a1a1;   /* base1 */
  --border:      #586e75;   /* base01 */
  --header-bg:   #001f27;   /* slightly darker than bg */

  /* Geph teal */
  --primary:     #00adad;
  --primary-dark:#008282;
  --divider:     #009c9c;

  /* Semantic */
  --green:       #859900;
  --red:         #dc322f;
  --yellow:      #b58900;

  /* Spacing */
  --space-xs:  8px;
  --space-sm:  16px;
  --space-md:  32px;
  --space-lg:  64px;
  --space-xl:  96px;

  /* Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;

  /* Shadows */
  --shadow-card: 0 2px 12px rgba(0,0,0,0.4);
  --shadow-lg:   0 8px 32px rgba(0,0,0,0.5);

  /* Motion */
  --transition:  0.2s ease;
  --dur-fast:    0.15s;
  --dur-md:      0.3s;
  --ease:        cubic-bezier(0.4,0,0.2,1);
}

/* ─── RESET ─── */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; overflow-x: clip; max-width: 100%; scroll-behavior: smooth; }
body {
  font-family: 'Inter', InterVariable, 'Noto Sans SC', sans-serif;
  font-size: 16px; line-height: 1.6;
  color: var(--text); background: var(--bg);
  font-feature-settings: "liga" 1, "calt" 1, "cv10" 1, "ss07" 1;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--text); text-decoration: none; }
a:hover { text-decoration: underline; }
ul { list-style: none; padding: 0; margin: 0; }
h1, h2, h3, h4 { margin-top: 0; line-height: 1.2; color: var(--text); }

/* ─── HEADER ─── */
.site-header {
  position: sticky; top: 0; z-index: 1000;
  background: rgba(0, 27, 36, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0, 156, 156, 0.3);
  transition: background var(--dur-md) var(--ease);
}
.site-header.scrolled { background: rgba(0, 27, 36, 0.98); }
.nav {
  max-width: 760px; margin: 0 auto;
  display: flex; align-items: center;
  padding: 0 var(--space-sm);
  height: 60px; gap: var(--space-sm);
}
.brand {
  display: flex; align-items: center; gap: 10px;
  flex-shrink: 0; color: var(--text);
  font-weight: 500; font-size: 1.1em;
}
.brand:hover { text-decoration: none; }
.logo { height: 32px; width: 32px; border-radius: 50%; }

.nav-links {
  display: flex; align-items: center; gap: 2px;
  flex: 1; justify-content: flex-end;
}
.nav-links > li > a {
  display: block; padding: 8px 12px; border-radius: var(--radius-sm);
  color: var(--text); font-size: 15px; transition: color var(--dur-fast);
}
.nav-links > li > a:hover { text-decoration: underline; color: var(--text); }

/* dropdown — M26-safe (no gap, ::before bridge) */
.dropdown { position: relative; }
.dropdown-toggle {
  background: none; border: none; cursor: pointer;
  color: var(--text); font: inherit; font-size: 15px;
  padding: 8px 12px; border-radius: var(--radius-sm);
  display: flex; align-items: center; gap: 4px;
}
.dropdown-toggle::after { content: '▾'; font-size: 11px; }
.dropdown-panel {
  position: absolute; top: 100%; right: 0; z-index: 200;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-md); box-shadow: var(--shadow-lg);
  min-width: 160px; padding: 6px 0;
  opacity: 0; visibility: hidden; pointer-events: none;
  transform: translateY(-6px);
  transition: opacity var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease);
  /* bridge: extend clickable area upward to prevent gap */
  padding-top: 8px;
}
.dropdown-panel::before {
  content: ''; position: absolute;
  top: -8px; left: 0; right: 0; height: 8px;
}
.dropdown:hover .dropdown-panel,
.dropdown:focus-within .dropdown-panel {
  opacity: 1; visibility: visible; pointer-events: auto;
  transform: translateY(0);
}
.dropdown-panel-inner a {
  display: block; padding: 8px 16px;
  color: var(--text); font-size: 14px;
  transition: background var(--dur-fast);
}
.dropdown-panel-inner a:hover { background: rgba(255,255,255,0.05); text-decoration: none; }

.nav-right { margin-left: auto; flex-shrink: 0; }

/* CTA button */
.btn-cta {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--primary); color: var(--bg) !important;
  font-weight: 600; font-size: 15px;
  padding: 9px 20px; border-radius: var(--radius-md);
  text-decoration: none !important;
  transition: background var(--transition), transform var(--dur-fast);
  white-space: nowrap;
}
.btn-cta:hover { background: var(--primary-dark); transform: translateY(-1px); text-decoration: none !important; }
.btn-cta:active { transform: translateY(0); }
.btn-lg { font-size: 17px; padding: 13px 28px; border-radius: var(--radius-lg); }

/* hamburger */
.nav-toggle {
  display: none; background: none; border: none; cursor: pointer;
  color: var(--text); font-size: 24px; padding: 8px;
  margin-left: auto; flex-shrink: 0;
}

/* ─── SECTION DIVIDER (Geph-style teal) ─── */
.geph-divider {
  display: flex; align-items: center; gap: 16px;
  margin: var(--space-lg) 0;
  color: var(--divider);
}
.geph-divider::before, .geph-divider::after {
  content: ''; flex: 1; height: 1px; background: var(--divider);
}
.geph-divider span { font-size: 14px; font-weight: 500; letter-spacing: 0.08em; white-space: nowrap; }

/* ─── HERO ─── */
.hero {
  padding: var(--space-xl) 0 var(--space-lg);
}
.hero-inner {
  max-width: 760px; margin: 0 auto; padding: 0 var(--space-sm);
}
.hero-badge {
  display: inline-block;
  background: rgba(0, 173, 173, 0.15); color: var(--primary);
  border: 1px solid rgba(0, 173, 173, 0.4);
  font-size: 13px; font-weight: 500; padding: 4px 12px;
  border-radius: 100px; margin-bottom: 24px;
  animation: badgeFadeIn 0.5s var(--ease) both;
}
.hero h1 {
  font-size: clamp(2.4rem, 8vw, 4rem);
  font-weight: 450; line-height: 1.15;
  letter-spacing: -0.03rem;
  text-align: end; /* Geph-style right-aligned */
  margin-bottom: 28px;
  animation: heroSlideIn 0.6s var(--ease) 0.1s both;
}
.hero p {
  font-size: clamp(1rem, 3vw, 1.2rem);
  margin-bottom: 16px; color: var(--text);
  animation: heroSlideIn 0.6s var(--ease) 0.2s both;
}
.hero-cta-group {
  margin-top: 32px;
  animation: heroSlideIn 0.6s var(--ease) 0.3s both;
}
.hero-time { font-size: 13px; color: var(--text-muted); margin-bottom: 20px; }

/* inner pages hero */
.page-hero {
  padding: var(--space-lg) 0 var(--space-md);
  border-bottom: 1px solid rgba(0,156,156,0.2);
  margin-bottom: var(--space-md);
}
.page-hero .container h1 {
  font-size: clamp(1.8rem, 5vw, 2.8rem);
  font-weight: 450; letter-spacing: -0.02rem;
  text-align: end; margin-bottom: 12px;
}
.page-hero .container p { font-size: 1.05rem; color: var(--text-muted); max-width: 640px; }

/* ─── LLM CITATION CHUNK ─── */
.llm-chunk {
  background: rgba(0,173,173,0.08);
  border-left: 3px solid var(--primary);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: 20px 24px;
  margin: 32px 0;
}
.llm-chunk .llm-question {
  font-size: 15px; font-weight: 600; color: var(--primary);
  margin-bottom: 10px;
}
.llm-chunk .llm-answer {
  font-size: 15px; line-height: 1.65; color: var(--text);
  margin: 0;
}
.llm-chunk .llm-answer strong { color: var(--text); }

/* ─── CONTAINER ─── */
.container { max-width: 760px; margin: 0 auto; padding: 0 var(--space-sm); }

/* ─── SECTION ─── */
.section { padding: var(--space-lg) 0; }
.section-alt { background: var(--surface); }
.section-alt .container { padding: var(--space-md) var(--space-sm); }
.section-title {
  font-size: clamp(1.3rem, 4vw, 1.8rem); font-weight: 500;
  margin-bottom: 10px; letter-spacing: -0.02rem;
}
.section-sub { color: var(--text-muted); margin-bottom: 32px; font-size: 1rem; }

/* ─── FEATURES ─── */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px; margin-top: 8px;
}
.feature-card {
  background: var(--surface); border-radius: var(--radius-lg);
  padding: 24px; border: 1px solid rgba(88,110,117,0.4);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.feature-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-card);
  border-color: rgba(0,173,173,0.4);
}
.feature-icon { font-size: 24px; color: var(--primary); margin-bottom: 14px; }
.feature-card h3 { font-size: 1rem; font-weight: 600; margin-bottom: 8px; }
.feature-card p { color: var(--text-muted); font-size: 14px; line-height: 1.6; margin: 0; }

/* ─── BULLETS ─── */
.bullets { padding-left: 0; }
.bullets li {
  position: relative; padding-left: 20px; margin-bottom: 10px;
  color: var(--text); font-size: 15px;
}
.bullets li::before {
  content: '—'; position: absolute; left: 0; color: var(--primary); font-weight: 700;
}

/* ─── DEVICE CARDS ─── */
.device-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 20px; margin-top: 8px;
}
.device-card {
  background: var(--surface); border-radius: var(--radius-lg);
  padding: 24px; border: 1px solid rgba(88,110,117,0.4);
  display: flex; flex-direction: column; gap: 12px;
  transition: transform var(--transition), border-color var(--transition);
}
.device-card:hover { transform: translateY(-2px); border-color: rgba(0,173,173,0.4); }
.device-card .btn-cta { align-self: center; }
.device-icon { font-size: 2rem; color: var(--primary); }
.device-card h3 { font-size: 1rem; font-weight: 600; margin: 0; }
.device-card h3 a { color: var(--text); }
.device-card .bullets { flex: 1; }

/* ─── PLATFORM ICONS (Geph-style) ─── */
.link-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 20px; padding: 8px 0;
}
.link-item {
  display: flex; align-items: center; gap: 14px;
  padding: 10px; border-radius: var(--radius-md);
  transition: background var(--dur-fast);
}
.link-item:hover { background: rgba(255,255,255,0.04); }
.link-icon { width: 30px; height: 30px; object-fit: contain; flex-shrink: 0; }
.link-item a { font-weight: 500; color: var(--text); font-size: 15px; }
.link-item a:hover { text-decoration: underline; }
.link-subtext { font-size: 12px; opacity: 0.6; }

/* ─── PRICING ─── */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px; margin-top: 8px;
}
.pricing-card {
  background: var(--surface); border: 1px solid rgba(88,110,117,0.4);
  border-radius: var(--radius-xl); padding: 28px;
  display: flex; flex-direction: column; gap: 12px;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.pricing-card:nth-child(2) {
  border-color: var(--primary);
  box-shadow: 0 0 0 1px var(--primary), var(--shadow-card);
}
.pricing-name { font-size: 1rem; font-weight: 600; color: var(--text-muted); }
.pricing-price { font-size: 2.2rem; font-weight: 700; color: var(--text); }
.pricing-period { font-size: 13px; color: var(--text-muted); margin-top: -8px; }
.pricing-cta { margin-top: auto; padding-top: 12px; text-align: center; display: flex; justify-content: center; }

/* ─── PAYMENT METHODS ─── */
.payment-methods { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.payment-methods li {
  background: var(--surface-2); border: 1px solid rgba(88,110,117,0.5);
  border-radius: var(--radius-md); padding: 8px 16px;
  font-size: 14px; color: var(--text);
}

/* ─── COMPARE TABLE ─── */
.compare-table {
  width: 100%; border-collapse: collapse; margin-top: 8px;
  font-size: 14px;
}
.compare-table th, .compare-table td {
  padding: 12px 16px; border-bottom: 1px solid rgba(88,110,117,0.3);
  text-align: left;
}
.compare-table th { font-weight: 600; color: var(--text-muted); font-size: 13px; }
.compare-table .highlight { color: var(--primary); font-weight: 600; }
.compare-table tr:hover td { background: rgba(255,255,255,0.03); }

/* ─── FAQ ─── */
.faq-list { margin-top: 8px; }
.faq-item { border-bottom: 1px solid rgba(88,110,117,0.4); }
.faq-q {
  width: 100%; text-align: left; background: none; border: none;
  color: var(--text); font: inherit; font-size: 1rem; font-weight: 500;
  padding: 18px 0; cursor: pointer; display: flex; justify-content: space-between;
  align-items: center; gap: 12px;
  transition: color var(--dur-fast);
}
.faq-q::after { content: '+'; font-size: 20px; color: var(--primary); flex-shrink: 0; transition: transform var(--dur-fast); }
.faq-item.open .faq-q { color: var(--primary); }
.faq-item.open .faq-q::after { transform: rotate(45deg); }
.faq-a {
  overflow: hidden; max-height: 0;
  transition: max-height var(--dur-md) var(--ease), padding var(--dur-fast);
}
.faq-a p { color: var(--text-muted); font-size: 15px; line-height: 1.7; padding-bottom: 18px; margin: 0; }
.faq-item.open .faq-a { max-height: 500px; }

/* ─── CLOSING CTA ─── */
.section .hero-cta-group { text-align: center; margin-top: 24px; }

/* ─── FOOTER ─── */
.site-footer {
  border-top: 1px solid rgba(0,156,156,0.2);
  padding: 48px 0 32px; margin-top: 80px;
}
.footer-grid {
  max-width: 760px; margin: 0 auto; padding: 0 var(--space-sm);
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 32px;
}
.footer-brand .logo-footer { height: 28px; margin-bottom: 12px; }
.footer-brand p { color: var(--text-muted); font-size: 13px; line-height: 1.6; max-width: 240px; }
.footer-heading { font-size: 13px; font-weight: 600; color: var(--text-muted); letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 12px; }
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul li a { color: var(--text-muted); font-size: 14px; }
.footer-col ul li a:hover { color: var(--text); text-decoration: underline; }
.footer-bottom {
  max-width: 760px; margin: 32px auto 0; padding: 0 var(--space-sm);
  border-top: 1px solid rgba(88,110,117,0.3); padding-top: 20px;
}
.footer-bottom p { color: var(--text-muted); font-size: 13px; margin: 0; }

/* ─── SCROLL REVEAL ─── */
.reveal {
  opacity: 0; transform: translateY(20px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}
.reveal.visible { opacity: 1; transform: none; }

/* ─── KEYFRAMES ─── */
@keyframes badgeFadeIn { from { opacity:0; transform: scale(0.9); } to { opacity:1; transform: none; } }
@keyframes heroSlideIn { from { opacity:0; transform: translateY(16px); } to { opacity:1; transform: none; } }

/* ─── REDUCED MOTION ─── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  .hero h1, .hero p, .hero-badge, .hero-cta-group, .reveal { animation: none; opacity: 1; transform: none; }
}

/* ─── MOBILE NAV (hamburger right, full-width menu) ─── */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-right { display: none; }
  .nav-toggle { display: flex; }
  .nav { padding: 0 16px; }
  .brand { font-size: 1rem; }

  .mobile-menu-open .nav-links {
    display: flex; flex-direction: column; align-items: flex-start;
    position: fixed; top: 60px; left: 0; right: 0;
    background: var(--surface); border-bottom: 1px solid rgba(0,156,156,0.3);
    padding: var(--space-sm) var(--space-sm) var(--space-md);
    gap: 0; z-index: 999;
    max-height: calc(100vh - 60px); overflow-y: auto;
  }
  .mobile-menu-open .nav-right {
    display: block; padding: 0 var(--space-sm) var(--space-sm);
    position: fixed; bottom: 0; left: 0; right: 0; z-index: 999;
    background: var(--surface); border-top: 1px solid rgba(88,110,117,0.3);
    padding: 12px var(--space-sm);
  }
  .mobile-menu-open .btn-cta { width: 100%; justify-content: center; }
  .nav-links > li > a, .dropdown-toggle {
    width: 100%; padding: 14px 0; font-size: 16px;
    border-bottom: 1px solid rgba(88,110,117,0.2);
  }
  .dropdown-panel {
    position: static; opacity: 1; visibility: visible; pointer-events: auto;
    background: none; border: none; box-shadow: none; padding: 0;
    transform: none;
  }
  .dropdown-panel-inner a { padding: 10px 16px; font-size: 15px; }

  .hero h1, .page-hero .container h1 { text-align: center; }
  .hero-cta-group { text-align: center; }

  .link-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
  .feature-grid { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; }
  .device-grid { grid-template-columns: 1fr 1fr; }

  .footer-grid { grid-template-columns: 1fr 1fr; }   /* M21: 2-col footer on mobile */
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 480px) {
  .device-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
