/* ============================================================
   饿饭加速器 · 独立主题样式（科技蓝 + 青色霓虹）
   与 CC云 / VPN 站点完全独立的布局与组件
   ============================================================ */
:root {
  --bg: #0a0f1e;
  --bg-alt: #0e1629;
  --bg-card: #111a30;
  --border: rgba(255, 255, 255, 0.08);
  --text: #e6edf7;
  --muted: #8fa3c0;
  --primary: #3b82f6;
  --accent: #22d3ee;
  --grad: linear-gradient(135deg, #3b82f6 0%, #22d3ee 100%);
  --radius: 14px;
  --shadow: 0 10px 40px rgba(59, 130, 246, 0.15);
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { max-width: 100%; }
.container { max-width: 1180px; margin: 0 auto; padding: 0 24px; }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(10, 15, 30, 0.75);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: all 0.3s;
}
.site-header.scrolled {
  border-bottom-color: var(--border);
  background: rgba(10, 15, 30, 0.92);
}
.header-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0.5px;
}
.logo svg { width: 26px; height: 26px; color: var(--accent); }
.site-nav { display: flex; gap: 34px; }
.site-nav a {
  font-size: 15px;
  color: var(--muted);
  padding: 6px 0;
  position: relative;
  transition: color 0.2s;
}
.site-nav a:hover, .site-nav a.active { color: var(--text); }
.site-nav a.active::after {
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  width: 100%; height: 2px;
  background: var(--grad);
  border-radius: 2px;
}
.nav-actions { display: flex; align-items: center; gap: 14px; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 22px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  background: var(--grad);
  color: #04101f;
  box-shadow: 0 6px 20px rgba(34, 211, 238, 0.35);
}
.btn-primary:hover { box-shadow: 0 10px 30px rgba(34, 211, 238, 0.5); }
.btn-ghost {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-lg { padding: 14px 34px; font-size: 16px; }
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
}
.hamburger span {
  width: 22px; height: 2px;
  background: var(--text);
  border-radius: 2px;
}
.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(10, 15, 30, 0.98);
  padding: 70px 28px 28px;
  flex-direction: column;
  gap: 18px;
}
.mobile-menu.open { display: flex; }
.mobile-menu a { font-size: 20px; color: var(--text); padding: 10px 0; }
.mobile-close {
  position: absolute;
  top: 20px; right: 24px;
  font-size: 34px;
  color: var(--muted);
  cursor: pointer;
}

/* ---------- Hero (左右分栏) ---------- */
.hero {
  position: relative;
  padding: 160px 0 90px;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(800px 420px at 18% 0%, rgba(59, 130, 246, 0.22), transparent 60%),
    radial-gradient(700px 380px at 88% 30%, rgba(34, 211, 238, 0.16), transparent 60%);
  pointer-events: none;
}
.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: center;
}
.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  background: rgba(34, 211, 238, 0.1);
  border: 1px solid rgba(34, 211, 238, 0.3);
  border-radius: 999px;
  padding: 6px 14px;
  margin-bottom: 22px;
}
.hero h1 {
  font-size: 52px;
  line-height: 1.18;
  font-weight: 800;
  letter-spacing: 1px;
  margin-bottom: 20px;
}
.hero h1 .grad {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-sub {
  font-size: 17px;
  color: var(--muted);
  max-width: 540px;
  margin-bottom: 32px;
}
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 28px; }
.hero-badges { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-badges span {
  font-size: 13px;
  color: var(--muted);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 6px 14px;
}
.hero-badges span b { color: var(--text); }

/* 右侧连接状态面板 */
.status-panel {
  background: linear-gradient(180deg, rgba(17, 26, 48, 0.9), rgba(11, 18, 36, 0.9));
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 26px;
  box-shadow: var(--shadow);
  position: relative;
}
.status-panel::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: 18px;
  padding: 1px;
  background: var(--grad);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0.5;
}
.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}
.panel-head b { font-size: 15px; }
.node-dot {
  display: inline-block;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 10px #34d399;
  margin-right: 6px;
  animation: pulse 1.6s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.45; }
}
.node-list { display: flex; flex-direction: column; gap: 10px; }
.node-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 16px;
  font-size: 14px;
}
.node-item .lat { color: var(--accent); font-weight: 700; font-variant-numeric: tabular-nums; }
.bar {
  height: 5px;
  background: var(--grad);
  border-radius: 3px;
  margin-top: 6px;
}

/* ---------- 统计条 ---------- */
.stats-strip {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg-alt);
}
.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  padding: 34px 0;
}
.stat-item { text-align: center; }
.stat-item .num {
  font-size: 34px;
  font-weight: 800;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stat-item .label { font-size: 13px; color: var(--muted); margin-top: 4px; }

/* ---------- 通用 section ---------- */
.section { padding: 90px 0; }
.section.alt { background: var(--bg-alt); }
.section-header { max-width: 760px; margin: 0 auto 46px; text-align: center; }
.section-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 12px;
}
.section-header h2 {
  font-size: 34px;
  font-weight: 800;
  margin-bottom: 14px;
}
.section-intro { color: var(--muted); font-size: 16px; }

/* ---------- 特性卡片（4列） ---------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 22px;
  transition: transform 0.25s, border-color 0.25s;
}
.feature-card:hover {
  transform: translateY(-6px);
  border-color: rgba(59, 130, 246, 0.45);
}
.feature-ico {
  width: 46px; height: 46px;
  border-radius: 12px;
  background: rgba(59, 130, 246, 0.14);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.feature-ico svg { width: 24px; height: 24px; }
.feature-card h3 { font-size: 17px; margin-bottom: 8px; }
.feature-card p { font-size: 14px; color: var(--muted); }

/* ---------- 协议说明（全宽区块） ---------- */
.proto-section { position: relative; overflow: hidden; }
.proto-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 44px;
  align-items: center;
}
.proto-text h2 { font-size: 30px; font-weight: 800; margin-bottom: 16px; }
.proto-text p { color: var(--muted); margin-bottom: 16px; }
.proto-list { display: flex; flex-direction: column; gap: 12px; margin-top: 10px; }
.proto-list li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 15px;
}
.proto-list li::before {
  content: "";
  flex: none;
  width: 18px; height: 18px;
  margin-top: 4px;
  border-radius: 50%;
  background: var(--grad);
}
.code-panel {
  background: #0a1424;
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.code-bar {
  display: flex;
  gap: 8px;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.04);
  border-bottom: 1px solid var(--border);
}
.code-bar i {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: #64748b;
}
.code-bar i:nth-child(1) { background: #f87171; }
.code-bar i:nth-child(2) { background: #fbbf24; }
.code-bar i:nth-child(3) { background: #34d399; }
.code-body {
  padding: 18px 20px;
  font-family: "SF Mono", Consolas, "Courier New", monospace;
  font-size: 13px;
  line-height: 1.8;
  color: #9fb4d6;
  white-space: pre;
  overflow-x: auto;
}
.code-body .k { color: #22d3ee; }
.code-body .v { color: #a78bfa; }
.code-body .s { color: #34d399; }

/* ---------- 使用步骤 ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.step-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 26px;
  position: relative;
}
.step-num {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: var(--grad);
  color: #04101f;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.step-card h3 { font-size: 18px; margin-bottom: 8px; }
.step-card p { font-size: 14px; color: var(--muted); }

/* ---------- FAQ ---------- */
.faq-list {
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.faq-list details {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}
.faq-list summary {
  cursor: pointer;
  padding: 18px 22px;
  font-size: 16px;
  font-weight: 600;
  position: relative;
  list-style: none;
  transition: color 0.2s;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "+";
  position: absolute;
  right: 22px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 22px;
  color: var(--accent);
  transition: transform 0.25s;
}
.faq-list details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq-list details[open] summary { color: var(--accent); }
.faq-list details p {
  padding: 0 22px 20px;
  font-size: 15px;
  color: var(--muted);
}

/* ---------- CTA ---------- */
.cta-band {
  background: var(--grad);
  border-radius: 20px;
  margin: 0 auto 90px;
  max-width: 1180px;
  text-align: center;
  padding: 64px 30px;
  color: #04101f;
  position: relative;
  overflow: hidden;
}
.cta-band h2 { font-size: 32px; font-weight: 800; margin-bottom: 10px; }
.cta-band p { font-size: 16px; opacity: 0.85; margin-bottom: 24px; }
.cta-band .btn {
  background: #04101f;
  color: #fff;
  box-shadow: 0 8px 26px rgba(0, 0, 0, 0.3);
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  padding: 60px 0 30px;
}
.footer-notice {
  border: 1px dashed rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  padding: 14px 20px;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 40px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-grid h4 { font-size: 15px; margin-bottom: 14px; }
.footer-grid li { margin-bottom: 10px; }
.footer-grid li a, .footer-grid li { font-size: 14px; color: var(--muted); }
.footer-grid li a:hover { color: var(--text); }
.brand p { font-size: 14px; color: var(--muted); margin-top: 14px; }
.copyright {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  text-align: center;
  font-size: 13px;
  color: var(--muted);
}

/* ---------- Floating ---------- */
.floating { position: fixed; right: 22px; bottom: 22px; z-index: 90; display: flex; flex-direction: column; gap: 12px; }
.floating-btn {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--grad);
  color: #04101f;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 22px rgba(34, 211, 238, 0.35);
  transition: transform 0.2s, opacity 0.3s;
}
.floating-btn svg { width: 22px; height: 22px; }
.floating-btn:hover { transform: translateY(-3px); }
.back-top { opacity: 0; pointer-events: none; }
.back-top.show { opacity: 1; pointer-events: auto; }

/* ---------- 页面 Hero（内页） ---------- */
.page-hero {
  padding: 140px 0 70px;
  text-align: center;
}
.page-hero h1 { font-size: 40px; }
.page-hero .hero-sub { margin: 0 auto; }

/* ---------- 下载页 ---------- */
.platform-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.platform-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  text-align: center;
}
.platform-card .p-ico { font-size: 30px; margin-bottom: 10px; }
.platform-card h3 { font-size: 17px; margin-bottom: 6px; }
.platform-card p { font-size: 13px; color: var(--muted); margin-bottom: 16px; }
.platform-card .btn { width: 100%; }
.system-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
.system-grid li {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px 18px;
  font-size: 14px;
  color: var(--muted);
}
.system-grid li b { color: var(--text); display: block; margin-bottom: 2px; }
.verify-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 28px;
}
.verify-box li {
  font-size: 14px;
  color: var(--muted);
  padding: 8px 0;
  border-bottom: 1px dashed var(--border);
  display: flex;
  gap: 8px;
}
.verify-box li:last-child { border-bottom: none; }
.verify-box li::before { content: "✓"; color: var(--accent); }
/* 版本日志 */
.changelog {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.changelog-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px 24px;
}
.changelog-item .ver { color: var(--accent); font-weight: 700; font-size: 15px; }
.changelog-item .date { font-size: 13px; color: var(--muted); margin-left: 10px; }
.changelog-item ul { margin-top: 10px; }
.changelog-item li {
  font-size: 14px;
  color: var(--muted);
  padding: 3px 0 3px 18px;
  position: relative;
}
.changelog-item li::before {
  content: "·";
  position: absolute;
  left: 4px;
  color: var(--accent);
}
/* 内测申请表单 */
.apply-form {
  max-width: 620px;
  margin: 0 auto;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 34px 30px;
}
.apply-form label {
  display: block;
  font-size: 14px;
  margin-bottom: 6px;
  color: var(--muted);
}
.apply-form input, .apply-form select {
  width: 100%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 14px;
  color: var(--text);
  font-size: 15px;
  margin-bottom: 18px;
  outline: none;
}
.apply-form input:focus, .apply-form select:focus { border-color: var(--accent); }
.form-msg {
  text-align: center;
  font-size: 14px;
  color: var(--muted);
  padding-top: 8px;
}
.form-msg b { color: var(--accent); }

/* ---------- 资讯页 ---------- */
.article-timeline {
  max-width: 860px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.article-item {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 22px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 22px 24px;
}
.article-date { text-align: center; }
.article-date .d { font-size: 26px; font-weight: 800; color: var(--accent); }
.article-date .m { font-size: 12px; color: var(--muted); }
.article-body .cat {
  font-size: 12px;
  color: var(--accent);
  background: rgba(34, 211, 238, 0.1);
  border-radius: 999px;
  padding: 3px 10px;
}
.article-body h3 { font-size: 18px; margin: 8px 0 6px; }
.article-body p { font-size: 14px; color: var(--muted); }

/* ---------- 关于页 ---------- */
.about-timeline {
  display: flex;
  flex-direction: column;
  gap: 0;
  max-width: 760px;
  margin: 0 auto;
  position: relative;
}
.about-timeline::before {
  content: "";
  position: absolute;
  left: 19px; top: 8px; bottom: 8px;
  width: 2px;
  background: var(--grad);
  opacity: 0.4;
}
.tl-item {
  position: relative;
  padding: 0 0 28px 60px;
}
.tl-item::before {
  content: "";
  position: absolute;
  left: 12px; top: 4px;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--grad);
  box-shadow: 0 0 12px rgba(34, 211, 238, 0.6);
}
.tl-item .tl-year { font-size: 13px; color: var(--accent); font-weight: 700; }
.tl-item h3 { font-size: 17px; margin: 2px 0 6px; }
.tl-item p { font-size: 14px; color: var(--muted); }

/* ---------- 动画 ---------- */
.fade-up { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.fade-up.visible { opacity: 1; transform: none; }

/* ---------- 响应式 ---------- */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .proto-grid { grid-template-columns: 1fr; }
  .platform-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .site-nav { display: none; }
  .nav-actions .btn { display: none; }
  .hamburger { display: flex; }
  .hero { padding: 130px 0 60px; }
  .hero h1 { font-size: 34px; }
  .stats-row { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .feature-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .article-item { grid-template-columns: 1fr; gap: 10px; }
  .system-grid { grid-template-columns: 1fr; }
  .platform-grid { grid-template-columns: 1fr; }
  .section { padding: 64px 0; }
  .section-header h2 { font-size: 27px; }
  .page-hero h1 { font-size: 30px; }
}
