/* 拷贝漫画 APP 下载官网 — kaobeiapp.com.cn */
:root {
  --ink: #0c1222;
  --ink-soft: #1c2740;
  --paper: #f3f6fb;
  --paper-2: #e7eef8;
  --accent: #ff4b2b;
  --accent-2: #ff8a3d;
  --mint: #1fbf9a;
  --text: #1a2336;
  --muted: #5b6780;
  --line: rgba(12, 18, 34, 0.08);
  --white: #ffffff;
  --shadow: 0 18px 50px rgba(12, 18, 34, 0.12);
  --radius: 18px;
  --max: 1080px;
  --float-h: 72px;
  --font-display: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei UI", "Microsoft YaHei", "Source Han Sans SC", sans-serif;
  --font-body: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei UI", "Microsoft YaHei", "Noto Sans SC", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(255, 75, 43, 0.12), transparent 55%),
    radial-gradient(900px 500px at 100% 0%, rgba(31, 191, 154, 0.14), transparent 50%),
    linear-gradient(180deg, var(--paper) 0%, var(--paper-2) 100%);
  background-attachment: fixed;
  line-height: 1.7;
  padding-bottom: calc(var(--float-h) + 28px);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

.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(243, 246, 251, 0.92);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--ink);
}

.brand img {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  object-fit: cover;
  box-shadow: 0 8px 20px rgba(26, 159, 255, 0.35);
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  font-size: 0.92rem;
  color: var(--muted);
}

.nav a:hover {
  color: var(--accent);
}

/* Home: transparent header over cinematic hero */
body.home .site-header {
  position: fixed;
  left: 0;
  right: 0;
  background: transparent;
  border-bottom-color: transparent;
  backdrop-filter: none;
}

body.home .site-header .brand {
  color: rgba(255, 255, 255, 0.95);
}

body.home .site-header .nav {
  color: rgba(255, 255, 255, 0.72);
}

body.home .site-header .nav a:hover {
  color: #fff;
}

body.home .site-header.is-solid {
  backdrop-filter: blur(14px);
  background: rgba(243, 246, 251, 0.94);
  border-bottom: 1px solid var(--line);
}

body.home .site-header.is-solid .brand {
  color: var(--ink);
}

body.home .site-header.is-solid .nav {
  color: var(--muted);
}

body.home .site-header.is-solid .nav a:hover {
  color: var(--accent);
}

/* Hero — full-bleed, calm & balanced */
.hero {
  position: relative;
  min-height: min(100svh, 820px);
  min-height: min(100vh, 820px);
  display: grid;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
  color: #fff;
  background: #06101f;
}

.hero-atmosphere {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 70% 55% at 78% 28%, rgba(30, 170, 255, 0.28), transparent 58%),
    radial-gradient(ellipse 55% 45% at 12% 88%, rgba(255, 75, 43, 0.14), transparent 55%),
    linear-gradient(165deg, #04101f 0%, #0a1a33 48%, #0c2340 100%);
}

.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(48px);
  opacity: 0.45;
  animation: orbPulse 10s ease-in-out infinite alternate;
}

.hero-orb-a {
  width: min(42vw, 380px);
  height: min(42vw, 380px);
  top: -6%;
  right: -4%;
  background: radial-gradient(circle, rgba(56, 189, 255, 0.55), transparent 70%);
}

.hero-orb-b {
  width: min(34vw, 280px);
  height: min(34vw, 280px);
  bottom: 10%;
  left: -6%;
  background: radial-gradient(circle, rgba(255, 90, 50, 0.32), transparent 72%);
  animation-delay: -2.5s;
}

.hero-beam {
  position: absolute;
  inset: -20% -10%;
  background:
    repeating-linear-gradient(
      115deg,
      transparent 0 34px,
      rgba(255, 255, 255, 0.018) 34px 35px
    );
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.55), transparent 80%);
  animation: beamDrift 28s linear infinite;
}

.hero-watermark {
  position: absolute;
  width: min(48vw, 420px);
  height: min(48vw, 420px);
  right: 2%;
  top: 52%;
  transform: translateY(-50%);
  object-fit: cover;
  border-radius: 28%;
  opacity: 0.08;
  filter: saturate(1.1);
  animation: markFloat 12s ease-in-out infinite alternate;
  pointer-events: none;
}

@keyframes orbPulse {
  from { transform: scale(1) translate(0, 0); opacity: 0.35; }
  to { transform: scale(1.08) translate(-1%, 2%); opacity: 0.55; }
}

@keyframes beamDrift {
  from { transform: translateX(0); }
  to { transform: translateX(-28px); }
}

@keyframes markFloat {
  from { transform: translateY(-52%) rotate(-2deg); }
  to { transform: translateY(-48%) rotate(2deg); }
}

.hero-stage {
  display: grid;
  align-items: center;
  gap: 48px;
  padding: 120px 0 88px;
  width: min(100% - 40px, var(--max));
  margin-inline: auto;
}

@media (min-width: 900px) {
  .hero-stage {
    grid-template-columns: 1fr auto;
    gap: 64px;
    padding: 132px 0 96px;
  }
}

.hero-copy {
  position: relative;
  z-index: 1;
  max-width: 22rem;
}

.hero-mark {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  object-fit: cover;
  margin-bottom: 28px;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.16),
    0 12px 32px rgba(30, 170, 255, 0.28);
  animation: riseIn 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.hero-kicker {
  margin: 0 0 12px;
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  color: rgba(186, 220, 255, 0.78);
  animation: riseIn 0.75s cubic-bezier(0.22, 1, 0.36, 1) 0.04s both;
}

.hero-brand {
  font-family: var(--font-display);
  font-size: clamp(2.35rem, 5.5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.15;
  margin: 0 0 14px;
  letter-spacing: 0.06em;
  text-shadow: 0 12px 40px rgba(0, 0, 0, 0.28);
  animation: riseIn 0.85s cubic-bezier(0.22, 1, 0.36, 1) 0.08s both;
}

.hero-lead {
  margin: 0 0 32px;
  max-width: 18em;
  font-size: 1.05rem;
  font-weight: 400;
  line-height: 1.7;
  color: rgba(220, 232, 245, 0.82);
  animation: riseIn 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.12s both;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  animation: riseIn 1s cubic-bezier(0.22, 1, 0.36, 1) 0.16s both;
}

.hero-device {
  position: relative;
  justify-self: center;
  width: min(220px, 52vw);
  border-radius: 30px;
  padding: 9px;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.04));
  box-shadow:
    0 24px 64px rgba(0, 0, 0, 0.38),
    inset 0 0 0 1px rgba(255, 255, 255, 0.16);
  animation: riseIn 1.05s cubic-bezier(0.22, 1, 0.36, 1) 0.2s both, deviceFloat 6s ease-in-out 1.1s infinite;
}

.hero-device-glow {
  position: absolute;
  inset: 22% -12% auto;
  height: 42%;
  background: radial-gradient(circle, rgba(56, 189, 255, 0.4), transparent 70%);
  filter: blur(26px);
  z-index: -1;
}

.hero-device img {
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  border-radius: 22px;
  background: #0a1528;
}

@keyframes deviceFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.hero-scroll {
  position: absolute;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%);
  width: 20px;
  height: 30px;
  border: 1.5px solid rgba(255, 255, 255, 0.28);
  border-radius: 10px;
  opacity: 0.55;
}

.hero-scroll span {
  display: block;
  width: 3px;
  height: 6px;
  margin: 6px auto 0;
  border-radius: 2px;
  background: #fff;
  animation: scrollDot 1.6s ease-in-out infinite;
}

@keyframes scrollDot {
  0% { opacity: 1; transform: translateY(0); }
  100% { opacity: 0; transform: translateY(10px); }
}

@keyframes riseIn {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 20px;
  border-radius: 12px;
  border: 0;
  font: inherit;
  font-weight: 700;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-hero {
  min-height: 48px;
  min-width: 124px;
  padding: 0 22px;
  font-size: 0.98rem;
}

.btn-primary {
  background: linear-gradient(135deg, #ff4b2b 0%, #ff7a3d 100%);
  color: var(--white);
  box-shadow: 0 10px 28px rgba(255, 75, 43, 0.34);
}

.btn-primary:hover {
  box-shadow: 0 14px 34px rgba(255, 75, 43, 0.42);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.14);
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(8px);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.42);
  backdrop-filter: blur(10px);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.7);
}

.btn-dark {
  background: var(--ink);
  color: var(--white);
}

.btn-outline {
  background: transparent;
  color: var(--ink);
  border: 1px solid rgba(12, 18, 34, 0.18);
}

.btn-sm {
  min-height: 42px;
  padding: 0 16px;
  font-size: 0.95rem;
}

@media (max-width: 899px) {
  .hero {
    min-height: min(100svh, 760px);
    min-height: min(100vh, 760px);
  }

  .hero-device {
    display: none;
  }

  .hero-stage {
    padding: 110px 0 80px;
  }

  .hero-copy {
    max-width: 20rem;
    margin-inline: auto;
    text-align: left;
  }

  .hero-lead {
    margin-bottom: 28px;
  }

  .hero-watermark {
    right: 50%;
    top: 42%;
    transform: translate(50%, -50%);
    width: min(70vw, 320px);
    height: min(70vw, 320px);
    opacity: 0.1;
    animation: none;
  }
}

/* Sections */
.section {
  padding: 64px 0;
}

.section-head {
  margin-bottom: 28px;
}

.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 4.5vw, 2.3rem);
  margin: 0 0 8px;
  color: var(--ink);
  letter-spacing: 0.03em;
}

.section-head p {
  margin: 0;
  color: var(--muted);
  max-width: 40em;
}

.feature-grid {
  display: grid;
  gap: 18px;
}

@media (min-width: 720px) {
  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.feature {
  padding: 8px 0 18px;
  border-bottom: 1px solid var(--line);
}

.feature h3 {
  margin: 0 0 6px;
  font-size: 1.15rem;
  color: var(--ink);
}

.feature p {
  margin: 0;
  color: var(--muted);
}

.steps {
  display: grid;
  gap: 20px;
  counter-reset: step;
}

@media (min-width: 800px) {
  .steps {
    grid-template-columns: repeat(3, 1fr);
  }
}

.step {
  position: relative;
  padding-top: 8px;
}

.step::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  display: block;
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--accent);
  margin-bottom: 8px;
  line-height: 1;
}

.step h3 {
  margin: 0 0 6px;
  font-size: 1.1rem;
}

.step p {
  margin: 0;
  color: var(--muted);
}

/* Gallery / phone showcase */
.showcase {
  display: grid;
  gap: 28px;
  align-items: center;
}

@media (min-width: 860px) {
  .showcase {
    grid-template-columns: 1.15fr 0.85fr;
    gap: 36px;
  }
}

.phone-frame {
  width: min(260px, 70vw);
  margin: 0 auto;
  border-radius: 36px;
  padding: 12px;
  background: linear-gradient(160deg, #222a3d, #0c1222);
  box-shadow: var(--shadow);
  animation: floatY 5s ease-in-out infinite;
}

@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.phone-frame img {
  border-radius: 26px;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  width: 100%;
  background: #111;
}

.shot-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

@media (min-width: 640px) {
  .shot-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
  }
}

.shot {
  margin: 0;
  border-radius: 16px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid var(--line);
  box-shadow: 0 8px 24px rgba(12, 18, 34, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.shot:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 32px rgba(12, 18, 34, 0.14);
}

.shot a {
  display: block;
  color: inherit;
}

.shot-media {
  position: relative;
  aspect-ratio: 9 / 16;
  background:
    linear-gradient(145deg, #1c2740, #ff4b2b55);
  overflow: hidden;
}

.shot-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.shot figcaption {
  padding: 10px 10px 12px;
  text-align: center;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--ink);
}

.shot-hint {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.shot-hint code {
  font-size: 0.85em;
  padding: 1px 6px;
  border-radius: 6px;
  background: rgba(12, 18, 34, 0.06);
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(12, 18, 34, 0.84);
  backdrop-filter: blur(6px);
}

.lightbox.open {
  display: flex;
}

.lightbox img {
  max-width: min(420px, 92vw);
  max-height: 86vh;
  border-radius: 18px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
}

.lightbox-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  font-size: 1.4rem;
  cursor: pointer;
}

/* Keyword chips / long-tail nav */
.keyword-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.keyword-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 0.92rem;
  transition: border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.keyword-nav a:hover,
.keyword-nav a.active {
  border-color: rgba(255, 75, 43, 0.45);
  color: var(--accent);
  transform: translateY(-1px);
}

/* FAQ */
.faq details {
  border-bottom: 1px solid var(--line);
  padding: 14px 0;
}

.faq summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--ink);
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq details[open] summary {
  color: var(--accent);
}

.faq details p {
  margin: 10px 0 0;
  color: var(--muted);
}

/* Table */
.info-table {
  width: 100%;
  border-collapse: collapse;
  background: rgba(255, 255, 255, 0.55);
  border-radius: var(--radius);
  overflow: hidden;
}

.info-table th,
.info-table td {
  text-align: left;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  font-size: 0.95rem;
}

.info-table th {
  width: 36%;
  color: var(--muted);
  font-weight: 600;
  background: rgba(255, 255, 255, 0.35);
}

/* Disclaimer + footer */
.disclaimer {
  margin: 20px 0;
  padding: 16px 18px;
  border-left: 4px solid var(--accent);
  background: rgba(255, 75, 43, 0.08);
  color: var(--ink);
  font-weight: 700;
  font-size: 0.98rem;
}

.site-footer {
  padding: 36px 0 28px;
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.45);
}

.footer-stats {
  font-size: 0.95rem;
  color: var(--ink-soft);
  margin: 0 0 12px;
  font-variant-numeric: tabular-nums;
}

.footer-stats strong {
  color: var(--accent);
  font-weight: 800;
}

.footer-copy {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin: 14px 0;
  font-size: 0.88rem;
  color: var(--muted);
}

.footer-links a:hover {
  color: var(--accent);
}

/* Floating download bar */
.float-dl {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 50;
  transform: translateY(110%);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  background: rgba(12, 18, 34, 0.92);
  backdrop-filter: blur(12px);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 -10px 30px rgba(12, 18, 34, 0.25);
}

.float-dl.show {
  transform: translateY(0);
}

.float-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: var(--float-h);
}

.float-text {
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.92rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.float-actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

.float-actions .btn {
  min-height: 40px;
  padding: 0 14px;
  font-size: 0.9rem;
}

.page-hero {
  padding: 48px 0 28px;
}

.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 6vw, 3rem);
  margin: 0 0 12px;
  color: var(--ink);
  letter-spacing: 0.03em;
  line-height: 1.15;
}

.page-hero p {
  margin: 0 0 20px;
  color: var(--muted);
  max-width: 40em;
}

.content-block {
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 20px;
  margin-bottom: 18px;
}

.content-block h2 {
  margin: 0 0 10px;
  font-size: 1.25rem;
  color: var(--ink);
}

.content-block p,
.content-block li {
  color: var(--muted);
}

.content-block ol,
.content-block ul {
  margin: 0;
  padding-left: 1.2em;
}

.breadcrumb {
  font-size: 0.88rem;
  color: var(--muted);
  margin-bottom: 14px;
}

.breadcrumb a:hover {
  color: var(--accent);
}

@media (max-width: 640px) {
  .nav {
    display: none;
  }

  .float-text {
    display: none;
  }

  .float-inner {
    justify-content: center;
  }

  .float-actions {
    width: 100%;
  }

  .float-actions .btn {
    flex: 1;
  }

  .hero-inner {
    padding: 88px 0 56px;
  }
}
