@charset "UTF-8";

/* =========================================================
   哔咔哔咔漫画 · 书架式漫画阅读 —— 独立版式
   主色 #E86A9B，米白纸感 + 衬线标题 + 圆角卡片
   ========================================================= */

:root {
  --rose: #E86A9B;
  --rose-deep: #B23E6E;
  --rose-soft: #FFE3ED;
  --blush: #FFF7FA;
  --paper: #FFFDFE;
  --ink: #2E1F27;
  --ink-soft: #5A4450;
  --muted: #8B7480;
  --line: #F2D7E1;
  --radius: 16px;
  --radius-sm: 10px;
  --shell: 1180px;
  --header-height: 74px;
  --shadow: 0 18px 38px rgba(178, 62, 110, .12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background: var(--paper);
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-size: 16px;
  line-height: 1.72;
}

img {
  display: block;
  max-width: 100%;
}

a,
button {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  color: inherit;
  font: inherit;
}

button:focus-visible,
a:focus-visible {
  outline: 2px dashed var(--rose);
  outline-offset: 3px;
}

.page-shell {
  width: min(calc(100% - 44px), var(--shell));
  margin: 0 auto;
}

/* ---------- 图标 ---------- */
.icon {
  display: inline-block;
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  vertical-align: middle;
}

.icon::before {
  display: block;
  width: 100%;
  height: 100%;
  content: "";
  background: center / contain no-repeat;
}

.icon-download::before { background-image: url("../icons/download.svg"); }
.icon-menu::before { background-image: url("../icons/menu.svg"); }
.icon-close::before { background-image: url("../icons/close.svg"); }
.icon-arrow::before { background-image: url("../icons/arrow.svg"); }
.icon-globe::before { background-image: url("../icons/globe.svg"); }
.icon-plus::before { background-image: url("../icons/plus.svg"); }
.icon-bolt::before { background-image: url("../icons/bolt.svg"); }
.icon-shield::before { background-image: url("../icons/shield.svg"); }
.icon-route::before { background-image: url("../icons/route.svg"); }
.icon-book::before { background-image: url("../icons/book.svg"); }

/* ---------- 头部 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 253, 254, .96);
  backdrop-filter: blur(6px);
}

.nav-shell {
  display: flex;
  align-items: center;
  min-height: var(--header-height);
  margin: 0 auto;
  width: min(calc(100% - 44px), var(--shell));
  gap: 26px;
}

.brand {
  display: inline-flex;
  align-items: center;
  min-width: max-content;
  gap: 10px;
  font-family: "Songti SC", "Source Han Serif SC", Georgia, serif;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: .3px;
}

.brand img {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  object-fit: contain;
  background: var(--rose-soft);
}

.primary-nav {
  margin-left: auto;
}

.primary-nav ul {
  display: flex;
  align-items: center;
  padding: 0;
  margin: 0;
  gap: clamp(16px, 2.6vw, 34px);
  list-style: none;
}

.primary-nav a {
  display: inline-block;
  padding: 6px 2px;
  color: var(--ink-soft);
  font-size: 14px;
  font-weight: 500;
  border-bottom: 2px solid transparent;
  transition: color .18s ease, border-color .18s ease;
}

.primary-nav a:hover,
.primary-nav a:focus-visible {
  color: var(--rose-deep);
  border-bottom-color: var(--rose);
}

.nav-download {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  min-width: 128px;
  padding: 0 16px;
  gap: 8px;
  border: 1px solid var(--rose);
  border-radius: 999px;
  color: var(--rose-deep);
  font-size: 13px;
  font-weight: 700;
  transition: background .18s ease, color .18s ease;
}

.nav-download .icon,
.button-primary .icon {
  filter: invert(48%) sepia(46%) saturate(1560%) hue-rotate(295deg) brightness(92%) contrast(92%);
}

.nav-download:hover {
  background: var(--rose);
  color: #fff;
}

.nav-download:hover .icon {
  filter: brightness(0) invert(1);
}

.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--blush);
  cursor: pointer;
}

.menu-toggle .icon {
  width: 19px;
  height: 19px;
}

/* ---------- 英雄区 ---------- */
.hero {
  position: relative;
  padding: 64px 0 70px;
  overflow: hidden;
  background:
    radial-gradient(circle at 12% 18%, #FFE9F1 0%, rgba(255, 233, 241, 0) 46%),
    linear-gradient(180deg, #FFF9FB 0%, #FFFDFE 68%);
  scroll-margin-top: calc(var(--header-height) + 14px);
}

.hero::after {
  position: absolute;
  right: -70px;
  bottom: -90px;
  width: 320px;
  height: 320px;
  border: 22px solid rgba(232, 106, 155, .12);
  border-radius: 50%;
  content: "";
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(380px, 470px);
  align-items: center;
  gap: clamp(28px, 5vw, 64px);
}

.hero-copy {
  max-width: 520px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--rose-deep);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .28em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  font-family: "Songti SC", "Source Han Serif SC", Georgia, serif;
  font-size: clamp(40px, 5.2vw, 66px);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -.5px;
  overflow-wrap: anywhere;
}

.hero-title {
  margin: 14px 0 14px;
  color: var(--rose-deep);
  font-size: clamp(22px, 2.4vw, 30px);
  font-weight: 800;
  letter-spacing: .5px;
  line-height: 1.4;
}

.hero-summary {
  max-width: 470px;
  margin: 0 0 26px;
  color: var(--muted);
  font-size: 15.5px;
  line-height: 1.9;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 26px;
  gap: 9px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}

.button-primary {
  border: 1px solid var(--rose);
  color: #fff;
  background: linear-gradient(135deg, #F080A9 0%, #DA5386 100%);
  box-shadow: 0 10px 22px rgba(232, 106, 155, .35);
}

.button-primary .icon {
  filter: brightness(0) invert(1);
}

.button-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 26px rgba(232, 106, 155, .42);
}

/* ---------- 英雄区：竖向书脊书架 ---------- */
.hero-bookshelf {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 460px;
  margin-left: auto;
  padding: 18px 18px 0;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: linear-gradient(180deg, #FFFDFE 0%, #FFF4F8 100%);
  box-shadow: var(--shadow);
}

.bs-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding-bottom: 12px;
  border-bottom: 1px dashed var(--line);
}

.bs-head b {
  font-family: "Songti SC", Georgia, serif;
  font-size: 16px;
  letter-spacing: .5px;
}

.bs-head span {
  color: var(--muted);
  font-size: 11.5px;
}

.bs-shelf {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  min-height: 268px;
  padding: 26px 4px 0;
  gap: 7px;
}

.bs-spine {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  width: 44px;
  padding: 14px 0 12px;
  border-radius: 6px 6px 3px 3px;
  color: #fff;
  writing-mode: vertical-rl;
  text-orientation: upright;
  box-shadow: inset -3px 0 6px rgba(0, 0, 0, .08);
}

.bs-spine span {
  font-family: "Songti SC", Georgia, serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .18em;
}

.bs-spine em {
  font-size: 9.5px;
  font-style: normal;
  letter-spacing: .08em;
  opacity: .82;
}

.bs-a { height: 208px; background: linear-gradient(180deg, #E86A9B, #C6497B); }
.bs-b { height: 232px; background: linear-gradient(180deg, #F291B4, #D86090); }
.bs-c { height: 190px; background: linear-gradient(180deg, #B23E6E, #8C2C54); }
.bs-d { height: 222px; background: linear-gradient(180deg, #EFA6C1, #D97CA2); }
.bs-e { height: 176px; background: linear-gradient(180deg, #5A4450, #3A2A33); }

.bs-spine:nth-child(2) { transform: translateY(-4px); }
.bs-spine:nth-child(3) { transform: translateY(3px); }
.bs-spine:nth-child(5) { transform: translateY(-7px); }

.bs-cover {
  display: flex;
  width: 92px;
  flex-direction: column;
  gap: 6px;
  margin-left: 8px;
}

.bs-cover img {
  width: 92px;
  height: 128px;
  border: 3px solid #fff;
  border-radius: 6px;
  object-fit: cover;
  box-shadow: 0 8px 16px rgba(178, 62, 110, .22);
}

.bs-cover small {
  color: var(--rose-deep);
  font-size: 10px;
  text-align: center;
  line-height: 1.4;
}

.bs-board {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 -18px;
  padding: 13px 20px 14px;
  border-top: 1px solid var(--line);
  border-radius: 0 0 22px 22px;
  color: var(--ink-soft);
  background: var(--rose-soft);
  font-size: 12px;
}

.bs-board span:last-child {
  color: var(--rose-deep);
  font-weight: 700;
}

/* ---------- 区块通用 ---------- */
section {
  scroll-margin-top: calc(var(--header-height) + 14px);
}

.section-heading {
  max-width: 620px;
  margin-bottom: 34px;
}

.section-heading h2 {
  margin: 0;
  font-family: "Songti SC", "Source Han Serif SC", Georgia, serif;
  font-size: clamp(27px, 3.1vw, 38px);
  font-weight: 900;
  letter-spacing: .4px;
  line-height: 1.28;
}

.section-heading > p:last-child {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 14.5px;
}

/* ---------- 核心特色：2×2 编号卡 ---------- */
.routes {
  padding: 64px 0 70px;
  background: #FFF4F8;
}

.fours {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.four {
  position: relative;
  padding: 26px 26px 24px 78px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  transition: transform .2s ease, box-shadow .2s ease;
}

.four:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 26px rgba(178, 62, 110, .1);
}

.four .n {
  position: absolute;
  top: 22px;
  left: 22px;
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: 12px;
  color: var(--rose-deep);
  background: var(--rose-soft);
  font-family: Georgia, serif;
  font-size: 15px;
  font-weight: 700;
}

.four h3 {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: .2px;
}

.four p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.85;
}

/* ---------- 界面展示：相片框 ---------- */
.screens {
  padding: 68px 0 76px;
}

.covers {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.covers figure {
  min-width: 0;
  margin: 0;
  padding: 10px 10px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 10px 22px rgba(46, 31, 39, .07);
}

.covers figure:nth-child(odd) { transform: rotate(-1.2deg); }
.covers figure:nth-child(even) { transform: rotate(1.1deg); }

.covers img {
  width: 100%;
  aspect-ratio: 9 / 15;
  border-radius: var(--radius-sm);
  object-fit: cover;
  object-position: top center;
  background: var(--blush);
}

.covers figcaption {
  padding: 10px 2px 0;
}

.covers b {
  display: block;
  font-size: 13px;
  font-weight: 800;
}

.covers small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 11px;
    line-height: 1.6;
}

/* ---------- FAQ：双列折叠 ---------- */
.faq {
  padding: 66px 0 30px;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, #FFFDFE 0%, #FFF7FA 100%);
}

.faq-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 14px;
}

.faq-item {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  overflow: hidden;
}

.faq-item[open] {
  border-color: #F3B9CE;
  box-shadow: 0 8px 18px rgba(232, 106, 155, .09);
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 58px;
  padding: 0 18px;
  gap: 12px;
  cursor: pointer;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary h3 {
  margin: 0;
  font-size: 14.5px;
  font-weight: 700;
  line-height: 1.5;
  text-align: left;
}

.faq-item summary .icon {
  flex: none;
  transition: transform .2s ease;
  filter: invert(48%) sepia(46%) saturate(1560%) hue-rotate(295deg) brightness(92%) contrast(92%);
}

.faq-item[open] summary .icon {
  transform: rotate(45deg);
}

.faq-answer {
  padding: 0 18px 16px;
}

.faq-answer p {
  margin: 0;
  color: var(--muted);
  font-size: 13.6px;
  line-height: 1.86;
}

/* ---------- 官方入口 ---------- */
.official {
  padding: 26px 0 70px;
  background: linear-gradient(180deg, #FFF7FA 0%, #FFFDFE 100%);
}

.official-fold {
  border: 1px solid #F0B9CD;
  border-radius: var(--radius);
  background: #fff;
  overflow: hidden;
}

.official-fold summary {
  display: flex;
  align-items: center;
  min-height: 54px;
  padding: 0 20px;
  cursor: pointer;
  list-style: none;
  color: var(--rose-deep);
  font-size: 14px;
  font-weight: 700;
}

.official-fold summary::-webkit-details-marker {
  display: none;
}

.official-fold summary::after {
  margin-left: auto;
  content: "展开";
  color: var(--muted);
  font-size: 11px;
  font-weight: 400;
}

.official-fold[open] summary::after {
  content: "收起";
}

.official-fold .official-link {
  padding: 4px 20px 18px;
  border-top: 1px dashed var(--line);
}

.official-fold .official-link p {
  margin: 12px 0 0;
  font-size: 14px;
}

.official-fold .official-link a {
  color: var(--rose-deep);
  font-weight: 700;
  word-break: break-all;
}

/* ---------- 用户评价 ---------- */
.reviews {
  padding: 68px 0 72px;
  background: #2E1F27;
  color: #fff;
}

.reviews .eyebrow {
  color: #F3A7C2;
}

.reviews .section-heading h2 {
  color: #fff;
}

.reviews .section-heading > p:last-child {
  color: #C9B4BE;
}

.rgrid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.review-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 22px 22px 18px;
  border: 1px solid #4A3540;
  border-radius: var(--radius);
  background: #3A2A33;
}

.review-card::before {
  position: absolute;
  top: 10px;
  right: 18px;
  content: "”";
  color: #6D505F;
  font-family: Georgia, serif;
  font-size: 46px;
  line-height: 1;
}

.review-card header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 12px;
  border-bottom: 1px solid #4A3540;
}

.review-card header b {
  color: #F7D7E3;
  font-size: 13px;
  font-weight: 700;
}

.review-card time {
  color: #A98F9B;
  font-size: 11px;
  white-space: nowrap;
}

.review-card > p {
  margin: 14px 0 0;
  color: #E4D2DA;
  font-size: 13.4px;
  line-height: 1.9;
}

.rv-site {
  margin-top: auto;
  padding-top: 14px;
  color: #F3A7C2;
  font-size: 11.5px;
  letter-spacing: .2px;
}

/* ---------- 下载收尾 ---------- */
.download-cta {
  padding: 76px 0 80px;
  text-align: center;
  background:
    radial-gradient(circle at 50% 120%, #FFE3ED 0%, rgba(255, 227, 237, 0) 62%),
    #FFFDFE;
}

.download-cta .section-heading {
  max-width: 660px;
  margin: 0 auto 26px;
}

.download-cta .section-heading h2 {
  font-size: clamp(28px, 3.4vw, 40px);
}

.download-cta .button {
  min-width: 210px;
}

.disclaimer {
  max-width: 640px;
  margin: 22px auto 0;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.85;
}

/* ---------- 页脚 ---------- */
.site-footer {
  padding: 30px 0 18px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  background: #FFF7FA;
  font-size: 12.5px;
  text-align: center;
}

.site-footer p {
  margin: 6px 0;
}

.site-footer a {
  color: var(--rose-deep);
  border-bottom: 1px dotted #E8A8BF;
}

.site-footer a:hover {
  color: var(--ink);
}

.site-footer .icp {
  color: #A98F9B;
  font-size: 12px;
}

/* ---------- 返回顶部 ---------- */
.to-top {
  position: fixed;
  right: 22px;
  bottom: 156px;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  background: var(--rose);
  box-shadow: 0 10px 22px rgba(178, 62, 110, .3);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity .2s ease, transform .2s ease, visibility .2s ease;
}

.to-top::before {
  width: 8px;
  height: 8px;
  content: "";
  border-top: 2px solid #fff;
  border-left: 2px solid #fff;
  transform: rotate(45deg) translate(1px, 1px);
}

.to-top.is-show {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: none;
}

.to-top:hover {
  background: var(--rose-deep);
}

/* ---------- 响应式 ---------- */
@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 30px;
  }

  .hero-bookshelf {
    margin: 0 auto;
    max-width: 460px;
  }

  .fours {
    grid-template-columns: minmax(0, 1fr);
  }

  .covers {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  .rgrid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .faq-list {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 760px) {
  :root {
    --header-height: 62px;
  }

  body {
    padding-top: var(--header-height);
  }

  .site-header {
    position: fixed;
    right: 0;
    left: 0;
    width: 100%;
    background: #FFFDFE;
  }

  .page-shell,
  .nav-shell {
    width: min(calc(100% - 30px), var(--shell));
  }

  .nav-shell {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto auto;
    align-items: center;
    min-height: var(--header-height);
    column-gap: 8px;
  }

  .brand {
    grid-column: 1;
    font-size: 16px;
    gap: 7px;
  }

  .brand img {
    width: 32px;
    height: 32px;
    border-radius: 10px;
  }

  .primary-nav {
    display: none;
    grid-column: 1 / -1;
    grid-row: 2;
    margin: 0 -15px;
    padding: 0 15px 13px;
    border-top: 1px solid var(--line);
    background: #FFFDFE;
  }

  .primary-nav.is-open {
    display: block;
  }

  .primary-nav ul {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
    padding-top: 12px;
  }

  .primary-nav a {
    display: block;
    padding: 9px 12px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--blush);
    font-size: 13px;
  }

  .nav-download {
    grid-column: 3;
    min-width: auto;
    min-height: 34px;
    padding: 0 10px;
    font-size: 12px;
    border-radius: 10px;
  }

  .nav-download .icon {
    width: 14px;
    height: 14px;
  }

  .menu-toggle {
    display: inline-flex;
    grid-column: 4;
    width: 34px;
    height: 34px;
    border-radius: 10px;
  }

  .hero {
    padding: 40px 0 44px;
  }

  .hero-copy {
    max-width: 100%;
    text-align: center;
  }

  .hero-summary {
    margin-right: auto;
    margin-left: auto;
    font-size: 14.5px;
  }

  .hero h1 {
    font-size: 38px;
  }

  .hero-title {
    font-size: 22px;
  }

  .bs-shelf {
    min-height: 232px;
    gap: 5px;
  }

  .bs-spine {
    width: 36px;
    padding: 12px 0 10px;
  }

  .bs-spine span {
    font-size: 12.5px;
  }

  .bs-spine em {
    display: none;
  }

  .bs-cover {
    width: 74px;
  }

  .bs-cover img {
    width: 74px;
    height: 104px;
  }

  .routes,
  .screens,
  .reviews {
    padding: 48px 0;
  }

  .faq {
    padding: 48px 0 22px;
  }

  .official {
    padding: 20px 0 48px;
  }

  .section-heading h2 {
    font-size: 26px;
  }

  .four {
    padding: 22px 20px 22px 66px;
  }

  .four .n {
    top: 20px;
    left: 18px;
    width: 34px;
    height: 34px;
    font-size: 13px;
  }

  .covers {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: auto;
    margin-right: 0;
    gap: 12px;
  }

  .covers figure {
    flex: none;
  }

  .rgrid {
    grid-template-columns: minmax(0, 1fr);
  }

  .download-cta {
    padding: 54px 0 58px;
  }

  .download-cta .button {
    width: 100%;
  }

  .to-top {
    right: 14px;
    bottom: 132px;
    width: 38px;
    height: 38px;
  }
}

@media (max-width: 380px) {
  .brand span {
    font-size: 14px;
  }

  .nav-download span {
    display: none;
  }

  .nav-download {
    width: 34px;
    padding: 0;
  }

  .hero h1 {
    font-size: 32px;
  }

  .primary-nav ul {
    grid-template-columns: minmax(0, 1fr);
  }

  .bs-spine:nth-child(5) {
    display: none;
  }
}
