@import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,300;0,400;0,500;0,700;1,400&display=swap');

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

:root {
  --ink: #1f1f1f;
  --ink-2: #4d4d4d;
  --ink-3: #8c8c8c;
  --paper: #ffffff;
  --mist: #f5f5f5;
  --line: #e4e4e4;
  --line-2: #c8c8c8;
  --rail: 236px;
  --e1: 0 1px 2px rgba(31, 31, 31, .05), 0 3px 8px rgba(31, 31, 31, .05);
  --e2: 0 3px 8px rgba(31, 31, 31, .06), 0 12px 26px rgba(31, 31, 31, .07);
  --e3: 0 10px 24px rgba(31, 31, 31, .10), 0 26px 52px rgba(31, 31, 31, .10);
  --e4: 0 18px 42px rgba(31, 31, 31, .16), 0 44px 88px rgba(31, 31, 31, .14);
}

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

body {
  margin: 0;
  padding-left: var(--rail);
  font-family: Roboto, "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.78;
  color: var(--ink);
  background-color: var(--paper);
  background-image: radial-gradient(circle at 1px 1px, rgba(31, 31, 31, .08) 1px, transparent 0);
  background-size: 24px 24px;
  -webkit-font-smoothing: antialiased;
}

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

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

/* ---------- 左侧立柱 ---------- */

.rail {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: var(--rail);
  z-index: 40;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 22px 18px 18px;
  background: rgba(255, 255, 255, .88);
  border-right: 1px solid var(--line);
  box-shadow: var(--e2);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  transition: width .28s cubic-bezier(.2, .7, .3, 1), box-shadow .28s;
}

.rail-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  min-height: 44px;
  text-decoration: none;
  font-weight: 700;
  font-size: 17px;
  letter-spacing: .02em;
  color: var(--ink);
}

.brand::before {
  content: "";
  width: 10px;
  height: 24px;
  border-radius: 2px;
  background: var(--ink);
  box-shadow: 5px 5px 0 var(--line-2);
}

.burger {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0 12px;
  background: var(--paper);
  border: 1px solid var(--line-2);
  border-radius: 4px;
  box-shadow: var(--e1);
  cursor: pointer;
  transition: transform .18s, box-shadow .18s, background .18s;
}

.burger span {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: var(--ink);
}

.burger:hover {
  transform: translateY(-1px);
  box-shadow: var(--e2);
  background: var(--mist);
}

.rail-h {
  margin: 10px 0 0;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .24em;
  color: var(--ink-3);
}

.rail-hr {
  border: 0;
  width: 34px;
  height: 2px;
  margin: 2px 0 6px;
  border-radius: 2px;
  background: var(--ink);
}

.rail > nav {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  margin: 2px -6px;
}

.rail > nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.rail > nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 9px 10px;
  font-size: 16px;
  text-decoration: none;
  color: var(--ink);
  border-radius: 4px;
  box-shadow: inset 0 0 0 1px transparent;
  transition: background .18s, box-shadow .18s, transform .18s;
}

.rail > nav a:hover {
  background: var(--mist);
  box-shadow: var(--e1), inset 0 0 0 1px var(--line);
  transform: translateY(-1px);
}

.nav-num {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .08em;
  color: var(--ink-3);
  font-variant-numeric: tabular-nums;
}

.nav-txt { flex: 1 1 auto; }

.rail-foot {
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.rail-foot a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  font-size: 13px;
  text-decoration: none;
  color: var(--ink-2);
}

.rail.open {
  width: min(430px, 90vw);
  background: rgba(255, 255, 255, .96);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  backdrop-filter: blur(20px) saturate(140%);
  box-shadow: var(--e4);
  z-index: 90;
}

.rail.open > nav a { font-size: 20px; font-weight: 500; padding: 14px 10px; }
.rail.open > nav ul { gap: 6px; }

/* ---------- 首屏 ---------- */

main { display: block; }

.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  grid-template-rows: 1fr auto;
  gap: 26px;
  padding: 92px 26px 0;
  overflow: hidden;
  background-image: radial-gradient(circle at 1px 1px, rgba(31, 31, 31, .16) 1px, transparent 0);
  background-size: 18px 18px;
  scroll-margin-top: 90px;
}

.hero::before {
  content: "";
  position: absolute;
  right: -60px;
  top: 34%;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(31, 31, 31, .10), rgba(31, 31, 31, 0) 68%);
  z-index: 0;
}

.hero::after {
  content: "";
  position: absolute;
  right: 9%;
  top: 116px;
  width: 148px;
  height: 92px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--paper);
  box-shadow: var(--e3);
  transform: rotate(4deg);
  z-index: 0;
}

.hero-copy {
  position: relative;
  z-index: 3;
  align-self: end;
  max-width: 780px;
}

.kicker {
  margin: 0 0 14px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .26em;
  color: var(--ink-3);
}

h1 {
  margin: 0 0 16px;
  font-size: clamp(34px, 6.4vw, 62px);
  line-height: 1.12;
  font-weight: 700;
  letter-spacing: -.02em;
}

.lede {
  margin: 0;
  max-width: 620px;
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink-2);
}

.hero-fig {
  position: relative;
  z-index: 2;
  margin: 0;
  height: min(46vh, 400px);
  min-height: 220px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-bottom: 0;
  border-radius: 4px 4px 0 0;
  background: var(--mist);
  background-image: repeating-linear-gradient(135deg, rgba(31, 31, 31, .05) 0 1px, transparent 1px 12px);
  box-shadow: var(--e4);
  will-change: transform;
}

.hero-fig img {
  display: block;
  width: 100%;
  height: 114%;
  object-fit: cover;
  object-position: center top;
  border-radius: 0;
}

/* ---------- 正文区 ---------- */

main > section:not(.hero) {
  position: relative;
  z-index: 1;
  max-width: 760px;
  margin: 30px auto;
  padding: 26px 26px 32px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 4px;
  box-shadow: var(--e2);
  scroll-margin-top: 92px;
  transition: box-shadow .3s, transform .3s;
}

main > section:not(.hero)::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 4px;
  background: var(--ink);
  border-radius: 0 0 4px 4px;
}

main > section:not(.hero):hover { box-shadow: var(--e3); }

h2 {
  margin: 0 0 6px;
  font-size: clamp(21px, 3.2vw, 26px);
  line-height: 1.3;
  font-weight: 700;
  letter-spacing: -.01em;
}

h3 {
  margin: 26px 0 8px;
  font-size: 19px;
  line-height: 1.4;
  font-weight: 700;
}

hr {
  border: 0;
  max-width: 76px;
  height: 2px;
  margin: 10px 0 20px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--ink), var(--line));
}

p { margin: 0 0 16px; }

ul, ol { margin: 0 0 16px; padding-left: 1.25em; }
li { margin: 0 0 8px; }

img {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: 4px;
}

figure { margin: 22px 0; }
figcaption { font-size: 13px; color: var(--ink-3); }

main > section aside {
  position: relative;
  margin: 22px 0;
  padding: 16px 18px;
  background: var(--mist);
  border-radius: 4px;
  box-shadow: var(--e1), inset 3px 0 0 var(--ink);
}

main > section aside p:last-child { margin-bottom: 0; }

blockquote {
  margin: 20px 0;
  padding: 14px 18px;
  background: var(--mist);
  border-radius: 4px;
  box-shadow: var(--e1);
  color: var(--ink-2);
}

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

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

th { background: var(--mist); font-weight: 700; }

main > section a {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

/* ---------- 页脚 ---------- */

.foot {
  position: relative;
  z-index: 2;
  margin-top: 64px;
  padding: 38px 26px 26px;
  background: var(--mist);
  border-top: 1px solid var(--line);
  box-shadow: inset 0 12px 26px rgba(31, 31, 31, .04);
}

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

.foot-mark {
  margin: 0 0 4px;
  font-weight: 700;
  font-size: 17px;
}

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

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

.foot-nav a,
.to-top {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 2px 0;
  font-size: 15px;
  text-decoration: none;
  color: var(--ink-2);
  border-bottom: 1px solid transparent;
}

.foot-nav a:hover,
.to-top:hover { color: var(--ink); border-bottom-color: var(--ink); }

.foot-base {
  max-width: 900px;
  margin: 28px auto 0;
  padding-top: 16px;
  border-top: 1px solid var(--line-2);
  font-size: 13px;
  letter-spacing: .06em;
  color: var(--ink-3);
}

/* ---------- 动效 ---------- */

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .62s cubic-bezier(.2, .7, .3, 1), transform .62s cubic-bezier(.2, .7, .3, 1);
}

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

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-fig { will-change: auto; }
}

/* ---------- 断点 ---------- */

@media (max-width: 900px) {
  .rail.open { width: min(360px, 92vw); }
  .hero { padding: 88px 20px 0; }
  .hero::after { display: none; }
  main > section:not(.hero) { margin: 22px 16px; padding: 22px 18px 26px; }
  .foot-cols { grid-template-columns: 1fr; gap: 16px; }
}

@media (max-width: 860px) {
  body { padding-left: 0; padding-top: 64px; }

  .rail {
    inset: 0 0 auto 0;
    width: auto;
    height: 64px;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 0 16px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    z-index: 50;
  }

  .rail > .rail-h,
  .rail > .rail-hr,
  .rail > nav,
  .rail > .rail-foot { display: none; }

  .rail.open {
    inset: 0;
    width: auto;
    height: auto;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    padding: 16px 16px 44px;
    overflow-y: auto;
    border-bottom: 0;
    background: rgba(255, 255, 255, .97);
  }

  .rail.open > .rail-h { display: block; margin-top: 6px; }
  .rail.open > .rail-hr { display: block; margin: 6px 0 10px; }
  .rail.open > nav { display: block; flex: 1 1 auto; overflow: visible; margin: 0; }
  .rail.open > nav a { font-size: 20px; font-weight: 500; padding: 14px 10px; }
  .rail.open > .rail-foot { display: block; margin-top: 14px; }

  .hero {
    min-height: calc(100svh - 64px);
    padding: 34px 16px 0;
    gap: 20px;
  }

  .hero-fig { height: min(40vh, 300px); min-height: 180px; }
  .lede { font-size: 16px; }
  main > section:not(.hero) { margin: 18px 12px; padding: 20px 16px 24px; }
  .foot { padding: 30px 16px 22px; margin-top: 44px; }
}

@media (max-width: 380px) {
  body { font-size: 16px; }
  .brand { font-size: 16px; }
  .rail > nav a { font-size: 15px; }
}

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