/* ═══════════════════════════════════════════════════════════════
   诗囊 · 营销落地页样式(Phase 2)
   纸墨主题 / BEM / 移动优先 320–1920px / 渐进增强
   ═══════════════════════════════════════════════════════════════ */

/* ── T2.1 CSS Variables & 基础 ─────────────────────────────── */
:root {
  --paper: #f6f2e9;
  --paper-alt: #efe9dc;
  --ink: #1c1a17;
  --ink-soft: #4a453d;
  --cinnabar: #b03a2e;
  --gold: #a8874f;
  --line: rgba(28, 26, 23, .14);
  --serif: 'Noto Serif SC', 'Songti SC', 'SimSun', serif;
  --sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC',
          'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  --num: 'Noto Serif SC', 'Songti SC', 'Georgia', serif;
  --wrap: 1120px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

/* 旋转样机出血防线:任何情况下禁横向滚动 */
html, body { overflow-x: clip; }

h1, h2, h3 { font-family: var(--serif); font-weight: 700; line-height: 1.3; }

section, .footer-cta { padding: 4rem 1.25rem; }
section > h2, .footer-cta > h2 {
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  text-align: center;
  margin-bottom: .5rem;
}
.section-sub { text-align: center; color: var(--ink-soft); margin-bottom: 2.5rem; }

/* 淡墨分隔线(区块间母题) */
.stats, .features, .faq { border-top: 1px solid var(--line); }

/* ── 按钮(拇指热区 ≥48px) ─────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: .6em 1.6em;
  font: inherit;
  font-size: 1rem;
  border-radius: 4px;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
.btn-primary { background: var(--cinnabar); color: #fff; }
.btn-primary:hover { background: #933025; }
.btn-outline { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-outline:hover { background: var(--ink); color: var(--paper); }
.btn-lg { font-size: 1.1rem; min-height: 52px; padding: .7em 2em; }

/* ── NAV ──────────────────────────────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .6rem 1.25rem;
  background: rgba(246, 242, 233, .92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav-brand {
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: .5rem;
}
/* 朱砂印章已由品牌 logo 图替代(2026-09-10) */
.nav-links { display: none; align-items: center; gap: 1.4rem; }
.nav-links a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: .95rem;
}
.nav-links a:hover { color: var(--cinnabar); }
.nav-links .btn { min-height: 40px; padding: .3em 1.2em; }

/* 移动端折叠菜单(原生 details) */
.nav-fold { position: relative; }
.nav-fold summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px 8px;
}
.nav-fold summary::-webkit-details-marker { display: none; }
.nav-fold summary span {
  height: 2px;
  background: var(--ink);
  border-radius: 1px;
}
.nav-fold-panel {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  display: flex;
  flex-direction: column;
  gap: .2rem;
  min-width: 200px;
  padding: 1rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 6px;
  box-shadow: 0 8px 24px rgba(28, 26, 23, .12);
}
.nav-fold-panel a {
  color: var(--ink);
  text-decoration: none;
  padding: .5rem .75rem;
  border-radius: 4px;
}
.nav-fold-panel a:hover { background: var(--paper-alt); }

/* ── 1. HERO ──────────────────────────────────────────────── */
.hero {
  position: relative;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 3.5rem 1.25rem 4.5rem;
  display: grid;
  gap: 3rem;
}
/* 标题旁竖排小字装饰(母题) */
.hero::before {
  content: '詩囊 · 離線中華詩庫';
  position: absolute;
  top: 4.5rem;
  right: .9rem;
  writing-mode: vertical-rl;
  font-family: var(--serif);
  font-size: .8rem;
  letter-spacing: .5em;
  color: var(--gold);
  opacity: .75;
}
.hero-kicker {
  display: inline-block;
  color: var(--cinnabar);
  font-size: .9rem;
  letter-spacing: .3em;
  margin-bottom: 1rem;
}
.hero h1 {
  font-size: clamp(2.1rem, 7vw, 3.4rem);
  letter-spacing: .04em;
}
.hero-sub {
  margin: 1.2rem 0 1.8rem;
  color: var(--ink-soft);
  font-size: 1.05rem;
  max-width: 34em;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: .9rem; }
.hero-trust { margin-top: 1.6rem; font-size: .85rem; color: var(--gold); }

/* 手机样机:CSS 外框 + 挖孔暗示 */
.hero-mockup {
  display: flex;
  justify-content: center;
  align-items: flex-start;
}
.phone-frame {
  position: relative;
  width: min(240px, 42vw);
  aspect-ratio: 9 / 19;
  background: #14120f;
  border-radius: 28px;
  padding: 8px;
  box-shadow: 0 18px 40px rgba(28, 26, 23, .28);
  flex: none;
}
.phone-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 20px;
}
/* 挖孔摄像头 */
.phone-frame::after {
  content: '';
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #14120f;
  box-shadow: inset 0 0 2px rgba(255, 255, 255, .25);
  z-index: 1;
}
.hero-mockup .phone-frame:first-child { transform: rotate(-4deg) translateY(14px); z-index: 1; }
.hero-mockup .phone-frame:last-child  { transform: rotate(3deg) translate(-22px, 0); }
.phone-frame-sm {
  width: 100%;
  max-width: 190px;
  aspect-ratio: 9 / 19;
  margin: 0 auto;
  border-radius: 22px;
  padding: 6px;
  box-shadow: 0 10px 26px rgba(28, 26, 23, .18);
}
.phone-frame-sm img { border-radius: 16px; }

/* ── 2. 数据条 ─────────────────────────────────────────────── */
.stats {
  background: var(--paper-alt);
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem 1rem;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 3rem 1.25rem;
}
.stat { text-align: center; min-width: 0; }
.stat-num {
  display: block;
  font-family: var(--num);
  font-size: clamp(1.7rem, 5vw, 2.6rem);
  color: var(--cinnabar);
  line-height: 1.2;
}
.stat-sub { font-size: .55em; margin-left: .1em; }
.stat-label {
  display: block;
  margin-top: .4rem;
  font-size: .85rem;
  color: var(--ink-soft);
}

/* ── 3. Bento ─────────────────────────────────────────────── */
.bento { max-width: var(--wrap); margin: 0 auto; }
.bento-grid { display: grid; grid-template-columns: 1fr; gap: 1.2rem; }
.bento-card {
  background: #fffdf8;
  border: 1px solid var(--line);
  border-top: 3px solid var(--gold);
  border-radius: 8px;
  padding: 1.6rem 1.5rem;
}
.bento-card h3 { font-size: 1.2rem; margin-bottom: .6rem; }
.bento-card p { color: var(--ink-soft); font-size: .95rem; }
.bento-card-lg { border-top-color: var(--cinnabar); }
.trust-line {
  margin-top: 2rem;
  text-align: center;
  font-size: .85rem;
  color: var(--gold);
}

/* ── 4. 功能实景 ──────────────────────────────────────────── */
.features { background: var(--paper-alt); }
.feature-grid {
  max-width: var(--wrap);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem 1.2rem;
}
.feature-card { text-align: center; }
.feature-card .phone-frame-sm {
  background: #fffdf8;
  border: 1px solid var(--line);
  cursor: zoom-in;
}
.feature-card h3 { font-size: 1.1rem; margin: 1rem 0 .4rem; }
.feature-card p {
  font-size: .9rem;
  color: var(--ink-soft);
  max-width: 30em;
  margin: 0 auto;
}

/* ── 5. 场景 ──────────────────────────────────────────────── */
.scenes { max-width: var(--wrap); margin: 0 auto; }
.scene-grid { display: grid; grid-template-columns: 1fr; gap: 1.2rem; }
.scene-card {
  border-left: 3px solid var(--cinnabar);
  background: #fffdf8;
  border-radius: 0 8px 8px 0;
  padding: 1.4rem 1.5rem;
}
.scene-card h3 { font-size: 1.15rem; margin-bottom: .5rem; }
.scene-card p { color: var(--ink-soft); font-size: .95rem; }

/* ── 6. FAQ ──────────────────────────────────────────────── */
.faq { max-width: 760px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.1rem .25rem;
  font-family: var(--serif);
  font-size: 1.05rem;
  min-height: 48px;
}
.faq-item summary::-webkit-details-marker { display: none; }
/* 展开指示 */
.faq-item summary::after {
  content: '+';
  flex: none;
  width: 1.4em;
  height: 1.4em;
  display: grid;
  place-items: center;
  border: 1px solid var(--gold);
  border-radius: 50%;
  color: var(--gold);
  font-family: var(--sans);
}
.faq-item[open] summary::after { content: '−'; }
.faq-item[open] summary { color: var(--cinnabar); }
.faq-item p { padding: 0 .25rem 1.2rem; color: var(--ink-soft); }

/* ── 7. 定价 ─────────────────────────────────────────────── */
.pricing {
  border-top: 1px solid var(--line);
  background: var(--paper-alt);
}
.pricing-grid {
  max-width: 880px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  align-items: stretch;
}
.pricing-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: #fffdf8;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 2rem 1.6rem;
}
.pricing-popular {
  border-color: var(--cinnabar);
  border-width: 2px;
  box-shadow: 0 16px 44px rgba(176, 58, 46, .14);
}
.popular-badge {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--cinnabar);
  color: #fff;
  font-size: .78rem;
  letter-spacing: .2em;
  padding: .28em 1.1em .3em 1.3em;
  border-radius: 999px;
}
.pricing-header { text-align: center; margin-bottom: 1.2rem; }
.pricing-plan { font-size: 1.35rem; margin-bottom: .25rem; }
.pricing-tag { color: var(--ink-soft); font-size: .9rem; }
.pricing-amount {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: .15em;
  margin: 0 0 .8rem;
}
.price-currency {
  font-family: var(--num);
  font-size: 1.5rem;
  color: var(--cinnabar);
}
.price-value {
  font-family: var(--num);
  font-size: clamp(2.8rem, 9vw, 3.4rem);
  font-weight: 700;
  line-height: 1;
  color: var(--ink);
}
.price-period { color: var(--ink-soft); font-size: 1rem; }
.pricing-yearly {
  text-align: center;
  font-size: .9rem;
  color: var(--ink-soft);
  background: rgba(176, 58, 46, .07);
  border: 1px dashed rgba(176, 58, 46, .35);
  border-radius: 6px;
  padding: .45em 1em;
  margin-bottom: 1.4rem;
}
.price-highlight { color: var(--cinnabar); font-weight: 600; }
.pricing-features {
  list-style: none;
  margin: 0 0 1.6rem;
  padding: 0;
  flex: 1;
}
.pricing-features li {
  display: flex;
  align-items: flex-start;
  gap: .6em;
  padding: .45em 0;
  color: var(--ink-soft);
  font-size: .95rem;
}
.pricing-features li::before {
  content: '✓';
  flex: none;
  color: var(--gold);
  font-weight: 700;
}
.pricing-card .btn { width: 100%; }
.pricing-note {
  text-align: center;
  margin-top: 2rem;
  font-size: .88rem;
  color: var(--ink-soft);
}
.pricing-wechat {
  font-family: var(--num);
  color: var(--cinnabar);
  letter-spacing: .05em;
}

/* ── 8. 底部 CTA + 页脚 ───────────────────────────────────── */
.footer-cta {
  background: var(--ink);
  color: var(--paper);
  text-align: center;
}
.footer-cta > h2 { color: var(--paper); }
.footer-cta > p { color: rgba(246, 242, 233, .75); margin-bottom: 1.8rem; }
.site-foot {
  margin-top: 3.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(246, 242, 233, .18);
  font-size: .82rem;
  color: rgba(246, 242, 233, .55);
}
.site-foot p { margin: .3rem 0; }
.site-foot a { color: var(--gold); }

/* ── T2.4 reveal 水墨晕染(仅 html.js 生效,无 JS 全可见) ── */
html.js .reveal {
  opacity: 0;
  filter: blur(6px);
  transition: opacity .6s ease, filter .6s ease;
}
html.js .reveal.in { opacity: 1; filter: blur(0); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    transition: none !important;
    animation: none !important;
  }
  html.js .reveal { opacity: 1; filter: none; }
}

/* ── T2.3 响应式断点 ─────────────────────────────────────── */
@media (max-width: 480px) {
  .hero-mockup .phone-frame { width: min(200px, 41vw); border-radius: 22px; }
  .hero-mockup .phone-frame img { border-radius: 15px; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.6rem .5rem; }
}

@media (min-width: 600px) {
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .scene-grid { grid-template-columns: repeat(3, 1fr); }
  .stats { grid-template-columns: repeat(4, 1fr); }
  .pricing-grid { grid-template-columns: repeat(2, 1fr); gap: 2rem; }
}

@media (min-width: 768px) {
  .nav-fold { display: none; }
  .nav-links { display: flex; }
  .bento-grid { grid-template-columns: 2fr 1fr; }
  .bento-card-lg { grid-row: span 2; }
}

@media (min-width: 1024px) {
  section, .footer-cta { padding: 5.5rem 2rem; }
  .hero {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    align-items: center;
    padding: 5rem 2rem 6rem;
  }
  .hero::before { top: 6rem; right: 2rem; }
  .hero-mockup { justify-content: flex-end; }
  .hero-mockup .phone-frame:first-child { transform: rotate(-4deg) translateY(26px); }
  .hero-mockup .phone-frame:last-child  { transform: rotate(3deg) translate(-40px, 0); }
  .bento-grid { grid-template-columns: 2fr 1fr 1fr; }
  .bento-card-lg { grid-row: span 1; }
  .feature-grid { grid-template-columns: repeat(4, 1fr); }
}

@media (min-width: 1440px) {
  :root { --wrap: 1200px; }
  .hero-mockup .phone-frame { width: 260px; }
}

/* ── T5.0 弹窗/放大遮罩(main.js 动态 DOM)───────────────── */
.modal-mask {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  background: rgba(28, 26, 23, .72);
}
.modal {
  position: relative;
  width: min(360px, 100%);
  background: var(--paper);
  border: 1px solid var(--line);
  border-top: 3px solid var(--cinnabar);
  border-radius: 8px;
  padding: 2.2rem 1.5rem 1.6rem;
  text-align: center;
  box-shadow: 0 24px 60px rgba(28, 26, 23, .4);
}
.modal-close {
  position: absolute;
  top: .4rem;
  right: .4rem;
  width: 44px;
  height: 44px;
  border: none;
  background: transparent;
  color: var(--ink-soft);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  border-radius: 4px;
}
.modal-close:hover { color: var(--cinnabar); }
.modal-title {
  font-family: var(--serif);
  font-size: 1.15rem;
  margin-bottom: 1rem;
}
.modal-wechat {
  display: block;
  width: 100%;
  min-height: 48px;
  font-family: var(--num);
  font-size: 1.15rem;
  letter-spacing: .05em;
  color: var(--cinnabar);
  background: #fffdf8;
  border: 1px dashed var(--gold);
  border-radius: 4px;
  cursor: copy;
  padding: .5em;
}
.modal-wechat:hover, .modal-wechat:focus-visible { border-style: solid; }
.modal-wechat.copied { color: #fff; background: var(--cinnabar); border-color: var(--cinnabar); }
.modal-qr {
  width: min(180px, 60%);
  margin: 1rem auto .4rem;
  border: 1px solid var(--line);
  border-radius: 4px;
}
.modal-hint { font-size: .82rem; color: var(--ink-soft); }

.zoom-mask {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  background: rgba(28, 26, 23, .82);
  cursor: zoom-out;
}
.zoom-mask img {
  max-width: 100%;
  max-height: 100vh;
  width: auto;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .5);
}

@media (prefers-reduced-motion: reduce) {
  .modal-mask, .zoom-mask { transition: none; }
}

/* ── 品牌logo(左上角,2026-09-10) ── */
.nav-brand .brand-logo { width: 26px; height: 26px; flex: none; border-radius: 6px; }

/* ══ 6.5 诗友说(用户反馈)══════════════════════════════════ */
.voices { border-top: 1px solid var(--line); }
.voice-grid { display: grid; grid-template-columns: 1fr; gap: 1.2rem; }
.voice-card {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  background: #fffdf8;
  border: 1px solid var(--line);
  border-top: 3px solid var(--gold);
  border-radius: 8px;
  padding: 1.6rem 1.5rem 1.4rem;
}
.voice-card blockquote {
  font-family: var(--serif);
  font-size: 1.02rem;
  line-height: 1.85;
  color: var(--ink);
}
.voice-card blockquote::before {
  content: "「";
  display: block;
  font-size: 2rem;
  line-height: 1;
  color: var(--gold);
  margin-bottom: .45rem;
}
.voice-meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}
.voice-stars { color: var(--gold); font-size: .85rem; letter-spacing: .18em; }
.voice-date { color: var(--ink-soft); font-size: .8rem; }
.voice-who { display: flex; align-items: center; gap: .8rem; margin-top: auto; }
.voice-seal {
  flex: none;
  width: 2.7rem;
  height: 2.7rem;
  display: grid;
  place-items: center;
  background: var(--cinnabar);
  color: #fffdf8;
  font-family: var(--serif);
  font-size: 1.3rem;
  font-weight: 700;
  border-radius: 6px;
  box-shadow: inset 0 0 0 2px rgba(255, 253, 248, .28);
}
.voice-seal--gold { background: var(--gold); }
.voice-who strong { display: block; font-size: .95rem; line-height: 1.4; }
.voice-who em { display: block; font-style: normal; color: var(--ink-soft); font-size: .82rem; }
.voice-card--invite {
  border: 1px dashed var(--gold);
  background: transparent;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: .8rem;
}
.voice-card--invite h3 { font-size: 1.15rem; }
.voice-card--invite p { color: var(--ink-soft); font-size: .92rem; }

@media (min-width: 600px) {
  .voice-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .voice-grid { grid-template-columns: repeat(3, 1fr); }
}
