/* 拷贝漫画 APP 下载官网 — 移动优先 */
:root {
  --brand: #1a7bff;
  --brand-deep: #0d4fc4;
  --brand-soft: #e8f1ff;
  --ink: #152033;
  --muted: #5a6a82;
  --line: rgba(21, 32, 51, 0.1);
  --paper: #f7f9fc;
  --white: #ffffff;
  --ok: #12a36b;
  --warn: #d97706;
  --shadow: 0 16px 40px rgba(13, 79, 196, 0.14);
  --radius: 18px;
  --max: 1080px;
  --float-h: 72px;
  /* 国内本地字体栈，避免 Google Fonts 拖慢百度抓取与移动端首屏 */
  --font-display: "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei UI", "Microsoft YaHei", sans-serif;
  --font-body: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Segoe UI", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(26, 123, 255, 0.18), transparent 55%),
    radial-gradient(900px 500px at 100% 0%, rgba(13, 79, 196, 0.12), transparent 50%),
    linear-gradient(180deg, #eef4ff 0%, var(--paper) 28%, #f4f7fb 100%);
  padding-bottom: calc(var(--float-h) + 28px);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--brand-deep);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.container {
  width: min(100% - 32px, var(--max));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(14px);
  background: rgba(247, 249, 252, 0.86);
  border-bottom: 1px solid var(--line);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 64px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.02em;
}

.brand img {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  box-shadow: 0 6px 16px rgba(26, 123, 255, 0.28);
}

.brand span {
  font-size: 1.1rem;
}

.nav-links {
  display: none;
  gap: 18px;
  font-size: 0.95rem;
}

.nav-links a {
  color: var(--muted);
  text-decoration: none;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--brand-deep);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  padding: 0 16px;
  border-radius: 999px;
  background: var(--brand);
  color: var(--white) !important;
  font-weight: 600;
  text-decoration: none !important;
  box-shadow: 0 8px 20px rgba(26, 123, 255, 0.35);
}

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  padding: 36px 0 28px;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(26, 123, 255, 0.08), transparent 40%),
    repeating-linear-gradient(
      -12deg,
      transparent,
      transparent 18px,
      rgba(26, 123, 255, 0.03) 18px,
      rgba(26, 123, 255, 0.03) 19px
    );
  pointer-events: none;
}

.hero-grid {
  position: relative;
  display: grid;
  gap: 28px;
  align-items: center;
}

.hero-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
  animation: rise 0.7s ease both;
}

.hero-brand img {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  box-shadow: var(--shadow);
}

.hero-brand h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2rem, 8vw, 3.2rem);
  line-height: 1.1;
  letter-spacing: 0.01em;
}

.hero-brand small {
  display: block;
  margin-top: 4px;
  color: var(--brand-deep);
  font-size: 0.95rem;
  font-weight: 600;
}

.hero-lead {
  margin: 0 0 22px;
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 36em;
  animation: rise 0.8s 0.08s ease both;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  animation: rise 0.85s 0.14s ease both;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 50px;
  padding: 0 22px;
  border-radius: 14px;
  border: 0;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none !important;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-android {
  background: linear-gradient(135deg, #1a7bff, #0d4fc4);
  color: var(--white);
  box-shadow: 0 12px 28px rgba(26, 123, 255, 0.35);
}

.btn-ios {
  background: var(--white);
  color: var(--ink);
  border: 1px solid var(--line);
  box-shadow: 0 8px 20px rgba(21, 32, 51, 0.06);
}

.btn-ghost {
  background: transparent;
  color: var(--brand-deep);
  border: 1px solid rgba(26, 123, 255, 0.28);
}

.hero-visual {
  position: relative;
  min-height: 280px;
  display: grid;
  place-items: center;
  animation: floaty 5s ease-in-out infinite;
}

.phone {
  width: min(240px, 70vw);
  aspect-ratio: 9 / 18.5;
  border-radius: 28px;
  background: linear-gradient(180deg, #1a2a44, #0f1726);
  padding: 10px;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.phone::after {
  content: "";
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: 72px;
  height: 10px;
  border-radius: 999px;
  background: #0a101a;
  z-index: 2;
}

.phone-screen {
  height: 100%;
  border-radius: 20px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(26, 123, 255, 0.25), transparent 40%),
    #101828;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: #fff;
  text-align: center;
  padding: 24px 16px;
}

.phone-screen img {
  width: 64px;
  height: 64px;
  border-radius: 16px;
}

.phone-screen strong {
  font-family: var(--font-display);
  font-size: 1.15rem;
}

.phone-screen span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.85rem;
}

.blob {
  position: absolute;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(26, 123, 255, 0.35), transparent 70%);
  filter: blur(8px);
  z-index: -1;
}

.blob-1 { top: 10%; left: 8%; animation: pulse 4s ease-in-out infinite; }
.blob-2 { bottom: 8%; right: 10%; animation: pulse 5s 0.5s ease-in-out infinite; }

/* Sections */
.section {
  padding: 48px 0;
}

.section-head {
  margin-bottom: 22px;
}

.section-head h2 {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 4vw, 2rem);
  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: 14px;
  align-items: start;
  padding: 16px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
}

.feature-ico {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--brand-soft);
  color: var(--brand-deep);
  font-weight: 800;
  font-family: var(--font-display);
}

.feature h3 {
  margin: 0 0 4px;
  font-size: 1.05rem;
}

.feature p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.shots {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.shot {
  border-radius: 16px;
  overflow: hidden;
  background: #dbe7ff;
  border: 1px solid var(--line);
  aspect-ratio: 9 / 16;
  position: relative;
}

.shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.shot-fallback {
  height: 100%;
  display: grid;
  place-items: center;
  padding: 16px;
  text-align: center;
  color: var(--brand-deep);
  background:
    linear-gradient(160deg, #d7e7ff, #f3f7ff 60%, #e8f0ff);
  font-weight: 600;
}

.panel {
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
}

.panel + .panel {
  margin-top: 14px;
}

.panel h3 {
  margin: 0 0 10px;
  font-size: 1.1rem;
}

.panel ol,
.panel ul {
  margin: 0;
  padding-left: 1.2em;
  color: var(--muted);
}

.panel li + li {
  margin-top: 6px;
}

.keyword-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.keyword-cloud a {
  display: inline-flex;
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--white);
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
  text-decoration: none;
}

.keyword-cloud a:hover {
  color: var(--brand-deep);
  border-color: rgba(26, 123, 255, 0.35);
}

.notice {
  margin-top: 18px;
  padding: 14px 16px;
  border-radius: 14px;
  background: #fff7e8;
  border: 1px solid rgba(217, 119, 6, 0.28);
  color: #8a4b00;
  font-size: 0.95rem;
}

/* Footer */
.site-footer {
  margin-top: 20px;
  padding: 36px 0 24px;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.4), rgba(232, 241, 255, 0.7));
}

.disclaimer {
  margin: 0 0 16px;
  padding: 16px 18px;
  border-radius: 14px;
  background: #fff;
  border: 2px solid rgba(217, 119, 6, 0.45);
  box-shadow: 0 8px 24px rgba(217, 119, 6, 0.1);
  color: #7a3e00;
  font-weight: 700;
  text-align: center;
  font-size: clamp(0.95rem, 3.5vw, 1.05rem);
  line-height: 1.5;
}

.stats-bar {
  text-align: center;
  margin: 0 0 14px;
  color: var(--ink);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.stats-bar span {
  color: var(--brand-deep);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 16px;
  margin-bottom: 12px;
  font-size: 0.9rem;
}

.footer-links a {
  color: var(--muted);
  text-decoration: none;
}

.footer-meta {
  text-align: center;
  color: var(--muted);
  font-size: 0.85rem;
}

.footer-meta p {
  margin: 4px 0;
}

.page-meta {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.page-meta time {
  color: var(--brand-deep);
  font-weight: 600;
}

.seo-block {
  margin-top: 18px;
}

.seo-block h2 {
  margin: 1.35em 0 0.55em;
  font-size: 1.2rem;
}

.seo-block h2:first-child {
  margin-top: 0;
}

.seo-block p {
  margin: 0 0 0.85em;
  color: var(--muted);
}

.related-box {
  margin-top: 18px;
  padding: 16px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid var(--line);
}

.related-box h2 {
  margin: 0 0 10px;
  font-size: 1.05rem;
}

.sitemap-list {
  display: grid;
  gap: 10px;
}

.sitemap-list a {
  display: block;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid var(--line);
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
}

.sitemap-list a span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 400;
}

.sitemap-list a:hover {
  border-color: rgba(26, 123, 255, 0.35);
  color: var(--brand-deep);
}

/* Floating download bar */
.float-dl {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 50;
  transform: translateY(110%);
  transition: transform 0.28s ease;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--line);
  box-shadow: 0 -10px 30px rgba(21, 32, 51, 0.08);
}

.float-dl.show {
  transform: translateY(0);
}

.float-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  width: min(100%, var(--max));
  margin-inline: auto;
}

.float-inner .btn {
  min-height: 46px;
  padding: 0 12px;
  font-size: 0.95rem;
}

/* Article pages */
.page-hero {
  padding: 28px 0 8px;
}

.page-hero h1 {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 5vw, 2.4rem);
  line-height: 1.2;
}

.page-hero p {
  margin: 0;
  color: var(--muted);
}

.breadcrumbs {
  margin-bottom: 12px;
  font-size: 0.9rem;
  color: var(--muted);
}

.breadcrumbs a {
  color: var(--brand-deep);
  text-decoration: none;
}

.prose {
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
}

.prose h2 {
  margin: 1.4em 0 0.5em;
  font-size: 1.25rem;
}

.prose h2:first-child {
  margin-top: 0;
}

.prose p,
.prose li {
  color: var(--muted);
}

.prose ul,
.prose ol {
  padding-left: 1.2em;
}

.content-cta {
  margin: 22px 0 0;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@keyframes pulse {
  0%, 100% { opacity: 0.55; transform: scale(1); }
  50% { opacity: 0.9; transform: scale(1.08); }
}

@media (min-width: 768px) {
  .nav-links {
    display: flex;
  }

  .hero {
    padding: 56px 0 40px;
  }

  .hero-grid {
    grid-template-columns: 1.15fr 0.85fr;
    gap: 40px;
  }

  .feature-list {
    grid-template-columns: repeat(2, 1fr);
  }

  .shots {
    grid-template-columns: repeat(4, 1fr);
  }

  .float-inner {
    grid-template-columns: 220px 220px;
    justify-content: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-brand,
  .hero-lead,
  .cta-row,
  .hero-visual,
  .blob-1,
  .blob-2 {
    animation: none !important;
  }
}
