:root {
  --ink: #1f1f1f;
  --paper: #ffffff;
  --wash: #f5f5f5;
  --line: #e3e3e3;
  --muted: #6d6d6d;
  --r: 10px;
  --r-lg: 16px;
  --sh: 0 4px 6px rgba(0, 0, 0, .05), 0 1px 2px rgba(0, 0, 0, .04);
  --sh-h: 0 14px 30px rgba(0, 0, 0, .11);
  --font: "Epilogue", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  --disp: "Anton", "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(--wash);
  color: var(--ink);
  font: 400 16px/1.65 var(--font);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; }
a { color: inherit; }

main div { scroll-margin-top: 140px; }

.skip {
  position: absolute;
  left: 12px;
  top: -80px;
  z-index: 200;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  text-decoration: none;
  font-size: 16px;
  transition: top .22s ease;
}
.skip:focus { top: 12px; }

/* ---------- 顶栏 ---------- */
.masthead {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(245, 245, 245, .94);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.masthead__bar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 10px;
  max-width: 1220px;
  margin: 0 auto;
  padding: 10px 14px;
}

.masthead__side {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.masthead__side--end { justify-content: flex-end; }

.chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 15px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  box-shadow: var(--sh);
  transition: transform .22s ease, box-shadow .22s ease;
}
.chip:hover { transform: translateY(-1px); box-shadow: var(--sh-h); }

.chip__bars {
  width: 16px;
  height: 11px;
  flex: none;
  background: linear-gradient(currentColor, currentColor) center / 100% 2px no-repeat;
  position: relative;
}
.chip__bars::before,
.chip__bars::after {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
}
.chip__bars::before { top: 0; }
.chip__bars::after { bottom: 0; }

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  padding: 0 12px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 800;
  font-size: 18px;
  letter-spacing: -.01em;
  white-space: nowrap;
}
.brand__img { border-radius: 8px; display: block; }

.rail ul,
.tabs ul {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.rail a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 11px;
  border-radius: 999px;
  text-decoration: none;
  font-size: 16px;
  color: #3d3d3d;
  white-space: nowrap;
  transition: background .2s ease, box-shadow .2s ease, color .2s ease;
}
.rail a:hover { background: var(--paper); box-shadow: var(--sh); color: #000; }

.tabs {
  display: none;
  gap: 6px;
  overflow-x: auto;
  padding: 0 12px 10px;
  scrollbar-width: none;
}
.tabs::-webkit-scrollbar { display: none; }
.tabs a {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 14px;
  border-radius: 999px;
  background: var(--paper);
  box-shadow: var(--sh);
  text-decoration: none;
  font-size: 16px;
  white-space: nowrap;
}
.tabs a.is-on {
  background: var(--ink);
  color: #fff;
}

@media (max-width: 999px) {
  .rail { display: none; }
  .tabs { display: flex; }
}

/* ---------- 抽屉 ---------- */
.drawer {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 18px 16px 40px;
  overflow-y: auto;
  background: rgba(255, 255, 255, .98);
  backdrop-filter: blur(10px);
  opacity: 0;
  visibility: hidden;
  transition: opacity .26s ease, visibility .26s ease;
}
.drawer.is-open { opacity: 1; visibility: visible; }

.drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.drawer__brand { font-size: 18px; font-weight: 800; }

.seek { display: flex; gap: 8px; }
.seek__input {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 48px;
  padding: 0 15px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--wash);
  color: var(--ink);
  font: inherit;
  font-size: 16px;
}
.seek__input:focus { outline: 2px solid var(--ink); outline-offset: 1px; }

.drawer__nav ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.drawer__nav a {
  display: flex;
  align-items: center;
  min-height: 54px;
  padding: 0 16px;
  border-radius: var(--r);
  background: var(--wash);
  border: 1px solid var(--line);
  text-decoration: none;
  font-size: 17px;
  font-weight: 600;
}
.drawer__nav a:hover { background: var(--paper); box-shadow: var(--sh); }

/* ---------- 舞台 ---------- */
.stage {
  max-width: 1220px;
  margin: 0 auto;
  padding: 18px 14px 0;
}

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
  min-height: 45vh;
  padding: 16px;
  border-radius: var(--r-lg);
  background: var(--paper);
  box-shadow: var(--sh);
}

.hero__media {
  margin: 0;
  border-radius: var(--r);
  overflow: hidden;
  background: var(--wash);
  aspect-ratio: 16 / 10;
  max-height: 220px;
}
.hero__media img,
.hero__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__copy {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  text-align: right;
}
.hero__copy { order: -1; }

.hero h1 {
  margin: 0;
  font-size: clamp(30px, 5.4vw, 58px);
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -.025em;
}

.ghost {
  position: absolute;
  right: -6px;
  bottom: -14px;
  z-index: 0;
  font: 400 clamp(64px, 15vw, 190px) / .78 var(--disp);
  letter-spacing: -.03em;
  color: transparent;
  -webkit-text-stroke: 1.4px #e2e2e2;
  pointer-events: none;
  user-select: none;
  white-space: nowrap;
}

@media (min-width: 820px) {
  .hero {
    grid-template-columns: 1.05fr .95fr;
    align-items: center;
    gap: 26px;
    padding: 22px 26px 26px;
  }
  .hero__media { aspect-ratio: 4 / 3; max-height: none; height: 100%; min-height: 220px; }
  .hero__copy { order: 0; align-items: center; }
}

.stage__body {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
  margin-top: 16px;
}

@media (min-width: 980px) {
  .stage__body {
    grid-template-columns: minmax(0, 1fr) 272px;
    align-items: start;
  }
}

/* ---------- 正文流 ---------- */
.stream {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
  overflow-wrap: break-word;
}

.stream > div {
  background: var(--paper);
  border-radius: var(--r);
  box-shadow: var(--sh);
  padding: 26px 20px;
  transition: transform .35s ease, box-shadow .35s ease;
}

@media (min-width: 900px) {
  .stream { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stream > div { grid-column: 1 / -1; padding: 32px 34px; }
  .stream > div:nth-child(3n + 2) { grid-column: span 1; }
}

.stream h2 {
  margin: 0 0 14px;
  font-size: clamp(22px, 2.7vw, 30px);
  line-height: 1.22;
  letter-spacing: -.015em;
}

.stream h3 {
  margin: 22px 0 10px;
  font-size: 19px;
  line-height: 1.35;
}

.stream p { margin: 0 0 14px; }
.stream p:last-child { margin-bottom: 0; }

.stream ul,
.stream ol {
  margin: 0 0 14px;
  padding-left: 1.2em;
}
.stream li { margin: .3em 0; }

.stream blockquote {
  margin: 0 0 14px;
  padding: 12px 16px;
  border-left: 3px solid var(--ink);
  background: var(--wash);
  border-radius: 0 var(--r) var(--r) 0;
}

.stream table {
  width: 100%;
  border-collapse: collapse;
  font-size: 16px;
  margin: 0 0 14px;
}
.stream th,
.stream td {
  border-bottom: 1px solid var(--line);
  padding: 9px 8px;
  text-align: left;
  vertical-align: top;
}

.stream img { border-radius: var(--r); height: auto; }

.stream figure { margin: 0 0 14px; }
.stream figcaption { font-size: 16px; color: var(--muted); margin-top: 6px; }

.stream a { text-decoration: underline; text-underline-offset: 3px; }
.stream code {
  font-family: ui-monospace, "SFMono-Regular", Menlo, monospace;
  font-size: 15px;
  background: var(--wash);
  padding: 1px 5px;
  border-radius: 6px;
}

@media (max-width: 899px) {
  .stream > div { padding: 22px 16px; }
}

/* ---------- 侧栏 ---------- */
.digest {
  background: var(--paper);
  border-radius: var(--r);
  box-shadow: var(--sh);
  padding: 20px 18px 22px;
}

@media (min-width: 980px) {
  .digest { position: sticky; top: 132px; }
}

.digest h2 {
  margin: 0 0 8px;
  font-size: 17px;
  letter-spacing: .1em;
}

.digest .subtitle {
  margin: 0 0 16px;
  font-size: 16px;
  line-height: 1.55;
  color: var(--muted);
}

.digest ul {
  display: grid;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.digest a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 4px 8px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 16px;
  color: #3d3d3d;
  border-bottom: 1px solid var(--line);
  transition: background .2s ease, color .2s ease;
}
.digest li:last-child a { border-bottom: 0; }
.digest a:hover { background: var(--wash); color: #000; }

/* ---------- 页脚 ---------- */
.foot {
  max-width: 1220px;
  margin: 26px auto 0;
  padding: 0 14px 30px;
}

.cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 30px 22px;
  border-radius: var(--r-lg);
  background: var(--ink);
  color: #fff;
  box-shadow: 0 10px 24px rgba(31, 31, 31, .22);
}

.cta__line {
  margin: 0;
  font-size: clamp(26px, 4.4vw, 42px);
  font-weight: 800;
  letter-spacing: -.025em;
  line-height: 1.15;
}

.cta__go {
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  padding: 0 22px;
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  text-decoration: none;
  font-size: 16px;
  font-weight: 600;
  transition: transform .22s ease;
}
.cta__go:hover { transform: translateY(-2px); }

.foot__bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 20px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.foot__logo {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 4px;
  font-weight: 800;
  font-size: 17px;
  text-decoration: none;
}

.foot__nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 2px 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.foot__nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 16px;
  color: #4a4a4a;
  text-decoration: none;
}
.foot__nav a:hover { color: #000; text-decoration: underline; text-underline-offset: 4px; }

.foot__copy {
  margin: 0;
  font-size: 16px;
  color: var(--muted);
}

/* ---------- 悬浮微交互 ---------- */
@media (hover: hover) and (min-width: 900px) {
  .stream > div:hover {
    transform: translateY(-3px) scale(1.008);
    box-shadow: var(--sh-h);
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
  }
  .stream > div:hover,
  .chip:hover,
  .cta__go:hover { transform: none; }
}

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