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

:root {
  --paper: #ffffff;
  --sand: #f5f5f5;
  --ink: #1f1f1f;
  --ink-2: #5c5c5c;
  --line: #e7e7e7;
  --r-sm: 14px;
  --r: 18px;
  --r-lg: 24px;
  --shadow: 0 4px 6px rgba(0, 0, 0, .05), 0 10px 26px rgba(0, 0, 0, .05);
  --shadow-hi: 0 14px 34px rgba(31, 31, 31, .14);
  --head: 'Bebas Neue', 'Source Sans 3', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  --body: 'Source Sans 3', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Helvetica Neue', Arial, sans-serif;
}

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

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

body {
  margin: 0;
  background: var(--sand);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.65;
  overflow-wrap: break-word;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }

h1, h2, h3 {
  font-family: var(--head);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: .015em;
  margin: 0 0 .45em;
}

h1 { font-size: clamp(30px, 5.2vw, 54px); letter-spacing: .03em; }
h2 { font-size: clamp(21px, 2.6vw, 28px); }
h3 { font-size: clamp(18px, 2.1vw, 22px); }

/* ---------- 顶栏 ---------- */
.top {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255, 255, 255, .95);
  border-bottom: 1px solid var(--line);
}

.top-in {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 10px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 10px 20px 6px;
}

.brand {
  grid-column: 2;
  justify-self: center;
  padding: 8px 10px;
  font-family: var(--head);
  font-size: 23px;
  letter-spacing: .12em;
  white-space: nowrap;
}

.reach {
  grid-column: 3;
  justify-self: end;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-size: 15px;
}

.top-nav {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px 8px;
}

.nav {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.nav > summary {
  list-style: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 16px;
  border-radius: 999px;
  background: var(--sand);
  font-size: 15px;
  letter-spacing: .06em;
}

.nav > summary::-webkit-details-marker { display: none; }

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ink);
}

.nav-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px;
  width: 100%;
  margin: 8px 0 0;
  padding: 0;
}

.nav-list a {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 14px;
  border-radius: 999px;
  font-size: 15px;
  color: var(--ink-2);
  transition: background .2s ease, color .2s ease;
}

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

/* ---------- 骨架 ---------- */
.wrap {
  display: grid;
  grid-template-columns: 246px minmax(0, 1fr);
  grid-template-areas:
    "hero hero"
    "rail sheet";
  gap: 18px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 18px 20px 66px;
}

/* ---------- Hero ---------- */
.hero {
  grid-area: hero;
  display: grid;
  gap: 16px;
  align-items: center;
  min-height: 45vh;
  padding: 16px;
  background: var(--paper);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow);
}

.hero.has-media { grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr); }

.hero-fig {
  margin: 0;
  max-height: 45vh;
  border-radius: var(--r);
  overflow: hidden;
  background: var(--sand);
}

.hero-fig .hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  will-change: transform;
}

.hero-copy {
  text-align: center;
  padding: 12px 14px 18px;
}

.hero-lead {
  max-width: 42ch;
  margin: 0 auto;
  color: var(--ink-2);
  font-size: 16px;
}

/* ---------- 左侧索引 ---------- */
.rail {
  grid-area: rail;
  align-self: start;
  position: sticky;
  top: 152px;
  padding: 16px;
  background: var(--paper);
  border-radius: var(--r);
  box-shadow: var(--shadow);
}

.eyebrow {
  display: block;
  font-size: 13px;
  letter-spacing: .18em;
  color: var(--ink-2);
}

.rail-title { margin: .12em 0 .55em; font-size: 20px; }

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

.rail-list li { counter-increment: rail; }

.rail-list a {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 15px;
  color: var(--ink-2);
  transition: background .2s ease, color .2s ease;
}

.rail-list a::before {
  content: counter(rail, decimal-leading-zero);
  min-width: 22px;
  font-family: var(--head);
  font-size: 14px;
  letter-spacing: .06em;
  color: #b4b4b4;
}

.rail-list a:hover {
  background: var(--sand);
  color: var(--ink);
}

/* ---------- 正文 Bento ---------- */
.sheet { grid-area: sheet; min-width: 0; }

.bento {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  align-items: start;
}

.bento > article {
  min-width: 0;
  padding: 22px 22px 24px;
  background: var(--paper);
  border-radius: var(--r);
  box-shadow: var(--shadow);
  scroll-margin-top: 156px;
  transition: transform .35s ease, box-shadow .35s ease;
}

.bento > article:hover {
  transform: scale(1.012);
  box-shadow: var(--shadow-hi);
}

.bento > article:nth-child(1) {
  grid-column: span 2;
  background: var(--ink);
  color: #fff;
}

.bento > article:nth-child(1) .hero-lead { color: #d8d8d8; }
.bento > article:nth-child(2) { grid-column: span 1; }
.bento > article:nth-child(3) { grid-column: span 2; }
.bento > article:nth-child(4) { grid-column: span 1; }
.bento > article:nth-child(5) { grid-column: span 2; }
.bento > article:nth-child(6) { grid-column: span 1; }
.bento > article:nth-child(7) { grid-column: span 3; }

.bento h2,
.bento h3 { margin: 0 0 .5em; }

.bento p { margin: 0 0 .85em; }
.bento p:last-child { margin-bottom: 0; }

.bento ul,
.bento ol { margin: 0 0 .85em; padding-left: 1.15em; }
.bento li { margin: .25em 0; }

.bento a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.bento img {
  margin: .5em 0;
  border-radius: var(--r-sm);
}

.bento blockquote {
  margin: 0 0 .85em;
  padding-left: 14px;
  border-left: 3px solid currentColor;
  color: var(--ink-2);
}

.bento > article:nth-child(1) blockquote { color: #d8d8d8; }

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

.foot-in {
  display: grid;
  grid-template-columns: 1.1fr 1fr 1.2fr;
  gap: 26px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 34px 20px 22px;
}

.foot-brand {
  margin: 0 0 6px;
  font-family: var(--head);
  font-size: 20px;
  letter-spacing: .12em;
}

address {
  font-style: normal;
  font-size: 15px;
  color: var(--ink-2);
}

address a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.foot-links,
.base-links {
  list-style: none;
  margin: 0;
  padding: 0;
}

.foot-links {
  display: flex;
  flex-wrap: wrap;
  gap: 2px 16px;
}

.foot-links a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  font-size: 15px;
  color: var(--ink-2);
}

.foot-links a:hover { color: var(--ink); }

.sub-label {
  display: block;
  margin-bottom: 6px;
  font-size: 14px;
  color: var(--ink-2);
}

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

.sub-row input {
  flex: 1;
  min-width: 0;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--sand);
  font: inherit;
  font-size: 15px;
  color: var(--ink);
}

.sub-row button {
  min-height: 44px;
  padding: 0 18px;
  border: 0;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font: inherit;
  font-size: 15px;
  cursor: pointer;
}

.foot-base {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 12px 20px 26px;
  border-top: 1px solid var(--line);
}

.copy { margin: 0; font-size: 14px; color: var(--ink-2); }

.base-links { display: flex; gap: 16px; }

.base-links a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  font-size: 14px;
  color: var(--ink-2);
}

/* ---------- 入场 ---------- */
.rv {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .6s ease, transform .6s ease;
}

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

/* ---------- 移动端 ---------- */
@media (max-width: 780px) {
  body { font-size: 16px; }

  .top-in { padding: 8px 14px 4px; }
  .brand { font-size: 21px; }
  .reach { padding: 0 15px; }

  .top-nav { position: relative; padding: 0 14px 8px; }
  .nav { align-items: stretch; }
  .nav > summary { justify-content: center; }

  .nav-list {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    z-index: 5;
    margin: 6px 0 0;
    padding: 10px;
    background: #fff;
    border-radius: var(--r);
    box-shadow: var(--shadow-hi);
    display: none;
  }

  .nav[open] .nav-list { display: flex; }

  .wrap {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "hero"
      "rail"
      "sheet";
    padding: 14px 14px 48px;
  }

  .hero {
    min-height: 0;
    padding: 0;
    overflow: hidden;
  }

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

  .hero-fig { max-height: 32vh; }

  .hero-copy { padding: 16px 14px 20px; }

  .rail { position: static; }

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

  .bento > article { scroll-margin-top: 118px; }

  .bento > article:nth-child(n) { grid-column: span 1; }

  .foot-in { grid-template-columns: minmax(0, 1fr); gap: 18px; padding: 26px 16px 16px; }
  .foot-base { padding: 12px 16px 24px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .rv { opacity: 1; transform: none; transition: none; }
  .bento > article { transition: none; }
  .bento > article:hover { transform: none; }
  .hero-fig .hero-img { transform: none !important; }
}

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