:root {
  --bg: #f7f4f0;
  --ink: #1a1410;
  --muted: #7a6f66;
  --line: rgba(26, 20, 16, 0.08);
  --brand: #ef5b2a;
  --brand-deep: #c2410c;
  --brand-soft: #fff1ea;
  --card: #ffffff;
  --shadow: 0 18px 48px rgba(80, 42, 16, 0.1);
  --radius: 22px;
  --shell: 100%;
  --pad-x: 16px;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  min-height: 100%;
  font-family: "PingFang SC", "Hiragino Sans GB", "Segoe UI", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(900px 420px at 50% -10%, rgba(239, 91, 42, 0.18), transparent 60%),
    linear-gradient(180deg, #fff8f3 0%, var(--bg) 28%, #f3eee8 100%);
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
button { font: inherit; }

.shell {
  width: min(100%, var(--shell));
  margin: 0 auto;
  padding: 0 var(--pad-x) calc(28px + var(--safe-bottom));
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: calc(12px + var(--safe-top)) 0 12px;
  backdrop-filter: blur(14px);
  background: rgba(247, 244, 240, 0.88);
  border-bottom: 1px solid transparent;
}
.topbar.is-solid { border-bottom-color: var(--line); }
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.brand img {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  box-shadow: 0 8px 18px rgba(239, 91, 42, 0.28);
}
.nav-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px 16px;
  font-size: 13px;
  color: var(--muted);
  font-weight: 600;
}
.nav-links a:hover { color: var(--brand); }

.hero {
  position: relative;
  padding: 18px 0 8px;
  animation: rise 0.7s ease both;
}
.hero-grid {
  display: grid;
  gap: 18px;
}
.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand-deep);
  font-size: 12px;
  font-weight: 700;
}
.hero h1 {
  margin-top: 14px;
  font-size: clamp(28px, 8vw, 40px);
  line-height: 1.15;
  letter-spacing: -0.02em;
}
.hero h1 em {
  font-style: normal;
  color: var(--brand);
}
.hero-lead {
  margin-top: 12px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
  max-width: 36em;
}
.cta-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 20px;
}
.btn {
  appearance: none;
  border: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 52px;
  padding: 0 14px;
  border-radius: 16px;
  font-size: 15px;
  font-weight: 800;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}
.btn:active { transform: scale(0.98); }
.btn svg { width: 18px; height: 18px; fill: currentColor; flex: 0 0 auto; }
.btn > span { text-align: left; line-height: 1.2; }
.btn-primary {
  background: linear-gradient(135deg, var(--brand), var(--brand-deep));
  color: #fff;
  box-shadow: 0 14px 28px rgba(239, 91, 42, 0.28);
}
.btn-dark {
  background: #171310;
  color: #fff;
}
.btn-ghost {
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--line);
}
.btn small {
  display: block;
  font-size: 10px;
  font-weight: 600;
  opacity: 0.72;
}
.help-link {
  margin-top: 12px;
  background: none;
  border: 0;
  color: var(--brand);
  font-weight: 700;
  cursor: pointer;
  font-size: 13px;
}

.hero-poster {
  margin: 0;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow);
  animation: floatIn 0.9s ease 0.1s both;
  background: #14110f;
}
.hero-poster img {
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: contain;
  object-position: center;
}

.section {
  margin-top: 34px;
  animation: rise 0.7s ease both;
}
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.section-head h2 {
  font-size: clamp(20px, 4vw, 28px);
  letter-spacing: -0.02em;
}
.section-head p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}
.section-head .more {
  color: var(--brand);
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

.feature-grid {
  display: grid;
  gap: 12px;
}
.feature {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: 0 10px 24px rgba(80, 42, 16, 0.04);
}
.feature .num {
  width: 28px;
  height: 28px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  background: var(--brand-soft);
  color: var(--brand-deep);
  font-size: 13px;
  font-weight: 800;
  margin-bottom: 10px;
}
.feature h3 { font-size: 16px; margin-bottom: 6px; }
.feature p { color: var(--muted); font-size: 13px; line-height: 1.7; }

/* 手机：海报横向滑动；桌面：三列 */
.poster-rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(78%, 320px);
  gap: 14px;
  overflow-x: auto;
  padding-bottom: 6px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}
.poster-rail::-webkit-scrollbar { height: 6px; }
.poster-rail::-webkit-scrollbar-thumb {
  background: rgba(239, 91, 42, 0.35);
  border-radius: 999px;
}
.poster-card {
  display: flex;
  flex-direction: column;
  border-radius: 24px;
  overflow: hidden;
  background: #14110f;
  box-shadow: var(--shadow);
  scroll-snap-align: start;
}
.poster-card img {
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: contain;
  object-position: center;
  background: #14110f;
  transition: transform 0.5s ease;
}
.poster-card:hover img { transform: scale(1.02); }
.poster-card figcaption {
  position: static;
  padding: 14px 14px 16px;
  background: #fff;
  color: var(--ink);
  border-top: 1px solid var(--line);
}
.poster-card strong {
  display: block;
  font-size: 16px;
  margin-bottom: 4px;
  color: var(--ink);
}
.poster-card span {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.5;
  opacity: 1;
}

.detail-list {
  background: var(--card);
  border-radius: var(--radius);
  border: 1px solid var(--line);
  overflow: hidden;
}
.detail-list article {
  padding: 16px;
  border-bottom: 1px solid var(--line);
}
.detail-list article:last-child { border-bottom: 0; }
.detail-list h3 { font-size: 15px; margin-bottom: 6px; }
.detail-list p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.75;
}

.download-panel {
  margin-top: 28px;
  padding: 18px;
  border-radius: 26px;
  background:
    linear-gradient(160deg, rgba(239, 91, 42, 0.12), transparent 42%),
    #171310;
  color: #fff;
  box-shadow: var(--shadow);
}
.download-panel h2 { font-size: 22px; margin-bottom: 8px; }
.download-panel .sub {
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
  line-height: 1.6;
  margin-bottom: 16px;
}
.download-panel .cta-row .btn-ghost {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.12);
  color: #fff;
}
.download-panel .help {
  display: block;
  width: 100%;
  margin-top: 12px;
  background: none;
  border: 0;
  color: #ffb08a;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}
.download-layout {
  display: grid;
  gap: 18px;
}
.pc-qr {
  display: none;
  text-align: center;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  padding: 16px;
}
.pc-qr #siteQcode,
.pc-qr #siteQcode canvas,
.pc-qr #siteQcode img {
  width: 168px !important;
  height: 168px !important;
  margin: 0 auto 10px;
  background: #fff;
  border-radius: 12px;
}
.pc-qr p {
  color: rgba(255, 255, 255, 0.78);
  font-size: 13px;
  line-height: 1.5;
}

.footer {
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  text-align: center;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
}

.mask {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 50;
  background: rgba(0, 0, 0, 0.72);
  color: #fff;
  padding: 28px 24px;
  text-align: right;
}
.mask.show { display: block; }
.mask b {
  display: block;
  margin-top: 18px;
  font-size: 18px;
  line-height: 1.6;
  text-align: left;
}

.modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 60;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(16, 12, 10, 0.45);
}
.modal.show { display: flex; }
.modal-card {
  width: min(100%, 360px);
  background: #fff;
  border-radius: 20px;
  padding: 18px 18px 16px;
  position: relative;
  box-shadow: var(--shadow);
}
.modal-card .close {
  position: absolute;
  right: 12px;
  top: 10px;
  border: 0;
  background: none;
  font-size: 20px;
  cursor: pointer;
  color: #999;
}
.modal-card h3 { font-size: 18px; margin-bottom: 10px; }
.modal-card .step {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 8px;
}

.page-guide .hero { padding-top: 8px; }
.only-pc { display: none !important; }
.only-mobile { display: initial; }

@keyframes rise {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes floatIn {
  from { opacity: 0; transform: translateY(24px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* 平板 */
@media (min-width: 720px) {
  :root {
    --shell: 720px;
    --pad-x: 24px;
  }
  .hero-grid {
    grid-template-columns: 1.1fr 0.9fr;
    gap: 24px;
    align-items: center;
  }
  .hero-poster img { aspect-ratio: 9 / 16; }
  .feature-grid { grid-template-columns: repeat(3, 1fr); }
  .poster-rail {
    grid-auto-flow: unset;
    grid-auto-columns: unset;
    grid-template-columns: repeat(3, 1fr);
    overflow: visible;
  }
  .detail-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  .detail-list article:nth-child(odd) {
    border-right: 1px solid var(--line);
  }
  .page-guide .detail-list {
    grid-template-columns: 1fr;
  }
  .page-guide .detail-list article {
    border-right: 0;
  }
}

/* 电脑宽屏 */
@media (min-width: 980px) {
  :root {
    --shell: 1120px;
    --pad-x: 28px;
  }
  .only-pc { display: block !important; }
  .only-mobile { display: none !important; }

  body {
    background:
      radial-gradient(1200px 520px at 18% -12%, rgba(239, 91, 42, 0.16), transparent 55%),
      radial-gradient(900px 420px at 90% 8%, rgba(239, 91, 42, 0.08), transparent 50%),
      linear-gradient(180deg, #fff8f3 0%, var(--bg) 40%, #efe8e1 100%);
  }

  .topbar { padding-top: 18px; padding-bottom: 14px; }
  .brand { font-size: 18px; }
  .brand img { width: 40px; height: 40px; }
  .nav-links { gap: 22px; font-size: 14px; }

  .hero { padding: 28px 0 10px; }
  .hero-grid {
    grid-template-columns: 1.15fr 0.85fr;
    gap: 40px;
    min-height: 520px;
  }
  .hero h1 {
    font-size: 52px;
    max-width: 9em;
  }
  .hero-lead { font-size: 16px; margin-top: 16px; }
  .cta-row {
    max-width: 420px;
    margin-top: 28px;
  }
  .hero-poster {
    border-radius: 32px;
    max-width: 380px;
    margin-left: auto;
  }
  .hero-poster img { aspect-ratio: 9 / 16; }

  .section { margin-top: 56px; }
  .section-head { margin-bottom: 20px; }
  .feature { padding: 20px; }
  .feature h3 { font-size: 17px; }
  .feature p { font-size: 14px; }

  .poster-card figcaption { padding: 16px 16px 18px; }
  .poster-card strong { font-size: 17px; }

  .download-panel {
    padding: 28px;
    border-radius: 32px;
  }
  .download-layout {
    grid-template-columns: 1.2fr 0.8fr;
    align-items: center;
  }
  .pc-qr { display: block; }
  .download-panel .cta-row { max-width: 420px; }

  .detail-list article { padding: 20px; }
  .detail-list h3 { font-size: 16px; }
  .detail-list p { font-size: 14px; }
}

/* 超小屏：按钮可换行 */
@media (max-width: 380px) {
  .cta-row { grid-template-columns: 1fr; }
  .nav-links { gap: 10px; font-size: 12px; }
  .hero-poster img { aspect-ratio: 9 / 16; }
}
