@import url('https://fonts.googleapis.com/css2?family=Nunito+Sans:wght@300;400;500;600;700&family=Varela+Round&display=swap');

:root{
  --cream:#f5e6c8;
  --paper:#fdf7e9;
  --tan:#d4a574;
  --ink:#262117;
  --ink-soft:#3a3225;
  --mute:rgba(38,33,23,.62);
  --line:rgba(38,33,23,.16);
  --shadow:0 10px 22px rgba(38,33,23,.16);
  --round:"Varela Round","Nunito Sans",system-ui,-apple-system,"PingFang SC","Microsoft YaHei",sans-serif;
  --body:"Nunito Sans",system-ui,-apple-system,"PingFang SC","Microsoft YaHei",sans-serif;
}

*,*::before,*::after{box-sizing:border-box}

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

body{
  margin:0;
  background:var(--cream);
  color:var(--ink);
  font-family:var(--body);
  font-size:17px;
  line-height:1.78;
  font-weight:400;
  overflow-x:hidden;
}

body::before{
  content:"";
  position:fixed;
  inset:0;
  z-index:60;
  pointer-events:none;
  opacity:.15;
  mix-blend-mode:multiply;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23g)'/%3E%3C/svg%3E");
}

body::after{
  content:"";
  position:fixed;
  inset:0;
  z-index:55;
  pointer-events:none;
  opacity:.72;
  mix-blend-mode:screen;
  background:
    radial-gradient(44% 34% at 92% 2%, rgba(255,198,126,.55), transparent 62%),
    radial-gradient(38% 30% at 2% 96%, rgba(214,142,92,.34), transparent 66%);
}

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

::selection{background:var(--ink);color:var(--cream)}

a{color:var(--ink)}
a:focus-visible{outline:2px dashed var(--ink);outline-offset:3px}

/* ---- 顶部 ---- */
.masthead{
  position:sticky;
  top:0;
  z-index:30;
  background:rgba(245,230,200,.95);
  border-bottom:1px solid var(--line);
  backdrop-filter:blur(3px);
}

.ticker{
  display:flex;
  justify-content:center;
  align-items:center;
  gap:.55rem;
  padding:.28rem 1rem;
  font-size:.78rem;
  letter-spacing:.3em;
  color:var(--mute);
  background:rgba(212,165,116,.26);
  border-bottom:1px dotted var(--line);
}
.ticker i{font-style:normal;font-size:.58rem;color:var(--ink);opacity:.6}

.bar{
  display:flex;
  align-items:center;
  gap:.8rem;
  max-width:1120px;
  margin:0 auto;
  padding:.5rem 1rem;
}

.brand{
  display:inline-flex;
  align-items:center;
  gap:.5rem;
  min-height:44px;
  padding:.2rem .35rem;
  font-family:var(--round);
  font-size:1.15rem;
  letter-spacing:.05em;
  text-decoration:none;
  border-bottom:3px solid var(--tan);
}
.brand .mark{width:28px;height:28px;filter:sepia(.35) contrast(1.05)}

.menu{margin-left:auto;min-width:0;max-width:100%}

.menu-list{
  display:flex;
  gap:.1rem;
  margin:0;
  padding:0;
  list-style:none;
  overflow-x:auto;
  scrollbar-width:none;
  -webkit-overflow-scrolling:touch;
}
.menu-list::-webkit-scrollbar{display:none}

.menu-list a{
  display:inline-flex;
  align-items:center;
  min-height:44px;
  padding:.35rem .62rem;
  font-size:.95rem;
  white-space:nowrap;
  text-decoration:none;
  border-bottom:3px solid transparent;
  transition:background .25s ease,border-color .25s ease,color .25s ease;
}
.menu-list a::before{
  content:"\25c6";
  font-size:.55rem;
  margin-right:.4em;
  color:var(--tan);
  transform:translateY(-1px);
}
.menu-list a:hover{background:rgba(212,165,116,.28);border-bottom-color:var(--tan)}
.menu-list a.is-on{background:rgba(212,165,116,.4);border-bottom-color:var(--ink)}

/* ---- 首屏 ---- */
.hero{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:2rem;
  min-height:45vh;
  max-width:1120px;
  margin:0 auto;
  padding:2.2rem 1rem 2.6rem;
  border-bottom:1px solid var(--line);
}

.hero-copy{text-align:center;max-width:26ch}

.badge{
  display:inline-block;
  margin-bottom:.85rem;
  padding:.18rem .75rem;
  font-size:.8rem;
  letter-spacing:.24em;
  color:var(--cream);
  background:var(--ink);
  border:1px solid var(--ink);
  transform:rotate(-1.6deg);
}

h1{
  margin:0;
  font-family:var(--round);
  font-weight:400;
  font-size:clamp(1.72rem,5vw,3rem);
  line-height:1.32;
  letter-spacing:.02em;
  text-wrap:balance;
  animation:vhs 1.15s ease-out both;
}

@keyframes vhs{
  0%{opacity:0;transform:translateY(12px) skewX(-5deg);text-shadow:2px 0 rgba(190,70,60,.32),-2px 0 rgba(60,130,180,.28)}
  58%{opacity:1;transform:translateY(0) skewX(1.4deg)}
  100%{transform:none;text-shadow:none}
}

.hero-art{
  order:-1;
  flex:0 0 auto;
  width:176px;
  margin:0;
  padding:8px 8px 26px;
  background:var(--paper);
  border:1px solid var(--line);
  box-shadow:var(--shadow);
  transform:rotate(-3.4deg);
  transition:transform .35s ease;
}
.hero:hover .hero-art{transform:rotate(-1deg) translateY(-3px)}

.hero-art img,
.hero-art .blank{
  display:block;
  width:100%;
  aspect-ratio:4/5;
  object-fit:cover;
  background:#e8d4ad;
  filter:sepia(.32) saturate(.82) contrast(1.06);
}
.hero-art .blank{
  background-image:linear-gradient(150deg,#e8d4ad,#cfa878 60%,#a97f52);
}

/* ---- 内容区 ---- */
.stage{
  display:grid;
  grid-template-columns:240px minmax(0,1fr);
  gap:2.2rem;
  align-items:start;
  max-width:1120px;
  margin:0 auto;
  padding:2.2rem 1rem 3.2rem;
}

.rail{
  position:sticky;
  top:104px;
  display:flex;
  flex-direction:column;
  gap:.85rem;
  min-width:0;
}

.polaroid{
  margin:0;
  padding:7px 7px 24px;
  background:var(--paper);
  border:1px solid var(--line);
  box-shadow:var(--shadow);
  transform:rotate(2.2deg);
  transition:transform .35s ease;
}
.polaroid:hover{transform:rotate(0) translateY(-2px)}

.polaroid img,
.polaroid .blank{
  display:block;
  width:100%;
  aspect-ratio:1/1;
  object-fit:cover;
  background:#e8d4ad;
  filter:sepia(.32) saturate(.82) contrast(1.06);
}
.polaroid .blank{
  background-image:linear-gradient(150deg,#e8d4ad,#cfa878 60%,#a97f52);
}

.rail h2{
  margin:0;
  font-family:var(--round);
  font-weight:400;
  font-size:1.02rem;
  letter-spacing:.14em;
  line-height:1.4;
}

.rail .subtitle{
  margin:0;
  padding-left:.7rem;
  font-size:.86rem;
  line-height:1.7;
  color:var(--mute);
  border-left:3px solid var(--tan);
}

.prose{min-width:0;max-width:70ch}

.prose section{
  padding-block:1.7rem;
  border-bottom:1px dashed var(--line);
}
.prose section:first-child{padding-top:.3rem}
.prose section:last-child{border-bottom:0;padding-bottom:.4rem}
.prose section[id]{scroll-margin-top:118px}

.prose h2{
  margin:0 0 .3rem;
  padding-bottom:.45rem;
  font-family:var(--round);
  font-weight:400;
  font-size:clamp(1.28rem,2.6vw,1.72rem);
  line-height:1.38;
  letter-spacing:.02em;
  border-bottom:4px solid var(--tan);
  text-wrap:balance;
}

.prose h2 + p,
.prose h2 + p.subtitle,
.prose h2 + p.lead{
  margin-top:1rem;
  color:var(--ink-soft);
  font-size:1.02rem;
}

.prose h3{
  margin:1.6rem 0 .3rem;
  font-family:var(--round);
  font-weight:400;
  font-size:1.1rem;
  letter-spacing:.04em;
}

.prose p{margin:.95rem 0;color:var(--ink-soft)}
.prose strong{color:var(--ink);font-weight:700}

.prose a{
  color:var(--ink);
  text-decoration:none;
  border-bottom:2px solid var(--tan);
  transition:background .2s ease;
}
.prose a:hover{background:rgba(212,165,116,.35)}

.prose ul,.prose ol{margin:.95rem 0;padding-left:1.3rem}
.prose li{margin:.4rem 0;color:var(--ink-soft)}
.prose li::marker{color:var(--tan)}

.prose blockquote{
  margin:1.3rem 0;
  padding:.85rem 1rem;
  background:rgba(253,247,233,.8);
  border-left:5px solid var(--tan);
  color:var(--ink-soft);
}
.prose blockquote p{margin:.2rem 0}

.prose figure{margin:1.4rem 0}
.prose figure img,
.prose img{
  display:block;
  width:100%;
  filter:sepia(.25) saturate(.88) contrast(1.05);
  border:1px solid var(--line);
  background:#e8d4ad;
}
.prose figcaption{
  margin-top:.5rem;
  font-size:.84rem;
  color:var(--mute);
  border-bottom:3px solid var(--tan);
  padding-bottom:.5rem;
}

.prose hr{border:0;border-top:2px dotted var(--line);margin:1.6rem 0}

.prose table{width:100%;border-collapse:collapse;font-size:.95rem;margin:1.2rem 0}
.prose th,.prose td{padding:.55rem .6rem;text-align:left;border-bottom:1px solid var(--line)}
.prose th{background:rgba(212,165,116,.3);font-weight:600}

/* ---- 页脚 ---- */
.foot{
  display:grid;
  grid-template-columns:auto 1fr auto;
  align-items:baseline;
  gap:.5rem 1.4rem;
  max-width:1120px;
  margin:0 auto;
  padding:2.4rem 1rem 1.8rem;
  border-top:1px solid var(--line);
}

.foot-brand{
  margin:0;
  font-family:var(--round);
  font-size:clamp(2.1rem,9vw,4.4rem);
  line-height:1;
  letter-spacing:.03em;
  color:var(--ink);
  opacity:.9;
  white-space:nowrap;
}

.foot-word{
  margin:0;
  font-size:.8rem;
  letter-spacing:.28em;
  color:var(--mute);
}

.foot-copy{font-size:.78rem;color:var(--mute);text-align:right}

/* ---- 动效 ---- */
.js .rv{opacity:0;transform:translateY(16px)}
.js .rv.in{opacity:1;transform:none;transition:opacity .7s ease,transform .7s ease}

/* ---- 窄屏 ---- */
@media (max-width:900px){
  .stage{grid-template-columns:minmax(0,1fr);gap:1.5rem;padding-top:1.6rem}
  .rail{
    position:static;
    flex-direction:row;
    flex-wrap:wrap;
    align-items:center;
    gap:.75rem;
    padding:.75rem;
    background:rgba(253,247,233,.7);
    border:1px solid var(--line);
  }
  .rail .polaroid{flex:0 0 74px;padding:4px 4px 12px;transform:rotate(-2deg)}
  .rail h2{font-size:.96rem}
  .rail .subtitle{flex:1 1 100%;border-left:0;padding-left:0;font-size:.86rem}
  .prose{max-width:none}
}

@media (max-width:760px){
  .hero{
    flex-direction:column;
    gap:1.3rem;
    min-height:0;
    padding:1.5rem 1rem 2rem;
  }
  .hero-art{width:132px;padding:6px 6px 18px;transform:rotate(-2.4deg)}
  .hero-copy{max-width:32ch}
  .bar{flex-wrap:wrap;padding:.45rem .8rem;gap:.35rem}
  .menu{margin-left:0;width:100%}
  .menu-list{padding-bottom:.15rem}
  .menu-list a{padding:.35rem .55rem;font-size:.92rem}
  .prose section[id]{scroll-margin-top:132px}
  .foot{grid-template-columns:1fr;gap:.35rem;padding-top:2rem}
  .foot-copy{text-align:left}
}

@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  h1{animation:none}
  .hero-art,.polaroid{transition:none}
  .js .rv{opacity:1;transform:none;transition:none}
}

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