/* 废文网 mmspbox.cn · 墨×酒红×纸白 */
:root {
  --ink: #131722;
  --wine: #a0283c;
  --wine-dark: #8b1f31;
  --paper: #ffffff;
  --mist: #f3f4f6;
  --line: #e2e4e9;
  --gray: #6b7280;
  --gray-l: #8a8f9c;
  --text: #3f4450;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; }
[id] { scroll-margin-top: 84px; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ===== 入场动画 ===== */
.rv { opacity: 0; transform: translateY(20px); transition: opacity .6s ease, transform .6s ease; }
.rv.in { opacity: 1; transform: none; }

/* ===== 按钮 ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border-radius: 8px; font-weight: 700; text-decoration: none; cursor: pointer;
  border: 2px solid transparent; transition: background .2s ease, color .2s ease;
}
.btn-pri { background: var(--wine); color: #fff; border-color: var(--wine); }
.btn-pri:hover { background: var(--wine-dark); border-color: var(--wine-dark); }
.btn-line { border-color: var(--ink); color: var(--ink); background: var(--paper); }
.btn-line:hover { background: var(--ink); color: #fff; }
.btn-lg { padding: 14px 34px; font-size: 16px; }

/* ===== 顶栏 ===== */
.hd { position: sticky; top: 0; z-index: 50; background: var(--paper); border-bottom: 2px solid var(--ink); }
.hd-in { display: flex; align-items: center; gap: 28px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand img { width: 40px; height: 40px; border-radius: 8px; box-shadow: 0 2px 5px rgba(19,23,34,.18); }
.brand-t strong { display: block; font-size: 17px; letter-spacing: .04em; line-height: 1.3; }
.brand-t small { display: block; font-size: 11px; color: var(--gray); line-height: 1.3; }
.nav { display: flex; gap: 22px; margin-left: auto; }
.nav a {
  font-size: 14px; color: var(--text); text-decoration: none;
  padding: 6px 2px; border-bottom: 2px solid transparent;
}
.nav a.on, .nav a:hover { color: var(--wine); border-bottom-color: var(--wine); }
.hd-r { display: flex; align-items: center; gap: 14px; }
.hd-cta { padding: 9px 20px; font-size: 14px; box-shadow: 0 2px 4px rgba(160,40,60,.35); }
.burger {
  display: none; width: 42px; height: 38px; border: 2px solid var(--ink);
  background: var(--paper); border-radius: 8px; cursor: pointer; position: relative;
}
.burger span { position: absolute; left: 9px; right: 9px; height: 2px; background: var(--ink); }
.burger span:nth-child(1) { top: 11px; }
.burger span:nth-child(2) { top: 17px; }
.burger span:nth-child(3) { top: 23px; }

/* ===== 英雄区 ===== */
.hero { padding: 64px 0 72px; background: var(--paper); position: relative; overflow: hidden; }
.hero-in { display: flex; align-items: center; gap: 48px; }
.hero-l { flex: 1 1 52%; min-width: 0; }
.kick {
  font-size: 13px; letter-spacing: .22em; font-weight: 700;
  color: var(--ink); display: flex; align-items: center; margin: 0;
}
.kick i { font-style: normal; background: var(--wine); color: #fff; padding: 3px 9px; margin-right: 12px; font-size: 12px; letter-spacing: .1em; }
.hero h1 { font-size: 46px; margin: 18px 0 0; letter-spacing: .08em; line-height: 1.2; }
.hero h1::after { content: ''; display: block; width: 72px; height: 8px; background: var(--wine); margin-top: 14px; }
.lead { margin: 20px 0 0; color: var(--text); line-height: 1.9; font-size: 15.5px; }
.hero-acts { display: flex; gap: 14px; margin-top: 28px; flex-wrap: wrap; }
.hero-points { display: flex; margin: 26px 0 0; list-style: none; padding: 0; flex-wrap: wrap; }
.hero-points li { font-size: 13.5px; color: #4b505c; padding: 0 16px; border-left: 2px solid var(--line); }
.hero-points li:first-child { padding-left: 0; border-left: 0; }
.hero-r { flex: 0 0 460px; }

/* 斜切叠卡 */
.stack { position: relative; width: 460px; height: 560px; box-shadow: 20px 24px 0 rgba(160,40,60,.10); }
.stk-back { position: absolute; display: block; }
.stk-red { left: 30px; top: 40px; width: 200px; height: 430px; background: var(--wine); transform: rotate(-10deg); z-index: 1; }
.stk-ink { right: 22px; bottom: 56px; width: 210px; height: 410px; background: var(--ink); transform: rotate(8deg); z-index: 1; }
.stk { position: absolute; margin: 0; background: var(--paper); }
.stk img { width: 100%; height: auto; display: block; }
.stk-no {
  position: absolute; top: 8px; left: 8px; z-index: 2;
  background: var(--ink); color: #fff; font-size: 11px;
  padding: 2px 8px; letter-spacing: .14em;
}
.stk-main { left: 96px; top: 0; width: 250px; z-index: 4; border: 8px solid #fff; outline: 2px solid var(--ink); }
.stk-b { left: 0; top: 172px; width: 190px; z-index: 3; transform: rotate(-7deg); border: 6px solid #fff; outline: 2px solid rgba(19,23,34,.35); }
.stk-c { right: 0; top: 112px; width: 185px; z-index: 2; transform: rotate(6deg); border: 6px solid #fff; outline: 2px solid rgba(19,23,34,.35); }
.stk-tag {
  position: absolute; left: 8px; top: 40px; z-index: 5;
  background: var(--paper); border: 2px solid var(--ink); border-left: 6px solid var(--wine);
  padding: 10px 14px;
}
.stk-tag b { display: block; font-size: 16px; letter-spacing: .06em; }
.stk-tag span { display: block; font-size: 12px; color: var(--gray); margin-top: 2px; }
.stk-stamp {
  position: absolute; right: 4px; bottom: 22px; z-index: 5;
  width: 92px; height: 92px; border-radius: 50%;
  background: var(--paper); border: 2px dashed var(--wine);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
}
.stk-stamp img { width: 38px; height: 38px; border-radius: 6px; }
.stk-stamp i { font-style: normal; font-size: 12px; color: var(--wine); font-weight: 700; letter-spacing: .2em; }

/* ===== 通用区块 ===== */
.sec { padding: 76px 0; }
.sec-ink { background: var(--ink); color: #fff; }
.sec-mist { background: var(--mist); }
.sec-h { max-width: 720px; margin: 0 0 44px; }
.sec-h-light .kick { color: #fff; }
.sec h2 { font-size: 30px; margin: 16px 0 0; letter-spacing: .05em; line-height: 1.35; }
.sec-sub { margin: 12px 0 0; color: var(--gray); font-size: 14.5px; }
.sec-ink .sec-sub { color: rgba(255,255,255,.62); }

/* ===== 票券榜单墙 ===== */
.tickets {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
  box-shadow: -14px 18px 0 rgba(255,255,255,.07);
}
.tk { position: relative; background: var(--paper); color: var(--ink); border: 2px solid var(--ink); padding: 0 0 20px; }
.tk-top {
  display: block; margin: 0 16px; padding: 13px 64px 10px 0;
  border-bottom: 2px dashed rgba(19,23,34,.25);
  font-size: 12.5px; letter-spacing: .18em; font-weight: 700; color: var(--gray);
}
.tk > b { display: block; margin: 14px 16px 0; font-size: 21px; letter-spacing: .06em; }
.tk p { margin: 10px 16px 0; font-size: 13.5px; line-height: 1.75; color: #4b505c; }
.tk-no {
  position: absolute; top: 12px; right: 14px;
  font-size: 12px; font-weight: 800; letter-spacing: .1em;
  color: var(--wine); background: rgba(160,40,60,.08); padding: 3px 8px;
}
.tk-b { background: var(--wine); color: #fff; }
.tk-b .tk-top { color: rgba(255,255,255,.85); border-bottom-color: rgba(255,255,255,.4); }
.tk-b p { color: rgba(255,255,255,.85); }
.tk-b .tk-no { color: #fff; background: rgba(255,255,255,.16); }

/* ===== 四件家什 ===== */
.four { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.fo { position: relative; background: var(--paper); border: 2px solid var(--ink); padding: 30px 24px 24px; }
.fo::before { content: ''; position: absolute; top: -2px; left: -2px; right: -2px; height: 8px; }
.fo-1::before { background: var(--ink); }
.fo-2::before { background: var(--wine); }
.fo-3::before { background: var(--gray); }
.fo-4::before { background: rgba(160,40,60,.5); }
.fo-no { display: inline-block; font-size: 12px; font-weight: 800; letter-spacing: .14em; color: #fff; background: var(--ink); padding: 3px 9px; }
.fo h3 { margin: 14px 0 0; font-size: 20px; letter-spacing: .04em; }
.fo p { margin: 10px 0 0; font-size: 14px; line-height: 1.85; color: #4b505c; }
.fo-chips { display: flex; gap: 8px; margin-top: 16px; flex-wrap: wrap; }
.fo-chips span { font-size: 12px; border: 1.5px solid var(--wine); color: var(--wine); padding: 3px 10px; border-radius: 999px; }
.fo-1 { box-shadow: 10px 12px 0 var(--wine); }

/* ===== 五屏速览 ===== */
.row5 { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr 1.3fr; gap: 18px; align-items: start; }
.r5 { position: relative; margin: 0; background: var(--paper); border: 2px solid var(--ink); padding: 10px 10px 12px; }
.r5 img { width: 100%; height: auto; display: block; }
.r5-no { position: absolute; top: -2px; left: -2px; z-index: 2; background: var(--wine); color: #fff; font-size: 11px; letter-spacing: .14em; padding: 4px 9px; }
.r5 figcaption { margin-top: 10px; font-size: 12.5px; color: #4b505c; text-align: center; letter-spacing: .06em; }
.r5-a { border-top: 6px solid var(--wine); }
.r5-e { border-top: 6px solid var(--ink); }

/* ===== FAQ 左右面板 ===== */
.qapanel { display: grid; grid-template-columns: 320px 1fr; gap: 26px; align-items: start; }
.qa-list { display: flex; flex-direction: column; border: 2px solid var(--ink); background: var(--paper); }
.qa-btn {
  appearance: none; border: 0; border-bottom: 1px solid var(--line);
  background: var(--paper); text-align: left; padding: 15px 44px 15px 18px;
  font-size: 14.5px; font-weight: 600; color: var(--text);
  font-family: inherit; cursor: pointer; position: relative;
}
.qa-btn:last-child { border-bottom: 0; }
.qa-btn::before {
  content: ''; position: absolute; right: 18px; top: 50%; margin-top: -5px;
  width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: rotate(-45deg); opacity: .5;
}
.qa-btn.on { background: var(--ink); color: #fff; }
.qa-body { min-height: 320px; }
.qa-pane { display: none; background: var(--paper); border: 2px solid var(--ink); border-top: 6px solid var(--wine); padding: 30px 30px 34px; }
.qa-pane.on { display: block; box-shadow: 9px 10px 0 rgba(160,40,60,.12), -9px 10px 0 rgba(19,23,34,.14); }
.qa-pane h3 { font-size: 19px; margin: 0; letter-spacing: .04em; }
.qa-pane p { margin: 14px 0 0; font-size: 14.5px; line-height: 1.95; color: var(--text); }

/* ===== 书友说聊天气泡 ===== */
.chat { display: flex; flex-direction: column; gap: 22px; max-width: 860px; margin: 0 auto; }
.cb { display: flex; align-items: flex-start; gap: 14px; }
.cb-r { flex-direction: row-reverse; }
.cb-ava {
  flex: 0 0 46px; width: 46px; height: 46px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; font-weight: 800; color: #fff;
}
.cb-l .cb-ava { background: var(--wine); }
.cb-r .cb-ava { background: var(--ink); }
.cb-bubble { background: var(--paper); border: 2px solid var(--ink); padding: 16px 20px 15px; max-width: 640px; border-radius: 3px 16px 16px 16px; }
.cb-r .cb-bubble { border-radius: 16px 3px 16px 16px; }
.cb-bubble header { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.cb-bubble b { font-size: 14.5px; letter-spacing: .02em; }
.cb-bubble time { font-size: 12px; color: var(--gray-l); letter-spacing: .03em; }
.cb-bubble p { margin: 10px 0 0; font-size: 14px; line-height: 1.85; color: var(--text); }

/* ===== 台阶式下载条 ===== */
.steps-dl { background: var(--ink); box-shadow: 0 16px 30px rgba(19,23,34,.32); }
.sd-hi { padding: 38px 0 30px; display: flex; align-items: center; gap: 18px; }
.sd-hi img { width: 56px; height: 56px; border-radius: 10px; border: 2px solid rgba(255,255,255,.25); }
.sd-hi b { display: block; font-size: 20px; color: #fff; letter-spacing: .05em; }
.sd-hi div span { display: block; margin-top: 6px; font-size: 13.5px; color: rgba(255,255,255,.6); letter-spacing: .08em; }
.sd-lo { background: var(--paper); border-left: 10px solid var(--wine); margin-left: 7%; padding: 26px 0; text-align: center; }
.sd-lo p { margin: 12px 0 0; font-size: 13px; color: var(--gray); }

/* ===== 页脚 ===== */
.ft { background: #0d111a; color: #fff; padding-top: 40px; }
.ft-in { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding-bottom: 28px; }
.ft .brand { color: #fff; }
.ft .brand img { box-shadow: 0 2px 5px rgba(0,0,0,.4); }
.ft .brand-t small { color: rgba(255,255,255,.55); }
.ft-links { display: flex; gap: 22px; list-style: none; margin: 0; padding: 0; }
.ft-links a { color: rgba(255,255,255,.75); font-size: 13.5px; text-decoration: none; }
.ft-links a:hover { color: #fff; }
.ft-icp { border-top: 1px solid rgba(255,255,255,.12); padding-top: 16px; padding-bottom: 14px; }
.ft-icp a { color: rgba(255,255,255,.5); font-size: 12.5px; text-decoration: none; }
.ft-icp a:hover { color: rgba(255,255,255,.8); }
.ft-c { padding-bottom: 28px; font-size: 12.5px; color: rgba(255,255,255,.45); }

/* ===== 返回顶部 ===== */
.backtop {
  position: fixed; right: 24px; bottom: 160px; z-index: 60;
  width: 46px; height: 46px; border-radius: 10px; border: 0;
  background: var(--wine); color: #fff; font-size: 20px; cursor: pointer;
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity .25s ease, visibility .25s ease, transform .25s ease;
  box-shadow: 0 8px 18px rgba(160,40,60,.28);
}
.backtop.on { opacity: 1; visibility: visible; transform: none; }

/* ===== 中屏 ===== */
@media (max-width: 1080px) {
  .hero-in { gap: 32px; }
  .hero-r { flex: 0 0 400px; }
  .stack { width: 410px; height: 510px; transform: scale(.92); transform-origin: top left; }
  .stk-main { left: 80px; width: 230px; }
  .tickets { grid-template-columns: repeat(2, 1fr); }
  .row5 { grid-template-columns: repeat(3, 1fr); }
  .hero h1 { font-size: 40px; }
}

/* ===== 移动端 ===== */
@media (max-width: 768px) {
  .wrap { padding: 0 16px; }
  [id] { scroll-margin-top: 72px; }

  .hd-in { height: 60px; gap: 14px; }
  .nav {
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--paper); flex-direction: column; gap: 0;
    display: none; margin: 0; padding: 6px 0;
    border-bottom: 2px solid var(--ink);
    box-shadow: 0 14px 22px rgba(19,23,34,.10);
  }
  .nav.open { display: flex; }
  .nav a { padding: 13px 20px; border-bottom: 1px solid #f0f1f4; border-left: 4px solid transparent; }
  .nav a.on, .nav a:hover { border-bottom-color: #f0f1f4; border-left-color: var(--wine); }
  .burger { display: block; }
  .hd-cta { padding: 8px 14px; font-size: 13px; }

  .hero { padding: 36px 0 48px; }
  .hero-in { flex-direction: column; align-items: stretch; gap: 36px; }
  .hero-l { flex: none; }
  .hero h1 { font-size: 33px; }
  .lead { font-size: 14.5px; }
  .hero-acts .btn-lg { padding: 13px 26px; font-size: 15px; }
  .hero-r { flex: none; }

  .stack {
    width: 100%; max-width: 420px; height: auto; margin: 0 auto;
    display: flex; flex-wrap: wrap; gap: 14px; justify-content: center;
    padding: 6px; transform: none; box-shadow: 20px 24px 0 rgba(160,40,60,.10);
  }
  .stk-back, .stk-stamp { display: none; }
  .stk-main { position: static; width: min(300px, 88%); transform: none; }
  .stk-b, .stk-c { position: static; width: calc(50% - 7px); max-width: 180px; transform: none; }
  .stk-tag { position: static; width: 100%; text-align: center; }

  .sec { padding: 56px 0; }
  .sec h2 { font-size: 24px; }

  .tickets { grid-template-columns: repeat(2, 1fr); gap: 14px; box-shadow: -14px 18px 0 rgba(255,255,255,.07); }
  .tk > b { font-size: 18px; }
  .tk p { font-size: 13px; }

  .four { grid-template-columns: 1fr; gap: 18px; }
  .fo-1 { box-shadow: 10px 12px 0 var(--wine); }

  .row5 {
    display: flex; overflow-x: auto; gap: 14px; padding-bottom: 10px;
    scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
  }
  .r5 { flex: 0 0 200px; scroll-snap-align: start; }

  .qapanel { display: block; }
  .qa-list {
    flex-direction: row; overflow-x: auto; border: 0; background: transparent;
    gap: 8px; padding: 2px 2px 14px; -webkit-overflow-scrolling: touch;
  }
  .qa-btn {
    border: 2px solid var(--ink); white-space: nowrap; padding: 10px 15px;
    font-size: 13px; border-radius: 999px; background: var(--paper); color: var(--ink);
  }
  .qa-btn::before { display: none; }
  .qa-btn.on { background: var(--wine); border-color: var(--wine); color: #fff; }
  .qa-btn:last-child { border: 2px solid var(--ink); }
  .qa-btn.on:last-child { border-color: var(--wine); }
  .qa-body { min-height: 0; }
  .qa-pane { padding: 24px 20px 26px; }
  .qa-pane.on { box-shadow: 9px 10px 0 rgba(160,40,60,.12), -9px 10px 0 rgba(19,23,34,.14); }

  .chat { gap: 16px; }
  .cb { gap: 10px; }
  .cb-ava { flex: 0 0 38px; width: 38px; height: 38px; font-size: 15px; }
  .cb-bubble { max-width: 100%; padding: 13px 15px 12px; }
  .cb-bubble p { font-size: 13.5px; }

  .sd-hi { padding: 28px 0 22px; gap: 14px; }
  .sd-hi b { font-size: 17px; }
  .sd-lo { margin-left: 0; border-left: 0; border-top: 6px solid var(--wine); padding: 22px 0; }

  .backtop { right: 16px; bottom: 150px; width: 42px; height: 42px; }
}

@media (max-width: 480px) {
  .tickets { grid-template-columns: 1fr; }
  .hero-points li { padding: 0 10px; font-size: 12.5px; }
}

/* ===== 动效偏好 ===== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .rv { opacity: 1; transform: none; transition: none; }
  .btn, .backtop { transition: none; }
}
