/* 漫蛙漫画 APP 下载站 - 原创设计 */
:root {
  --bg: #07140c;
  --bg-2: #0d2216;
  --surface: #122a1c;
  --line: rgba(122, 193, 67, 0.22);
  --text: #e8f5df;
  --muted: #9bb89a;
  --brand: #7ac143;
  --brand-2: #b6f06a;
  --brand-deep: #3f8f1f;
  --accent: #ffe66d;
  --danger: #ff7a59;
  --radius: 18px;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
  --font-display: "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei", "Heiti SC", sans-serif;
  --font-body: "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  --max: 1100px;
  --float-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background:
    radial-gradient(900px 500px at 10% -10%, rgba(122, 193, 67, 0.28), transparent 60%),
    radial-gradient(700px 420px at 95% 8%, rgba(182, 240, 106, 0.12), transparent 55%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 45%, #08150e 100%);
  min-height: 100vh;
  line-height: 1.7;
  padding-bottom: calc(var(--float-h) + 24px);
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
a { color: var(--brand-2); text-decoration: none; }
a:hover { color: #fff; }
.container { width: min(100% - 32px, var(--max)); margin: 0 auto; }

/* lily pad pattern */
.pad-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.35;
  background-image:
    radial-gradient(circle at 12% 78%, rgba(122, 193, 67, 0.15) 0 42px, transparent 43px),
    radial-gradient(circle at 88% 62%, rgba(122, 193, 67, 0.1) 0 56px, transparent 57px),
    radial-gradient(circle at 70% 92%, rgba(182, 240, 106, 0.08) 0 34px, transparent 35px);
}

.site-header, .hero, .section, .site-footer, .float-bar { position: relative; z-index: 1; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(7, 20, 12, 0.78);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  gap: 16px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.35rem;
  letter-spacing: 0.04em;
}
.brand img {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  object-fit: cover;
  flex-shrink: 0;
  box-shadow: 0 0 0 2px rgba(122, 193, 67, 0.35);
}
.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  justify-content: flex-end;
}
.nav-links a {
  color: var(--muted);
  font-size: 0.92rem;
}
.nav-links a:hover,
.nav-links a.active { color: var(--brand-2); }

/* Hero - one composition, brand first */
.hero {
  padding: 48px 0 28px;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 36px;
  align-items: center;
  min-height: min(72vh, 640px);
}
.hero-brand {
  font-family: var(--font-display);
  font-size: clamp(3.2rem, 9vw, 5.6rem);
  line-height: 0.95;
  margin: 0 0 12px;
  letter-spacing: 0.06em;
  background: linear-gradient(120deg, #fff 10%, var(--brand-2) 55%, var(--brand) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: rise 0.9s ease both;
}
.hero-title {
  margin: 0 0 14px;
  font-size: clamp(1.15rem, 2.6vw, 1.55rem);
  font-weight: 600;
  color: var(--text);
  animation: rise 1s ease 0.08s both;
}
.hero-desc {
  margin: 0 0 28px;
  color: var(--muted);
  max-width: 36em;
  font-size: 1.02rem;
  animation: rise 1.05s ease 0.14s both;
}
.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  animation: rise 1.1s ease 0.2s both;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.btn:hover { transform: translateY(-2px); color: #fff; }
.btn-primary {
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-deep) 100%);
  color: #041007;
  box-shadow: 0 10px 28px rgba(122, 193, 67, 0.35);
}
.btn-primary:hover { color: #041007; box-shadow: 0 14px 34px rgba(122, 193, 67, 0.45); }
.btn-ios {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.18);
  color: #fff;
}
.btn-ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--muted);
}

.hero-visual {
  position: relative;
  display: grid;
  place-items: center;
  animation: floaty 5s ease-in-out infinite;
}
.hero-glow {
  position: absolute;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(122, 193, 67, 0.45), transparent 70%);
  filter: blur(8px);
}
.hero-logo {
  position: relative;
  width: min(72%, 280px);
  height: auto;
  aspect-ratio: 1;
  object-fit: contain;
  border-radius: 36px;
  box-shadow: var(--shadow), 0 0 0 8px rgba(122, 193, 67, 0.15);
}

@keyframes rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}
@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

.section { padding: 56px 0; }
.section-head {
  margin-bottom: 28px;
}
.section-head h2 {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3.5vw, 2.1rem);
  letter-spacing: 0.03em;
}
.section-head p {
  margin: 0;
  color: var(--muted);
  max-width: 40em;
}

.shots {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.shot {
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow);
  transition: transform 0.25s ease;
}
.shot:hover { transform: translateY(-6px); }
.shot img {
  width: 100%;
  height: auto;
  aspect-ratio: 9 / 16;
  object-fit: contain;
  object-position: top center;
  background: #0a1610;
}

.feature-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.feature {
  padding: 22px;
  border-radius: var(--radius);
  background: linear-gradient(160deg, rgba(18, 42, 28, 0.9), rgba(10, 24, 16, 0.9));
  border: 1px solid var(--line);
}
.feature h3 {
  margin: 0 0 8px;
  font-size: 1.08rem;
  color: var(--brand-2);
}
.feature p { margin: 0; color: var(--muted); font-size: 0.95rem; }

.steps {
  counter-reset: step;
  display: grid;
  gap: 14px;
}
.step {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 14px;
  align-items: start;
  padding: 18px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
}
.step::before {
  counter-increment: step;
  content: counter(step);
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: rgba(122, 193, 67, 0.15);
  color: var(--brand-2);
  font-weight: 800;
  font-size: 1.1rem;
}
.step h3 { margin: 0 0 4px; font-size: 1.05rem; }
.step p { margin: 0; color: var(--muted); }

.seo-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.seo-links a {
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(122, 193, 67, 0.08);
  color: var(--text);
  font-size: 0.92rem;
}
.seo-links a:hover {
  border-color: var(--brand);
  background: rgba(122, 193, 67, 0.18);
}

.page-hero {
  padding: 40px 0 10px;
}
.page-hero h1 {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
}
.page-hero p { margin: 0; color: var(--muted); max-width: 42em; }
.content-block {
  padding: 20px 0 40px;
}
.content-block h2 {
  margin: 28px 0 10px;
  font-size: 1.25rem;
  color: var(--brand-2);
}
.content-block p, .content-block li { color: var(--muted); }
.content-block ul { padding-left: 1.2em; }
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 8px;
  margin: 0 0 16px;
  padding: 0;
  list-style: none;
  font-size: 0.86rem;
  color: var(--muted);
}
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--brand-2); }
.breadcrumb li:not(:last-child)::after {
  content: "/";
  margin-left: 8px;
  opacity: 0.5;
}
.meta-line {
  margin: 8px 0 0;
  font-size: 0.85rem;
  color: #6f8a72;
}
.seo-article p { margin: 0 0 12px; }
.seo-article strong { color: var(--text); font-weight: 700; }
.map-list { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.map-list a {
  display: block;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--text);
  background: rgba(255,255,255,0.03);
}
.map-list a:hover { border-color: var(--brand); color: var(--brand-2); }
.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 14px;
  margin: 0 0 14px;
  font-size: 0.88rem;
}

.site-footer {
  margin-top: 20px;
  padding: 36px 0 28px;
  border-top: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.28);
}
.disclaimer {
  margin: 0 0 16px;
  padding: 16px 18px;
  border-radius: 14px;
  border: 1px solid rgba(255, 122, 89, 0.45);
  background: rgba(255, 122, 89, 0.12);
  color: #ffd2c6;
  font-weight: 700;
  text-align: center;
  font-size: 0.98rem;
  letter-spacing: 0.02em;
}
.stats-line {
  text-align: center;
  color: var(--muted);
  margin: 0 0 12px;
  font-size: 0.95rem;
}
.stats-line strong { color: var(--brand-2); font-weight: 700; }
.footer-meta {
  text-align: center;
  color: #6f8a72;
  font-size: 0.85rem;
}
.footer-meta a { color: #8fb58f; }

/* Floating download bar - mobile first */
.float-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 100;
  transform: translateY(110%);
  transition: transform 0.28s ease;
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  background: rgba(7, 20, 12, 0.92);
  backdrop-filter: blur(16px);
  border-top: 1px solid var(--line);
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.35);
}
.float-bar.show { transform: translateY(0); }
.float-inner {
  width: min(100%, var(--max));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.float-bar .btn {
  min-height: 46px;
  width: 100%;
  font-size: 0.95rem;
}

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; gap: 28px; min-height: auto; }
  .hero-visual { order: -1; }
  .hero-logo { width: min(48vw, 200px); max-width: 200px; }
  .shots {
    grid-template-columns: 1fr;
    max-width: 360px;
    margin: 0 auto;
  }
  .feature-list { grid-template-columns: 1fr; }
  .shot img {
    aspect-ratio: auto;
    object-fit: contain;
    max-height: none;
  }
  .nav-links { display: none; }
  .hero { padding-top: 28px; }
}

@media (min-width: 561px) and (max-width: 860px) {
  .shots {
    grid-template-columns: repeat(3, 1fr);
    max-width: none;
  }
}

@media (min-width: 861px) {
  .shots { grid-template-columns: repeat(3, 1fr); }
}
