@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:ital,wght@0,400;0,500;0,700;1,400&display=swap');

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

:root {
  --paper: #fafaf8;
  --mid: #4a4a4a;
  --ink: #1a1a1a;
  --soft: #efece7;
  --wash: #f4f1ec;
  --rail: 232px;
  --line: rgba(26, 26, 26, 0.2);
  --shadow: 0 12px 26px rgba(26, 26, 26, 0.13);
  --font: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
}

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  padding-left: var(--rail);
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.66;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  opacity: 0.6;
  mix-blend-mode: multiply;
  background-image:
    radial-gradient(rgba(26, 26, 26, 0.075) 1px, transparent 1px),
    radial-gradient(rgba(74, 74, 74, 0.05) 1px, transparent 1px);
  background-size: 9px 9px, 29px 29px;
  background-position: 0 0, 4px 7px;
}

a { color: var(--ink); text-decoration: none; }
img { display: block; max-width: 100%; }
:focus-visible { outline: 2px dashed var(--ink); outline-offset: 3px; }

/* ---------- 左侧竖排栏 ---------- */
header.rail {
  position: fixed;
  top: 0;
  left: 0;
  width: var(--rail);
  height: 100vh;
  z-index: 6;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  padding: 1rem 0.9rem 1.6rem;
  overflow-y: auto;
  background: var(--paper);
  border-right: 2px dashed var(--line);
}

.mark {
  align-self: flex-end;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 46px;
  min-height: 46px;
  padding: 0.3rem 0.45rem;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  text-align: center;
  background: #fff;
  border: 2px solid var(--ink);
  border-radius: 10px;
  box-shadow: var(--shadow);
  transform: rotate(-2.6deg);
}
.mark-img { width: 36px; height: 36px; object-fit: contain; }

.find { display: flex; gap: 0.35rem; }
.find input {
  flex: 1;
  min-width: 0;
  min-height: 40px;
  padding: 0.3rem 0.5rem;
  font: inherit;
  font-size: 16px;
  color: var(--ink);
  background: #fff;
  border: 1.5px solid var(--mid);
  border-radius: 10px;
}
.find button {
  min-height: 40px;
  padding: 0.3rem 0.6rem;
  font: inherit;
  font-size: 16px;
  color: var(--ink);
  background: var(--soft);
  border: 1.5px solid var(--ink);
  border-radius: 10px;
  cursor: pointer;
}
.find button:active { transform: translateY(1px); }

nav.tabs { display: block; }
nav.tabs p { display: flex; flex-wrap: wrap; gap: 0.3rem; margin: 0; }
nav.tabs a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0.35rem 0.5rem;
  font-size: 16px;
  line-height: 1.25;
  border-bottom: 2px dashed var(--line);
  border-radius: 6px;
}
nav.tabs a:hover {
  background: #fff;
  box-shadow: var(--shadow);
  transform: rotate(-1.6deg);
}

.group { border-top: 2px dashed var(--line); padding-top: 0.5rem; }
.group summary {
  display: flex;
  align-items: center;
  min-height: 40px;
  padding: 0.3rem 0.2rem;
  font-size: 16px;
  color: var(--mid);
  cursor: pointer;
  list-style: none;
}
.group summary::-webkit-details-marker { display: none; }
.group summary::after { content: "+"; margin-left: auto; font-weight: 700; color: var(--ink); }
.group[open] summary::after { content: "–"; }
.group ul { margin: 0.2rem 0 0.4rem; padding: 0 0 0 0.3rem; list-style: none; }
.group a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  font-size: 16px;
  line-height: 1.3;
  border-bottom: 1px dotted var(--line);
}

/* ---------- 主体网格 ---------- */
main {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 244px;
  gap: 2rem 2.2rem;
  align-items: start;
  max-width: 1340px;
  margin: 0 auto;
  padding: 1.2rem clamp(1rem, 3vw, 2.6rem) 3rem;
}
main > div { grid-column: 1; }

/* ---------- 首屏 ---------- */
.stage {
  grid-column: 1 / -1;
  position: relative;
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 2rem;
  align-items: center;
  min-height: 100vh;
  padding: 2rem 0 3.5rem;
  overflow: hidden;
}
.ghost {
  position: absolute;
  left: -0.06em;
  bottom: -0.16em;
  z-index: 0;
  font-size: clamp(5rem, 20vw, 15rem);
  font-weight: 700;
  line-height: 0.75;
  letter-spacing: -0.07em;
  color: rgba(26, 26, 26, 0.055);
  white-space: nowrap;
  pointer-events: none;
  will-change: transform;
}
.stage-copy { position: relative; z-index: 1; }
h1 {
  margin: 0 0 1.1rem;
  font-size: clamp(2.3rem, 5.2vw, 4rem);
  line-height: 1.08;
  letter-spacing: -0.035em;
}
.lede {
  max-width: 34ch;
  margin: 0;
  padding-left: 0.85rem;
  font-size: 17px;
  color: var(--mid);
  border-left: 3px solid var(--ink);
}

.collage {
  position: relative;
  z-index: 1;
  margin: 0;
  min-height: min(62vh, 520px);
}
.collage::before {
  content: "";
  position: absolute;
  inset: 8% 6%;
  border: 2px dashed var(--line);
  border-radius: 14px;
  transform: rotate(1.4deg);
}
.collage img {
  position: absolute;
  width: 64%;
  height: 66%;
  object-fit: cover;
  background: #e9e6e1;
  border: 9px solid #fff;
  border-radius: 10px;
  box-shadow: 0 16px 32px rgba(26, 26, 26, 0.17);
}
.collage img:nth-of-type(1) { top: 0; left: 0; z-index: 2; transform: rotate(-3.4deg); }
.collage img:nth-of-type(2) { bottom: 0; right: 0; z-index: 1; transform: rotate(2.6deg); }
.collage img.on {
  z-index: 3;
  box-shadow: 0 0 0 3px var(--ink), 0 18px 34px rgba(26, 26, 26, 0.22);
  transform: rotate(-0.6deg);
}

/* ---------- 右侧便签 ---------- */
main > aside {
  grid-column: 2;
  grid-row: 2 / span 20;
  position: sticky;
  top: 1.2rem;
  padding: 1rem 0.95rem 1.2rem;
  background: #fff;
  border: 2px solid var(--ink);
  border-radius: 10px;
  box-shadow: var(--shadow);
  transform: rotate(0.7deg);
}
aside h2 { margin: 0 0 0.6rem; font-size: 16px; letter-spacing: 0.08em; }
aside h2 span { display: inline-block; padding-bottom: 0.15rem; border-bottom: 2px solid var(--ink); }
aside ul { margin: 0; padding: 0; list-style: none; }
aside a {
  display: flex;
  align-items: center;
  min-height: 40px;
  font-size: 16px;
  line-height: 1.3;
  border-bottom: 1px dotted var(--line);
}
aside a:hover { transform: rotate(-1.4deg); }

/* ---------- 正文区块 ---------- */
main > div:not(.stage) {
  padding: 2.4rem 0 2.8rem;
  border-top: 2px dashed var(--line);
  scroll-margin-top: 1rem;
}
main > div:not(.stage) h2 {
  margin: 0 0 1rem;
  font-size: clamp(1.45rem, 2.8vw, 2rem);
  line-height: 1.24;
  letter-spacing: -0.02em;
}
main > div:not(.stage) h2 span,
main > div:not(.stage) h3 span {
  text-decoration: underline wavy rgba(26, 26, 26, 0.32);
  text-underline-offset: 0.3em;
}
main > div:not(.stage) h3 { margin: 1.6rem 0 0.6rem; font-size: 1.16rem; line-height: 1.35; }
main > div:not(.stage) p { max-width: 62ch; margin: 0 0 1rem; }
main > div:not(.stage) ul,
main > div:not(.stage) ol { max-width: 62ch; margin: 0 0 1rem; padding-left: 1.2rem; }
main > div:not(.stage) li { margin: 0.3rem 0; }
main > div:not(.stage) figure { margin: 1.2rem 0; }
main > div:not(.stage) img {
  height: auto;
  margin: 1.2rem 0;
  border: 9px solid #fff;
  border-radius: 10px;
  box-shadow: var(--shadow);
  transform: rotate(-0.6deg);
}
main > div:not(.stage) a { border-bottom: 2px solid var(--line); }
main > div:not(.stage) a:hover { background: #fff; }
main > div:not(.stage) blockquote {
  margin: 1.2rem 0;
  padding: 0.7rem 1rem;
  color: var(--mid);
  background: #fff;
  border-left: 4px solid var(--ink);
  border-radius: 0 10px 10px 0;
}

/* ---------- 页脚 ---------- */
footer {
  position: relative;
  z-index: 2;
  margin-top: 2rem;
  padding: 2.4rem clamp(1rem, 3vw, 2.6rem) 1.6rem;
  background: var(--wash);
  border-top: 2px dashed var(--line);
}
.foot-big h2 {
  margin: 0 0 1.4rem;
  font-size: clamp(3rem, 12vw, 8rem);
  line-height: 0.86;
  letter-spacing: -0.06em;
}
.cols {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.4rem;
  padding-bottom: 1.6rem;
  border-bottom: 1.5px dashed var(--line);
}
.cols ul { margin: 0; padding: 0; list-style: none; }
.cols a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  font-size: 16px;
  line-height: 1.3;
  border-bottom: 1px dotted var(--line);
}
.cols address {
  font-style: normal;
  font-size: 16px;
  line-height: 1.6;
  color: var(--mid);
  word-break: break-all;
}
.cols address strong { display: inline-block; margin-bottom: 0.3rem; color: var(--ink); }
.copy { margin: 1rem 0 0; font-size: 16px; color: var(--mid); }

/* ---------- 窄屏 ---------- */
@media (max-width: 920px) {
  body { padding-left: 0; }
  header.rail {
    position: sticky;
    top: 0;
    width: 100%;
    height: auto;
    max-height: none;
    overflow: visible;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.4rem 0.5rem;
    padding: 0.5rem 0.8rem 0.6rem;
    background: var(--paper);
    border-right: 0;
    border-bottom: 2px dashed var(--line);
  }
  .mark { order: 1; align-self: center; min-width: 42px; min-height: 42px; padding: 0.2rem 0.35rem; }
  .find { order: 2; flex: 1; min-width: 120px; }
  nav.tabs { order: 3; width: 100%; }
  .group { order: 4; width: 100%; border-top: 1px dashed var(--line); }
  main { grid-template-columns: minmax(0, 1fr); padding: 0 1rem 2rem; }
  main > div { grid-column: 1; }
  .stage {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.4rem;
    min-height: calc(100vh - 8rem);
    padding-top: 1rem;
  }
  .collage { min-height: 44vh; }
  .ghost { bottom: -0.1em; font-size: clamp(4rem, 26vw, 9rem); }
  main > aside {
    grid-column: 1;
    grid-row: auto;
    position: static;
    margin: 1rem 0;
    transform: none;
  }
  main > div:not(.stage) { scroll-margin-top: 190px; }
  .cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 520px) {
  .collage { min-height: 38vh; }
  .collage img { width: 70%; height: 70%; }
  .foot-big h2 { letter-spacing: -0.05em; }
}

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