/* 拷贝漫画 APP 下载站 — 移动优先 */
:root {
  --brand: #2f6fed;
  --brand-dark: #1e4fc4;
  --brand-soft: #e8f0ff;
  --ink: #152238;
  --muted: #5a6b85;
  --line: #d9e3f5;
  --bg: #f5f8ff;
  --surface: #ffffff;
  --ok: #16a34a;
  --ios: #111827;
  --shadow: 0 12px 40px rgba(30, 79, 196, 0.12);
  --radius: 18px;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --float-h: 72px;
  --font: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  --display: "HarmonyOS Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(47, 111, 237, 0.18), transparent 60%),
    radial-gradient(900px 500px at -10% 20%, rgba(47, 111, 237, 0.1), transparent 55%),
    linear-gradient(180deg, #eef4ff 0%, var(--bg) 28%, #f7f9fc 100%);
  line-height: 1.65;
  padding-bottom: calc(var(--float-h) + var(--safe-bottom) + 16px);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--brand);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.container {
  width: min(1080px, calc(100% - 32px));
  margin: 0 auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(245, 248, 255, 0.86);
  border-bottom: 1px solid rgba(217, 227, 245, 0.8);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 56px;
  gap: 12px;
  position: relative;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
  flex-shrink: 0;
  z-index: 2;
}

.brand:hover {
  text-decoration: none;
}

.brand img {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(47, 111, 237, 0.25);
}

.brand span {
  font-family: var(--display);
  font-size: 1.05rem;
  letter-spacing: 0.02em;
}

/* 移动端汉堡按钮 */
.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  margin-left: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
  padding: 0;
  z-index: 2;
  -webkit-tap-highlight-color: transparent;
}

.nav-toggle:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

.nav-toggle-bars {
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  position: relative;
  transition: background 0.2s ease;
}

.nav-toggle-bars::before,
.nav-toggle-bars::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform 0.2s ease, top 0.2s ease;
}

.nav-toggle-bars::before {
  top: -6px;
}

.nav-toggle-bars::after {
  top: 6px;
}

.nav-open .nav-toggle-bars {
  background: transparent;
}

.nav-open .nav-toggle-bars::before {
  top: 0;
  transform: rotate(45deg);
}

.nav-open .nav-toggle-bars::after {
  top: 0;
  transform: rotate(-45deg);
}

.nav-links {
  display: none;
  flex-direction: column;
  gap: 4px;
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  padding: 10px;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 16px 40px rgba(21, 34, 56, 0.12);
  z-index: 60;
}

.nav-open .nav-links {
  display: flex;
}

.nav-links a {
  display: block;
  color: var(--muted);
  font-size: 0.95rem;
  padding: 12px 14px;
  border-radius: 12px;
  text-decoration: none;
  line-height: 1.3;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--brand-dark);
  background: var(--brand-soft);
  text-decoration: none;
}

@media (min-width: 768px) {
  .nav-toggle {
    display: none;
  }

  .nav-links,
  .nav-open .nav-links {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    position: static;
    gap: 6px;
    padding: 0;
    background: transparent;
    border: none;
    border-radius: 0;
    box-shadow: none;
  }

  .nav-links a {
    display: inline-flex;
    font-size: 0.86rem;
    padding: 6px 10px;
    border-radius: 999px;
  }
}

/* Hero */
.hero {
  padding: 28px 0 18px;
}

.hero-grid {
  display: grid;
  gap: 28px;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand-dark);
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 14px;
}

.hero h1 {
  margin: 0 0 12px;
  font-family: var(--display);
  font-size: clamp(1.75rem, 5.5vw, 2.6rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.hero-lead {
  margin: 0 0 22px;
  color: var(--muted);
  font-size: 1.02rem;
  max-width: 36em;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 14px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 14px;
  border: none;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none !important;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
  font-family: inherit;
}

.btn:active {
  transform: scale(0.98);
}

.btn-android {
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  color: #fff;
  box-shadow: 0 10px 24px rgba(47, 111, 237, 0.35);
}

.btn-android:hover {
  box-shadow: 0 14px 30px rgba(47, 111, 237, 0.42);
}

.btn-ios {
  background: var(--ios);
  color: #fff;
  box-shadow: 0 10px 24px rgba(17, 24, 39, 0.22);
}

.btn-ghost {
  background: var(--surface);
  color: var(--brand-dark);
  border: 1px solid var(--line);
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  color: var(--muted);
  font-size: 0.88rem;
}

.hero-meta strong {
  color: var(--ink);
  font-weight: 600;
}

.phone-showcase {
  display: flex;
  justify-content: center;
  gap: 14px;
  perspective: 900px;
}

.phone {
  width: min(220px, 42vw);
  aspect-ratio: 9 / 19;
  border-radius: 28px;
  padding: 10px;
  background: linear-gradient(160deg, #1c2a44, #0f172a);
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
  animation: floatY 5.5s ease-in-out infinite;
}

.phone:nth-child(2) {
  display: none;
  animation-delay: -1.8s;
}

.phone-screen {
  height: 100%;
  border-radius: 20px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent 30%),
    linear-gradient(160deg, #2f6fed, #6ea0ff 45%, #dbe8ff 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: #fff;
  text-align: center;
  padding: 18px;
}

.phone-screen img {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.phone-screen h3 {
  margin: 0;
  font-size: 1rem;
}

.phone-screen p {
  margin: 0;
  font-size: 0.78rem;
  opacity: 0.9;
}

@keyframes floatY {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

/* Sections */
.section {
  padding: 36px 0;
}

.section-head {
  margin-bottom: 20px;
}

.section-head h2 {
  margin: 0 0 8px;
  font-family: var(--display);
  font-size: clamp(1.35rem, 3.5vw, 1.8rem);
  line-height: 1.25;
}

.section-head p {
  margin: 0;
  color: var(--muted);
}

.feature-list {
  display: grid;
  gap: 14px;
}

.feature {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 12px;
  align-items: start;
  padding: 16px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(217, 227, 245, 0.9);
  border-radius: var(--radius);
}

.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--brand-soft);
  color: var(--brand-dark);
  font-weight: 800;
  font-size: 0.95rem;
}

.feature h3 {
  margin: 0 0 4px;
  font-size: 1.02rem;
}

.feature p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.shot-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.shot {
  margin: 0;
  border-radius: 16px;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: 0 8px 24px rgba(21, 34, 56, 0.06);
}

.shot img {
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  background: linear-gradient(160deg, var(--brand-soft), #fff);
}

.shot figcaption {
  padding: 10px 12px;
  font-size: 0.84rem;
  color: var(--muted);
}

.steps {
  counter-reset: step;
  display: grid;
  gap: 12px;
}

.step {
  counter-increment: step;
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 12px;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.8);
  border-radius: 14px;
  border: 1px solid var(--line);
}

.step::before {
  content: counter(step);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--brand);
  color: #fff;
  font-weight: 700;
}

.step h3 {
  margin: 0 0 4px;
  font-size: 1rem;
}

.step p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.content-block {
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
}

.content-block h2,
.content-block h3 {
  font-family: var(--display);
}

.content-block p,
.content-block li {
  color: var(--muted);
}

.content-block ul,
.content-block ol {
  padding-left: 1.2em;
}

.seo-article h2 {
  margin-top: 0;
}

.seo-article h3 {
  margin: 1.1em 0 0.4em;
  font-size: 1.05rem;
}

.seo-article p {
  margin: 0 0 0.85em;
}

.related-box {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px dashed var(--line);
}

.related-box h3 {
  margin: 0 0 10px;
  font-size: 1rem;
}

.keyword-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.keyword-cloud a {
  display: inline-flex;
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--ink);
  font-size: 0.86rem;
  text-decoration: none;
}

.keyword-cloud a:hover {
  border-color: var(--brand);
  color: var(--brand-dark);
  background: var(--brand-soft);
}

.notice {
  margin-top: 18px;
  padding: 14px 16px;
  border-radius: 14px;
  background: #fff7ed;
  border: 1px solid #fed7aa;
  color: #9a3412;
  font-size: 0.9rem;
}

/* Footer */
.site-footer {
  margin-top: 28px;
  padding: 28px 0 20px;
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.55);
}

.disclaimer {
  padding: 14px 16px;
  border-radius: 14px;
  background: #fff1f2;
  border: 2px solid #fb7185;
  color: #9f1239;
  font-weight: 700;
  text-align: center;
  font-size: 0.95rem;
  margin-bottom: 16px;
  line-height: 1.5;
}

.stats-line {
  text-align: center;
  color: var(--ink);
  font-size: 0.95rem;
  margin-bottom: 12px;
}

.stats-line span {
  white-space: nowrap;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 14px;
  margin-bottom: 12px;
}

.footer-links a {
  color: var(--muted);
  font-size: 0.86rem;
}

.copyright {
  text-align: center;
  color: var(--muted);
  font-size: 0.82rem;
}

/* Floating download bar */
.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 + var(--safe-bottom));
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--line);
  box-shadow: 0 -8px 30px rgba(21, 34, 56, 0.1);
}

.float-bar.show {
  transform: translateY(0);
}

.float-inner {
  width: min(1080px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.float-bar .btn {
  min-height: 46px;
  font-size: 0.95rem;
}

/* Breadcrumb */
.breadcrumb {
  padding: 14px 0 0;
  font-size: 0.86rem;
  color: var(--muted);
}

.breadcrumb a {
  color: var(--muted);
}

.breadcrumb span {
  color: var(--ink);
}

/* FAQ */
.faq details {
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px 16px;
  margin-bottom: 10px;
}

.faq summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--ink);
}

.faq details p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

@media (min-width: 768px) {
  .hero {
    padding: 48px 0 28px;
  }

  .hero-grid {
    grid-template-columns: 1.15fr 0.85fr;
  }

  .phone:nth-child(2) {
    display: block;
    margin-top: 28px;
  }

  .feature-list {
    grid-template-columns: repeat(2, 1fr);
  }

  .shot-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .steps {
    grid-template-columns: repeat(3, 1fr);
  }

  .float-inner {
    max-width: 520px;
  }
}

@media (min-width: 1024px) {
  .nav-links a {
    font-size: 0.9rem;
  }
}
