/* ==========================================================
   JM漫画 · 单页官网（jmmanhuaapp1.cn）
   天蓝底 / 莓红 / 黄油黄 —— 圆角卡片式阅读应用站
   ========================================================== */

:root {
  --bg: #eef6fb;
  --bg-2: #e4f0f9;
  --surface: #ffffff;
  --ink: #1c2430;
  --ink-soft: #35414f;
  --muted: #64717f;
  --berry: #d81b4a;
  --berry-d: #b3123c;
  --butter: #ffc247;
  --sky: #4aa3d8;
  --mint: #43b581;
  --line: #d9e9f4;
  --maxw: 1140px;
  --radius: 22px;
  --shadow: 0 24px 50px -34px rgba(28, 62, 92, 0.5);
  --shadow-lift: 0 30px 60px -32px rgba(28, 62, 92, 0.55);
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-size: 16px;
  line-height: 1.7;
  background:
    radial-gradient(900px 420px at 82% -60px, #fff4d8 0%, rgba(255, 244, 216, 0) 70%),
    radial-gradient(700px 380px at -80px 240px, #ffe6ee 0%, rgba(255, 230, 238, 0) 70%),
    var(--bg);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
}

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

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 999px;
  font-family: inherit;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.btn-primary {
  background: var(--berry);
  border: 1px solid var(--berry);
  color: #fff;
  box-shadow: 0 14px 26px -16px rgba(216, 27, 74, 0.85);
}

.btn-primary:hover {
  background: var(--berry-d);
  border-color: var(--berry-d);
}

.btn-soft {
  background: var(--surface);
  border: 1px solid #cfe2ef;
  color: var(--ink);
}

.btn-soft:hover {
  border-color: var(--berry);
  color: var(--berry);
}

.btn-white {
  background: #fff;
  border: 1px solid #fff;
  color: var(--berry);
}

.btn-white:hover {
  background: #fff2f6;
  border-color: #fff2f6;
}

.btn-lg {
  padding: 14px 30px;
  font-size: 15px;
}

.btn-xl {
  padding: 17px 46px;
  font-size: 16.5px;
}

.btn:focus-visible,
.menu-btn:focus-visible,
.faq-q:focus-visible,
a:focus-visible {
  outline: 2px solid var(--berry);
  outline-offset: 3px;
}

/* ---------- 顶栏 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(238, 246, 251, 0.88);
  border-bottom: 1px solid transparent;
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.site-header.scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 12px 30px -26px rgba(28, 62, 92, 0.6);
}

.header-inner {
  height: 72px;
  display: flex;
  align-items: center;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex: 0 0 auto;
}

.brand-logo {
  border-radius: 11px;
}

.brand-name {
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1;
}

.brand-accent {
  color: var(--berry);
}

.nav {
  display: flex;
  align-items: center;
  gap: 30px;
  margin-left: auto;
}

.nav a {
  font-size: 14.5px;
  color: var(--ink-soft);
  text-decoration: none;
  padding: 4px 0;
  border-bottom: 1.5px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.nav a:hover {
  color: var(--berry);
  border-bottom-color: var(--berry);
}

.header-btn {
  padding: 10px 22px;
  font-size: 14px;
}

.menu-btn {
  display: none;
  width: 42px;
  height: 42px;
  margin-left: auto;
  padding: 0;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  cursor: pointer;
}

.menu-btn span {
  display: block;
  width: 17px;
  height: 1.7px;
  background: var(--ink);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.menu-btn[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(6.7px) rotate(45deg);
}

.menu-btn[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.menu-btn[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-6.7px) rotate(-45deg);
}

/* ---------- Hero ---------- */
.hero {
  padding-top: 46px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  gap: 56px;
  align-items: center;
  padding-bottom: 46px;
}

.eyebrow {
  margin: 0 0 14px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--berry);
}

.hero-title {
  margin: 0;
  font-size: clamp(64px, 8.2vw, 106px);
  font-weight: 800;
  line-height: 0.98;
  letter-spacing: -0.045em;
}

.hero-title .accent {
  color: var(--berry);
}

.hero-sub {
  max-width: 460px;
  margin: 24px 0 0;
  font-size: 16px;
  line-height: 1.9;
  color: var(--muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.hero-note {
  margin: 18px 0 0;
  font-size: 12.5px;
  color: #7d8b99;
}

.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px 0 26px;
}

.blob {
  position: absolute;
  border-radius: 50%;
  z-index: 0;
}

.blob-yellow {
  top: -6px;
  right: 4%;
  width: 170px;
  height: 170px;
  background: radial-gradient(circle at 30% 30%, #ffe08f, #ffc247);
  opacity: 0.55;
}

.blob-blue {
  bottom: 8px;
  right: 0;
  width: 96px;
  height: 96px;
  background: #bfe3f6;
  opacity: 0.7;
}

.hero-card {
  position: relative;
  z-index: 1;
  margin: 0;
  width: 86%;
  max-width: 440px;
  border-radius: 30px;
  overflow: hidden;
  background: #cfe3f0;
  box-shadow: var(--shadow-lift);
}

.hero-card img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center 40%;
}

.hero-card figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 56px 22px 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: linear-gradient(rgba(18, 26, 38, 0), rgba(18, 26, 38, 0.74));
  color: #fff;
}

.hero-chip {
  align-self: flex-start;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--berry);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.hero-card figcaption strong {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
}

.hero-logo {
  position: absolute;
  z-index: 3;
  top: 10px;
  left: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 18px 9px 9px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 18px 34px -24px rgba(28, 62, 92, 0.7);
}

.hero-logo img {
  border-radius: 11px;
}

.hero-logo strong {
  display: block;
  font-size: 14px;
  line-height: 1.2;
}

.hero-logo span {
  display: block;
  margin-top: 2px;
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.05em;
}

.hero-mini {
  position: absolute;
  z-index: 3;
  right: -4px;
  bottom: -12px;
  width: 96px;
  padding: 5px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 22px 40px -22px rgba(28, 62, 92, 0.7);
  transform: rotate(5deg);
}

.hero-mini img {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: center 30%;
  border-radius: 9px;
}

.stat-bar {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  padding: 24px 30px;
  background: var(--surface);
  border-radius: 22px;
  box-shadow: var(--shadow);
}

.stat strong {
  display: block;
  font-size: 27px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--berry);
}

.stat span {
  display: block;
  margin-top: 2px;
  font-size: 13px;
  color: var(--muted);
}

.stat + .stat {
  border-left: 1px solid var(--line);
  padding-left: 24px;
}

/* ---------- 区块 ---------- */
.section {
  padding: 82px 0;
  scroll-margin-top: 88px;
}

.section-tint {
  background: linear-gradient(180deg, #e6f2fa 0%, rgba(230, 242, 250, 0) 100%);
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 40px;
}

.section-head h2 {
  margin: 0;
  font-size: clamp(26px, 3.2vw, 38px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.25;
}

.section-desc {
  margin: 12px 0 0;
  max-width: 540px;
  font-size: 15px;
  line-height: 1.85;
  color: var(--muted);
}

.text-link {
  flex: 0 0 auto;
  font-size: 14px;
  color: var(--berry);
  text-decoration: none;
  border-bottom: 1px solid rgba(216, 27, 74, 0.35);
  padding-bottom: 2px;
}

.text-link:hover {
  border-bottom-color: var(--berry);
}

/* ---------- 书架 ---------- */
.shelf {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

.book {
  background: var(--surface);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.book:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lift);
}

.book-cover {
  position: relative;
  aspect-ratio: 4 / 5;
  background: #dbeaf4;
}

.book-cover img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.book-tag {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 4px 11px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--berry);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.book-body {
  padding: 18px 20px 22px;
}

.book-body h3 {
  margin: 0;
  font-size: 17px;
  letter-spacing: -0.01em;
}

.book-body p {
  margin: 7px 0 0;
  font-size: 13.5px;
  line-height: 1.75;
  color: var(--muted);
}

/* ---------- 功能卡 ---------- */
.features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.feature {
  padding: 24px 22px 26px;
  background: var(--surface);
  border-radius: 20px;
  box-shadow: var(--shadow);
}

.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 14px;
}

.feature-icon svg {
  width: 22px;
  height: 22px;
}

.icon-berry {
  background: #ffe4ec;
  color: var(--berry);
}

.icon-sky {
  background: #e2f2fb;
  color: #2378ac;
}

.icon-butter {
  background: #fff1cd;
  color: #a06a00;
}

.icon-mint {
  background: #e2f6ea;
  color: #2b8259;
}

.feature h3 {
  margin: 16px 0 0;
  font-size: 17px;
  letter-spacing: -0.01em;
}

.feature p {
  margin: 7px 0 0;
  font-size: 13.5px;
  line-height: 1.8;
  color: var(--muted);
}

/* ---------- 题材标签 ---------- */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.chip {
  padding: 10px 22px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid #cfe3f0;
  font-size: 14.5px;
  color: var(--ink-soft);
}

.chip-berry {
  background: var(--berry);
  border-color: var(--berry);
  color: #fff;
}

.chip-butter {
  background: #fff4d8;
  border-color: #ffda8f;
  color: #8a5c00;
}

.chip-sky {
  background: #e2f2fb;
  border-color: #bae0f3;
  color: #1f6d99;
}

.chip-mint {
  background: #e2f6ea;
  border-color: #bfead1;
  color: #2b7d57;
}

/* ---------- 三步 ---------- */
.steps-panel {
  padding: 44px;
  border-radius: 28px;
  background: linear-gradient(135deg, #ffe9f0 0%, #fff6e2 100%);
}

.steps-head h2 {
  margin: 0;
  font-size: clamp(24px, 2.8vw, 32px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.3;
}

.steps-head p:last-child {
  margin: 12px 0 0;
  max-width: 560px;
  font-size: 14px;
  line-height: 1.85;
  color: #6f6570;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.steps li {
  padding: 20px 18px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 18px;
}

.step-no {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--berry);
}

.steps h3 {
  margin: 8px 0 0;
  font-size: 16px;
}

.steps p {
  margin: 6px 0 0;
  font-size: 13px;
  line-height: 1.75;
  color: var(--muted);
}

/* ---------- 下载 ---------- */
.cta {
  padding: 68px 0;
  background:
    radial-gradient(600px 260px at 88% 0%, rgba(255, 194, 71, 0.35) 0%, rgba(255, 194, 71, 0) 70%),
    linear-gradient(120deg, #d81b4a 0%, #a80f38 100%);
  color: #fff;
}

.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.eyebrow-light {
  color: #ffe0a3;
}

.cta h2 {
  margin: 0;
  font-size: clamp(28px, 3.8vw, 44px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.cta-copy p:last-child {
  margin: 12px 0 0;
  max-width: 460px;
  font-size: 15px;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.78);
}

.cta-action {
  flex: 0 0 auto;
  text-align: center;
}

.cta-meta {
  display: block;
  margin-top: 12px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.7);
}

/* ---------- FAQ ---------- */
.faq {
  max-width: 840px;
}

.faq-item {
  background: var(--surface);
  border-radius: 16px;
  box-shadow: var(--shadow);
  margin-bottom: 12px;
}

.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 22px;
  background: none;
  border: 0;
  text-align: left;
  font-family: inherit;
  font-size: 15.5px;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
}

.faq-icon {
  position: relative;
  flex: 0 0 16px;
  width: 16px;
  height: 16px;
}

.faq-icon::before,
.faq-icon::after {
  content: "";
  position: absolute;
  left: 0;
  top: 7.2px;
  width: 16px;
  height: 1.7px;
  background: var(--berry);
  transition: transform 0.24s ease;
}

.faq-icon::after {
  transform: rotate(90deg);
}

.faq-item.open .faq-icon::after {
  transform: rotate(0deg);
}

.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.28s ease;
}

.faq-a p {
  margin: 0;
  padding: 0 22px 20px;
  max-width: 720px;
  font-size: 14px;
  line-height: 1.9;
  color: var(--muted);
}

/* ---------- 页脚 ---------- */
.site-footer {
  padding: 42px 0 32px;
  background: #e2eef7;
}

.footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid #cfe0ec;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}

.footer-nav a {
  font-size: 13.5px;
  color: var(--muted);
  text-decoration: none;
}

.footer-nav a:hover {
  color: var(--berry);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 20px;
}

.footer-bottom p {
  margin: 0;
  font-size: 12.5px;
  color: #7d8b99;
}

/* ---------- 响应式 ---------- */
@media (max-width: 1024px) {
  .features {
    grid-template-columns: repeat(2, 1fr);
  }

  .steps-head p:last-child {
    max-width: 620px;
  }
}

@media (max-width: 900px) {
  .nav {
    display: none;
  }

  .nav.open {
    display: flex;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 24px 18px;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 20px 32px -28px rgba(28, 62, 92, 0.6);
  }

  .nav.open a {
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
    font-size: 15px;
  }

  .header-btn {
    display: none;
  }

  .menu-btn {
    display: inline-flex;
  }

  .hero {
    padding-top: 34px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
    padding-bottom: 38px;
  }

  .hero-visual {
    max-width: 480px;
    width: 100%;
    margin: 0 auto;
    padding: 10px 0 24px;
  }

  .hero-card {
    width: 88%;
  }

  .hero-logo {
    top: 0;
    left: 2%;
  }

  .section {
    padding: 62px 0;
  }

  .shelf {
    grid-template-columns: 1fr;
    max-width: 380px;
    margin: 0 auto;
  }

  .steps {
    grid-template-columns: 1fr;
  }

  .steps-panel {
    padding: 32px 26px;
  }

  .cta-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 26px;
  }

  .cta-action {
    text-align: left;
  }

  .footer-top {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
}

@media (max-width: 560px) {
  .container {
    padding: 0 20px;
  }

  .hero-title {
    font-size: clamp(56px, 17vw, 76px);
  }

  .hero-actions {
    gap: 10px;
  }

  .btn-lg {
    flex: 1 1 auto;
    padding: 13px 18px;
  }

  .features {
    grid-template-columns: 1fr;
  }

  .stat-bar {
    padding: 20px 18px;
    gap: 12px;
  }

  .stat strong {
    font-size: 22px;
  }

  .stat + .stat {
    padding-left: 12px;
  }

  .stat span {
    font-size: 11.5px;
    line-height: 1.5;
  }

  .hero-mini {
    width: 84px;
    right: -2px;
  }

  .hero-logo {
    padding: 8px 14px 8px 8px;
  }

  .hero-card figcaption {
    padding: 48px 18px 16px;
  }

  .hero-card figcaption strong {
    font-size: 15px;
  }

  .section-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .steps-panel {
    border-radius: 22px;
    padding: 26px 20px;
  }

  .btn-xl {
    width: 100%;
  }

  .cta-action {
    width: 100%;
  }

  .faq-q {
    font-size: 15px;
    padding: 18px;
  }

  .faq-a p {
    padding: 0 18px 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
  }
}
