:root {
  --ink: #1f1f1f;
  --bg: #f5f5f5;
  --card: #ffffff;
  --line: #e5e5e5;
  --mut: #6b6b6b;
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Roboto, "Helvetica Neue", Arial, system-ui, -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 17px;
  line-height: 1.72;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: Newsreader, Georgia, "Songti SC", serif;
  font-weight: 600;
  line-height: 1.22;
  letter-spacing: -0.01em;
  margin: 0 0 0.5em;
}

p { margin: 0 0 1em; }
a { color: inherit; }
img { display: block; max-width: 100%; height: auto; }

hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 10px 0 18px;
}

::selection { background: var(--ink); color: #fff; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }

/* ---------- 顶栏 ---------- */
.top {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.brand {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  text-decoration: none;
  overflow: hidden;
}

.brand img { width: 30px; height: 30px; object-fit: contain; }

.brand-txt {
  font-family: Newsreader, Georgia, serif;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: 0.02em;
  padding: 0 6px;
  text-align: center;
  word-break: break-all;
}

.pills {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  padding: 3px 1px;
  scrollbar-width: thin;
}

.pill {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 9px 15px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  font-size: 16px;
  line-height: 1.4;
  white-space: nowrap;
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

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

/* ---------- 首屏 ---------- */
.hero {
  max-width: 1180px;
  margin: 0 auto;
  padding: 26px 18px 12px;
  box-sizing: border-box;
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  gap: 26px;
  align-items: center;
  min-height: calc(100vh - 68px);
  min-height: calc(100svh - 68px);
}

.hero-fig {
  position: relative;
  margin: 0;
  height: min(70vh, 640px);
  min-height: 300px;
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow: hidden;
  background: linear-gradient(140deg, #ececec, #f8f8f8 58%, #e7e7e7);
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.badge {
  position: absolute;
  left: 14px;
  top: 14px;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  font-size: 16px;
  line-height: 1.4;
  letter-spacing: 0.02em;
}

.hero-copy {
  text-align: center;
  padding: 0 4px;
}

.hero-copy h1 {
  font-size: clamp(2rem, 4.6vw, 3.2rem);
  margin-bottom: 0.55em;
}

.hero-desc {
  max-width: 32ch;
  margin: 0 auto;
  font-size: 18px;
  color: var(--mut);
}

/* ---------- 双栏 ---------- */
.cols {
  max-width: 1180px;
  margin: 0 auto;
  padding: 18px 18px 8px;
  display: grid;
  grid-template-columns: 236px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.rail {
  position: sticky;
  top: 78px;
  padding: 18px 14px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--card);
}

.rail h2 {
  font-size: 1.15rem;
  letter-spacing: 0.18em;
  margin: 0;
}

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

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

.rail-list a {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 8px 8px;
  box-sizing: border-box;
  border-radius: 4px;
  font-size: 16px;
  line-height: 1.4;
  text-decoration: none;
  transition: background-color 0.18s ease;
}

.rail-list a:hover { background: var(--bg); }

.num {
  font-family: Newsreader, Georgia, serif;
  font-size: 16px;
  color: var(--mut);
  letter-spacing: 0.06em;
}

/* ---------- 正文卡片流 ---------- */
.stream {
  display: grid;
  gap: 16px;
  min-width: 0;
}

.stream > section {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 26px 22px 28px;
  scroll-margin-top: 96px;
  transition: border-color 0.25s ease;
}

.stream > section:hover { border-color: #cdcdcd; }
.stream > section:nth-child(3n + 2) { border-left: 4px solid var(--ink); }
.stream > section:nth-child(4n) { padding-top: 36px; }
.stream > section:nth-child(even) { margin-right: 18px; }

.stream h2 {
  font-size: clamp(1.4rem, 2.6vw, 1.85rem);
  margin: 1.5em 0 0.15em;
}

.stream > section > h2:first-child { margin-top: 0; }

.stream h3 {
  font-size: 1.2rem;
  margin: 1.4em 0 0.15em;
}

.stream ul,
.stream ol { margin: 0 0 1em; padding-left: 1.35em; }
.stream li { margin-bottom: 0.4em; }

.stream a {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.stream a:hover { text-decoration-thickness: 2px; }

.stream blockquote {
  margin: 1.2em 0;
  padding: 2px 0 2px 16px;
  border-left: 3px solid var(--ink);
  color: #3a3a3a;
}

.stream figure { margin: 1em 0; }
.stream img { border-radius: 4px; margin: 1em 0; }

.stream table {
  display: block;
  overflow-x: auto;
  width: 100%;
  border-collapse: collapse;
  font-size: 16px;
  margin: 0 0 1em;
}

.stream th,
.stream td {
  border: 1px solid var(--line);
  padding: 8px 10px;
  text-align: left;
}

/* ---------- 揭示动画 ---------- */
html.js .stream > section {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.5s ease, transform 0.5s ease, border-color 0.25s ease;
}

html.js .stream > section.is-in {
  opacity: 1;
  transform: none;
}

/* ---------- 页脚 ---------- */
.foot {
  margin-top: 44px;
  background: #fff;
  border-top: 1px solid var(--line);
}

.foot section {
  max-width: 1180px;
  margin: 0 auto;
  padding: 22px 18px;
}

.foot .f-mark { padding: 30px 18px 4px; }

.f-big {
  margin: 0;
  font-family: Newsreader, Georgia, serif;
  font-size: clamp(2.6rem, 12vw, 6.2rem);
  font-weight: 600;
  line-height: 0.92;
  letter-spacing: -0.02em;
  text-align: center;
}

.f-nav dl {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 4px 2px;
  margin: 0;
}

.f-nav dt {
  flex-basis: 100%;
  text-align: center;
  font-size: 16px;
  letter-spacing: 0.18em;
  color: var(--mut);
  margin-bottom: 6px;
}

.f-nav dd { margin: 0; }

.f-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 9px 12px;
  box-sizing: border-box;
  font-size: 16px;
  line-height: 1.4;
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

.f-nav a:hover { border-bottom-color: var(--ink); }

.foot .f-copy {
  border-top: 1px solid var(--line);
  padding-top: 16px;
  padding-bottom: 18px;
}

.f-copy p {
  margin: 0;
  text-align: center;
  font-size: 16px;
  color: var(--mut);
}

/* ---------- 断点 ---------- */
@media (max-width: 899px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 18px;
    min-height: 0;
    padding-top: 20px;
  }

  .hero-copy { order: 1; }
  .hero-fig { order: 2; height: 46vh; min-height: 230px; }

  .hero-desc { max-width: 36ch; }

  .cols {
    grid-template-columns: 1fr;
    padding: 14px 14px 8px;
  }

  .rail { position: static; }

  .rail-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 4px;
  }

  .stream > section:nth-child(even) { margin-right: 0; }
  .stream > section { padding: 22px 16px 24px; scroll-margin-top: 84px; }
}

@media (max-width: 559px) {
  body { font-size: 17px; }
  .top { padding: 7px 10px; gap: 8px; }
  .pill { padding: 9px 13px; }
  .hero { padding-left: 12px; padding-right: 12px; }
  .hero-copy h1 { font-size: clamp(1.85rem, 8.5vw, 2.4rem); }
  .rail-list { grid-template-columns: 1fr; }
  .foot .f-mark { padding-top: 24px; }
}

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

  html.js .stream > section {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .pill,
  .rail-list a,
  .stream > section { transition: none; }
}

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