@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500&family=Playfair+Display:ital,wght@0,400;0,700;0,900;1,400&family=Source+Serif+4:ital,wght@0,300;0,400;0,600;1,300&display=swap');

:root {
  --red: #ff0000;
  --violet: #8b00ff;
  --ink: #261717;
  --txt: #f8eef1;
  --dim: rgba(248, 238, 241, 0.76);
  --faint: rgba(248, 238, 241, 0.55);
  --glass: rgba(255, 255, 255, 0.08);
  --glass-hi: rgba(255, 255, 255, 0.17);
  --line: rgba(255, 255, 255, 0.22);
  --r: 28px;
  --bar: 44px;
  --rail: 234px;
  --serif: 'Playfair Display', 'Source Serif 4', 'Songti SC', 'Noto Serif SC', Georgia, serif;
  --body: 'Source Serif 4', 'Songti SC', 'Noto Serif SC', Georgia, serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;
}

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

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

body {
  margin: 0;
  padding-top: var(--bar);
  padding-left: var(--rail);
  background: var(--ink);
  color: var(--txt);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.75;
  min-height: 100vh;
  overflow-x: hidden;
}

@supports (overflow-x: clip) {
  body { overflow-x: clip; }
}

img { max-width: 100%; height: auto; display: block; }

a { color: inherit; }

:focus-visible {
  outline: 2px solid #ff8b9a;
  outline-offset: 3px;
}

/* 背景光层 */
.bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  background: radial-gradient(120% 90% at 18% -10%, #4d0d23 0%, #2b1418 46%, #1b1015 100%);
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(78px);
  opacity: 0.5;
  will-change: transform;
}

.o1 {
  width: 52vw; height: 52vw;
  left: -12vw; top: -14vh;
  background: radial-gradient(circle at 32% 32%, var(--red), transparent 70%);
}

.o2 {
  width: 46vw; height: 46vw;
  right: -16vw; top: 16vh;
  background: radial-gradient(circle at 62% 40%, var(--violet), transparent 70%);
  opacity: 0.45;
}

.o3 {
  width: 40vw; height: 40vw;
  left: 24vw; bottom: -20vh;
  background: radial-gradient(circle at 50% 50%, #ff3a6b, transparent 72%);
  opacity: 0.32;
}

/* 顶部细条 */
.ticker {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 60;
  height: var(--bar);
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 18px;
  font-size: 16px;
  letter-spacing: 0.16em;
  color: var(--dim);
  background: rgba(255, 255, 255, 0.07);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.ticker .dot {
  flex: none;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 14px var(--red);
}

/* 左侧竖排栏 */
.rail {
  position: fixed;
  left: 0; top: var(--bar); bottom: 0;
  z-index: 50;
  width: var(--rail);
  padding: 20px 16px 22px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  overflow-y: auto;
  background: rgba(255, 255, 255, 0.055);
  border-right: 1px solid var(--line);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  text-decoration: none;
  font-family: var(--serif);
  font-weight: 700;
  font-size: 21px;
  letter-spacing: 0.02em;
  color: var(--txt);
}

.brand img,
.brand .mark {
  width: 32px; height: 32px;
  border-radius: 11px;
  object-fit: cover;
}

.pills ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.pills a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 999px;
  font-size: 16px;
  line-height: 1.25;
  text-decoration: none;
  color: var(--txt);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: background 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}

.pills a:hover,
.pills a.on {
  background: linear-gradient(100deg, rgba(255, 0, 0, 0.5), rgba(139, 0, 255, 0.5));
  border-color: rgba(255, 255, 255, 0.42);
  transform: translateX(3px);
}

/* 主体网格 */
.wrap {
  position: relative;
  z-index: 1;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 28px 84px;
  display: grid;
  grid-template-columns: 208px minmax(0, 1fr);
  gap: 34px;
  align-items: start;
}

/* 侧栏 */
.side {
  position: sticky;
  top: calc(var(--bar) + 20px);
  padding: 20px 16px;
  border-radius: var(--r);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--line);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.side h2 {
  margin: 0 0 12px;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: var(--dim);
}

.side ol {
  counter-reset: c;
  list-style: none;
  margin: 0;
  padding: 0;
}

.side li { counter-increment: c; }

.side a {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 0 2px;
  font-size: 16px;
  text-decoration: none;
  color: var(--txt);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transition: color 0.2s ease;
}

.side a::before {
  content: counter(c, decimal-leading-zero);
  font-family: var(--mono);
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
}

.side a:hover,
.side a.on { color: #ffb5c0; }

/* 内容列 */
.stage { min-width: 0; }

/* 首屏 */
.hero {
  position: relative;
  min-height: calc(100svh - var(--bar));
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 20px;
  padding: 70px 8px 80px;
  text-align: center;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 26px 0;
  z-index: -1;
  border-radius: 36px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(9px);
  -webkit-backdrop-filter: blur(9px);
}

.hero-floats {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.hero-floats a {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 17px;
  border-radius: 999px;
  font-size: 16px;
  text-decoration: none;
  color: var(--dim);
  background: var(--glass-hi);
  border: 1px solid var(--line);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28);
  transition: color 0.2s ease, background 0.2s ease;
}

.hero-floats a:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.26);
}

.hero h1 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 900;
  font-size: clamp(2.4rem, 6.2vw, 4.9rem);
  line-height: 1.06;
  letter-spacing: 0.01em;
  background: linear-gradient(180deg, #ffffff 26%, #ffd2da 68%, #e5b8ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 18px 44px rgba(0, 0, 0, 0.3);
}

.lede {
  margin: 0;
  max-width: 44ch;
  font-size: 18px;
  line-height: 1.7;
  color: var(--dim);
}

/* 正文 */
.doc > div {
  position: relative;
  margin: 0 0 26px;
  padding: 30px 28px;
  border-radius: var(--r);
  background: rgba(255, 255, 255, 0.075);
  border: 1px solid var(--line);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 20px 52px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  scroll-margin-top: 84px;
}

.doc > div:last-child { margin-bottom: 0; }

.doc h2,
.doc h3 {
  font-family: var(--serif);
  font-weight: 700;
  line-height: 1.28;
  color: #fff;
}

.doc h2 {
  margin: 0 0 14px;
  font-size: clamp(1.45rem, 2.8vw, 2rem);
}

.doc h3 {
  margin: 24px 0 10px;
  font-size: 1.2rem;
}

.doc h2 span,
.doc h3 span {
  border-bottom: 2px solid rgba(255, 0, 0, 0.6);
  padding-bottom: 3px;
}

.doc p { margin: 0 0 14px; }

.doc p:last-child { margin-bottom: 0; }

.doc ul,
.doc ol {
  margin: 0 0 14px;
  padding-left: 22px;
}

.doc li { margin: 0 0 8px; }

.doc a {
  color: #ffd0d8;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.doc a:hover { color: #fff; }

.doc strong { color: #fff; }

.doc blockquote {
  margin: 0 0 14px;
  padding: 12px 18px;
  border-left: 3px solid var(--violet);
  border-radius: 0 16px 16px 0;
  background: rgba(139, 0, 255, 0.14);
  color: #f2e4fa;
}

.doc blockquote p:last-child { margin-bottom: 0; }

.doc img {
  border-radius: 18px;
  margin: 6px 0 16px;
  border: 1px solid rgba(255, 255, 255, 0.18);
}

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

.doc th,
.doc td {
  padding: 10px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  text-align: left;
}

/* 页脚 */
.foot {
  position: relative;
  z-index: 1;
  padding: 42px 28px 26px;
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.foot-grid {
  max-width: 1084px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 1.1fr 0.8fr;
  gap: 28px;
  align-items: start;
}

.foot address {
  font-style: normal;
  font-family: var(--serif);
  font-size: 22px;
  line-height: 1.4;
}

.foot-t {
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: var(--faint);
}

.foot ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 20px;
}

.foot ul a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  font-size: 16px;
  text-decoration: none;
  color: var(--dim);
}

.foot ul a:hover { color: #fff; }

.foot-back a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  font-size: 16px;
  text-decoration: none;
  color: var(--txt);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid var(--line);
}

.foot-back a:hover { background: rgba(255, 255, 255, 0.2); }

.copy {
  max-width: 1084px;
  margin: 26px auto 0;
  font-size: 16px;
  color: var(--faint);
}

/* 进入动效 */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.75s ease, transform 0.75s ease;
}

.js [data-reveal].in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .orb { transform: none !important; }
  .pills a:hover,
  .pills a.on { transform: none; }
}

/* 移动端 */
@media (max-width: 900px) {
  body {
    padding-left: 0;
    padding-top: calc(var(--bar) + 64px);
  }

  .rail {
    left: 0; right: 0; top: var(--bar); bottom: auto;
    width: auto;
    flex-direction: row;
    align-items: center;
    gap: 12px;
    padding: 8px 14px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    overflow: visible;
  }

  .brand {
    flex: none;
    font-size: 18px;
  }

  .pills {
    flex: 1 1 auto;
    min-width: 0;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .pills::-webkit-scrollbar { display: none; }

  .pills ol {
    flex-direction: row;
    gap: 8px;
    padding-bottom: 2px;
  }

  .pills a {
    white-space: nowrap;
    padding: 0 14px;
  }

  .wrap {
    grid-template-columns: minmax(0, 1fr);
    gap: 22px;
    padding: 0 16px 64px;
  }

  .stage { order: 1; }

  .side {
    order: 2;
    position: static;
    padding: 16px 14px;
  }

  .side ol {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
  }

  .side li { flex: 0 0 auto; }

  .side a {
    min-height: 42px;
    padding: 0 14px;
    border-bottom: 0;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
  }

  .hero {
    min-height: calc(100svh - 150px);
    padding: 46px 4px 62px;
    gap: 16px;
  }

  .hero::before { inset: 12px 0; }

  .hero h1 { font-size: clamp(2.1rem, 10.5vw, 3.1rem); }

  .lede { font-size: 17px; }

  .doc > div {
    padding: 24px 18px;
    border-radius: 22px;
    scroll-margin-top: 132px;
  }

  .foot { padding: 34px 16px 22px; }

  .foot-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }

  .copy { margin-top: 18px; }
}

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