@import url('https://fonts.googleapis.com/css2?family=Abril+Fatface&family=Merriweather:wght@300;400;700&display=swap');

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

:root {
  --ink: #1f1f1f;
  --ink-2: #2c2c2c;
  --paper: #ffffff;
  --ash: #f5f5f5;
  --dim: #6d6d6d;
  --line: #dcdcdc;
  --z1: 1;
  --z2: 2;
  --z3: 3;
  --z4: 4;
  --e1: 0 1px 2px rgba(0, 0, 0, .07);
  --e2: 0 6px 16px rgba(0, 0, 0, .11);
  --e3: 0 14px 34px rgba(0, 0, 0, .17);
  --e4: 0 30px 68px rgba(0, 0, 0, .3);
  --body: "Merriweather", Georgia, "Songti SC", "SimSun", serif;
  --display: "Abril Fatface", "Merriweather", Georgia, "Songti SC", serif;
  --gut: clamp(16px, 4vw, 44px);
  --read: 840px;
}

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 17px/1.75 var(--body);
  overflow-x: hidden;
}

a { color: inherit; }

img { max-width: 100%; }

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: var(--z4);
  background: var(--ink);
  color: #fff;
  padding: 12px 18px;
  text-decoration: none;
}
.skip:focus { left: 8px; top: 8px; }

/* 顶部：品牌居中，菜单分列两侧 */
.masthead {
  position: relative;
  z-index: var(--z3);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 14px var(--gut);
  background: var(--paper);
  box-shadow: var(--e1);
}

.masthead nav { min-width: 0; }

.masthead nav p {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
}

.masthead nav a {
  position: relative;
  display: inline-block;
  padding: 11px 15px;
  background: var(--ash);
  border-radius: 999px;
  font-size: 16px;
  line-height: 1.5;
  text-decoration: none;
  white-space: nowrap;
  transition: background .18s ease, color .18s ease, transform .18s ease, box-shadow .18s ease;
}
.masthead nav a:hover,
.masthead nav a:focus-visible {
  background: var(--ink);
  color: #fff;
  transform: translateY(-3px);
  box-shadow: var(--e3);
  z-index: var(--z3);
}
.masthead nav a[aria-current="page"] {
  background: var(--ink);
  color: #fff;
  box-shadow: var(--e2);
}

.masthead .brand {
  font-family: var(--display);
  font-size: clamp(18px, 2.5vw, 27px);
  line-height: 1.2;
  letter-spacing: .01em;
  text-decoration: none;
  padding: 8px 10px;
  white-space: nowrap;
  text-align: center;
}

/* 二级粘性锚点条 */
.quickbar {
  position: sticky;
  top: 0;
  z-index: var(--z4);
  background: rgba(255, 255, 255, .9);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow: var(--e2);
}

.quickbar nav {
  overflow-x: auto;
  scrollbar-width: none;
  padding: 8px var(--gut);
}
.quickbar nav::-webkit-scrollbar { display: none; }

.quickbar p {
  display: flex;
  gap: 6px;
  margin: 0;
}

.quickbar a {
  display: inline-block;
  padding: 10px 14px;
  background: var(--ink);
  color: #fff;
  border-radius: 999px;
  font-size: 16px;
  line-height: 1.5;
  text-decoration: none;
  white-space: nowrap;
  transition: background .18s ease, transform .18s ease;
}
.quickbar a:hover,
.quickbar a:focus-visible { background: #000; transform: translateY(-2px); }
.quickbar a[aria-current="page"] { background: #3a3a3a; }

/* 首屏层叠舞台 */
main { display: block; }

.stage {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr) 232px;
  align-items: center;
  gap: clamp(16px, 3vw, 40px);
  min-height: 70vh;
  padding: clamp(30px, 5vw, 66px) var(--gut);
  color: #fff;
  background-color: var(--ink);
  background-image: radial-gradient(rgba(255, 255, 255, .17) 1px, transparent 1px);
  background-size: 22px 22px;
  isolation: isolate;
}

.stage::after {
  content: "";
  position: absolute;
  inset: auto -10% -30% 40%;
  height: 70%;
  background: radial-gradient(closest-side, rgba(255, 255, 255, .12), transparent);
  z-index: var(--z1);
  pointer-events: none;
}

.stage-art {
  position: relative;
  margin: 0;
  height: clamp(250px, 44vh, 430px);
  z-index: var(--z1);
}

.art {
  position: absolute;
  overflow: hidden;
  background: #333;
  box-shadow: var(--e4);
}

.art .ph,
.art img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.art-a {
  inset: 0 24% 16% 0;
  z-index: var(--z2);
}

.art-b {
  width: 55%;
  height: 60%;
  right: 0;
  bottom: 0;
  z-index: var(--z3);
  box-shadow: var(--e4), 0 0 0 8px rgba(31, 31, 31, .9);
}

.stage-copy {
  position: relative;
  z-index: var(--z2);
  text-align: right;
}

.stage-copy .mark {
  margin: 0 0 10px;
  font-size: 16px;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .6);
}

.stage-copy h1 {
  margin: 0;
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(34px, 6.2vw, 68px);
  line-height: 1.04;
  letter-spacing: .01em;
}

.stage-copy .lede {
  margin: 18px 0 0;
  font-size: 17px;
  line-height: 1.7;
  color: rgba(255, 255, 255, .8);
}

/* 右侧目次 */
.rail {
  position: relative;
  z-index: var(--z3);
  background: rgba(255, 255, 255, .09);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  box-shadow: var(--e3);
  padding: 18px 16px 20px;
}

.rail small {
  display: block;
  font-size: 16px;
  letter-spacing: .22em;
  color: rgba(255, 255, 255, .55);
  margin: 0 0 4px;
}

.rail h2 {
  margin: 0 0 12px;
  font-family: var(--display);
  font-weight: 400;
  font-size: 24px;
  line-height: 1.2;
}

.rail nav p {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin: 0;
}

.rail a {
  display: block;
  padding: 9px 4px;
  font-size: 16px;
  line-height: 1.6;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, .14);
  transition: padding-left .16s ease, color .16s ease;
}
.rail a:hover,
.rail a:focus-visible { padding-left: 10px; color: #fff; }
.rail a[aria-current="page"] { color: rgba(255, 255, 255, .55); }

/* 正文区块 */
main > section {
  position: relative;
  padding: clamp(38px, 6vw, 78px) max(18px, calc((100% - var(--read)) / 2));
  scroll-margin-top: 90px;
}

main > section:nth-of-type(even) { background: var(--ash); }
main > section:nth-of-type(odd):not(.stage) { background: var(--paper); }

main > section.stage { padding-inline: var(--gut); }

main > section small {
  display: block;
  font-size: 16px;
  letter-spacing: .24em;
  color: var(--dim);
  margin-bottom: 6px;
}

main > section h2,
main > section h3 {
  font-family: var(--display);
  font-weight: 400;
  line-height: 1.18;
  margin: 0 0 .55em;
  letter-spacing: .01em;
}

main > section h2 { font-size: clamp(25px, 3.4vw, 38px); }
main > section h3 { font-size: clamp(20px, 2.4vw, 26px); }

main > section p { margin: 0 0 1.15em; }

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

main > section figure {
  margin: 1.6em 0;
  box-shadow: var(--e3);
  overflow: hidden;
  background: var(--ash);
  position: relative;
  z-index: var(--z1);
}

main > section blockquote {
  margin: 1.6em 0;
  padding: 18px 22px;
  background: var(--paper);
  box-shadow: var(--e2);
  position: relative;
  z-index: var(--z2);
}

main > section ul,
main > section ol { padding-left: 1.3em; margin: 0 0 1.2em; }
main > section li { margin: 0 0 .5em; }

main > section aside {
  margin: 1.6em 0;
  padding: 18px 22px;
  background: var(--ink);
  color: #fff;
  box-shadow: var(--e3);
}

/* 页脚 */
footer {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px clamp(16px, 3vw, 40px);
  padding: clamp(34px, 5vw, 60px) var(--gut) 0;
  background: var(--ink);
  color: #fff;
  position: relative;
  z-index: var(--z2);
}

footer dl {
  margin: 0;
  padding-inline: max(0px, calc((100% - 250px) / 2));
}

footer dt {
  font-family: var(--display);
  font-size: 26px;
  line-height: 1.2;
  color: #7d7d7d;
  margin-bottom: 8px;
}

footer dd {
  margin: 0;
}

footer dd a {
  display: inline-block;
  padding: 10px 0;
  min-height: 42px;
  font-size: 16px;
  line-height: 1.6;
  text-decoration: none;
  color: rgba(255, 255, 255, .88);
  transition: color .16s ease, transform .16s ease;
}
footer dd a:hover,
footer dd a:focus-visible { color: #fff; transform: translateX(3px); }

.fbar {
  grid-column: 1 / -1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 16px max(18px, calc((100% - var(--read)) / 2)) 22px;
  margin-top: 14px;
  border-top: 1px solid #3a3a3a;
  font-size: 16px;
}

.fbar p { margin: 0; }
.fbar .top a {
  display: inline-block;
  padding: 10px 16px;
  min-height: 42px;
  background: #fff;
  color: var(--ink);
  border-radius: 999px;
  text-decoration: none;
  transition: background .16s ease, transform .16s ease;
}
.fbar .top a:hover { background: var(--ash); transform: translateY(-2px); }

/* 动效 */
@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: no-preference) {
  .masthead a,
  .quickbar a { animation: rise .5s cubic-bezier(.2, .7, .3, 1) both; }
  .masthead a:nth-child(1),
  .quickbar a:nth-child(1) { animation-delay: .02s; }
  .masthead a:nth-child(2),
  .quickbar a:nth-child(2) { animation-delay: .06s; }
  .masthead a:nth-child(3),
  .quickbar a:nth-child(3) { animation-delay: .1s; }
  .masthead a:nth-child(4),
  .quickbar a:nth-child(4) { animation-delay: .14s; }
  .quickbar a:nth-child(5) { animation-delay: .18s; }
  .quickbar a:nth-child(6) { animation-delay: .22s; }
  .quickbar a:nth-child(7) { animation-delay: .26s; }

  .js .rev {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity .6s ease, transform .6s cubic-bezier(.2, .7, .3, 1);
  }
  .js .rev.in { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .rev { opacity: 1; transform: none; }
}

/* 中屏 */
@media (max-width: 1080px) {
  .stage { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .rail {
    grid-column: 1 / -1;
    background: rgba(255, 255, 255, .07);
  }
  .rail nav p { flex-direction: row; flex-wrap: wrap; gap: 4px 12px; }
  .rail a { border-bottom: 0; padding: 9px 0; }
  .rail a:hover { padding-left: 0; }
}

/* 窄屏 */
@media (max-width: 760px) {
  body { font-size: 17px; }
  .masthead { flex-wrap: wrap; gap: 8px; }
  .masthead .brand { order: -1; width: 100%; }
  .masthead nav { flex: 1 1 46%; }
  .masthead nav p { gap: 6px; }
  .masthead nav a { padding: 10px 12px; }

  .stage {
    grid-template-columns: minmax(0, 1fr);
    min-height: 0;
    gap: 22px;
    padding-top: 26px;
  }
  .stage-copy { order: -1; text-align: left; }
  .stage-art { height: 230px; }
  .art-a { inset: 0 30% 18% 0; }
  .art-b { width: 58%; height: 58%; }
  .rail { padding: 16px; }

  main > section { padding-inline: 18px; }
  main > section.stage { padding-inline: 18px; }

  footer { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  footer dl { padding-inline: 0; }
  footer dt { font-size: 22px; }
  .fbar {
    flex-wrap: wrap;
    padding-inline: 18px;
    font-size: 16px;
  }
}

@media (max-width: 400px) {
  .masthead nav a { padding: 10px 10px; font-size: 16px; }
}

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