/* =========================================================
   17kk漫画网 · buab.cn（清爽天蓝 / 极简阅读器风）
   ========================================================= */

:root {
  --bg: #f6faff;
  --bg-2: #eef5ff;
  --white: #ffffff;
  --ink: #12213d;
  --ink-soft: #33445f;
  --muted: #64748b;
  --line: rgba(18, 33, 61, .09);
  --line-2: rgba(18, 33, 61, .16);
  --blue: #2f6bff;
  --blue-deep: #1749d6;
  --cyan: #57c9f5;
  --blue-soft: #e8f0ff;
  --radius: 20px;
  --shadow-s: 0 10px 24px -16px rgba(24, 60, 140, .45);
  --shadow-m: 0 26px 60px -34px rgba(24, 60, 140, .5);
  --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: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.72;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--blue); 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(--blue);
  outline-offset: 3px;
  border-radius: 10px;
}

.shell {
  width: 100%;
  max-width: 1160px;
  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; }

/* ---------- 顶部导航 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(246, 250, 255, .84);
  backdrop-filter: saturate(160%) blur(16px);
  -webkit-backdrop-filter: saturate(160%) blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s, box-shadow .25s;
}
.site-header.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 12px 30px -26px rgba(20, 50, 120, .55);
}
.header-row {
  display: flex;
  align-items: center;
  gap: 22px;
  min-height: 78px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  flex: none;
}
.brand img { border-radius: 13px; box-shadow: var(--shadow-s); }
.brand-txt {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}
.brand-txt strong {
  font-size: 17px;
  font-weight: 800;
  letter-spacing: .03em;
}
.brand-txt em {
  font-style: normal;
  font-size: 8.5px;
  letter-spacing: .22em;
  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 13px;
  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(--blue-deep);
  background: var(--blue-soft);
}

/* 顶部主下载按钮 —— 明显 */
.btn-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  min-height: 52px;
  padding: 12px 32px;
  border-radius: 14px;
  background: linear-gradient(135deg, #3d7bff 0%, #2f6bff 45%, #1a4fe0 100%);
  color: #fff;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: .03em;
  box-shadow: 0 18px 34px -16px rgba(26, 79, 224, .8), inset 0 1px 0 rgba(255, 255, 255, .32);
  transition: transform .2s, box-shadow .25s;
  white-space: nowrap;
}
.btn-cta:hover,
.btn-cta:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 24px 42px -18px rgba(26, 79, 224, .85), inset 0 1px 0 rgba(255, 255, 255, .4);
}

.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 ease, opacity .2s ease;
}
.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 ---------- */
.hero {
  position: relative;
  padding: 54px 0 26px;
  background:
    radial-gradient(760px 460px at 92% -10%, rgba(87, 201, 245, .22), transparent 64%),
    radial-gradient(720px 500px at 4% 4%, rgba(47, 107, 255, .10), transparent 62%);
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, .98fr);
  gap: 40px;
  align-items: center;
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 16px;
  border: 1px solid rgba(47, 107, 255, .22);
  border-radius: 999px;
  background: rgba(255, 255, 255, .8);
  color: var(--blue-deep);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .06em;
}
.pill i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 0 4px rgba(47, 107, 255, .13);
}
.hero h1 {
  margin-top: 20px;
  font-size: clamp(38px, 4.8vw, 62px);
  line-height: 1.12;
  letter-spacing: -.03em;
  font-weight: 800;
}
.hero h1 span {
  display: inline-block;
  margin-top: 8px;
  background: linear-gradient(100deg, var(--blue) 0%, #2aa8e0 60%, var(--cyan) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  padding-bottom: 6px;
}
.lede {
  margin-top: 18px;
  max-width: 540px;
  color: var(--muted);
  font-size: 15.5px;
}

/* Hero 主按钮（第二处，仍是唯一的大按钮） */
.btn-main {
  display: inline-flex;
  align-items: center;
  gap: 15px;
  margin-top: 30px;
  padding: 16px 26px;
  min-width: 330px;
  border-radius: 18px;
  background: linear-gradient(135deg, #3d7bff 0%, #2f6bff 48%, #1749d6 100%);
  color: #fff;
  box-shadow: 0 26px 48px -22px rgba(23, 73, 214, .9), inset 0 1px 0 rgba(255, 255, 255, .34);
  transition: transform .2s, box-shadow .25s;
}
.btn-main:hover,
.btn-main:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 32px 56px -24px rgba(23, 73, 214, .95), inset 0 1px 0 rgba(255, 255, 255, .42);
}
.bm-ico {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex: none;
  border-radius: 13px;
  background: rgba(255, 255, 255, .18);
}
.bm-txt { display: flex; flex-direction: column; line-height: 1.25; }
.bm-txt strong { font-size: 19px; font-weight: 800; letter-spacing: .04em; }
.bm-txt em {
  font-style: normal;
  font-size: 11.5px;
  font-weight: 500;
  opacity: .88;
  margin-top: 3px;
}
.bm-arrow {
  margin-left: auto;
  font-size: 20px;
  opacity: .9;
}
.under-btn {
  margin-top: 12px;
  font-size: 12.5px;
  color: var(--muted);
}
.stats {
  display: flex;
  gap: 34px;
  margin-top: 32px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}
.stats li { display: flex; flex-direction: column; line-height: 1.3; }
.stats b { font-size: 21px; font-weight: 800; letter-spacing: -.02em; }
.stats span { font-size: 12.5px; color: var(--muted); margin-top: 3px; }

/* 手机预览 */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  padding: 18px 0;
}
.hero-glow {
  position: absolute;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(47, 107, 255, .22), transparent 66%);
  filter: blur(40px);
  z-index: 0;
}
.phone {
  position: relative;
  z-index: 3;
  width: 292px;
  padding: 10px;
  border-radius: 38px;
  background: #fff;
  border: 1px solid rgba(18, 33, 61, .08);
  box-shadow: 0 40px 80px -34px rgba(20, 50, 120, .55), 0 2px 0 rgba(255, 255, 255, .8) inset;
}
.phone-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 12px 10px;
}
.ph-brand {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .04em;
  color: var(--blue-deep);
}
.ph-dots { display: inline-flex; gap: 4px; }
.ph-dots i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(18, 33, 61, .2);
}
.phone-page {
  position: relative;
  border-radius: 26px;
  overflow: hidden;
  background: var(--bg-2);
}
.phone-page img {
  width: 100%;
  height: 396px;
  object-fit: cover;
  object-position: center top;
}
.ph-count {
  position: absolute;
  left: 50%;
  bottom: 12px;
  transform: translateX(-50%);
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(10, 22, 44, .62);
  color: rgba(255, 255, 255, .92);
  font-size: 10.5px;
  white-space: nowrap;
  backdrop-filter: blur(6px);
}
.phone-bar {
  display: flex;
  justify-content: space-around;
  padding: 12px 6px 6px;
  font-size: 11.5px;
  color: var(--muted);
}
.phone-bar .on { color: var(--blue); font-weight: 700; }

.float-card {
  position: absolute;
  z-index: 2;
  width: 106px;
  margin: 0;
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 24px 40px -24px rgba(20, 50, 120, .5);
  border: 4px solid #fff;
}
.float-card img {
  width: 100%;
  height: 152px;
  object-fit: cover;
}
.fc-a { top: 24px; left: 12px; transform: rotate(-7deg); }
.fc-b { bottom: 20px; right: 14px; transform: rotate(6deg); }

/* ---------- 通用区块 ---------- */
.section { padding: 74px 0; }
.section-tint {
  background: linear-gradient(180deg, var(--bg-2) 0%, var(--bg) 100%);
}
.sec-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 34px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}
.sec-head h2 {
  font-size: clamp(24px, 2.4vw, 31px);
  font-weight: 800;
  letter-spacing: -.02em;
}
.sec-head p { font-size: 13px; color: var(--muted); }

/* 书架 */
.shelf {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 18px;
}
.book { min-width: 0; }
.book img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 14px;
  background: var(--bg-2);
  box-shadow: 0 16px 30px -22px rgba(20, 50, 120, .5);
  transition: transform .25s ease, box-shadow .25s ease;
}
.book:hover img {
  transform: translateY(-5px);
  box-shadow: 0 24px 38px -22px rgba(20, 50, 120, .55);
}
.bk-name {
  margin-top: 11px;
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.bk-meta {
  margin-top: 2px;
  font-size: 11.5px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* 阅读体验 */
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.why {
  padding: 28px 26px 30px;
  border-radius: var(--radius);
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-s);
}
.why-no {
  display: inline-block;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .12em;
  color: var(--blue);
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--blue-soft);
}
.why h3 {
  margin-top: 16px;
  font-size: 18.5px;
  font-weight: 800;
}
.why p {
  margin-top: 9px;
  font-size: 14px;
  color: var(--muted);
}

/* 安装步骤 */
.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  counter-reset: step;
}
.steps li {
  display: flex;
  gap: 16px;
  padding: 24px;
  border-radius: var(--radius);
  background: #fff;
  border: 1px solid var(--line);
}
.st-no {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  flex: none;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--blue) 0%, #2aa8e0 100%);
  color: #fff;
  font-weight: 800;
  font-size: 15px;
  box-shadow: 0 12px 22px -14px rgba(23, 73, 214, .8);
}
.steps h3 { font-size: 16.5px; font-weight: 800; }
.steps p {
  margin-top: 7px;
  font-size: 13.5px;
  color: var(--muted);
}

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

/* 结尾 CTA */
.final {
  padding: 20px 0 78px;
}
.final-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  padding: 40px 44px;
  border-radius: 26px;
  background: linear-gradient(120deg, #123166 0%, #1b4bb5 52%, #2f6bff 100%);
  color: #fff;
  box-shadow: 0 34px 70px -40px rgba(18, 49, 102, .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, .74);
  max-width: 560px;
}
.btn-final {
  background: #fff;
  color: var(--blue-deep);
  box-shadow: 0 20px 36px -18px rgba(0, 0, 0, .45);
}
.btn-final:hover,
.btn-final:focus-visible {
  box-shadow: 0 26px 44px -18px rgba(0, 0, 0, .5);
}

/* 页脚 */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 34px 0 44px;
  background: #fff;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 28px;
}
.f-brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-weight: 800;
  font-size: 15px;
}
.f-brand img { border-radius: 9px; }
.f-note { font-size: 12.5px; color: var(--muted); }
.f-copy {
  margin-left: auto;
  font-size: 12.5px;
  color: var(--muted);
}

/* ---------- 响应式 ---------- */
@media (max-width: 1040px) {
  .nav a { padding: 0 10px; font-size: 14px; }
  .shelf { grid-template-columns: repeat(4, minmax(0, 1fr)); row-gap: 24px; }
}

@media (max-width: 900px) {
  .nav {
    position: absolute;
    top: 100%;
    left: 16px;
    right: 16px;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: rgba(255, 255, 255, .98);
    box-shadow: 0 24px 50px -30px rgba(20, 50, 120, .6);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity .2s ease, transform .2s ease, 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; }
  .header-row { min-height: 70px; gap: 12px; }
  .btn-cta { min-height: 46px; padding: 10px 20px; font-size: 15.5px; }
  .hero-grid { grid-template-columns: 1fr; gap: 34px; }
  .hero { padding-top: 38px; }
  .hero-visual { padding: 6px 0 14px; }
  .why-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .final-inner { flex-direction: column; align-items: flex-start; padding: 30px 26px; }
  .f-copy { margin-left: 0; }
}

@media (max-width: 620px) {
  .shell { padding: 0 18px; }
  .brand-txt strong { font-size: 15.5px; }
  .brand-txt em { font-size: 7.5px; }
  .brand img { width: 38px; height: 38px; }
  .btn-cta { padding: 10px 16px; font-size: 15px; }
  .hero h1 { font-size: 36px; }
  .btn-main { width: 100%; min-width: 0; }
  .stats { gap: 22px; justify-content: space-between; }
  .section { padding: 56px 0; }
  .sec-head { flex-direction: column; align-items: flex-start; gap: 6px; }
  .float-card { width: 84px; }
  .float-card img { height: 120px; }
  .fc-a { left: -6px; top: 10px; }
  .fc-b { right: -6px; bottom: 8px; }
  .phone { width: 264px; }
  .phone-page img { height: 356px; }
  .shelf {
    display: flex;
    overflow-x: auto;
    gap: 14px;
    padding-bottom: 8px;
    scroll-snap-type: x mandatory;
  }
  .book { flex: 0 0 42%; scroll-snap-align: start; }
  .final { padding: 10px 0 60px; }
}
