@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&family=VT323&display=swap');

:root{
  --ink:#26171a;
  --rose:#eb879c;
  --peach:#ffb6c1;
  --wine:#7a2f45;
  --paper:#fff6f8;
  --card:rgba(255,255,255,.78);
  --line:rgba(38,23,26,.14);
  --soft:0 2px 4px rgba(38,23,26,.06),0 10px 24px rgba(38,23,26,.07);
  --lift:0 4px 8px rgba(38,23,26,.10),0 16px 36px rgba(38,23,26,.12);
  --r:12px;
  --pixel:'Press Start 2P',ui-monospace,monospace;
  --body:'VT323',ui-sans-serif,system-ui,"PingFang SC","Hiragino Sans GB","Microsoft YaHei",sans-serif;
}

*{box-sizing:border-box}

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

body{
  margin:0;
  padding-bottom:104px;
  font-family:var(--body);
  font-size:18px;
  line-height:1.65;
  color:var(--ink);
  background:linear-gradient(180deg,#fff2f5 0%,#ffe4ea 44%,#ffd3de 100%) fixed;
}

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

:focus-visible{
  outline:3px solid var(--wine);
  outline-offset:2px;
  border-radius:4px;
}

/* ---------- 主栅格：左侧栏 + 右正文 ---------- */
main{
  max-width:1160px;
  margin:0 auto;
  padding:24px 20px 0;
  display:grid;
  gap:24px;
  grid-template-columns:212px minmax(0,1fr);
  grid-template-areas:
    "rail hero"
    "rail story";
  align-items:start;
}

/* ---------- Hero ---------- */
.hero{
  grid-area:hero;
  position:relative;
  min-height:70vh;
  display:grid;
  place-items:center;
  text-align:center;
  overflow:hidden;
  color:#fff;
  padding:0;
  border-radius:14px 14px 46% 46% / 14px 14px 11% 11%;
  background:linear-gradient(158deg,#f3a2b2 0%,#d16c86 52%,#6f2a3f 100%);
  box-shadow:var(--lift);
  isolation:isolate;
}

.hero-media{position:absolute;inset:0;z-index:0}
.hero-media img{width:100%;height:100%;object-fit:cover}

.hero::after{
  content:"";
  position:absolute;
  inset:0;
  z-index:1;
  background:linear-gradient(180deg,rgba(38,23,26,.18) 0%,rgba(38,23,26,.45) 46%,rgba(38,23,26,.78) 100%);
}

.hero-inner{
  position:relative;
  z-index:2;
  width:100%;
  max-width:620px;
  padding:56px 24px 72px;
}

.hero h1{
  margin:0 0 12px;
  font-size:clamp(28px,4.6vw,44px);
  line-height:1.28;
  letter-spacing:.03em;
  text-shadow:0 2px 0 rgba(38,23,26,.35);
}

.hero-desc{
  margin:0 auto 22px;
  max-width:44ch;
  font-size:17px;
  color:#ffeaf0;
}

.hero-go{
  display:inline-flex;
  align-items:center;
  min-height:46px;
  padding:0 26px;
  border-radius:999px;
  background:var(--peach);
  color:var(--ink);
  font-size:17px;
  font-weight:700;
  letter-spacing:.06em;
  text-decoration:none;
  box-shadow:0 4px 0 #b85f73;
  transition:transform .2s ease,background .2s ease;
}

.hero-go:hover,.hero-go:focus-visible{background:#fff;transform:translateY(-2px)}

.badge{
  position:absolute;
  z-index:3;
  top:18px;
  left:18px;
  margin:0;
  display:inline-flex;
  align-items:center;
  gap:8px;
  min-height:38px;
  padding:0 16px;
  border-radius:999px;
  background:rgba(38,23,26,.72);
  border:2px solid var(--peach);
  color:#ffe9ee;
  font-family:var(--pixel);
  font-size:11px;
  letter-spacing:.12em;
  line-height:1;
}

.badge-dot{
  width:8px;
  height:8px;
  border-radius:2px;
  background:var(--peach);
  box-shadow:0 0 0 2px rgba(255,182,193,.32);
}

/* ---------- 左侧栏 ---------- */
.rail{
  grid-area:rail;
  position:sticky;
  top:20px;
  padding:16px 14px 18px;
  border-radius:var(--r);
  background:var(--card);
  border:1px solid rgba(255,255,255,.9);
  box-shadow:var(--soft);
}

.rail h2{
  margin:0 0 6px;
  font-size:17px;
  letter-spacing:.06em;
}

.rail hr{
  border:0;
  height:2px;
  margin:0 0 12px;
  background:repeating-linear-gradient(90deg,var(--rose) 0 7px,transparent 7px 13px);
}

.rail-list{
  list-style:none;
  margin:0;
  padding:0;
  display:grid;
  gap:5px;
}

.rail-list a{
  display:flex;
  align-items:center;
  gap:9px;
  min-height:40px;
  padding:0 10px;
  border-radius:999px;
  color:var(--ink);
  font-size:16px;
  text-decoration:none;
  transition:background .22s ease,color .22s ease;
}

.rail-list a span{
  font-family:var(--pixel);
  font-size:10px;
  color:var(--wine);
  letter-spacing:.06em;
}

.rail-list a:hover,.rail-list a:focus-visible{background:var(--peach)}
.rail-list a.is-current{background:var(--rose);color:var(--ink)}
.rail-list a.is-current span{color:#fff}

/* ---------- 正文 ---------- */
.story{
  grid-area:story;
  display:grid;
  gap:22px;
  min-width:0;
}

.story article{
  padding:24px 22px 26px;
  border-radius:10px;
  background:var(--card);
  border:1px solid rgba(255,255,255,.92);
  border-bottom:3px solid var(--rose);
  box-shadow:var(--soft);
  scroll-margin-top:22px;
  transition:box-shadow .25s ease,transform .25s ease;
}

.story article:hover{box-shadow:var(--lift)}

.story h2{
  margin:0 0 4px;
  font-size:22px;
  line-height:1.36;
  letter-spacing:.02em;
}

.story h3{
  margin:22px 0 6px;
  font-size:19px;
  line-height:1.4;
}

.story h2 + hr,
.story h3 + hr{
  border:0;
  height:2px;
  margin:10px 0 14px;
  background:repeating-linear-gradient(90deg,var(--rose) 0 8px,transparent 8px 15px);
}

.story p{margin:0 0 14px}
.story p:last-child{margin-bottom:0}

.story a{color:#9c3348;text-underline-offset:3px}

.story ul,.story ol{margin:0 0 14px;padding-left:22px}
.story li{margin:0 0 6px}

.story blockquote{
  margin:18px 0;
  padding:12px 16px;
  border-left:4px solid var(--peach);
  border-radius:0 10px 10px 0;
  background:rgba(255,182,193,.22);
}

.story blockquote p:last-child{margin-bottom:0}

.story table{
  width:100%;
  margin:0 0 16px;
  border-collapse:collapse;
  font-size:16px;
}

.story th,.story td{
  padding:9px 10px;
  border-bottom:1px solid var(--line);
  text-align:left;
  vertical-align:top;
}

.story th{background:rgba(255,182,193,.26)}

.story img{
  border-radius:10px;
  box-shadow:var(--soft);
  margin:6px 0 16px;
}

/* ---------- 页脚 ---------- */
.foot{
  max-width:1160px;
  margin:40px auto 0;
  padding:26px 20px 28px;
  display:flex;
  flex-wrap:wrap;
  align-items:flex-start;
  gap:24px 34px;
  border-radius:20px 20px 14px 14px;
  background:var(--ink);
  color:#ffe9ee;
  box-shadow:0 -2px 0 var(--rose) inset;
}

.foot-brand{flex:1 1 210px;min-width:0}

.foot-mark{
  display:inline-flex;
  align-items:center;
  gap:10px;
  min-height:44px;
  color:#ffe9ee;
  text-decoration:none;
  font-size:clamp(24px,4.4vw,40px);
  font-weight:700;
  line-height:1.1;
  letter-spacing:.02em;
}

.foot-mark span{
  font-family:var(--pixel);
  font-size:clamp(13px,1.8vw,17px);
  letter-spacing:.04em;
}

.foot-desc{
  margin:10px 0 0;
  max-width:34ch;
  font-size:16px;
  color:rgba(255,233,238,.76);
}

.foot-map{flex:2 1 340px;min-width:0}

.foot-map dl{
  margin:0;
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(148px,1fr));
  gap:10px 20px;
}

.foot-map dt{margin:0}

.foot-map dt a{
  display:inline-flex;
  align-items:center;
  min-height:40px;
  color:var(--peach);
  font-size:16px;
  text-decoration:none;
  border-bottom:1px dashed rgba(255,182,193,.45);
  transition:color .22s ease,border-color .22s ease;
}

.foot-map dt a:hover,.foot-map dt a:focus-visible{
  color:#fff;
  border-color:#fff;
}

.foot-map dd{
  margin:2px 0 0;
  font-size:16px;
  line-height:1.45;
  color:rgba(255,233,238,.62);
}

.foot-copy{flex:1 1 160px;display:flex;justify-content:flex-end}

.foot-copy p{
  margin:0;
  font-size:16px;
  color:rgba(255,233,238,.72);
  white-space:nowrap;
}

.foot-map dt a:focus-visible,
.foot-mark:focus-visible{outline-color:var(--peach)}

/* ---------- 底部固定导航条 ---------- */
.dock{
  position:fixed;
  left:0;
  right:0;
  bottom:0;
  z-index:60;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  padding:10px 12px calc(10px + env(safe-area-inset-bottom));
  overflow-x:auto;
  scrollbar-width:none;
  background:rgba(38,23,26,.96);
  border-top:3px solid var(--rose);
  backdrop-filter:blur(9px);
}

.dock::-webkit-scrollbar{display:none}

.dock-side{
  display:flex;
  align-items:center;
  gap:8px;
  flex:none;
}

.pill{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:44px;
  padding:0 15px;
  border-radius:999px;
  border:1px solid rgba(255,182,193,.32);
  background:rgba(255,182,193,.14);
  color:#ffeaf0;
  font-size:16px;
  line-height:1;
  letter-spacing:.05em;
  white-space:nowrap;
  text-decoration:none;
  transition:background .22s ease,color .22s ease,transform .22s ease;
}

.pill:hover,.pill:focus-visible{
  background:var(--peach);
  color:var(--ink);
  transform:translateY(-2px);
}

.pill-cta{
  background:var(--rose);
  border-color:var(--rose);
  color:var(--ink);
  font-weight:700;
  box-shadow:0 3px 0 #b85f73;
}

.dock-mark{
  flex:none;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:46px;
  height:46px;
  border-radius:16px;
  background:var(--peach);
  border:2px solid #fff0f4;
  box-shadow:0 3px 0 #b85f73;
  text-decoration:none;
}

.mark-img{width:100%;height:100%;object-fit:contain;border-radius:12px;padding:4px}

.mark-dot{
  width:14px;
  height:14px;
  border-radius:4px;
  background:var(--ink);
  box-shadow:6px 0 0 -3px var(--ink);
}

.dock a:focus-visible{outline-color:#fff}

/* ---------- 动效 ---------- */
.reveal{
  opacity:0;
  transform:translateY(16px);
  transition:opacity .28s ease,transform .28s ease;
}

.reveal.is-in{opacity:1;transform:none}

/* ---------- 响应式 ---------- */
@media (max-width:900px){
  main{
    grid-template-columns:minmax(0,1fr);
    grid-template-areas:
      "hero"
      "rail"
      "story";
    padding:14px 14px 0;
    gap:16px;
  }

  .hero{min-height:58vh}
  .hero-inner{padding:64px 18px 62px}

  .rail{position:static}

  .rail-list{
    grid-auto-flow:column;
    grid-auto-columns:max-content;
    overflow-x:auto;
    padding-bottom:2px;
    scrollbar-width:none;
  }

  .rail-list::-webkit-scrollbar{display:none}

  .story article{padding:20px 16px 22px}

  .foot{
    margin:28px 10px 0;
    flex-direction:column;
    gap:18px;
    padding:22px 18px 24px;
  }

  .foot-copy{justify-content:flex-start}
  .foot-copy p{white-space:normal}

  .dock{justify-content:flex-start;padding-left:10px;padding-right:10px}
  .pill{padding:0 13px}
}

@media (max-width:420px){
  body{font-size:17px}
  .hero{min-height:62vh}
  .hero h1{font-size:27px}
  .badge{font-size:10px;letter-spacing:.08em;padding:0 12px}
  .story h2{font-size:20px}
}

@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  .reveal{opacity:1;transform:none;transition:none}
  .pill,.hero-go,.story article,.rail-list a{transition:none}
}

button[aria-expanded]{min-width:44px;min-height:44px}
