/* ===== 快连VPN v3 - 公共样式 ===== */
:root {
  --bg: #0a0e1a;
  --bg-card: #0f1726;
  --blue: #0066FF;
  --cyan: #00D4FF;
  --grad: linear-gradient(135deg, #0066FF, #00D4FF);
  --text: #e8edf5;
  --text2: #7a8ba6;
  --text3: #4a5568;
  --border: rgba(0, 102, 255, 0.12);
  --border-hover: rgba(0, 102, 255, 0.3);
  --radius: 12px;
  --radius-sm: 8px;
  --max-w: 1200px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* 背景网格纹理 */
body::before {
  content: '';
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background-image:
    linear-gradient(rgba(0, 102, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 102, 255, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  z-index: 0;
}

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

a { color: var(--blue); text-decoration: none; transition: color .2s; }
a:hover { color: var(--cyan); }

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

/* ===== Header ===== */
.header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(10, 14, 26, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.header .container { display: flex; align-items: center; justify-content: space-between; height: 64px; }

.logo { display: flex; align-items: center; gap: 10px; font-size: 1.1rem; font-weight: 700; color: #fff; text-decoration: none; }
.logo img { width: 36px; height: 36px; }
.logo:hover { color: #fff; }

.nav { display: flex; align-items: center; gap: 6px; }
.nav a {
  padding: 8px 16px; border-radius: var(--radius-sm);
  color: var(--text2); font-size: 0.88rem; font-weight: 500;
  transition: all .2s;
}
.nav a:hover, .nav a.active { color: #fff; background: rgba(0, 102, 255, 0.1); }
.nav a.cta {
  background: var(--grad); color: #fff; font-weight: 600;
  border-radius: var(--radius-sm); margin-left: 8px;
}
.nav a.cta:hover { opacity: .9; transform: translateY(-1px); background: var(--grad); }

/* 移动端菜单 */
.mobile-menu-btn {
  display: none;
  background: none; border: 1px solid var(--border); color: var(--text2);
  font-size: 1.4rem; width: 40px; height: 40px; border-radius: var(--radius-sm);
  cursor: pointer; align-items: center; justify-content: center; line-height: 1;
}
#mobileOverlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 90; }
#mobileOverlay.show { display: block; }

.mobile-nav {
  position: fixed; top: 0; right: -300px; width: 260px; height: 100vh;
  background: var(--bg-card); z-index: 95;
  display: flex; flex-direction: column; padding: 80px 28px 40px;
  gap: 4px; transition: right .3s ease;
  border-left: 1px solid var(--border);
}
.mobile-nav.show { right: 0; }
.mobile-nav-close {
  position: absolute; top: 16px; right: 16px;
  background: none; border: none; color: var(--text2); font-size: 1.8rem;
  cursor: pointer; line-height: 1;
}
.mobile-nav a {
  padding: 12px 16px; border-radius: var(--radius-sm);
  color: var(--text2); font-size: 0.95rem; font-weight: 500;
  text-decoration: none; transition: all .2s;
}
.mobile-nav a:hover, .mobile-nav a.active { color: #fff; background: rgba(0,102,255,0.12); }
.mobile-nav .mobile-cta { background: var(--grad); color: #fff !important; text-align: center; font-weight: 600; margin-top: 12px; }
.mobile-nav .mobile-cta:hover { opacity: .9; }

/* ===== 通用区块 ===== */
.section { padding: 80px 0; position: relative; z-index: 1; }
.section-title { text-align: center; margin-bottom: 48px; }
.section-title h2 { font-size: 2rem; font-weight: 800; color: #fff; margin-bottom: 12px; }
.section-title p { font-size: 0.95rem; color: var(--text2); max-width: 600px; margin: 0 auto; }

/* Page Hero */
.page-hero { padding: 64px 0 48px; text-align: center; position: relative; z-index: 1; }
.page-hero h1 { font-size: 2.4rem; font-weight: 800; color: #fff; margin-bottom: 12px; }
.page-hero p { font-size: 0.95rem; color: var(--text2); max-width: 640px; margin: 0 auto; }
.grad-text { background: var(--grad); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }

.page-hero--glow { overflow: hidden; }
.page-hero--glow::before {
  content: '';
  position: absolute;
  top: -40%; left: 50%; transform: translateX(-50%);
  width: 700px; height: 700px;
  background: radial-gradient(circle, rgba(0,212,255,0.10), transparent 70%);
  pointer-events: none;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 16px; border-radius: 20px;
  background: rgba(0,102,255,0.08); border: 1px solid rgba(0,102,255,0.2);
  color: var(--cyan); font-size: 0.82rem; font-weight: 500;
  margin-bottom: 20px; position: relative; z-index: 1;
}

/* ===== Footer ===== */
.footer { border-top: 1px solid var(--border); padding: 56px 0 0; position: relative; z-index: 1; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-brand p { font-size: 0.82rem; color: var(--text3); margin-top: 12px; max-width: 320px; }
.footer-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.footer-tags .tag { padding: 4px 10px; border-radius: 4px; background: rgba(0,102,255,0.08); color: var(--text3); font-size: 0.72rem; }
.footer-col h4 { font-size: 0.85rem; font-weight: 700; color: #fff; margin-bottom: 16px; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a { font-size: 0.82rem; color: var(--text3); transition: color .2s; }
.footer-col ul li a:hover { color: var(--cyan); }
.footer-bottom {
  border-top: 1px solid var(--border); padding: 20px 0;
  text-align: center; font-size: 0.78rem; color: var(--text3);
}
.footer-bottom a { color: var(--text2); }
.footer-bottom a:hover { color: var(--cyan); }

/* ===== 玻璃卡片 ===== */
.glass-card {
  background: rgba(15, 23, 38, 0.7);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color .25s, transform .2s, box-shadow .25s;
}
.glass-card:hover { border-color: var(--border-hover); box-shadow: 0 0 30px rgba(0,102,255,0.06); }

/* ===== CTA Section ===== */
.cta-section { text-align: center; padding: 80px 0; position: relative; z-index: 1; }
.cta-section::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 70% 50% at 50% 50%, rgba(0,102,255,0.08), transparent 70%);
  pointer-events: none;
}
.cta-section h2 { font-size: 2.2rem; font-weight: 800; color: #fff; margin-bottom: 12px; position: relative; z-index: 1; }
.cta-section p { color: var(--text2); font-size: 0.95rem; margin-bottom: 32px; position: relative; z-index: 1; }
.cta-section .btn { position: relative; z-index: 1; }

/* ===== 按钮 ===== */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 28px; border-radius: 10px; border: none;
  font-size: 0.92rem; font-weight: 600; font-family: inherit;
  cursor: pointer; text-decoration: none; transition: all .2s;
}
.btn-primary { background: var(--grad); color: #fff; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(0,102,255,0.3); color: #fff; }
.btn-outline { background: transparent; border: 1px solid rgba(0,102,255,0.3); color: var(--text); }
.btn-outline:hover { border-color: var(--blue); color: #fff; background: rgba(0,102,255,0.05); }
.btn-lg { padding: 14px 36px; font-size: 1rem; }

/* ===== 动画 ===== */
.animate-on-scroll { opacity: 0; transform: translateY(30px); transition: opacity .6s ease, transform .6s ease; }
.animate-on-scroll:not(.animated) { pointer-events: none; }
.animate-on-scroll.animated { opacity: 1; transform: translateY(0); }

/* ===== 焦点与可访问性 ===== */
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }

/* ===== 打印样式 ===== */
@media print {
  .header, .footer, .mobile-nav, #mobileOverlay, .mobile-menu-btn { display: none !important; }
  body { background: #fff; color: #000; }
}

/* ===== 响应式 ===== */
@media (max-width: 900px) {
  .nav { display: none; }
  .mobile-menu-btn { display: flex; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .page-hero h1 { font-size: 1.8rem; }
  .section-title h2 { font-size: 1.6rem; }
}
@media (max-width: 600px) {
  .footer-grid { grid-template-columns: 1fr; }
  .section { padding: 48px 0; }
  .btn-lg { padding: 12px 24px; font-size: 0.92rem; }
}
