@import url('https://fonts.googleapis.com/css2?family=Space+Mono:wght@400;700&display=swap');

:root {
  --ink: #1f1f1f;
  --paper: #ffffff;
  --ash: #f5f5f5;
  --line: #dcdcdc;
  --mut: #565656;
  --mono: 'Space Mono', ui-monospace, SFMono-Regular, Menlo, "Courier New", monospace;
  --e1: 0 1px 0 rgba(31, 31, 31, .9);
  --e2: 4px 4px 0 rgba(31, 31, 31, .88);
  --e3: 8px 8px 0 rgba(31, 31, 31, .14), 0 2px 0 rgba(31, 31, 31, .9);
  --e4: 16px 16px 0 rgba(31, 31, 31, .12), 0 3px 0 rgba(31, 31, 31, .9);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-bottom: 190px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  padding-bottom: 108px;
  font-family: var(--mono);
  font-size: 17px;
  line-height: 1.78;
  color: var(--ink);
  background-color: var(--ash);
  background-image: repeating-linear-gradient(0deg, transparent 0 35px, rgba(31, 31, 31, .045) 35px 36px);
  letter-spacing: .01em;
  overflow-x: hidden;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

a { color: var(--ink); }

:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
}

/* ── 底部工具条 ───────────────────────────── */
.dock {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 60;
  background: rgba(255, 255, 255, .84);
  -webkit-backdrop-filter: blur(14px) saturate(120%);
  backdrop-filter: blur(14px) saturate(120%);
  border-top: 2px solid var(--ink);
  box-shadow: 0 -10px 0 rgba(31, 31, 31, .07);
}

.dock-bar {
  max-width: 1180px;
  margin: 0 auto;
  padding: 6px clamp(8px, 2vw, 20px) calc(6px + env(safe-area-inset-bottom));
}

.dock-nav {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 6px;
}

.grp {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2px;
  margin: 0;
}

.grp-r { justify-content: flex-end; }

.dock-nav a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 44px;
  padding: 10px 9px;
  font-size: 16px;
  line-height: 1.4;
  text-decoration: none;
  white-space: nowrap;
  transition: transform .16s ease, color .16s ease;
}

.dock-nav a:hover { transform: translateY(-2px); }

.dock-nav a::after {
  content: "";
  position: absolute;
}

.dot {
  width: 7px;
  height: 7px;
  background: var(--ink);
  box-shadow: 2px 2px 0 rgba(31, 31, 31, .3);
  flex: 0 0 auto;
}

.brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 8px 14px;
  font-weight: 700;
  letter-spacing: .04em;
  text-decoration: none;
  color: var(--paper);
  background: var(--ink);
  box-shadow: var(--e2);
  transform: translateY(-1px);
}

.brand:hover { transform: translate(-1px, -3px); }

.dock-search {
  position: absolute;
  right: clamp(8px, 2vw, 20px);
  bottom: calc(100% + 14px);
  z-index: 2;
  display: flex;
  background: var(--paper);
  border: 2px solid var(--ink);
  box-shadow: var(--e3);
}

.dock-search input {
  width: clamp(112px, 44vw, 210px);
  min-height: 44px;
  padding: 10px 12px;
  border: 0;
  background: transparent;
  font: inherit;
  font-size: 16px;
  color: var(--ink);
}

.dock-search button {
  min-height: 44px;
  padding: 0 15px;
  border: 0;
  border-left: 2px solid var(--ink);
  background: var(--ash);
  font: inherit;
  font-size: 16px;
  cursor: pointer;
}

.dock-search button:hover { background: var(--ink); color: var(--paper); }

/* ── 首屏 ─────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: clamp(30px, 6vw, 70px) clamp(16px, 5vw, 64px) clamp(110px, 16vw, 150px);
  background: var(--paper);
  background-image: repeating-linear-gradient(90deg, transparent 0 79px, rgba(31, 31, 31, .05) 79px 80px);
}

.hero-in {
  position: relative;
  z-index: 3;
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.06fr .94fr;
  align-items: center;
  gap: clamp(24px, 4vw, 60px);
}

.hero-h {
  margin: 0;
  font-size: clamp(2.1rem, 6.4vw, 4.6rem);
  line-height: 1.06;
  letter-spacing: -.035em;
  font-weight: 700;
}

.hero-d {
  max-width: 34ch;
  margin: 22px 0 0;
  padding-left: 14px;
  border-left: 4px solid var(--ink);
  font-size: 17px;
  color: var(--mut);
}

.hero-art {
  position: relative;
  aspect-ratio: 4 / 4.6;
  z-index: 1;
  will-change: transform;
}

.art {
  position: absolute;
  margin: 0;
  overflow: hidden;
  background: var(--paper);
  border: 2px solid var(--ink);
  box-shadow: var(--e4);
}

.art-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.art-a {
  inset: 0 22% 24% 0;
  z-index: 2;
  transform: rotate(-2.4deg);
}

.art-b {
  inset: 27% 0 0 28%;
  z-index: 3;
  transform: rotate(2.8deg);
}

.is-plate {
  background-image: repeating-linear-gradient(45deg, #fff 0 9px, #ececec 9px 18px);
}

.art-ghost {
  position: absolute;
  inset: 12% 6% 8% 12%;
  z-index: 1;
  background: var(--ash);
  border: 2px solid rgba(31, 31, 31, .35);
  transform: rotate(6deg);
}

.band {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: clamp(56px, 9vw, 96px);
  background: var(--ink);
  clip-path: polygon(0 42%, 100% 0, 100% 100%, 0 100%);
  z-index: 2;
}

/* ── 主体骨架 ─────────────────────────────── */
main { padding: clamp(38px, 6vw, 86px) 0 clamp(50px, 8vw, 90px); }

.wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 40px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) 286px;
  gap: clamp(22px, 3vw, 44px);
  align-items: start;
}

.board { position: relative; min-width: 0; }

.board::before {
  content: "";
  position: absolute;
  inset: 18px -14px -18px 14px;
  z-index: 0;
  background: var(--paper);
  border: 2px solid var(--ink);
}

.sheet {
  position: relative;
  z-index: 1;
  background: var(--paper);
  border: 2px solid var(--ink);
  box-shadow: var(--e4);
  padding: clamp(20px, 3.6vw, 52px);
  font-size: 17px;
}

/* ── 正文排版 ─────────────────────────────── */
.sheet section + section {
  margin-top: clamp(38px, 5vw, 66px);
  padding-top: clamp(30px, 4.4vw, 52px);
  border-top: 1px dashed var(--line);
}

.sheet h2 {
  margin: 0 0 18px;
  font-size: clamp(1.35rem, 3vw, 1.95rem);
  line-height: 1.28;
  letter-spacing: -.02em;
}

.sheet h2 > span,
.sheet h3 > span {
  display: inline-block;
  padding: 4px 12px;
  background: var(--paper);
  border: 2px solid var(--ink);
  box-shadow: var(--e2);
}

.sheet h2 > span > span,
.sheet h3 > span > span {
  display: inline-block;
  transform: translateY(-1px);
}

.sheet h3 {
  margin: 30px 0 14px;
  font-size: clamp(1.1rem, 2.2vw, 1.35rem);
  line-height: 1.35;
}

.sheet p { margin: 0 0 1.1em; }

.sheet a {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.sheet a:hover { background: var(--ink); color: var(--paper); text-decoration: none; }

.sheet ul,
.sheet ol { margin: 0 0 1.2em; padding-left: 1.4em; }

.sheet li { margin: 0 0 .55em; }

.sheet li::marker { color: var(--ink); font-weight: 700; }

.sheet blockquote {
  margin: 22px 0;
  padding: 16px 20px;
  background: var(--ash);
  border-left: 5px solid var(--ink);
  box-shadow: var(--e2);
}

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

.sheet img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 22px 0;
  border: 2px solid var(--ink);
  box-shadow: var(--e3);
}

.sheet figure { margin: 22px 0; }

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

.sheet th,
.sheet td {
  border: 2px solid var(--ink);
  padding: 9px 12px;
  text-align: left;
  vertical-align: top;
}

.sheet th { background: var(--ash); }

.sheet code,
.sheet pre { font-family: var(--mono); }

.sheet pre {
  overflow-x: auto;
  padding: 14px 16px;
  background: var(--ink);
  color: var(--paper);
}

.sheet time { font-size: .86em; color: var(--mut); }

.sheet strong { font-weight: 700; }

/* ── 侧栏 ─────────────────────────────────── */
.rail {
  position: sticky;
  top: 24px;
  z-index: 2;
  background: var(--paper);
  border: 2px solid var(--ink);
  box-shadow: var(--e3);
  padding: 18px 18px 22px;
}

.rail-h {
  margin: 0 0 12px;
  font-size: 16px;
  letter-spacing: .16em;
}

.rail-h > span {
  display: inline-block;
  padding: 3px 10px;
  background: var(--ink);
  color: var(--paper);
}

.rail-list { display: grid; }

.rail-list a {
  display: flex;
  align-items: center;
  min-height: 42px;
  padding: 7px 2px;
  font-size: 16px;
  text-decoration: none;
  border-top: 1px solid var(--line);
  transition: transform .16s ease, padding-left .16s ease;
}

.rail-list a:hover {
  transform: translateX(4px);
  padding-left: 8px;
  background: var(--ash);
}

.rail-list a.hit { background: var(--ink); color: var(--paper); }

/* ── 页脚 ─────────────────────────────────── */
.foot {
  background: var(--ink);
  color: var(--paper);
  padding: clamp(30px, 5vw, 64px) clamp(16px, 4vw, 40px) 26px;
}

.foot-cta {
  max-width: 1180px;
  margin: 0 auto;
  padding-bottom: clamp(22px, 3.4vw, 40px);
  border-bottom: 2px solid rgba(255, 255, 255, .35);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.cta-h {
  margin: 0;
  font-size: clamp(1.6rem, 4.4vw, 2.9rem);
  line-height: 1.15;
  letter-spacing: -.02em;
}

.cta-h > span {
  display: inline-block;
  padding: 2px 12px;
  border: 2px solid var(--paper);
  box-shadow: 6px 6px 0 rgba(255, 255, 255, .3);
}

.cta {
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  padding: 10px 20px;
  font-size: 16px;
  color: var(--ink);
  background: var(--paper);
  border: 2px solid var(--paper);
  box-shadow: 6px 6px 0 rgba(255, 255, 255, .32);
  text-decoration: none;
  transition: transform .16s ease, box-shadow .16s ease;
}

.cta:hover {
  transform: translate(3px, 3px);
  box-shadow: 2px 2px 0 rgba(255, 255, 255, .4);
}

.foot-cols {
  max-width: 1180px;
  margin: 26px auto 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(14px, 3vw, 40px);
}

.foot-cols dl { margin: 0; }

.foot-cols dt {
  margin-bottom: 8px;
  font-size: 14px;
  letter-spacing: .2em;
  color: rgba(255, 255, 255, .68);
}

.foot-cols dd {
  margin: 0;
  font-size: 16px;
  line-height: 1.6;
  overflow-wrap: anywhere;
}

.dd-nav { display: flex; flex-wrap: wrap; gap: 2px 12px; }

.dd-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  color: var(--paper);
  text-decoration: none;
  border-bottom: 2px solid rgba(255, 255, 255, .35);
}

.dd-nav a:hover { border-bottom-color: var(--paper); }

.foot-legal {
  max-width: 1180px;
  margin: 30px auto 0;
  text-align: center;
  font-size: 15px;
  color: rgba(255, 255, 255, .7);
  overflow-wrap: anywhere;
}

/* ── 断点 ─────────────────────────────────── */
@media (max-width: 1000px) {
  .wrap { grid-template-columns: minmax(0, 1fr) 240px; }
  .board::before { inset: 12px -10px -12px 10px; }
}

@media (max-width: 860px) {
  body { padding-bottom: 208px; }
  html { scroll-padding-bottom: 230px; }

  .dock-nav { grid-template-columns: 1fr; gap: 2px; justify-items: center; }
  .brand { order: -1; margin: 4px 0 2px; }
  .grp { justify-content: center; }
  .grp-r { justify-content: center; }
  .dock-nav a { padding: 8px 7px; }

  .hero { padding: 30px 16px 110px; }
  .hero-in { grid-template-columns: 1fr; gap: 28px; }
  .hero-d { margin-top: 16px; }
  .hero-art { aspect-ratio: 5 / 3.6; max-width: 460px; }

  .wrap { grid-template-columns: minmax(0, 1fr); }
  .board::before { display: none; }
  .rail { position: static; order: 2; }
  .rail-list { grid-template-columns: 1fr 1fr; column-gap: 14px; }

  .foot-cols { gap: 14px; }
  .foot-cols dt { font-size: 13px; letter-spacing: .1em; }
  .foot-cols dd { font-size: 15px; }
}

@media (max-width: 460px) {
  body { font-size: 16px; }
  .sheet { padding: 18px 16px 26px; }
  .hero-h { font-size: clamp(1.9rem, 9vw, 2.6rem); }
  .art-a { inset: 0 20% 26% 0; }
  .art-b { inset: 30% 0 0 26%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .art-a,
  .art-b,
  .hero-art,
  .cta,
  .rail-list a,
  .dock-nav a { transform: none !important; transition: none !important; }
}

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