/* ============================================
   漫蛙3 官方下载站 - 样式表 (本地化资源)
   ============================================ */
:root {
  --bg: #0b0a17;
  --bg-2: #141129;
  --card: rgba(255, 255, 255, 0.045);
  --card-border: rgba(255, 255, 255, 0.09);
  --text: #f2effc;
  --text-dim: #a7a3c4;
  --text-faint: #7c78a0;
  --primary: #8b5cf6;
  --primary-2: #a855f7;
  --accent: #ec4899;
  --grad: linear-gradient(135deg, #8b5cf6 0%, #a855f7 55%, #ec4899 100%);
  --radius: 18px;
  --nav-h: 68px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

/* ---------- 背景光晕 ---------- */
.bg-glow {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(900px 500px at 12% -8%, rgba(139, 92, 246, 0.22), transparent 60%),
    radial-gradient(800px 500px at 88% 12%, rgba(236, 72, 153, 0.16), transparent 60%),
    radial-gradient(900px 600px at 50% 115%, rgba(168, 85, 247, 0.18), transparent 62%),
    var(--bg);
}

/* ---------- 顶部导航 (sticky, 下载按钮全分辨率常显) ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-h);
  background: rgba(11, 10, 23, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.nav-inner {
  max-width: 1180px;
  height: 100%;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.brand img { width: 38px; height: 38px; border-radius: 10px; }

.brand-name {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0.5px;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
}

.nav-menu a {
  padding: 8px 14px;
  font-size: 15px;
  color: var(--text-dim);
  border-radius: 10px;
  transition: color 0.2s, background 0.2s;
  white-space: nowrap;
}

.nav-menu a:hover { color: var(--text); background: rgba(255, 255, 255, 0.06); }

/* 下载按钮：任何分辨率下始终显示，不允许压缩隐藏 */
.nav-download {
  flex-shrink: 0;
  margin-left: 8px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  background: var(--grad);
  border-radius: 999px;
  box-shadow: 0 6px 22px rgba(168, 85, 247, 0.38);
  transition: transform 0.2s, box-shadow 0.2s, filter 0.2s;
  white-space: nowrap;
}

.nav-download:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(168, 85, 247, 0.5); filter: brightness(1.06); }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 9px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--card-border);
  border-radius: 10px;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: var(--text);
}

/* ---------- 通用容器 ---------- */
.container { max-width: 1180px; margin: 0 auto; padding: 0 24px; }

section { padding: 84px 0; }

.section-head { text-align: center; max-width: 720px; margin: 0 auto 52px; }

.section-tag {
  display: inline-block;
  padding: 5px 16px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 2px;
  color: var(--primary-2);
  background: rgba(168, 85, 247, 0.12);
  border: 1px solid rgba(168, 85, 247, 0.28);
  border-radius: 999px;
  margin-bottom: 16px;
}

.section-title { font-size: 34px; font-weight: 800; letter-spacing: 0.5px; }

.section-sub { margin-top: 14px; color: var(--text-dim); font-size: 16px; }

/* ---------- Hero ---------- */
.hero {
  padding: 88px 0 72px;
  position: relative;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 56px;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  font-size: 13.5px;
  font-weight: 600;
  color: #f3e8ff;
  background: rgba(139, 92, 246, 0.16);
  border: 1px solid rgba(139, 92, 246, 0.4);
  border-radius: 999px;
}

.hero-tag::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 10px #4ade80;
}

.hero h1 {
  margin: 22px 0 8px;
  font-size: 52px;
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: 1px;
}

.hero h1 .grad {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.hero-sub {
  margin-top: 16px;
  font-size: 18px;
  color: var(--text-dim);
  max-width: 560px;
}

.hero-desc {
  margin-top: 14px;
  font-size: 15px;
  color: var(--text-faint);
  max-width: 580px;
}

.hero-cta { display: flex; align-items: center; gap: 16px; margin-top: 34px; flex-wrap: wrap; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 34px;
  font-size: 16.5px;
  font-weight: 700;
  border-radius: 14px;
  transition: transform 0.2s, box-shadow 0.2s, filter 0.2s;
  white-space: nowrap;
}

.btn-primary {
  color: #fff;
  background: var(--grad);
  box-shadow: 0 10px 30px rgba(168, 85, 247, 0.42);
}

.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 38px rgba(168, 85, 247, 0.55); filter: brightness(1.06); }

.btn-ghost {
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--card-border);
}

.btn-ghost:hover { background: rgba(255, 255, 255, 0.1); transform: translateY(-2px); }

.btn svg { width: 20px; height: 20px; }

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 30px;
}

.hero-meta .pill {
  padding: 7px 15px;
  font-size: 13.5px;
  color: var(--text-dim);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--card-border);
  border-radius: 999px;
}

.hero-meta .pill b { color: var(--text); font-weight: 700; }

/* Hero 右侧应用展示 */
.hero-visual { position: relative; display: flex; justify-content: center; }

.hero-visual .phone-wrap {
  position: relative;
  width: 300px;
  border-radius: 40px;
  padding: 12px;
  background: linear-gradient(160deg, rgba(139, 92, 246, 0.35), rgba(236, 72, 153, 0.22));
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 30px 80px rgba(139, 92, 246, 0.35);
}

.hero-visual .phone {
  border-radius: 30px;
  overflow: hidden;
  background: var(--bg-2);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.phone-screen {
  background:
    radial-gradient(320px 260px at 30% 0%, rgba(139, 92, 246, 0.28), transparent 65%),
    radial-gradient(300px 260px at 90% 100%, rgba(236, 72, 153, 0.2), transparent 65%),
    #100d22;
  padding: 22px 18px 28px;
}

.phone-screen .app-row { display: flex; align-items: center; gap: 12px; }

.phone-screen .app-row img { width: 52px; height: 52px; border-radius: 14px; }

.phone-screen .app-row h4 { font-size: 17px; font-weight: 800; }

.phone-screen .app-row p { font-size: 12px; color: var(--text-faint); }

.phone-screen .mini-pill {
  display: inline-block;
  margin-top: 10px;
  padding: 4px 12px;
  font-size: 12px;
  color: #f3e8ff;
  background: rgba(139, 92, 246, 0.22);
  border: 1px solid rgba(139, 92, 246, 0.4);
  border-radius: 999px;
}

.phone-covers { margin-top: 18px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.cover {
  border-radius: 12px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--card-border);
}

.cover .cover-art {
  height: 76px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
}

.cover p { margin-top: 8px; font-size: 11.5px; color: var(--text-dim); }

.cover span { font-size: 10.5px; color: var(--text-faint); }

.float-chip {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  background: rgba(20, 17, 41, 0.92);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
  font-size: 13.5px;
  animation: float 4.5s ease-in-out infinite;
}

.float-chip svg { width: 20px; height: 20px; }

.chip-1 { top: 26px; left: -24px; }
.chip-2 { bottom: 60px; right: -30px; animation-delay: 2s; }

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

/* ---------- 功能特色 ---------- */
.features {
  background: linear-gradient(180deg, transparent, rgba(139, 92, 246, 0.05) 18%, rgba(139, 92, 246, 0.05) 82%, transparent);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.feature-card {
  padding: 28px 24px;
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  transition: transform 0.25s, border-color 0.25s, background 0.25s;
}

.feature-card:hover {
  transform: translateY(-6px);
  border-color: rgba(168, 85, 247, 0.45);
  background: rgba(139, 92, 246, 0.08);
}

.feature-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--grad);
  box-shadow: 0 8px 22px rgba(168, 85, 247, 0.35);
  margin-bottom: 18px;
}

.feature-icon svg { width: 26px; height: 26px; }

.feature-card h3 { font-size: 18px; font-weight: 700; margin-bottom: 8px; }

.feature-card p { font-size: 14px; color: var(--text-dim); }

/* ---------- 版本信息 ---------- */
.versions-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 40px;
}

.version-card {
  padding: 30px 26px;
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
}

.version-card .ver-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }

.version-card .ver-tag {
  font-size: 12.5px;
  font-weight: 700;
  color: #4ade80;
  background: rgba(74, 222, 128, 0.12);
  border: 1px solid rgba(74, 222, 128, 0.3);
  padding: 4px 12px;
  border-radius: 999px;
}

.version-card h3 { font-size: 22px; font-weight: 800; }

.version-card .ver-time { font-size: 13px; color: var(--text-faint); }

.version-card ul { margin-top: 14px; }

.version-card li {
  position: relative;
  padding: 7px 0 7px 22px;
  font-size: 14px;
  color: var(--text-dim);
}

.version-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 15px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--grad);
}

.app-info {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}

.app-info .info-cell {
  padding: 22px 18px;
  text-align: center;
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 14px;
}

.app-info .info-cell .k { font-size: 13px; color: var(--text-faint); }

.app-info .info-cell .v { margin-top: 6px; font-size: 15.5px; font-weight: 700; word-break: break-all; }

/* ---------- 下载区域 ---------- */
.download {
  position: relative;
  text-align: center;
}

.download-box {
  position: relative;
  max-width: 860px;
  margin: 0 auto;
  padding: 56px 40px;
  border-radius: 26px;
  background:
    radial-gradient(500px 300px at 20% 0%, rgba(139, 92, 246, 0.25), transparent 60%),
    radial-gradient(500px 300px at 85% 100%, rgba(236, 72, 153, 0.18), transparent 60%),
    rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  overflow: hidden;
}

.download-box h2 { font-size: 32px; font-weight: 800; }

.download-box > p { margin-top: 12px; color: var(--text-dim); font-size: 15.5px; max-width: 620px; margin-left: auto; margin-right: auto; }

.download-actions {
  margin-top: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.btn-xl { padding: 18px 46px; font-size: 18px; border-radius: 16px; }

.download-note {
  margin-top: 22px;
  display: flex;
  justify-content: center;
  gap: 22px;
  flex-wrap: wrap;
  font-size: 13.5px;
  color: var(--text-faint);
}

.download-note span { display: inline-flex; align-items: center; gap: 6px; }

/* ---------- FAQ ---------- */
.faq-list { max-width: 820px; margin: 0 auto; }

.faq-item {
  margin-bottom: 14px;
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 14px;
  overflow: hidden;
}

.faq-item summary {
  cursor: pointer;
  padding: 20px 24px;
  font-size: 16px;
  font-weight: 600;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: "+";
  flex-shrink: 0;
  font-size: 22px;
  font-weight: 400;
  color: var(--primary-2);
  transition: transform 0.25s;
}

.faq-item[open] summary::after { transform: rotate(45deg); }

.faq-item .faq-body { padding: 0 24px 20px; font-size: 14.5px; color: var(--text-dim); }

/* ---------- 页脚 ---------- */
.footer {
  margin-top: 40px;
  padding: 48px 0 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 32px;
  flex-wrap: wrap;
}

.footer .f-brand { display: flex; align-items: center; gap: 10px; }

.footer .f-brand img { width: 34px; height: 34px; border-radius: 9px; }

.footer .f-brand b { font-size: 17px; }

.footer .f-brand p { font-size: 13px; color: var(--text-faint); margin-top: 2px; }

.footer-links { display: flex; gap: 28px; flex-wrap: wrap; }

.footer-links a { font-size: 14px; color: var(--text-dim); transition: color 0.2s; }

.footer-links a:hover { color: var(--text); }

.footer-bottom {
  margin-top: 36px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--text-faint);
}

/* ---------- 响应式 ---------- */
@media (max-width: 1024px) {
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .versions-grid { grid-template-columns: 1fr; }
  .app-info { grid-template-columns: repeat(2, 1fr); }
  .hero-inner { grid-template-columns: 1fr; gap: 48px; text-align: center; }
  .hero-desc, .hero-sub { margin-left: auto; margin-right: auto; }
  .hero-cta { justify-content: center; }
  .hero-meta { justify-content: center; }
  .hero-visual { margin-top: 12px; }
  .chip-1 { left: 4%; }
  .chip-2 { right: 4%; }
}

@media (max-width: 768px) {
  .nav-menu {
    position: absolute;
    top: var(--nav-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 14px 20px 20px;
    background: rgba(11, 10, 23, 0.97);
    border-bottom: 1px solid var(--card-border);
    display: none;
  }
  .nav-menu.open { display: flex; }
  .nav-menu a { padding: 12px 14px; font-size: 16px; }
  .nav-toggle { display: flex; }
  .nav-download { margin-left: auto; }
  .hero { padding: 56px 0 48px; }
  .hero h1 { font-size: 36px; }
  .hero-sub { font-size: 16px; }
  section { padding: 60px 0; }
  .section-title { font-size: 27px; }
  .feature-grid { grid-template-columns: 1fr; }
  .app-info { grid-template-columns: repeat(2, 1fr); }
  .download-box { padding: 44px 22px; }
  .btn-xl { width: 100%; justify-content: center; }
  .download-note { gap: 12px; flex-direction: column; }
  .footer-inner { flex-direction: column; }
}
