/* ============================================================
   饿饭CC云 · 独立主题样式（紫罗兰 + 玻璃拟态）
   布局与加速器站完全不同：居中Hero + 游戏网格 + 对比表格
   ============================================================ */
:root {
  --bg: #0c0a17;
  --bg-soft: #131022;
  --card: rgba(139, 92, 246, 0.06);
  --card-2: #181330;
  --line: rgba(167, 139, 250, 0.16);
  --text: #f1edff;
  --muted: #a89fd4;
  --primary: #8b5cf6;
  --accent: #a78bfa;
  --accent-2: #6366f1;
  --grad: linear-gradient(120deg, #8b5cf6 0%, #6366f1 55%, #22d3ee 120%);
  --radius: 18px;
  --shadow: 0 18px 48px rgba(99, 102, 241, 0.22);
}
* { 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; }
.container { max-width: 1160px; margin: 0 auto; padding: 0 24px; }

/* ---------- Header ---------- */
.topbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(12, 10, 23, 0.7);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  transition: all 0.3s;
}
.topbar.scrolled { border-bottom-color: var(--line); background: rgba(12, 10, 23, 0.95); }
.topbar-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
  height: 66px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 800;
}
.logo svg { width: 30px; height: 30px; }
.nav { display: flex; gap: 30px; }
.nav a { font-size: 15px; color: var(--muted); transition: color 0.2s; }
.nav a:hover, .nav a.on { color: #fff; }
.nav a.on { text-shadow: 0 0 14px rgba(167, 139, 250, 0.8); }
.right { display: flex; align-items: center; gap: 14px; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 22px;
  border-radius: 14px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: transform 0.2s, box-shadow 0.2s;
}
.btn:hover { transform: translateY(-2px); }
.btn-main {
  background: var(--grad);
  color: #fff;
  box-shadow: 0 8px 24px rgba(139, 92, 246, 0.35);
}
.btn-main:hover { box-shadow: 0 12px 32px rgba(139, 92, 246, 0.5); }
.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--line);
}
.btn-lg { padding: 14px 32px; font-size: 16px; border-radius: 16px; }
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 8px; }
.hamburger span { width: 22px; height: 2px; background: #fff; border-radius: 2px; }
.mobile-menu {
  display: none;
  position: fixed; inset: 0;
  z-index: 200;
  background: rgba(12, 10, 23, 0.98);
  padding: 74px 28px 28px;
  flex-direction: column;
  gap: 18px;
}
.mobile-menu.open { display: flex; }
.mobile-menu a { font-size: 20px; 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 80px;
  text-align: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(720px 380px at 50% 0%, rgba(139, 92, 246, 0.28), transparent 65%),
    radial-gradient(560px 320px at 80% 60%, rgba(99, 102, 241, 0.18), transparent 60%),
    radial-gradient(520px 300px at 12% 70%, rgba(34, 211, 238, 0.08), transparent 60%);
  pointer-events: none;
}
.hero-inner { position: relative; max-width: 820px; margin: 0 auto; }
.tag {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  background: rgba(139, 92, 246, 0.12);
  border: 1px solid rgba(167, 139, 250, 0.35);
  border-radius: 999px;
  padding: 6px 16px;
  margin-bottom: 22px;
}
.hero h1 {
  font-size: 48px;
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: 1px;
  margin-bottom: 18px;
}
.hero h1 em {
  font-style: normal;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero p { font-size: 17px; color: var(--muted); max-width: 620px; margin: 0 auto 30px; }
.hero-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-bottom: 26px; }
.hero-badges { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.hero-badges span {
  font-size: 13px;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 13px;
}
.hero-badges b { color: var(--text); }

/* ---------- 统计条 ---------- */
.metrics { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--bg-soft); }
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  padding: 32px 0;
}
.metric { text-align: center; }
.metric .n { font-size: 32px; font-weight: 800; color: var(--accent); }
.metric .t { font-size: 13px; color: var(--muted); margin-top: 4px; }

/* ---------- Section ---------- */
.section { padding: 88px 0; }
.section.soft { background: var(--bg-soft); }
.s-head { max-width: 720px; margin: 0 auto 44px; text-align: center; }
.s-label {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}
.s-head h2 { font-size: 32px; font-weight: 800; margin-bottom: 12px; }
.s-intro { color: var(--muted); font-size: 16px; }

/* ---------- 游戏网格 ---------- */
.games-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.game-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 18px;
  text-align: center;
  transition: transform 0.25s, background 0.25s;
}
.game-card:hover { transform: translateY(-5px); background: var(--card-2); }
.game-card .ico { font-size: 30px; margin-bottom: 10px; }
.game-card h3 { font-size: 16px; margin-bottom: 4px; }
.game-card p { font-size: 12px; color: var(--muted); }

/* ---------- 对比表格 ---------- */
.cmp-wrap {
  max-width: 780px;
  margin: 0 auto;
  background: var(--card-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.cmp-table { width: 100%; border-collapse: collapse; }
.cmp-table th, .cmp-table td { padding: 16px 20px; font-size: 15px; text-align: center; }
.cmp-table thead th {
  font-size: 14px;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
  background: rgba(139, 92, 246, 0.06);
}
.cmp-table tbody td { border-bottom: 1px solid rgba(167, 139, 250, 0.08); }
.cmp-table tbody tr:last-child td { border-bottom: none; }
.cmp-table td:first-child { color: var(--muted); text-align: left; }
.cmp-bad { color: #f87171; font-weight: 700; }
.cmp-good { color: #34d399; font-weight: 700; }

/* ---------- 区域节点 ---------- */
.region-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.region-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
}
.region-card h3 { font-size: 16px; margin-bottom: 8px; display: flex; justify-content: space-between; }
.region-card h3 span { color: var(--accent); font-weight: 700; }
.region-card ul { font-size: 13px; color: var(--muted); }
.region-card li { padding: 3px 0; }

/* ---------- 步骤 ---------- */
.how-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.how-card {
  background: var(--card-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 24px;
  position: relative;
}
.how-card .no {
  font-size: 40px;
  font-weight: 800;
  color: transparent;
  -webkit-text-stroke: 1px var(--accent);
  margin-bottom: 12px;
  line-height: 1;
}
.how-card h3 { font-size: 17px; margin-bottom: 8px; }
.how-card p { font-size: 14px; color: var(--muted); }

/* ---------- FAQ ---------- */
.faq {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.faq details {
  background: var(--card-2);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
}
.faq summary {
  cursor: pointer;
  padding: 17px 20px;
  font-size: 16px;
  font-weight: 600;
  list-style: none;
  position: relative;
  padding-right: 44px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "›";
  position: absolute;
  right: 20px; top: 50%;
  transform: translateY(-50%) rotate(90deg);
  color: var(--accent);
  font-size: 20px;
  transition: transform 0.25s;
}
.faq details[open] summary::after { transform: translateY(-50%) rotate(-90deg); }
.faq details[open] summary { color: var(--accent); }
.faq details p { padding: 0 20px 18px; font-size: 15px; color: var(--muted); }

/* ---------- CTA ---------- */
.cta {
  max-width: 1160px;
  margin: 0 auto 84px;
  border-radius: 22px;
  background: var(--grad);
  text-align: center;
  padding: 58px 28px;
  color: #fff;
}
.cta h2 { font-size: 30px; font-weight: 800; margin-bottom: 10px; }
.cta p { font-size: 16px; opacity: 0.9; margin-bottom: 22px; }
.cta .btn { background: #fff; color: #5b21b6; box-shadow: 0 8px 24px rgba(0,0,0,0.25); }

/* ---------- Footer ---------- */
.footer {
  background: var(--bg-soft);
  border-top: 1px solid var(--line);
  padding: 56px 0 28px;
}
.foot-notice {
  border: 1px dashed rgba(167, 139, 250, 0.3);
  border-radius: 12px;
  padding: 14px 20px;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 38px;
}
.foot-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 38px;
}
.foot-grid h4 { font-size: 15px; margin-bottom: 14px; }
.foot-grid li { margin-bottom: 10px; font-size: 14px; color: var(--muted); }
.foot-grid li a:hover { color: #fff; }
.brand p { font-size: 14px; color: var(--muted); margin-top: 14px; }
.copyright { border-top: 1px solid var(--line); padding-top: 22px; text-align: center; font-size: 13px; color: var(--muted); }

/* ---------- Floating ---------- */
.float { position: fixed; right: 22px; bottom: 22px; z-index: 90; display: flex; flex-direction: column; gap: 12px; }
.fbtn {
  width: 48px; height: 48px;
  border-radius: 14px;
  background: var(--grad);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 24px rgba(139, 92, 246, 0.4);
  transition: transform 0.2s, opacity 0.3s;
}
.fbtn svg { width: 22px; height: 22px; }
.fbtn:hover { transform: translateY(-3px); }
.fbtn.top { opacity: 0; pointer-events: none; }
.fbtn.top.show { opacity: 1; pointer-events: auto; }

/* ---------- 内页 Hero ---------- */
.page-hero { padding: 138px 0 64px; }
.page-hero h1 { font-size: 38px; }

/* ---------- 下载页 ---------- */
.pkg-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.pkg-card {
  background: var(--card-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 22px;
  text-align: center;
}
.pkg-card .ico { font-size: 30px; margin-bottom: 10px; }
.pkg-card h3 { font-size: 17px; margin-bottom: 6px; }
.pkg-card p { font-size: 13px; color: var(--muted); margin-bottom: 16px; }
.pkg-card .btn { width: 100%; }
.sys-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  max-width: 820px;
  margin: 0 auto;
}
.sys-list li {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px 18px;
  font-size: 14px;
  color: var(--muted);
}
.sys-list li b { display: block; color: #fff; margin-bottom: 2px; }
.apply {
  max-width: 600px;
  margin: 0 auto;
  background: var(--card-2);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 32px 28px;
}
.apply label { display: block; font-size: 14px; color: var(--muted); margin-bottom: 6px; }
.apply input, .apply select {
  width: 100%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
  color: #fff;
  font-size: 15px;
  margin-bottom: 16px;
  outline: none;
}
.apply input:focus, .apply select:focus { border-color: var(--accent); }
.apply .msg { text-align: center; font-size: 14px; color: var(--muted); padding-top: 8px; }
.apply .msg b { color: var(--accent); }
.versions {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.ver-item {
  background: var(--card-2);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 20px 24px;
}
.ver-item .v { color: var(--accent); font-weight: 700; }
.ver-item .d { font-size: 13px; color: var(--muted); margin-left: 10px; }
.ver-item ul { margin-top: 10px; }
.ver-item li { font-size: 14px; color: var(--muted); padding: 3px 0 3px 18px; position: relative; }
.ver-item li::before { content: "»"; position: absolute; left: 2px; color: var(--accent); }

/* ---------- 资讯页（卡片网格 + 筛选标签） ---------- */
.filter { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-bottom: 34px; }
.filter span {
  font-size: 13px;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 16px;
  cursor: pointer;
}
.filter span.on { background: var(--grad); color: #fff; border-color: transparent; }
.post-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  max-width: 900px;
  margin: 0 auto;
}
.post-card {
  background: var(--card-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
}
.post-card .tag2 {
  font-size: 12px;
  color: var(--accent);
  background: rgba(139, 92, 246, 0.12);
  border-radius: 999px;
  padding: 3px 10px;
}
.post-card h3 { font-size: 17px; margin: 10px 0 6px; }
.post-card p { font-size: 14px; color: var(--muted); }
.post-card time { display: block; margin-top: 10px; font-size: 13px; color: var(--muted); }

/* ---------- 关于页 ---------- */
.timeline {
  max-width: 720px;
  margin: 0 auto;
  position: relative;
  padding-left: 40px;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 14px; top: 6px; bottom: 6px;
  width: 2px;
  background: var(--grad);
  opacity: 0.5;
}
.tl {
  position: relative;
  padding-bottom: 26px;
}
.tl::before {
  content: "";
  position: absolute;
  left: -34px; top: 6px;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--grad);
}
.tl .yr { font-size: 13px; color: var(--accent); font-weight: 700; }
.tl h3 { font-size: 17px; margin: 2px 0 6px; }
.tl p { font-size: 14px; color: var(--muted); }
.contact {
  max-width: 620px;
  margin: 0 auto;
  background: var(--card-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 28px;
}
.contact li { font-size: 14px; color: var(--muted); padding: 8px 0; border-bottom: 1px dashed var(--line); display: flex; gap: 8px; }
.contact li:last-child { border-bottom: none; }
.contact li::before { content: "◆"; color: var(--accent); font-size: 11px; align-self: center; }

/* ---------- 动画 ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- 响应式 ---------- */
@media (max-width: 1024px) {
  .games-grid { grid-template-columns: repeat(2, 1fr); }
  .region-grid { grid-template-columns: repeat(2, 1fr); }
  .pkg-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .nav { display: none; }
  .right .btn { display: none; }
  .hamburger { display: flex; }
  .hero { padding: 130px 0 56px; }
  .hero h1 { font-size: 34px; }
  .metrics-grid { grid-template-columns: repeat(2, 1fr); gap: 22px; }
  .games-grid { grid-template-columns: 1fr; }
  .region-grid { grid-template-columns: 1fr; }
  .how-grid { grid-template-columns: 1fr; }
  .post-grid { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr; gap: 26px; }
  .sys-list { grid-template-columns: 1fr; }
  .pkg-grid { grid-template-columns: 1fr; }
  .section { padding: 60px 0; }
  .s-head h2 { font-size: 26px; }
  .page-hero h1 { font-size: 28px; }
}
