/*
Theme Name: FWQ.AI
Theme URI: https://fwq.ai
Author: FWQ.AI
Description: FWQ.AI — Fast · Worldwide · Quality 全球服务器
Version: 1.0
*/

@import url('https://fonts.googleapis.com/css2?family=Space+Mono:wght@400;700&family=Noto+Sans+SC:wght@300;400;500&display=swap');

/* ═══════════════════════════
   RESET & BASE
═══════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Noto Sans SC', sans-serif;
  background: #0a1628;
  color: #f0f4f8;
  -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }

/* ═══════════════════════════
   VARIABLES
═══════════════════════════ */
:root {
  --bg:     #0a1628;
  --bg2:    #0f2040;
  --blue:   #185FA5;
  --blue2:  #378ADD;
  --blue3:  #85B7EB;
  --teal:   #1D9E75;
  --teal2:  #5DCAA5;
  --white:  #f0f4f8;
  --gray:   #64748b;
  --border: rgba(255,255,255,0.07);
}

/* ═══════════════════════════
   ANIMATIONS
═══════════════════════════ */
@keyframes pulse {
  0%,100% { opacity: 1; transform: scale(1); }
  50%      { opacity: .5; transform: scale(1.45); }
}

/* ═══════════════════════════
   SHARED UTILITIES
═══════════════════════════ */
.full-divider { border: none; border-top: 1px solid var(--border); }

.btn-primary {
  display: inline-block;
  padding: 12px 28px;
  font-size: 14px;
  font-family: 'Noto Sans SC', sans-serif;
  font-weight: 500;
  color: #fff;
  background: var(--blue);
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background .18s, transform .15s;
}
.btn-primary:hover { background: var(--blue2); transform: translateY(-1px); color: #fff; }

.btn-ghost {
  display: inline-block;
  padding: 12px 28px;
  font-size: 14px;
  font-family: 'Noto Sans SC', sans-serif;
  color: var(--white);
  background: transparent;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 8px;
  cursor: pointer;
  transition: border-color .18s, background .18s;
}
.btn-ghost:hover { border-color: rgba(255,255,255,.3); background: rgba(255,255,255,.04); color: var(--white); }

/* ═══════════════════════════
   HEADER / NAV
═══════════════════════════ */
.site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 48px;
  height: 60px;
  border-bottom: 1px solid var(--border);
  background: rgba(10,22,40,0.96);
  position: sticky;
  top: 0;
  z-index: 200;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.site-logo {
  font-family: 'Space Mono', monospace;
  font-size: 20px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 1px;
  flex-shrink: 0;
}
.logo-f  { color: #185FA5; }
.logo-w  { color: #378ADD; }
.logo-q  { color: #85B7EB; }
.logo-dt { color: rgba(255,255,255,0.2); }
.logo-ai { color: #1D9E75; }
.nav-menu {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0 24px;
}
.nav-menu > li { position: relative; }
.nav-menu > li > a {
  display: block;
  padding: 6px 11px;
  font-size: 13px;
  color: var(--gray);
  border-radius: 6px;
  white-space: nowrap;
  transition: color .18s, background .18s;
}
.nav-menu > li > a:hover,
.nav-menu > li > a.current { color: var(--white); background: rgba(255,255,255,.06); }
.nav-menu .menu-has-children:hover > .sub-menu { display: block; }
.sub-menu {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 10px;
  min-width: 190px;
  padding: 6px;
  z-index: 300;
}
.sub-menu li a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  font-size: 13px;
  color: var(--gray);
  border-radius: 6px;
  white-space: nowrap;
  transition: color .18s, background .18s;
}
.sub-menu li a:hover { color: var(--white); background: rgba(255,255,255,.06); }
.nav-auth { display: flex; gap: 8px; align-items: center; flex-shrink: 0; }
.btn-register {
  display: inline-block;
  padding: 7px 18px;
  font-size: 13px;
  font-family: 'Noto Sans SC', sans-serif;
  color: var(--white);
  background: transparent;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 6px;
  transition: border-color .18s, background .18s;
}
.btn-register:hover { border-color: rgba(255,255,255,.4); background: rgba(255,255,255,.05); color: var(--white); }
.btn-login {
  display: inline-block;
  padding: 7px 18px;
  font-size: 13px;
  font-family: 'Noto Sans SC', sans-serif;
  font-weight: 500;
  color: #fff;
  background: var(--teal);
  border: none;
  border-radius: 6px;
  transition: background .18s;
}
.btn-login:hover { background: var(--teal2); color: #fff; }
.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--white);
  font-size: 22px;
  cursor: pointer;
  padding: 4px;
  line-height: 1;
}

/* ═══════════════════════════
   HERO
═══════════════════════════ */
.hero {
  padding: 96px 48px 76px;
  text-align: center;
  border-bottom: 1px solid var(--border);
  background: radial-gradient(ellipse 80% 45% at 50% 0%, rgba(24,95,165,.13) 0%, transparent 70%);
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(29,158,117,.1);
  border: 1px solid rgba(29,158,117,.3);
  border-radius: 99px;
  padding: 5px 14px;
  font-size: 12px;
  color: var(--teal2);
  margin-bottom: 28px;
  letter-spacing: .05em;
}
.badge-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--teal);
  animation: pulse 2s infinite;
  flex-shrink: 0;
}
.hero h1 {
  font-size: 52px;
  font-weight: 300;
  line-height: 1.15;
  margin-bottom: 10px;
  letter-spacing: -.025em;
}
.hero h1 strong { font-weight: 500; color: var(--blue2); }
.hero-tagline {
  font-family: 'Space Mono', monospace;
  font-size: 13px;
  color: var(--gray);
  letter-spacing: .2em;
  margin-bottom: 20px;
}
.hero-tagline em { font-style: normal; color: var(--teal2); }
.hero-desc {
  font-size: 15px;
  color: var(--gray);
  line-height: 1.85;
  max-width: 520px;
  margin: 0 auto 36px;
}
.hero-btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ═══════════════════════════
   STATS BAR
═══════════════════════════ */
.stats-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-bottom: 1px solid var(--border);
}
.stat-item { padding: 28px 20px; text-align: center; border-right: 1px solid var(--border); }
.stat-item:last-child { border-right: none; }
.stat-num { font-family: 'Space Mono', monospace; font-size: 28px; font-weight: 700; color: var(--white); }
.stat-num em { font-style: normal; color: var(--teal); }
.stat-label { font-size: 12px; color: var(--gray); margin-top: 5px; }

/* ═══════════════════════════
   PAGE SECTIONS
═══════════════════════════ */
.page-section { padding: 72px 48px; max-width: 1100px; margin: 0 auto; }
.section-tag { font-family: 'Space Mono', monospace; font-size: 11px; color: var(--teal); letter-spacing: .14em; margin-bottom: 10px; }
.section-title { font-size: 28px; font-weight: 400; color: var(--white); letter-spacing: -.01em; margin-bottom: 8px; }
.section-sub { font-size: 14px; color: var(--gray); margin-bottom: 36px; }
.section-sub a { color: var(--teal2); }
.section-sub a:hover { text-decoration: underline; }

/* ═══════════════════════════
   PRODUCT CARDS
═══════════════════════════ */
.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.product-card {
  display: block;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 26px 22px;
  transition: border-color .2s, transform .2s;
}
.product-card:hover { border-color: rgba(55,138,221,.4); transform: translateY(-3px); }
.pc-flag  { font-size: 26px; margin-bottom: 12px; }
.pc-title { font-size: 15px; font-weight: 500; color: var(--white); margin-bottom: 4px; display: flex; justify-content: space-between; align-items: center; }
.pc-arrow { color: var(--gray); font-size: 14px; transition: color .2s; }
.product-card:hover .pc-arrow { color: var(--blue2); }
.pc-tags  { display: flex; gap: 5px; flex-wrap: wrap; margin: 8px 0 12px; }
.pc-tag   { font-size: 11px; padding: 2px 7px; border-radius: 4px; background: rgba(255,255,255,.06); color: var(--gray); }
.pc-desc  { font-size: 13px; color: var(--gray); line-height: 1.7; margin-bottom: 14px; }
.pc-price { font-family: 'Space Mono', monospace; font-size: 12px; color: var(--teal2); }

/* ═══════════════════════════
   FEATURE CARDS
═══════════════════════════ */
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.feat-card { background: var(--bg2); border: 1px solid var(--border); border-radius: 12px; padding: 28px 24px; }
.feat-letter { font-family: 'Space Mono', monospace; font-size: 40px; font-weight: 700; line-height: 1; margin-bottom: 16px; }
.feat-card:nth-child(1) .feat-letter { color: var(--blue); }
.feat-card:nth-child(2) .feat-letter { color: var(--blue2); }
.feat-card:nth-child(3) .feat-letter { color: var(--teal); }
.feat-title { font-size: 15px; font-weight: 500; color: var(--white); margin-bottom: 8px; }
.feat-desc  { font-size: 13px; color: var(--gray); line-height: 1.8; }

/* ═══════════════════════════
   PRICING PREVIEW
═══════════════════════════ */
.pricing-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.price-card { background: var(--bg2); border: 1px solid var(--border); border-radius: 12px; padding: 22px 20px; }
.price-card.featured { border-color: var(--blue2); }
.popular-badge { display: inline-block; font-size: 10px; background: var(--blue); color: #fff; padding: 2px 9px; border-radius: 99px; margin-bottom: 10px; }
.plan-name  { font-family: 'Space Mono', monospace; font-size: 12px; color: var(--gray); margin-bottom: 6px; }
.plan-price { font-family: 'Space Mono', monospace; font-size: 28px; font-weight: 700; color: var(--white); }
.plan-price sub { font-size: 13px; font-weight: 400; color: var(--gray); }
.plan-spec  { font-size: 12px; color: var(--gray); margin: 10px 0 16px; line-height: 1.9; }
.plan-btn {
  display: block; width: 100%; padding: 8px;
  font-size: 12px; font-family: 'Noto Sans SC', sans-serif;
  border-radius: 7px; cursor: pointer;
  border: 1px solid rgba(255,255,255,.12);
  background: transparent; color: var(--white);
  transition: background .18s; text-align: center;
}
.plan-btn:hover { background: rgba(255,255,255,.06); }
.price-card.featured .plan-btn { background: var(--blue); border-color: var(--blue); }
.price-card.featured .plan-btn:hover { background: var(--blue2); }

/* ═══════════════════════════
   NODES
═══════════════════════════ */
.nodes-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.node-card { background: var(--bg2); border: 1px solid var(--border); border-radius: 10px; padding: 18px; transition: border-color .2s; }
.node-card:hover { border-color: rgba(29,158,117,.35); }
.node-flag   { font-size: 24px; margin-bottom: 8px; }
.node-city   { font-size: 14px; font-weight: 500; color: var(--white); }
.node-ping   { font-family: 'Space Mono', monospace; font-size: 12px; color: var(--teal2); margin-top: 3px; }
.node-status { display: flex; align-items: center; gap: 5px; margin-top: 8px; }
.node-dot    { width: 6px; height: 6px; border-radius: 50%; background: var(--teal); animation: pulse 2s infinite; }
.node-label  { font-size: 11px; color: var(--gray); }

/* ═══════════════════════════
   CTA BANNER
═══════════════════════════ */
.cta-banner {
  background: var(--bg2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 64px 48px;
  text-align: center;
}
.cta-banner h2 { font-size: 30px; font-weight: 400; margin-bottom: 10px; }
.cta-banner p  { font-size: 14px; color: var(--gray); line-height: 1.7; margin-bottom: 28px; }

/* ═══════════════════════════
   FOOTER
═══════════════════════════ */
.site-footer {
  background: var(--bg2);
  border-top: 1px solid var(--border);
  margin-top: 80px;
  padding: 56px 48px 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  max-width: 1100px;
  margin: 0 auto 40px;
}
.footer-brand .site-logo {
  font-family: 'Space Mono', monospace;
  font-size: 20px; font-weight: 700;
  display: flex; align-items: center; gap: 1px;
  margin-bottom: 14px;
}
.footer-brand p { font-size: 13px; color: var(--gray); line-height: 1.8; max-width: 260px; }
.footer-slogan {
  font-family: 'Space Mono', monospace;
  font-size: 11px; color: rgba(255,255,255,.18);
  letter-spacing: .16em; margin-top: 18px;
}
.footer-col h4 {
  font-size: 11px; font-weight: 500; color: var(--white);
  letter-spacing: .09em; text-transform: uppercase; margin-bottom: 16px;
}
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a { font-size: 13px; color: var(--gray); display: flex; align-items: center; gap: 7px; transition: color .18s; }
.footer-col ul li a:hover { color: var(--white); }
.footer-bottom {
  max-width: 1100px; margin: 0 auto;
  border-top: 1px solid var(--border);
  padding: 20px 0 24px;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 12px;
}
.footer-copy { font-size: 12px; color: var(--gray); }
.footer-pay  { display: flex; gap: 8px; flex-wrap: wrap; }
.pay-pill {
  background: rgba(255,255,255,.05);
  border: 1px solid var(--border);
  border-radius: 5px; padding: 4px 10px;
  font-size: 11px; color: var(--gray);
}

/* ═══════════════════════════
   RESPONSIVE
═══════════════════════════ */
@media (max-width: 1024px) {
  .pricing-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .site-nav      { padding: 0 20px; }
  .hero          { padding: 64px 24px 52px; }
  .hero h1       { font-size: 38px; }
  .page-section  { padding: 48px 24px; }
  .stats-bar     { grid-template-columns: repeat(2, 1fr); }
  .product-grid  { grid-template-columns: repeat(2, 1fr); }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .nodes-grid    { grid-template-columns: repeat(2, 1fr); }
  .cta-banner    { padding: 48px 24px; }
  .site-footer   { padding: 40px 24px 0; }
  .footer-grid   { grid-template-columns: 1fr 1fr; gap: 28px; }
}
@media (max-width: 768px) {
  .nav-toggle { display: block; }
  .nav-menu {
    display: none; flex-direction: column; align-items: flex-start;
    position: absolute; top: 60px; left: 0; right: 0;
    background: var(--bg2); border-bottom: 1px solid var(--border);
    padding: 12px; gap: 2px; margin: 0;
  }
  .nav-menu.is-open { display: flex; }
  .nav-menu > li { width: 100%; }
  .nav-menu > li > a { width: 100%; }
  .sub-menu {
    position: static; display: block; border: none;
    background: rgba(255,255,255,.04);
    margin: 4px 0 4px 12px; border-radius: 6px;
  }
}
@media (max-width: 560px) {
  .hero h1       { font-size: 30px; }
  .product-grid  { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: 1fr; }
  .pricing-grid  { grid-template-columns: 1fr; }
  .footer-grid   { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}
