/* =========================================================
   51漫画 · 0zong.cn（薰衣草白 / Bento 卡片风）
   ========================================================= */

:root {
  --bg: #f7f6fd;
  --bg-2: #f1efff;
  --white: #ffffff;
  --ink: #1d1838;
  --ink-soft: #3d3660;
  --muted: #6f6a8a;
  --line: rgba(29, 24, 56, .09);
  --line-2: rgba(29, 24, 56, .16);
  --violet: #7c5cff;
  --violet-deep: #5b3ce6;
  --violet-soft: #ede8ff;
  --peach: #ffb86b;
  --mint: #46cfc0;
  --radius: 24px;
  --font: "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei", "Noto Sans SC",
          system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  overflow-x: clip;
}

body {
  margin: 0;
  background-color: var(--bg);
  background-image: radial-gradient(rgba(124, 92, 255, .09) 1px, transparent 1.3px);
  background-size: 28px 28px;
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.72;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--violet); color: #fff; }

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; }

:focus-visible {
  outline: 2px solid var(--violet);
  outline-offset: 3px;
  border-radius: 10px;
}

.shell {
  width: 100%;
  max-width: 1150px;
  margin: 0 auto;
  padding: 0 26px;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -80px;
  z-index: 300;
  padding: 10px 18px;
  background: var(--ink);
  color: #fff;
  border-radius: 10px;
  font-weight: 700;
}
.skip-link:focus { top: 12px; }

/* ---------- 顶部 ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(247, 246, 253, .86);
  backdrop-filter: saturate(160%) blur(16px);
  -webkit-backdrop-filter: saturate(160%) blur(16px);
  border-bottom: 1px solid var(--line);
}
.bar-row {
  display: flex;
  align-items: center;
  gap: 22px;
  min-height: 82px;
}
.brand { display: inline-flex; align-items: center; gap: 11px; flex: none; }
.brand img { border-radius: 13px; }
.brand-txt { display: flex; flex-direction: column; line-height: 1.1; }
.brand-txt strong { font-size: 17.5px; font-weight: 800; letter-spacing: .04em; }
.brand-txt em {
  font-style: normal;
  font-size: 8.5px;
  letter-spacing: .2em;
  color: var(--muted);
  font-weight: 600;
  margin-top: 4px;
}
.nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav a {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 14px;
  border-radius: 10px;
  font-size: 14.5px;
  color: var(--ink-soft);
  transition: color .2s, background .2s;
}
.nav a:hover,
.nav a:focus-visible { color: var(--violet-deep); background: var(--violet-soft); }

.btn-top {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  min-height: 52px;
  padding: 12px 30px;
  border-radius: 14px;
  background: linear-gradient(135deg, #8f70ff 0%, var(--violet) 55%, var(--violet-deep) 100%);
  color: #fff;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: .05em;
  box-shadow: 0 18px 32px -16px rgba(91, 60, 230, .75), inset 0 1px 0 rgba(255, 255, 255, .3);
  transition: transform .2s, box-shadow .25s;
  white-space: nowrap;
}
.btn-top:hover,
.btn-top:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 24px 40px -18px rgba(91, 60, 230, .85), inset 0 1px 0 rgba(255, 255, 255, .38);
}
.burger {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border: 1px solid var(--line-2);
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
}
.burger span {
  display: block;
  width: 19px;
  height: 2px;
  border-radius: 2px;
  background: var(--ink);
  transition: transform .25s, opacity .2s;
}
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero Bento ---------- */
.hero { padding: 34px 0 10px; }
.bento {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 16px;
}
.card {
  border-radius: var(--radius);
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: 0 20px 44px -34px rgba(60, 40, 140, .45);
}
.c-copy {
  grid-column: span 7;
  padding: 40px 42px 38px;
  background:
    radial-gradient(440px 260px at 100% 0%, rgba(255, 184, 107, .18), transparent 66%),
    #fff;
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 15px;
  border-radius: 999px;
  border: 1px solid rgba(124, 92, 255, .2);
  background: var(--violet-soft);
  color: var(--violet-deep);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .06em;
}
.pill i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--violet);
  box-shadow: 0 0 0 4px rgba(124, 92, 255, .14);
}
.hero h1 {
  margin-top: 18px;
  font-size: clamp(34px, 4.2vw, 54px);
  line-height: 1.14;
  letter-spacing: -.03em;
  font-weight: 800;
}
.hero h1 span {
  display: inline-block;
  margin-top: 6px;
  font-size: .56em;
  letter-spacing: 0;
  font-weight: 700;
  color: var(--violet-deep);
}
.lede {
  margin-top: 16px;
  max-width: 480px;
  font-size: 15px;
  color: var(--muted);
}

/* 首屏大按钮 */
.btn-hero {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  margin-top: 26px;
  min-width: 340px;
  padding: 15px 22px;
  border-radius: 15px;
  background: linear-gradient(135deg, #8f70ff 0%, var(--violet) 55%, var(--violet-deep) 100%);
  color: #fff;
  box-shadow: 0 24px 44px -20px rgba(91, 60, 230, .85), inset 0 1px 0 rgba(255, 255, 255, .3);
  transition: transform .2s, box-shadow .25s;
}
.btn-hero:hover,
.btn-hero:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 30px 52px -22px rgba(91, 60, 230, .9), inset 0 1px 0 rgba(255, 255, 255, .4);
}
.bh-txt { display: flex; flex-direction: column; line-height: 1.24; }
.bh-txt strong { font-size: 19px; font-weight: 800; letter-spacing: .07em; }
.bh-txt em {
  font-style: normal;
  font-size: 11.5px;
  font-weight: 500;
  opacity: .86;
  margin-top: 4px;
}
.bh-arrow { margin-left: auto; font-size: 20px; opacity: .92; }

.c-cover {
  grid-column: span 5;
  position: relative;
  overflow: hidden;
  min-height: 420px;
  border-color: rgba(91, 60, 230, .18);
}
.c-cover img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.c-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(20, 12, 50, 0) 38%, rgba(20, 12, 50, .78) 100%);
}
.cov-info {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 22px;
  z-index: 2;
  color: #fff;
}
.cov-tag {
  display: inline-block;
  padding: 4px 11px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .22);
  border: 1px solid rgba(255, 255, 255, .34);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .06em;
  backdrop-filter: blur(4px);
}
.cov-info p { margin-top: 10px; font-size: 24px; font-weight: 800; letter-spacing: .02em; }
.cov-info em { font-style: normal; font-size: 12.5px; opacity: .82; }

.c-stat {
  grid-column: span 4;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 20px 24px;
  border-radius: 18px;
}
.c-stat strong { font-size: 21px; font-weight: 800; letter-spacing: -.01em; }
.c-stat span { font-size: 12.5px; color: var(--muted); }
.c-stat-hl {
  background: linear-gradient(135deg, var(--violet) 0%, var(--violet-deep) 100%);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 20px 36px -22px rgba(91, 60, 230, .8);
}
.c-stat-hl span { color: rgba(255, 255, 255, .78); }

/* ---------- 区块 ---------- */
.section { padding: 68px 0; }
.section-tint {
  background: linear-gradient(180deg, var(--bg-2) 0%, rgba(247, 246, 253, .3) 100%);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.sec-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 28px;
}
.sec-tag {
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: .18em;
  color: var(--violet);
}
.sec-head h2 {
  margin-top: 5px;
  font-size: clamp(24px, 2.4vw, 31px);
  font-weight: 800;
  letter-spacing: -.02em;
}
.sec-note { font-size: 13px; color: var(--muted); }

/* 榜单 */
.rank {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 6px 26px;
  box-shadow: 0 24px 54px -40px rgba(60, 40, 140, .5);
}
.rank li {
  display: grid;
  grid-template-columns: 34px 58px minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 18px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.rank li:last-child { border-bottom: 0; }
.r-no {
  font-size: 12.5px;
  font-weight: 800;
  color: var(--muted);
  letter-spacing: .06em;
}
.rank li:nth-child(-n+3) .r-no { color: var(--violet); }
.rank img {
  width: 46px;
  height: 64px;
  object-fit: cover;
  border-radius: 7px;
  background: var(--violet-soft);
}
.r-body h3 { font-size: 15.5px; font-weight: 700; }
.r-body p { font-size: 11.5px; color: var(--muted); margin-top: 2px; }
.r-up { font-size: 12px; color: var(--ink-soft); white-space: nowrap; }
.r-hot {
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--violet-soft);
  color: var(--violet-deep);
  font-size: 11.5px;
  font-weight: 700;
  white-space: nowrap;
}

/* 功能 */
.feat-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.feat {
  padding: 28px 26px;
  border-radius: var(--radius);
  background: #fff;
  border: 1px solid var(--line);
}
.feat-ico {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 13px;
  background: var(--violet-soft);
  margin-bottom: 16px;
  position: relative;
}
.feat-ico::before,
.feat-ico::after {
  content: "";
  position: absolute;
  border: 2px solid var(--violet);
  border-radius: 3px;
}
.i-bell::before { width: 15px; height: 15px; border-radius: 8px 8px 3px 3px; }
.i-bell::after { width: 18px; height: 2px; border-radius: 2px; top: 31px; border-width: 2px 0 0; }
.i-cache::before { width: 16px; height: 16px; border-radius: 4px; }
.i-cache::after { width: 8px; height: 8px; border-width: 2px 2px 0 0; border-radius: 0; transform: rotate(45deg); top: 24px; }
.i-cloud::before { width: 18px; height: 11px; border-radius: 7px; top: 24px; }
.i-cloud::after { width: 10px; height: 10px; border-radius: 50%; top: 17px; left: 20px; }
.feat h3 { font-size: 18px; font-weight: 800; }
.feat p { margin-top: 8px; font-size: 13.8px; color: var(--muted); }

/* 安装 */
.install {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.install li {
  padding: 26px;
  border-radius: var(--radius);
  background: #fff;
  border: 1px solid var(--line);
}
.in-no {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--violet-soft);
  color: var(--violet-deep);
  font-size: 12px;
  font-weight: 800;
}
.install h3 { margin-top: 13px; font-size: 16.5px; font-weight: 800; }
.install p { margin-top: 6px; font-size: 13.5px; color: var(--muted); }

/* FAQ */
.faq { max-width: 820px; }
.faq details {
  border-bottom: 1px solid var(--line);
  padding: 0 2px;
}
.faq summary {
  position: relative;
  padding: 18px 40px 18px 0;
  font-size: 15.5px;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--violet-soft);
  color: var(--violet-deep);
  font-size: 16px;
  transition: transform .2s;
}
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { padding: 0 40px 18px 0; font-size: 14px; color: var(--muted); }

/* 结尾 */
.final { padding: 10px 0 70px; }
.final-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  padding: 38px 42px;
  border-radius: 26px;
  background:
    radial-gradient(420px 200px at 94% 0%, rgba(255, 184, 107, .3), transparent 68%),
    linear-gradient(130deg, #2b1f63 0%, #4a2fbd 55%, #7c5cff 100%);
  color: #fff;
  box-shadow: 0 34px 66px -38px rgba(43, 31, 99, .85);
}
.final-inner h2 { font-size: clamp(23px, 2.4vw, 30px); font-weight: 800; }
.final-inner p { margin-top: 8px; font-size: 14px; color: rgba(255, 255, 255, .76); }
.btn-final {
  margin-top: 0;
  background: #fff;
  color: var(--violet-deep);
  box-shadow: 0 18px 34px -18px rgba(0, 0, 0, .45);
}
.btn-final:hover,
.btn-final:focus-visible { box-shadow: 0 24px 42px -18px rgba(0, 0, 0, .5); }

/* 页脚 */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 28px 0 44px;
  background: #fff;
}
.foot-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 26px;
  font-size: 12.5px;
  color: var(--muted);
}
.f-brand { font-weight: 800; color: var(--ink-soft); font-size: 13px; }
.foot-row p:last-child { margin-left: auto; }

/* ---------- 响应式 ---------- */
@media (max-width: 1000px) {
  .nav a { padding: 0 10px; font-size: 14px; }
  .c-copy { padding: 34px 30px; }
}

@media (max-width: 900px) {
  .nav {
    position: absolute;
    top: 100%;
    left: 14px;
    right: 14px;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 24px 46px -28px rgba(60, 40, 140, .5);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity .2s, transform .2s, visibility .2s;
  }
  .nav.open { opacity: 1; visibility: visible; transform: translateY(0); }
  .nav a { min-height: 46px; padding: 0 14px; font-size: 15px; }
  .burger { display: flex; }
  .bar-row { min-height: 70px; gap: 12px; }
  .btn-top { min-height: 46px; padding: 10px 20px; font-size: 15.5px; }
  .bento { gap: 12px; }
  .c-copy, .c-cover, .c-stat { grid-column: span 12; }
  .c-cover { min-height: 340px; }
  .c-cover img { height: 340px; }
  .btn-hero { width: 100%; min-width: 0; }
  .feat-grid { grid-template-columns: 1fr; }
  .install { grid-template-columns: 1fr; }
  .final-inner { flex-direction: column; align-items: flex-start; padding: 30px 24px; }
  .foot-row p:last-child { margin-left: 0; }
}

@media (max-width: 620px) {
  .shell { padding: 0 18px; }
  .brand img { width: 38px; height: 38px; }
  .brand-txt strong { font-size: 16px; }
  .btn-top { padding: 10px 15px; font-size: 15px; }
  .hero { padding-top: 22px; }
  .c-copy { padding: 28px 22px; }
  .hero h1 { font-size: 34px; }
  .c-cover { min-height: 300px; }
  .c-cover img { height: 300px; }
  .section { padding: 52px 0; }
  .sec-head { flex-direction: column; align-items: flex-start; gap: 4px; }
  .rank { padding: 4px 16px; }
  .rank li {
    grid-template-columns: 26px 46px minmax(0, 1fr) auto;
    gap: 12px;
    padding: 12px 0;
  }
  .rank img { width: 40px; height: 56px; }
  .r-hot { display: none; }
  .r-up { font-size: 11px; }
}
