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

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

:root {
  --red: #ff0000;
  --violet: #8b00ff;
  --ink: #261717;
  --glass: rgba(255, 255, 255, 0.10);
  --glass-2: rgba(255, 255, 255, 0.18);
  --line: rgba(255, 255, 255, 0.20);
  --line-2: rgba(255, 255, 255, 0.34);
  --txt: #f7eef2;
  --dim: #d6c3ce;
  --r: 28px;
  --blur: blur(15px);
}

html {
  scroll-behavior: smooth;
  scroll-padding-bottom: 128px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  padding-bottom: 138px;
  font-family: 'Lexend', 'Source Sans 3', system-ui, -apple-system, 'Segoe UI', 'Noto Sans SC', sans-serif;
  font-size: 17px;
  line-height: 1.8;
  color: var(--txt);
  overflow-x: hidden;
  background-color: #140a10;
  background-image:
    radial-gradient(46% 40% at 84% 4%, rgba(255, 0, 0, 0.55), transparent 70%),
    radial-gradient(52% 46% at 8% 22%, rgba(139, 0, 255, 0.52), transparent 72%),
    radial-gradient(66% 54% at 46% 106%, rgba(255, 0, 0, 0.30), transparent 74%),
    linear-gradient(158deg, #1c0e15 0%, #261717 46%, #11090f 100%);
  background-attachment: fixed;
  background-repeat: no-repeat;
}

img { max-width: 100%; height: auto; display: block; }
p { margin: 0 0 1em; overflow-wrap: break-word; }
a { color: #ffb0b0; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: #fff; }

:focus-visible {
  outline: 2px solid #ffd0d0;
  outline-offset: 3px;
  border-radius: 8px;
}

/* ---------- 主舞台：正文 + 右侧栏 ---------- */
.stage {
  max-width: 1200px;
  margin: 0 auto;
  padding: 34px 22px 40px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 286px;
  gap: 26px;
  align-items: start;
}

.prose { min-width: 0; }

.prose > div {
  position: relative;
  margin: 0 0 24px;
  padding: 30px 28px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--glass);
  -webkit-backdrop-filter: var(--blur);
  backdrop-filter: var(--blur);
  box-shadow: 0 22px 60px -34px rgba(0, 0, 0, 0.85), inset 0 1px 0 rgba(255, 255, 255, 0.16);
  scroll-margin-top: 22px;
  overflow: hidden;
}

.prose > div::after {
  content: "";
  position: absolute;
  left: 28px;
  right: 28px;
  bottom: 0;
  height: 3px;
  border-radius: 3px 3px 0 0;
  background: linear-gradient(90deg, var(--red), var(--violet));
  opacity: 0.9;
}

.prose h2,
.prose h3 {
  margin: 0 0 0.6em;
  line-height: 1.28;
  letter-spacing: -0.015em;
  color: #fff;
}

.prose h2 { font-size: clamp(1.36rem, 3.3vw, 1.86rem); font-weight: 600; }
.prose h3 { font-size: clamp(1.1rem, 2.4vw, 1.3rem); font-weight: 600; }

.prose small {
  display: block;
  margin-bottom: 8px;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  color: #ffb8b8;
}

.prose ul,
.prose ol {
  margin: 0 0 1em;
  padding-left: 1.35em;
}

.prose li { margin-bottom: 0.45em; }

.prose strong { color: #fff; }

.prose blockquote {
  margin: 0 0 1em;
  padding: 14px 20px;
  border-left: 3px solid var(--violet);
  border-radius: 0 16px 16px 0;
  background: rgba(255, 255, 255, 0.07);
  color: var(--dim);
}

.prose img {
  border-radius: 18px;
  margin: 18px 0;
  border: 1px solid var(--line);
}

/* ---------- 首屏 ---------- */
.hero {
  min-height: 70vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-end;
  text-align: right;
  padding: 44px 6px 48px;
  border-color: transparent;
  background: transparent;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  box-shadow: none;
  isolation: isolate;
}

.hero::after { left: 6px; right: 6px; opacity: 0.55; }

.hero-ghost {
  position: absolute;
  z-index: 0;
  right: -0.06em;
  top: 50%;
  transform: translateY(-50%);
  font-size: clamp(4rem, 21vw, 13rem);
  font-weight: 700;
  line-height: 0.84;
  letter-spacing: -0.055em;
  white-space: nowrap;
  color: rgba(255, 255, 255, 0.075);
  pointer-events: none;
  user-select: none;
}

.hero-lamp {
  position: absolute;
  z-index: 0;
  right: -90px;
  top: -80px;
  width: 340px;
  height: 340px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 60, 60, 0.55), rgba(139, 0, 255, 0.28) 52%, transparent 72%);
  filter: blur(38px);
  pointer-events: none;
}

.eyebrow {
  position: relative;
  z-index: 1;
  margin: 0 0 12px;
  font-size: 0.86rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  color: #ffc2c2;
}

.hero h1 {
  position: relative;
  z-index: 1;
  margin: 0;
  font-size: clamp(2.05rem, 8.4vw, 4.5rem);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -0.035em;
  background: linear-gradient(102deg, #ffffff 8%, #ffbcbc 48%, #d9b6ff 92%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 18px 50px rgba(0, 0, 0, 0.4);
}

.lede {
  position: relative;
  z-index: 1;
  max-width: 30em;
  margin: 20px 0 0;
  font-size: 1.02rem;
  color: var(--dim);
}

/* ---------- 右侧栏 ---------- */
.rail {
  position: sticky;
  top: 22px;
  padding: 22px 20px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.07);
  -webkit-backdrop-filter: var(--blur);
  backdrop-filter: var(--blur);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

.rail small {
  display: block;
  margin-bottom: 6px;
  font-size: 0.72rem;
  letter-spacing: 0.24em;
  color: #ffbcbc;
}

.rail h2 {
  margin: 0 0 14px;
  font-size: 1.06rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

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

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

.rail-list a {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 40px;
  padding: 6px 0;
  font-size: 0.94rem;
  color: var(--dim);
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.10);
}

.rail-list li:last-child a { border-bottom: 0; }

.rail-list a::before {
  content: counter(rail, decimal-leading-zero);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.42);
}

.rail-list a:hover { color: #fff; }

/* ---------- 页脚 ---------- */
.base {
  max-width: 1200px;
  margin: 20px auto 0;
  padding: 40px 22px 8px;
  border-top: 1px solid var(--line);
}

.base-mark {
  margin: 0 0 26px;
  font-size: clamp(2.4rem, 12vw, 7rem);
  font-weight: 700;
  line-height: 0.92;
  letter-spacing: -0.045em;
  overflow-wrap: anywhere;
  background: linear-gradient(96deg, #ffffff, rgba(255, 178, 178, 0.8) 60%, rgba(196, 150, 255, 0.75));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.base-cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(126px, 1fr));
  gap: 20px 24px;
}

.base dl { margin: 0; }

.base dt {
  margin-bottom: 8px;
  font-size: 0.74rem;
  letter-spacing: 0.24em;
  color: #ffb3b3;
}

.base dd {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 0.95rem;
  color: var(--dim);
}

.base dd a {
  display: inline-block;
  padding: 9px 0;
  color: var(--dim);
  text-decoration: none;
}

.base dd a:hover { color: #fff; }

.base-line {
  margin: 30px 0 0;
  padding: 18px 0 6px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.55);
}

/* ---------- 底部固定条 ---------- */
.dock {
  position: fixed;
  z-index: 60;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px));
  background: rgba(28, 16, 24, 0.62);
  border-top: 1px solid var(--line);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  box-shadow: 0 -18px 50px -30px rgba(0, 0, 0, 0.95);
}

.dock-mark {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 6px 18px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: linear-gradient(120deg, rgba(255, 0, 0, 0.30), rgba(139, 0, 255, 0.30));
  font-size: 0.94rem;
  font-weight: 600;
  color: #fff;
  text-decoration: none;
  max-width: 46vw;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.dock-mark:hover { transform: translateY(-1px); box-shadow: 0 8px 22px -12px rgba(255, 0, 0, 0.9); }

.dock-gap { flex: 1 1 auto; }

.dock-tel {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 6px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  font-size: 0.9rem;
  color: var(--txt);
  text-decoration: none;
}

.dock-tel:hover { background: rgba(255, 255, 255, 0.16); }

.drawer { position: relative; }

.drawer-key {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 6px 18px;
  list-style: none;
  cursor: pointer;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  font-size: 0.9rem;
  font-weight: 500;
  color: #fff;
  user-select: none;
}

.drawer-key::-webkit-details-marker { display: none; }

.drawer-key::after {
  content: "";
  width: 7px;
  height: 7px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-2px) rotate(-135deg);
  transition: transform 0.22s ease;
}

.drawer[open] > .drawer-key::after { transform: translateY(2px) rotate(45deg); }

.drawer-list {
  position: absolute;
  right: 0;
  bottom: calc(100% + 12px);
  width: min(330px, 84vw);
  max-height: 62vh;
  overflow-y: auto;
  margin: 0;
  padding: 12px;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  border: 1px solid var(--line-2);
  border-radius: 22px;
  background: rgba(30, 17, 26, 0.82);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  box-shadow: 0 28px 70px -30px rgba(0, 0, 0, 0.95);
}

.drawer-list li { margin: 0; }

.drawer-list a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  font-size: 0.95rem;
  color: var(--txt);
  text-decoration: none;
  transition: background 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

.drawer-list a:hover {
  background: linear-gradient(110deg, rgba(255, 0, 0, 0.34), rgba(139, 0, 255, 0.34));
  border-color: var(--line-2);
  transform: translateX(-3px);
  color: #fff;
}

/* ---------- 滚动显现 ---------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.62s ease, transform 0.62s cubic-bezier(0.2, 0.7, 0.3, 1);
}

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

/* ---------- 断点 ---------- */
@media (max-width: 900px) {
  .stage {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
    padding: 22px 16px 32px;
  }

  .rail { position: static; order: 0; }
  .rail-list a { border-bottom: 0; }

  .prose > div { padding: 24px 20px; border-radius: 22px; }
  .prose > div::after { left: 20px; right: 20px; }

  .hero { min-height: 62vh; padding: 32px 2px 36px; align-items: flex-start; text-align: left; }
  .hero-ghost { right: 0; }
  .hero-lamp { right: -120px; top: -110px; }
  .lede { margin-top: 16px; }

  .base { padding: 32px 16px 8px; }
  .base-cols { gap: 16px; }
}

@media (max-width: 420px) {
  body { font-size: 16px; padding-bottom: 130px; }
  .dock { gap: 8px; padding-left: 12px; padding-right: 12px; }
  .dock-mark { padding: 6px 14px; font-size: 0.88rem; }
  .dock-tel { padding: 6px 13px; }
  .drawer-key { padding: 6px 15px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .dock-mark, .drawer-list a, .drawer-key::after { transition: none; }
}

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