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

:root {
  --paper: #fafaf8;
  --grey: #4a4a4a;
  --ink: #1a1a1a;
  --line: #d7d5ce;
  --line-soft: #e7e5de;
  --noise: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.78' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)' opacity='0.55'/%3E%3C/svg%3E");
}

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

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

body {
  margin: 0;
  padding-bottom: 84px;
  background: var(--paper);
  color: var(--ink);
  font-family: 'Noto Sans SC', system-ui, -apple-system, 'PingFang SC', 'Microsoft YaHei', sans-serif;
  font-size: 17px;
  line-height: 1.78;
  font-weight: 400;
  overflow-x: clip;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: var(--noise);
  background-size: 190px 190px;
  opacity: 0.16;
  mix-blend-mode: multiply;
  pointer-events: none;
  z-index: 3;
}

img { max-width: 100%; }

a {
  color: var(--ink);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:focus-visible,
summary:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 2px dashed var(--ink);
  outline-offset: 3px;
}

.sheet { position: relative; z-index: 1; }

/* ---------- 主栅格 ---------- */

main {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px 32px;
  display: grid;
  grid-template-columns: 196px minmax(0, 1fr);
  column-gap: 56px;
}

/* ---------- 左侧栏 ---------- */

.rail {
  grid-column: 1;
  grid-row: 1 / span 2;
  align-self: start;
  position: sticky;
  top: 28px;
  padding: 96px 20px 24px 0;
}

.rail h2 {
  margin: 0;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.34em;
  color: var(--grey);
}

.rail hr {
  border: 0;
  border-top: 2px solid var(--ink);
  width: 36px;
  margin: 10px 0 18px;
}

.rail-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.rail-list li { border-bottom: 1px dashed var(--line-soft); }
.rail-list li:last-child { border-bottom: 0; }

.rail-list a {
  display: block;
  padding: 9px 0;
  font-size: 16px;
  color: var(--grey);
  text-decoration: none;
  transform: rotate(-0.3deg);
}

.rail-list a:hover { color: var(--ink); text-decoration: underline; }

/* ---------- 首屏 ---------- */

.hero {
  grid-column: 2;
  grid-row: 1;
  position: relative;
  overflow: hidden;
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.66fr);
  align-items: center;
  gap: 40px;
  padding: 72px 0 56px;
}

.hero-ghost {
  position: absolute;
  left: -10px;
  top: 6%;
  z-index: 0;
  font-size: clamp(120px, 19vw, 250px);
  font-weight: 700;
  line-height: 0.78;
  letter-spacing: -0.06em;
  color: transparent;
  -webkit-text-stroke: 2px var(--line-soft);
  pointer-events: none;
  user-select: none;
}

.hero-copy {
  position: relative;
  z-index: 1;
  --tilt: 0deg;
}

.hero-copy h1 {
  margin: 0 0 22px;
  font-size: clamp(34px, 5vw, 58px);
  font-weight: 700;
  line-height: 1.16;
  letter-spacing: -0.02em;
  transform: rotate(-0.7deg);
  border-bottom: 3px solid var(--ink);
  padding-bottom: 18px;
  display: inline-block;
}

.lede {
  margin: 0;
  font-size: 17px;
  color: var(--grey);
  max-width: 34em;
}

.hero-art {
  --tilt: -1.7deg;
  position: relative;
  z-index: 1;
  margin: 0;
  padding: 12px;
  background: #fff;
  border: 1px solid var(--grey);
  border-radius: 18px;
  box-shadow: 9px 11px 0 rgba(26, 26, 26, 0.09);
}

.hero-art::before {
  content: '';
  position: absolute;
  top: -14px;
  left: 26px;
  width: 78px;
  height: 24px;
  background: rgba(214, 211, 202, 0.62);
  border-left: 1px dashed rgba(26, 26, 26, 0.22);
  border-right: 1px dashed rgba(26, 26, 26, 0.22);
  transform: rotate(-4.5deg);
}

.shots {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: 10px;
  overflow: hidden;
  background:
    repeating-linear-gradient(-45deg, #eeece5 0 6px, #f6f5f0 6px 12px);
}

.shot {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  filter: grayscale(1) contrast(1.08);
}

.shot.on { opacity: 1; }

.shots.empty::after {
  content: '';
  position: absolute;
  inset: 16% 18%;
  border: 1px dashed #c8c5bc;
  border-radius: 8px;
  transform: rotate(2deg);
}

/* ---------- 正文 ---------- */

.manuscript {
  grid-column: 2;
  grid-row: 2;
  min-width: 0;
  padding-bottom: 16px;
}

.tape-note {
  --tilt: 0.9deg;
  margin: 0 0 48px;
  padding: 16px 20px;
  max-width: 340px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  border-bottom: 3px solid var(--ink);
  transform: rotate(var(--tilt, 0deg));
}

.tape-note p {
  margin: 0 0 6px;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.tape-note figcaption {
  font-size: 15px;
  color: var(--grey);
}

.manuscript > section {
  position: relative;
  padding: 6px 0 40px;
  margin-bottom: 44px;
  border-bottom: 3px solid var(--ink);
  scroll-margin-top: 28px;
}

.manuscript > section::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 26px;
  height: 3px;
  background: var(--line);
  transform: rotate(-2deg);
}

.manuscript > section:last-of-type { border-bottom-color: var(--line); }

.manuscript h2 {
  margin: 0 0 12px;
  font-size: clamp(23px, 3vw, 32px);
  font-weight: 700;
  line-height: 1.36;
  letter-spacing: -0.01em;
}

.manuscript h2::before {
  content: '';
  display: block;
  width: 34px;
  height: 3px;
  margin-bottom: 16px;
  background: var(--ink);
  transform: rotate(-1.6deg);
}

.manuscript h3 {
  margin: 30px 0 10px;
  font-size: 20px;
  font-weight: 700;
}

.manuscript hr {
  border: 0;
  border-top: 1px dashed #bdbab2;
  margin: 0 0 24px;
}

.manuscript p { margin: 0 0 18px; }
.manuscript p:last-child { margin-bottom: 0; }

.manuscript ul,
.manuscript ol {
  margin: 0 0 20px;
  padding-left: 22px;
}

.manuscript li { margin-bottom: 8px; }

.manuscript li::marker { color: var(--grey); }

.manuscript blockquote {
  margin: 0 0 20px;
  padding: 4px 0 4px 18px;
  border-left: 3px solid var(--line);
  color: var(--grey);
}

.manuscript figure {
  margin: 24px 0;
  padding: 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  border-bottom: 3px solid var(--ink);
}

.manuscript figure img { border-radius: 10px; display: block; }

.manuscript figcaption {
  margin-top: 10px;
  font-size: 15px;
  color: var(--grey);
}

.manuscript strong { font-weight: 700; }

/* ---------- 底部固定条 ---------- */

.dock {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px calc(8px + env(safe-area-inset-bottom, 0px));
  background: rgba(250, 250, 248, 0.97);
  border-top: 1px solid var(--line);
}

.dock-mark {
  padding: 12px 6px;
  min-height: 44px;
  display: flex;
  align-items: center;
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.04em;
  text-decoration: none;
  border-bottom: 2px solid var(--ink);
}

.dock-drawer {
  position: relative;
  margin-left: auto;
}

.dock-drawer summary {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  padding: 11px 16px;
  border: 1px solid var(--ink);
  border-radius: 18px;
  font-size: 16px;
  cursor: pointer;
  list-style: none;
  background: var(--paper);
}

.dock-drawer summary::-webkit-details-marker { display: none; }

.burger {
  display: block;
  width: 16px;
  height: 2px;
  background: var(--ink);
  box-shadow: 0 -5px 0 var(--ink), 0 5px 0 var(--ink);
}

.drawer-list {
  position: absolute;
  right: 0;
  bottom: calc(100% + 10px);
  width: min(300px, calc(100vw - 28px));
  max-height: 62vh;
  overflow: auto;
  margin: 0;
  padding: 8px;
  list-style: none;
  background: var(--paper);
  border: 1px solid var(--ink);
  border-radius: 18px;
  box-shadow: 7px 9px 0 rgba(26, 26, 26, 0.12);
}

.drawer-list li + li { border-top: 1px dashed var(--line-soft); }

.drawer-list a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 11px 12px;
  font-size: 16px;
  text-decoration: none;
}

.drawer-list a:hover { background: #f1f0ea; }

.dock-contact {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 11px 14px;
  font-size: 16px;
  text-decoration: none;
}

/* ---------- 页脚 ---------- */

footer {
  max-width: 1160px;
  margin: 24px auto 0;
  padding: 48px 24px 96px;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}

footer p { margin: 0; font-size: 16px; }

.firm {
  font-weight: 700;
  letter-spacing: 0.06em;
  border-bottom: 2px solid var(--ink);
  padding-bottom: 8px;
  display: inline-block;
  justify-self: start;
}

.fdesc { color: var(--grey); }

.sub {
  display: flex;
  gap: 8px;
  align-items: stretch;
}

.sub input {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 44px;
  padding: 10px 12px;
  font: inherit;
  font-size: 16px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
}

.sub-btn {
  flex: 0 0 auto;
  min-height: 44px;
  padding: 10px 16px;
  font: inherit;
  font-size: 16px;
  color: var(--paper);
  background: var(--ink);
  border: 1px solid var(--ink);
  border-radius: 18px;
  cursor: pointer;
}

footer small {
  grid-column: 1 / -1;
  font-size: 16px;
  color: var(--grey);
  border-top: 1px dashed var(--line);
  padding-top: 14px;
}

/* ---------- 入场 ---------- */

.hero-copy,
.hero-art,
.manuscript > article,
.manuscript > figure {
  opacity: 0;
  transform: translateY(16px) rotate(var(--tilt, 0deg));
}

.is-in {
  opacity: 1;
  transform: translateY(0) rotate(var(--tilt, 0deg));
  transition: opacity 0.42s steps(3, end), transform 0.42s steps(3, end);
}

/* ---------- 窄屏 ---------- */

@media (max-width: 900px) {
  main {
    grid-template-columns: minmax(0, 1fr);
    column-gap: 0;
    padding: 0 18px 24px;
  }

  .rail {
    grid-column: 1;
    grid-row: 1;
    position: static;
    padding: 22px 0 16px;
    border-bottom: 1px dashed var(--line);
    margin-bottom: 10px;
  }

  .rail h2 { letter-spacing: 0.24em; }

  .rail hr { margin: 8px 0 12px; }

  .rail-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
  }

  .rail-list li { border-bottom: 0; }

  .rail-list a {
    padding: 8px 12px;
    min-height: 40px;
    display: flex;
    align-items: center;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #fff;
    transform: none;
  }

  .hero {
    grid-column: 1;
    grid-row: 2;
    grid-template-columns: minmax(0, 1fr);
    min-height: 0;
    gap: 26px;
    padding: 20px 0 40px;
  }

  .hero-ghost {
    font-size: 30vw;
    top: -6px;
    left: -8px;
  }

  .hero-copy h1 { font-size: clamp(30px, 8.6vw, 44px); }

  .lede { font-size: 16px; }

  .manuscript {
    grid-column: 1;
    grid-row: 3;
  }

  .tape-note { max-width: 100%; }

  footer {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
    padding: 36px 18px 92px;
  }

  .sub input,
  .sub-btn { min-height: 46px; }
}

@media (max-width: 420px) {
  body { font-size: 16px; }
  .dock-mark { font-size: 15px; letter-spacing: 0; }
}

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

  .hero-copy,
  .hero-art,
  .manuscript > article,
  .manuscript > figure,
  .is-in {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .shot { transition: none; }
}

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