/* 拷贝漫画 APP 下载官网 - 移动端优先 */
:root {
  --brand: #1b6dff;
  --brand-deep: #0a3d9c;
  --brand-soft: #e8f1ff;
  --ink: #101828;
  --ink-soft: #475467;
  --paper: #f3f7fd;
  --panel: rgba(255, 255, 255, 0.88);
  --line: rgba(27, 109, 255, 0.14);
  --cta: #ff5a3c;
  --cta-hover: #e8462a;
  --ios: #111827;
  --ok: #12b76a;
  --shadow: 0 18px 50px rgba(16, 42, 94, 0.12);
  --radius: 18px;
  --max: 1080px;
  /* 使用国内系统字体，避免 Google Fonts 拖慢移动端首屏 */
  --font-display: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  --font-body: "PingFang SC", "Hiragino Sans GB", "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(--ink);
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(27, 109, 255, 0.22), transparent 55%),
    radial-gradient(900px 500px at 100% 0%, rgba(0, 194, 255, 0.16), transparent 50%),
    linear-gradient(180deg, #eef4ff 0%, var(--paper) 38%, #f8fafc 100%);
  line-height: 1.7;
  min-height: 100vh;
  padding-bottom: 88px;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--brand);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.container {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(14px);
  background: rgba(243, 247, 253, 0.82);
  border-bottom: 1px solid var(--line);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 64px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--ink);
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 1.35rem;
  letter-spacing: 0.02em;
}

.brand img {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  box-shadow: 0 6px 16px rgba(27, 109, 255, 0.28);
}

.nav-links {
  display: none;
  gap: 1.1rem;
  font-size: 0.95rem;
}

.nav-links a {
  color: var(--ink-soft);
  text-decoration: none;
}

.nav-links a:hover {
  color: var(--brand);
}

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  padding: 2.2rem 0 1.4rem;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.55), transparent 35%),
    url("data:image/svg+xml,%3Csvg width='36' height='36' viewBox='0 0 36 36' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%231b6dff' fill-opacity='0.045'%3E%3Ccircle cx='2' cy='2' r='2'/%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}

.hero-grid {
  position: relative;
  display: grid;
  gap: 1.8rem;
  align-items: center;
}

.hero-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 0.9rem;
  animation: rise 0.7s ease both;
}

.hero-brand img {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  box-shadow: var(--shadow);
}

.hero-brand-name {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 8vw, 3.6rem);
  line-height: 1.05;
  letter-spacing: 0.04em;
  color: var(--brand-deep);
}

.hero h1 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.35rem, 4.6vw, 1.85rem);
  font-weight: 700;
  line-height: 1.35;
  animation: rise 0.75s ease 0.08s both;
}

.hero-lead {
  margin: 0 0 1.4rem;
  color: var(--ink-soft);
  font-size: 1.02rem;
  max-width: 36em;
  animation: rise 0.8s ease 0.14s both;
}

.cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  animation: rise 0.85s ease 0.2s both;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 48px;
  padding: 0.75rem 1.25rem;
  border-radius: 12px;
  border: none;
  font-family: inherit;
  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;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-android {
  background: linear-gradient(135deg, var(--cta), #ff7a45);
  color: #fff;
  box-shadow: 0 10px 24px rgba(255, 90, 60, 0.35);
}

.btn-android:hover {
  background: linear-gradient(135deg, var(--cta-hover), #ff6a38);
}

.btn-ios {
  background: var(--ios);
  color: #fff;
  box-shadow: 0 10px 24px rgba(17, 24, 39, 0.25);
}

.btn-ghost {
  background: #fff;
  color: var(--brand-deep);
  border: 1px solid var(--line);
}

.hero-visual {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 280px;
  animation: floaty 5.5s ease-in-out infinite;
}

.phone-stack {
  position: relative;
  width: min(100%, 320px);
  aspect-ratio: 10 / 16;
}

.phone {
  position: absolute;
  inset: 0;
  border-radius: 28px;
  overflow: hidden;
  border: 3px solid #fff;
  box-shadow: var(--shadow);
  background: #0b1220;
}

.phone img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.phone-a {
  transform: rotate(-6deg) translateX(-18%);
  z-index: 1;
}

.phone-b {
  transform: rotate(5deg) translateX(18%);
  z-index: 2;
}

.phone-c {
  inset: 8% 18% 0;
  z-index: 3;
  transform: none;
}

/* Sections */
.section {
  padding: 2.4rem 0;
}

.section-head {
  margin-bottom: 1.4rem;
}

.section-head h2 {
  margin: 0 0 0.45rem;
  font-size: clamp(1.35rem, 4vw, 1.75rem);
  font-family: var(--font-display);
  letter-spacing: 0.03em;
}

.section-head p {
  margin: 0;
  color: var(--ink-soft);
}

.feature-list,
.step-list,
.faq-list {
  display: grid;
  gap: 0.9rem;
}

.feature-item,
.step-item {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.1rem 1.15rem;
  box-shadow: 0 8px 24px rgba(16, 42, 94, 0.04);
}

.feature-item h3,
.step-item h3 {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
}

.feature-item p,
.step-item p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.96rem;
}

.step-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.85rem;
  align-items: start;
}

.step-num {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--brand);
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
}

.shot-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}

.shot-grid figure {
  margin: 0;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: var(--shadow);
}

.shot-grid img {
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
}

.shot-grid figcaption {
  padding: 0.55rem 0.7rem;
  font-size: 0.85rem;
  color: var(--ink-soft);
  text-align: center;
}

.keyword-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.keyword-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 0.92rem;
  text-decoration: none;
  transition: 0.18s ease;
}

.keyword-nav a:hover,
.keyword-nav a.active {
  background: var(--brand-soft);
  color: var(--brand-deep);
  border-color: rgba(27, 109, 255, 0.35);
}

.faq details {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0.85rem 1rem;
}

.faq summary {
  cursor: pointer;
  font-weight: 700;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq details[open] summary {
  color: var(--brand-deep);
  margin-bottom: 0.4rem;
}

.faq details p {
  margin: 0;
  color: var(--ink-soft);
}

.page-hero {
  padding: 2rem 0 1rem;
}

.page-hero h1 {
  margin: 0 0 0.6rem;
  font-size: clamp(1.5rem, 5vw, 2rem);
  font-family: var(--font-display);
}

.page-hero p {
  margin: 0;
  color: var(--ink-soft);
  max-width: 40em;
}

.prose {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.2rem 1.25rem;
}

.prose h2 {
  margin: 1.4rem 0 0.5rem;
  font-size: 1.2rem;
}

.prose h2:first-child {
  margin-top: 0;
}

.prose p,
.prose li {
  color: var(--ink-soft);
}

.prose ul {
  padding-left: 1.2rem;
}

.table-wrap {
  overflow-x: auto;
}

.info-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
}

.info-table th,
.info-table td {
  border: 1px solid var(--line);
  padding: 0.7rem 0.85rem;
  text-align: left;
  font-size: 0.95rem;
}

.info-table th {
  background: var(--brand-soft);
  color: var(--brand-deep);
  width: 32%;
}

/* Footer */
.site-footer {
  margin-top: 1rem;
  padding: 2rem 0 1.4rem;
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.55);
}

.disclaimer {
  margin: 0 0 0.9rem;
  padding: 0.95rem 1rem;
  border-radius: 14px;
  background: #fff4f1;
  border: 1px solid rgba(255, 90, 60, 0.28);
  color: #9a3412;
  font-weight: 700;
  text-align: center;
  font-size: 0.98rem;
  line-height: 1.55;
}

.download-stats {
  text-align: center;
  color: var(--ink-soft);
  font-size: 0.95rem;
  margin: 0 0 0.8rem;
}

.download-stats strong {
  color: var(--brand-deep);
  font-variant-numeric: tabular-nums;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.55rem 1rem;
  margin-bottom: 0.8rem;
  font-size: 0.9rem;
}

.footer-meta {
  text-align: center;
  color: #98a2b3;
  font-size: 0.85rem;
  margin: 0;
}

/* Floating download bar */
.float-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 50;
  transform: translateY(110%);
  transition: transform 0.28s ease;
  background: rgba(16, 24, 40, 0.92);
  backdrop-filter: blur(12px);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 0.65rem 0 calc(0.65rem + env(safe-area-inset-bottom));
}

.float-bar.show {
  transform: translateY(0);
}

.float-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.float-text {
  color: #fff;
  font-size: 0.88rem;
  line-height: 1.35;
  min-width: 0;
}

.float-text strong {
  display: block;
  font-size: 0.98rem;
}

.float-text span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.78rem;
}

.float-actions {
  display: flex;
  gap: 0.45rem;
  flex-shrink: 0;
}

.float-actions .btn {
  min-height: 42px;
  padding: 0.55rem 0.9rem;
  font-size: 0.9rem;
  border-radius: 10px;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes floaty {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

@media (min-width: 768px) {
  body {
    padding-bottom: 96px;
  }

  .nav-links {
    display: flex;
  }

  .hero {
    padding: 3.2rem 0 2rem;
  }

  .hero-grid {
    grid-template-columns: 1.1fr 0.9fr;
    gap: 2rem;
  }

  .feature-list {
    grid-template-columns: repeat(2, 1fr);
  }

  .shot-grid {
    gap: 1rem;
  }

  .float-text span {
    font-size: 0.85rem;
  }
}

@media (min-width: 960px) {
  .feature-list {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* SEO: 面包屑 / 更新时间 / 提示块 / 相关阅读 */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.45rem;
  margin: 0.9rem 0 0;
  padding: 0;
  list-style: none;
  font-size: 0.86rem;
  color: var(--ink-soft);
}

.breadcrumb li {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.breadcrumb li:not(:last-child)::after {
  content: "/";
  color: #98a2b3;
}

.breadcrumb a {
  color: var(--ink-soft);
  text-decoration: none;
}

.breadcrumb a:hover {
  color: var(--brand);
}

.breadcrumb [aria-current="page"] {
  color: var(--brand-deep);
  font-weight: 600;
}

.page-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 1rem;
  margin: 0.75rem 0 0;
  font-size: 0.86rem;
  color: #667085;
}

.page-meta time {
  font-variant-numeric: tabular-nums;
}

.tip-box {
  margin: 1rem 0;
  padding: 0.9rem 1rem;
  border-radius: 12px;
  background: var(--brand-soft);
  border: 1px solid rgba(27, 109, 255, 0.2);
  color: var(--brand-deep);
  font-size: 0.95rem;
}

.warn-box {
  margin: 1rem 0;
  padding: 0.9rem 1rem;
  border-radius: 12px;
  background: #fff7ed;
  border: 1px solid rgba(234, 88, 12, 0.25);
  color: #9a3412;
  font-size: 0.95rem;
}

.prose h3 {
  margin: 1.1rem 0 0.4rem;
  font-size: 1.05rem;
  color: var(--ink);
}

.prose a {
  font-weight: 600;
}

.related-grid {
  display: grid;
  gap: 0.75rem;
}

@media (min-width: 768px) {
  .related-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.related-item {
  display: block;
  padding: 0.95rem 1rem;
  border-radius: 14px;
  background: #fff;
  border: 1px solid var(--line);
  color: inherit;
  text-decoration: none;
  transition: 0.18s ease;
}

.related-item:hover {
  border-color: rgba(27, 109, 255, 0.4);
  box-shadow: 0 8px 20px rgba(16, 42, 94, 0.06);
  text-decoration: none;
}

.related-item strong {
  display: block;
  margin-bottom: 0.25rem;
  color: var(--brand-deep);
}

.related-item span {
  color: var(--ink-soft);
  font-size: 0.9rem;
}

.sitemap-list {
  columns: 1;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 640px) {
  .sitemap-list {
    columns: 2;
  }
}

.sitemap-list li {
  break-inside: avoid;
  margin-bottom: 0.65rem;
}

.sitemap-list a {
  font-weight: 600;
}

.sitemap-list small {
  display: block;
  color: var(--ink-soft);
  font-size: 0.86rem;
  margin-top: 0.15rem;
}

.brand-name-display {
  font-weight: 800;
  letter-spacing: 0.06em;
}

/* 版本更新日志时间线 */
.changelog {
  display: grid;
  gap: 1rem;
}

.changelog-item {
  position: relative;
  padding: 1.1rem 1.15rem 1.1rem 1.25rem;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  border-left: 4px solid var(--brand);
}

.changelog-item.is-latest {
  border-left-color: var(--cta);
  box-shadow: 0 10px 28px rgba(16, 42, 94, 0.06);
}

.changelog-ver {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.45rem 0.85rem;
  margin-bottom: 0.45rem;
}

.changelog-ver strong {
  font-size: 1.15rem;
  color: var(--brand-deep);
}

.changelog-ver time {
  color: #667085;
  font-size: 0.9rem;
}

.badge-new {
  display: inline-flex;
  align-items: center;
  padding: 0.1rem 0.45rem;
  border-radius: 6px;
  background: rgba(255, 90, 60, 0.12);
  color: var(--cta);
  font-size: 0.75rem;
  font-weight: 700;
}

.changelog-item ul {
  margin: 0.4rem 0 0;
  padding-left: 1.15rem;
  color: var(--ink-soft);
}

.changelog-item li {
  margin: 0.25rem 0;
}

.article-toc {
  margin: 0 0 1rem;
  padding: 0.9rem 1rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.article-toc strong {
  display: block;
  margin-bottom: 0.4rem;
}

.article-toc ol {
  margin: 0;
  padding-left: 1.2rem;
  color: var(--ink-soft);
}
