/* ==========================================================
   JM漫画 · 单页官网
   奶油纸底 / 墨黑 / 品牌橙 —— 杂志编辑式排版
   ========================================================== */

:root {
  --paper: #f6f2ea;
  --paper-2: #efe8da;
  --ink: #17130f;
  --ink-soft: #3b342c;
  --muted: #746b5f;
  --orange: #ff5a00;
  --orange-d: #e04a00;
  --amber: #ffb03a;
  --line: rgba(23, 19, 15, 0.14);
  --maxw: 1140px;
  --radius: 18px;
  --shadow: 0 30px 60px -28px rgba(40, 26, 12, 0.45);
  --display: Georgia, "Times New Roman", "Songti SC", "SimSun", serif;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: var(--paper);
  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;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: inherit;
}

::selection {
  background: var(--orange);
  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-weight: 600;
  font-family: inherit;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

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

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

.btn-ghost {
  background: transparent;
  border: 1px solid rgba(23, 19, 15, 0.24);
  color: var(--ink);
}

.btn-ghost:hover {
  border-color: var(--ink);
  background: rgba(23, 19, 15, 0.04);
}

.btn-lg {
  padding: 14px 32px;
  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(--orange);
  outline-offset: 3px;
}

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

.site-header.scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 10px 30px -24px rgba(30, 20, 10, 0.5);
}

.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(--orange);
}

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

.nav a {
  position: relative;
  font-size: 14.5px;
  color: var(--ink-soft);
  text-decoration: none;
  padding: 4px 0;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 1.5px;
  background: var(--orange);
  transition: width 0.22s ease;
}

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

.nav a:hover::after {
  width: 100%;
}

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

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

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

.menu-btn[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(6.6px) 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.6px) rotate(-45deg);
}

/* ---------- Hero ---------- */
.hero {
  padding-top: 54px;
  border-bottom: 1px solid var(--line);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.04fr 0.96fr;
  gap: 48px;
  align-items: center;
  padding-bottom: 58px;
}

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

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

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

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

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.hero-note {
  margin: 20px 0 0;
  font-size: 12.5px;
  color: #8b8276;
  letter-spacing: 0.01em;
}

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

.hero-panel {
  position: absolute;
  top: 20px;
  bottom: 20px;
  right: 5%;
  width: 300px;
  border-radius: 28px;
  background: linear-gradient(155deg, #ff6a10, #ffb03a);
  opacity: 0.16;
  transform: rotate(6deg);
}

.phone {
  position: relative;
  background: #17130f;
  border-radius: 38px;
  padding: 9px;
  box-shadow: var(--shadow);
}

.phone img {
  width: 100%;
  height: auto;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  object-position: top center;
  border-radius: 30px;
  background: #111;
}

.phone-hero {
  width: 300px;
  transform: rotate(1.6deg);
  z-index: 2;
}

.hero-badge {
  position: absolute;
  left: 0;
  bottom: 6px;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 18px 9px 9px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 15px;
  box-shadow: 0 18px 34px -22px rgba(40, 26, 12, 0.55);
}

.hero-badge img {
  border-radius: 10px;
}

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

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

.stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  border-top: 1px solid var(--line);
  padding: 26px 0 34px;
}

.stat strong {
  display: block;
  font-family: var(--display);
  font-size: 34px;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.15;
}

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

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

/* ---------- 区块通用 ---------- */
.section {
  padding: 84px 0;
  border-top: 1px solid var(--line);
  scroll-margin-top: 88px;
}

.section-alt {
  background: var(--paper-2);
}

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

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

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

.section-index {
  font-family: var(--display);
  font-size: 58px;
  line-height: 0.9;
  letter-spacing: -0.04em;
  color: rgba(23, 19, 15, 0.12);
  flex: 0 0 auto;
}

/* ---------- 界面一览 ---------- */
.screens {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.screen {
  margin: 0;
}

.phone-sm {
  padding: 7px;
  border-radius: 30px;
  box-shadow: 0 22px 44px -28px rgba(40, 26, 12, 0.5);
}

.phone-sm img {
  border-radius: 24px;
}

.screen figcaption {
  margin-top: 18px;
}

.screen figcaption strong {
  display: block;
  font-size: 15px;
}

.screen figcaption span {
  display: block;
  margin-top: 6px;
  font-size: 13.5px;
  line-height: 1.75;
  color: var(--muted);
}

/* ---------- 阅读体验 ---------- */
.features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

.feature {
  border-top: 1px solid rgba(23, 19, 15, 0.22);
  padding-top: 20px;
}

.feature-no {
  font-family: var(--display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--orange);
}

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

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

/* ---------- 题材分区 ---------- */
.genres {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  column-gap: 56px;
}

.genre {
  display: flex;
  gap: 16px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}

.genre-dot {
  flex: 0 0 8px;
  width: 8px;
  height: 8px;
  margin-top: 9px;
  background: var(--orange);
}

.genre h3 {
  margin: 0;
  font-size: 16.5px;
  letter-spacing: -0.01em;
}

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

/* ---------- 本周榜单 ---------- */
.ranking {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
}

.ranking li {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr) auto;
  align-items: center;
  gap: 26px;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}

.rank-no {
  font-family: var(--display);
  font-size: 42px;
  line-height: 1;
  color: rgba(23, 19, 15, 0.2);
  letter-spacing: -0.03em;
}

.rank-main h3 {
  margin: 0;
  font-size: 18px;
}

.rank-main p {
  margin: 4px 0 0;
  font-size: 13.5px;
  line-height: 1.75;
  color: var(--muted);
}

.rank-tag {
  font-size: 12px;
  color: var(--orange-d);
  border: 1px solid rgba(255, 90, 0, 0.34);
  border-radius: 999px;
  padding: 4px 12px;
  white-space: nowrap;
}

/* ---------- 阅读手记 ---------- */
.notes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.note {
  border-top: 1px solid rgba(23, 19, 15, 0.22);
  padding-top: 20px;
}

.note-no {
  font-family: var(--display);
  font-size: 13px;
  font-weight: 700;
  color: var(--orange);
  letter-spacing: 0.08em;
}

.note h3 {
  margin: 10px 0 0;
  font-size: 17px;
  line-height: 1.55;
  letter-spacing: -0.01em;
}

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

/* ---------- 下载区块 ---------- */
.cta {
  background: var(--ink);
  color: #fff;
  padding: 76px 0;
}

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

.eyebrow-light {
  color: var(--amber);
}

.cta h2 {
  margin: 0;
  font-size: clamp(30px, 4vw, 48px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

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

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

.cta-meta {
  display: block;
  margin-top: 12px;
  font-size: 12px;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.5);
}

/* ---------- FAQ ---------- */
.faq-wrap,
.faq {
  max-width: 860px;
}

.faq {
  border-top: 1px solid var(--line);
}

.faq-item {
  border-bottom: 1px solid var(--line);
}

.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 0;
  background: none;
  border: 0;
  text-align: left;
  font-family: inherit;
  font-size: 16px;
  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.6px;
  background: var(--orange);
  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 0 22px;
  max-width: 720px;
  font-size: 14px;
  line-height: 1.9;
  color: var(--muted);
}

/* ---------- 页脚 ---------- */
.site-footer {
  background: var(--paper-2);
  border-top: 1px solid var(--line);
  padding: 44px 0 34px;
}

.footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 26px;
  border-bottom: 1px solid var(--line);
}

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

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

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

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

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

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

  .hero-panel {
    right: 2%;
  }
}

@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 20px;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 18px 30px -26px rgba(30, 20, 10, 0.6);
  }

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

  .nav.open a::after {
    display: none;
  }

  .header-btn {
    display: none;
  }

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

  .hero {
    padding-top: 38px;
  }

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

  .hero-sub {
    max-width: 560px;
  }

  .hero-visual {
    padding-top: 4px;
  }

  .phone-hero {
    width: 280px;
  }

  .hero-panel {
    width: 250px;
    right: 7%;
  }

  .hero-badge {
    left: 6%;
  }

  .section {
    padding: 64px 0;
  }

  .section-head {
    margin-bottom: 36px;
  }

  .section-index {
    font-size: 44px;
  }

  .screens {
    grid-template-columns: 1fr;
    gap: 38px;
    max-width: 340px;
    margin: 0 auto;
  }

  .genres {
    grid-template-columns: 1fr;
    column-gap: 0;
  }

  .notes {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .ranking li {
    grid-template-columns: 70px minmax(0, 1fr) auto;
    gap: 18px;
  }

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

  .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 20px;
  }

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

  .stat-row {
    gap: 12px;
  }

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

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

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

  .section-index {
    display: none;
  }

  .ranking li {
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 14px;
    padding: 20px 0;
  }

  .rank-no {
    font-size: 30px;
  }

  .rank-tag {
    grid-column: 2;
    justify-self: start;
    margin-top: 2px;
  }

  .cta {
    padding: 56px 0;
  }

  .btn-xl {
    width: 100%;
  }

  .cta-action {
    width: 100%;
  }

  .faq-q {
    font-size: 15px;
    gap: 14px;
  }

  .phone-hero {
    width: 250px;
  }

  .hero-panel {
    width: 220px;
    right: 4%;
  }

  .hero-badge {
    left: 0;
    padding: 8px 14px 8px 8px;
  }
}

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