@import url('https://fonts.googleapis.com/css2?family=Didact+Gothic&family=Poiret+One&display=swap');

:root {
  --ink: #1f1f1f;
  --paper: #ffffff;
  --ash: #f5f5f5;
  --line: #e4e4e4;
  --mute: #6d6d6d;
  --deco: 'Poiret One', 'Didact Gothic', "Songti SC", "STSong", serif;
  --text: 'Didact Gothic', "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
}

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

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

body {
  margin: 0;
  padding-bottom: 92px;
  overflow-x: hidden;
  background: var(--ash);
  color: var(--ink);
  font: 400 17px/1.7 var(--text);
}

[id] { scroll-margin-top: 26px; }

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

a { color: inherit; }

h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--deco);
  font-weight: 400;
  line-height: 1.14;
  letter-spacing: 0.02em;
}

p { margin: 0 0 12px; }

.wrap {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

/* 首屏 */
.hero {
  position: relative;
  display: flex;
  min-height: 70vh;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  gap: 18px;
  padding: 92px 0 56px;
  text-align: right;
  border-bottom: 1px solid var(--line);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(#dadada 1px, transparent 1px),
    linear-gradient(to right, rgba(0, 0, 0, 0.03) 1px, transparent 1px);
  background-size: 26px 26px, 130px 100%;
  pointer-events: none;
}

.hero > * { position: relative; }

.kicker {
  margin: 0;
  font-size: 0.82rem;
  letter-spacing: 0.34em;
  color: var(--mute);
}

.hero h1 {
  font-size: clamp(2.5rem, 8.6vw, 6rem);
  line-height: 1.02;
  letter-spacing: 0.01em;
  max-width: 18ch;
}

.lede {
  max-width: 44ch;
  margin: 0;
  color: #464646;
  font-size: 1.05rem;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  padding: 0 28px;
  background: var(--ink);
  color: var(--paper);
  text-decoration: none;
  font-size: 0.98rem;
  letter-spacing: 0.12em;
  transition: background 0.2s ease, color 0.2s ease;
}

.hero-cta:hover { background: #000; }

/* 主体：左内容 + 右侧栏 */
.board {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 288px;
  gap: 20px;
  align-items: start;
  padding: 40px 0 64px;
}

.prose {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  min-width: 0;
}

.prose > article {
  background: var(--paper);
  padding: 26px 24px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.prose > article:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.09);
}

.prose > article:nth-child(1),
.prose > article:nth-child(4),
.prose > article:nth-child(7) { grid-column: span 2; }

.prose h2 {
  font-size: 1.55rem;
  margin-bottom: 12px;
}

.prose h3 {
  font-size: 1.14rem;
  margin: 18px 0 8px;
}

.prose p { color: #3a3a3a; }

.prose ul,
.prose ol {
  margin: 0 0 12px;
  padding-left: 1.25em;
}

.prose li { margin: 6px 0; }

.prose hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 14px 0;
}

.prose a {
  color: #111;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}

.prose strong { font-weight: 700; }

.prose blockquote {
  margin: 0 0 12px;
  padding: 8px 0 8px 16px;
  border-left: 2px solid var(--ink);
  color: #333;
}

/* 侧栏 */
.rail {
  position: sticky;
  top: 24px;
  background: var(--ink);
  color: #f2f2f2;
  padding: 24px 22px 18px;
}

.rail h2 {
  font-size: 1.08rem;
  letter-spacing: 0.14em;
}

.rail hr {
  border: 0;
  border-top: 1px solid #4a4a4a;
  margin: 14px 0 8px;
}

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

.rail a {
  display: flex;
  align-items: center;
  min-height: 40px;
  padding: 0 2px;
  color: #dcdcdc;
  text-decoration: none;
  font-size: 0.95rem;
  border-bottom: 1px solid #2d2d2d;
  transition: color 0.2s ease, padding-left 0.2s ease;
}

.rail a:hover {
  color: #fff;
  padding-left: 6px;
}

/* 底部固定条 */
.dock {
  position: fixed;
  inset: auto 0 0 0;
  z-index: 60;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px calc(8px + env(safe-area-inset-bottom, 0px));
  background: var(--ink);
  border-top: 1px solid #000;
}

.brand {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid #4d4d4d;
  color: #fff;
  font-family: var(--deco);
  font-size: 1.15rem;
  line-height: 1;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease;
}

.brand:hover,
.brand:focus-visible {
  background: #fff;
  color: var(--ink);
}

.tabs {
  flex: 1 1 auto;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
}

.tabs::-webkit-scrollbar { display: none; }

.tabs ol {
  display: flex;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.tabs a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0 12px;
  color: #d6d6d6;
  white-space: nowrap;
  text-decoration: none;
  font-size: 0.95rem;
  transition: background 0.2s ease, color 0.2s ease;
}

.tabs a:hover,
.tabs a:focus-visible {
  background: #2e2e2e;
  color: #fff;
}

.cta {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  min-height: 44px;
  padding: 0 16px;
  background: #fff;
  color: var(--ink);
  text-decoration: none;
  font-size: 0.92rem;
  letter-spacing: 0.08em;
}

.cta:hover { background: #e9e9e9; }

/* 页脚 */
.foot {
  display: grid;
  grid-template-columns: 1.1fr 1fr 1.4fr 1fr;
  gap: 32px;
  align-items: start;
  padding: 44px max(24px, calc((100% - 1132px) / 2)) 44px;
  background: var(--paper);
  border-top: 1px solid var(--line);
}

.f-word {
  margin: 12px 0 0;
  font-family: var(--deco);
  font-size: 1.15rem;
  letter-spacing: 0.06em;
}

.f-nav ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

.f-nav a {
  display: flex;
  align-items: center;
  min-height: 40px;
  color: #3d3d3d;
  text-decoration: none;
  font-size: 0.95rem;
}

.f-nav a:hover {
  color: #000;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.sub {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.sub input {
  flex: 1 1 130px;
  min-height: 46px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 0;
  background: var(--ash);
  color: var(--ink);
  font: inherit;
  font-size: 16px;
}

.sub input:focus { outline: 2px solid var(--ink); outline-offset: 1px; }

.sub button {
  min-height: 46px;
  padding: 0 20px;
  border: 0;
  border-radius: 0;
  background: var(--ink);
  color: #fff;
  font: inherit;
  font-size: 16px;
  cursor: pointer;
}

.sub button:hover { background: #000; }

.f-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
}

.copy {
  margin: 0;
  color: var(--mute);
  font-size: 0.9rem;
}

.top {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  color: #333;
  text-decoration: none;
  font-size: 0.9rem;
}

.top:hover { text-decoration: underline; text-underline-offset: 3px; }

/* 滚动出现 */
.js .rv {
  opacity: 0;
  transform: translateY(16px);
}

.js .rv.in {
  opacity: 1;
  transform: none;
  transition: opacity 0.6s ease, transform 0.6s ease;
}

@media (max-width: 900px) {
  .board {
    grid-template-columns: minmax(0, 1fr);
    padding: 30px 0 48px;
  }

  .rail { position: static; order: 2; }

  .prose { grid-template-columns: minmax(0, 1fr); }

  .prose > article:nth-child(n) { grid-column: auto; }

  .foot { grid-template-columns: 1fr 1fr; gap: 24px; }

  .hero { min-height: 62vh; padding: 76px 0 44px; }
}

@media (max-width: 620px) {
  body { padding-bottom: 84px; }
  .wrap { padding: 0 18px; }
  .foot { grid-template-columns: 1fr; padding: 36px 18px 36px; }
  .hero h1 { font-size: clamp(2.1rem, 11vw, 3rem); }
  .hero { min-height: auto; padding: 64px 0 40px; gap: 14px; }
  .cta { padding: 0 12px; font-size: 0.86rem; }
  .tabs a { padding: 0 10px; font-size: 0.9rem; }
  .prose > article { padding: 22px 18px; }
  .rail { padding: 20px 18px 14px; }
}

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

  .js .rv {
    opacity: 1;
    transform: none;
  }

  .prose > article,
  .rail a,
  .tabs a,
  .brand,
  .hero-cta,
  .sub button {
    transition: none;
  }

  .prose > article:hover { transform: none; }
}

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