@import url('https://fonts.googleapis.com/css2?family=Space+Mono:wght@400;700&family=Syncopate:wght@400;700&display=swap');

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

:root {
  --red: #ff0000;
  --pur: #8b00ff;
  --ink: #261717;
  --txt: #f7eff0;
  --dim: #cbb8bc;
  --glass: rgba(255, 255, 255, 0.085);
  --glass-2: rgba(255, 255, 255, 0.15);
  --line: rgba(255, 255, 255, 0.2);
  --shadow: 0 26px 70px rgba(0, 0, 0, 0.5);
  --r: 18px;
  --font-cn: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "Space Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --font-wide: "Syncopate", "PingFang SC", "Microsoft YaHei", sans-serif;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  background: #150d0f;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  color: var(--txt);
  font-family: var(--font-cn);
  font-size: 17px;
  line-height: 1.8;
  background:
    radial-gradient(52vw 52vw at 6% -8%, rgba(255, 0, 0, 0.34), transparent 62%),
    radial-gradient(62vw 62vw at 98% 2%, rgba(139, 0, 255, 0.34), transparent 62%),
    radial-gradient(96vw 70vw at 46% 108%, rgba(255, 0, 0, 0.18), transparent 68%),
    linear-gradient(180deg, #1e1114 0%, #150d0f 72%, #120b0d 100%);
  background-repeat: no-repeat;
}

img { max-width: 100%; }

a:focus-visible,
button:focus-visible {
  outline: 2px solid #ffd0d0;
  outline-offset: 3px;
}

/* ---------- 头部两行：品牌行 / 菜单行 ---------- */
.mast {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(32, 19, 21, 0.68);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
}

.mast-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.5rem clamp(0.9rem, 4vw, 2.6rem);
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
}

.mark {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  min-height: 44px;
  color: var(--txt);
  text-decoration: none;
}

.mark-img {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  object-fit: cover;
  border: 1px solid var(--line);
}

.mark-dot {
  width: 26px;
  height: 26px;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--red), var(--pur));
  box-shadow: 0 0 22px rgba(255, 0, 0, 0.55);
}

.mark-txt {
  font-family: var(--font-wide);
  font-size: 1.02rem;
  letter-spacing: 0.18em;
}

.cta,
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.55rem 1.15rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: linear-gradient(120deg, rgba(255, 0, 0, 0.9), rgba(139, 0, 255, 0.9));
  color: #fff;
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  text-decoration: none;
  box-shadow: 0 12px 30px rgba(139, 0, 255, 0.35);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.cta:hover,
.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 36px rgba(255, 0, 0, 0.42);
}

.menubar {
  padding: 0.3rem clamp(0.6rem, 3vw, 2.2rem);
  overflow-x: auto;
  scrollbar-width: none;
}

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

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

.mainnav ul {
  display: flex;
  align-items: center;
  gap: 0.12rem;
}

.mainnav a {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 44px;
  padding: 0.45rem 0.8rem;
  border: 1px solid transparent;
  border-radius: 12px;
  color: var(--dim);
  font-size: 0.95rem;
  white-space: nowrap;
  text-decoration: none;
  transition: color 0.16s ease, background 0.16s ease, border-color 0.16s ease;
}

.mainnav a:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--line);
}

.ico {
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  transform: rotate(45deg);
  background: linear-gradient(135deg, var(--red), var(--pur));
  box-shadow: 0 0 10px rgba(255, 0, 0, 0.65);
}

/* ---------- 首屏 ---------- */
.hero {
  position: relative;
  display: grid;
  grid-template-columns: 1.04fr 0.96fr;
  align-items: center;
  gap: clamp(1rem, 3vw, 2.6rem);
  min-height: 100vh;
  min-height: 100svh;
  padding: clamp(1.2rem, 4vw, 3rem) clamp(1rem, 5vw, 3.4rem);
  background-image: radial-gradient(rgba(255, 255, 255, 0.16) 1px, transparent 1px);
  background-size: 26px 26px;
  background-position: center;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 8% 40% 12% 4%;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 40%, rgba(255, 0, 0, 0.34), transparent 68%);
  filter: blur(30px);
  pointer-events: none;
}

.hero-art {
  position: relative;
  display: grid;
  place-items: center;
  min-height: min(58vh, 470px);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--glass);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-void {
  width: 62%;
  height: 62%;
  border-radius: 50%;
  background: conic-gradient(from 120deg, rgba(255, 0, 0, 0.5), rgba(139, 0, 255, 0.55), rgba(255, 0, 0, 0.5));
  filter: blur(18px);
}

.hero-copy {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 1rem;
  text-align: right;
}

.hero-copy h1 {
  margin: 0;
  font-family: var(--font-wide);
  font-size: clamp(1.9rem, 4.6vw, 3.5rem);
  line-height: 1.26;
  letter-spacing: 0.03em;
  background: linear-gradient(100deg, #ffffff 8%, #ffd7d7 46%, #d9c2ff 96%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 0 40px rgba(255, 0, 0, 0.18);
}

.lede {
  margin: 0;
  max-width: 54ch;
  color: var(--dim);
  font-size: 1rem;
}

/* ---------- 主体：左栏 + 正文 ---------- */
.shell {
  display: grid;
  grid-template-columns: 252px minmax(0, 1fr);
  gap: clamp(1rem, 3vw, 2.2rem);
  max-width: 1200px;
  margin: 0 auto;
  padding: clamp(1.4rem, 4vw, 3.2rem) clamp(1rem, 4vw, 2.4rem);
}

.shell-inner { padding-top: clamp(1.4rem, 4vw, 2.4rem); }

.rail {
  position: sticky;
  top: 128px;
  align-self: start;
  padding: 1.1rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--glass);
  box-shadow: var(--shadow);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
}

.eyebrow {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.3em;
  color: #ff9d9d;
}

.rail-h {
  margin: 0.25rem 0 0.7rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-wide);
  font-size: 1rem;
  letter-spacing: 0.16em;
  color: #fff;
}

.rail-nav ul { display: flex; flex-direction: column; gap: 0.1rem; }

.rail-nav a {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 44px;
  padding: 0.4rem 0.55rem;
  border-left: 2px solid transparent;
  border-radius: 10px;
  color: var(--dim);
  font-size: 0.95rem;
  text-decoration: none;
  transition: color 0.16s ease, background 0.16s ease, border-color 0.16s ease;
}

.rail-nav a:hover,
.rail-nav a.act {
  color: #fff;
  background: rgba(255, 255, 255, 0.09);
  border-left-color: var(--var-accent, var(--red));
}

.rail-nav a.act { border-left-color: var(--pur); }

.col { min-width: 0; }

.wrap { max-width: 800px; }

.prose {
  padding: clamp(1.1rem, 3vw, 2.2rem);
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: rgba(255, 255, 255, 0.07);
  box-shadow: var(--shadow);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
}

.prose div { scroll-margin-top: 140px; }

.prose div + div {
  margin-top: 2.2rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.prose small {
  display: block;
  margin-bottom: 0.35rem;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.3em;
  color: #ff9d9d;
}

.prose h2 {
  margin: 0 0 0.9rem;
  font-family: var(--font-wide);
  font-size: clamp(1.24rem, 2.4vw, 1.62rem);
  line-height: 1.42;
  letter-spacing: 0.03em;
  color: #fff;
}

.prose h3 {
  margin: 1.4rem 0 0.6rem;
  font-size: 1.06rem;
  letter-spacing: 0.02em;
  color: #ffd9d9;
}

.inner-h1 {
  margin: 0 0 0.7rem;
  font-family: var(--font-wide);
  font-size: clamp(1.6rem, 3.6vw, 2.4rem);
  line-height: 1.3;
  color: #fff;
}

.stamp {
  margin: 0 0 1.2rem;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  color: #b9a4a8;
}

.prose p { margin: 0 0 1rem; }

.prose strong { color: #fff; }

.prose a {
  color: #ffb9b9;
  text-decoration: underline;
  text-decoration-color: rgba(255, 0, 0, 0.55);
  text-underline-offset: 3px;
}

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

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

.prose li { margin: 0.35rem 0; }

.prose li::marker { color: var(--pur); }

.prose blockquote {
  margin: 0 0 1rem;
  padding: 0.85rem 1.05rem;
  border-left: 3px solid var(--pur);
  border-radius: 0 12px 12px 0;
  background: rgba(139, 0, 255, 0.14);
}

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

.prose table {
  width: 100%;
  margin: 0 0 1rem;
  border-collapse: collapse;
}

.prose th,
.prose td {
  padding: 0.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  text-align: left;
  font-size: 0.95rem;
}

.prose th { color: #fff; }

.prose img {
  height: auto;
  border-radius: 14px;
  border: 1px solid var(--line);
}

/* ---------- 页脚：单行三段 ---------- */
.foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 2rem;
  padding: 2rem clamp(1rem, 4vw, 2.6rem) 2.4rem;
  border-top: 1px solid var(--line);
  background: rgba(18, 11, 13, 0.72);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.foot-brand { flex: 1 1 220px; }

.foot-word {
  display: inline-block;
  font-family: var(--font-wide);
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  line-height: 1.15;
  letter-spacing: 0.1em;
  background: linear-gradient(100deg, #ffffff 10%, #ffb0b0 58%, #c9a6ff 98%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.foot-nav ul { display: flex; flex-wrap: wrap; gap: 0.1rem 0.35rem; }

.foot-nav a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 44px;
  padding: 0.35rem 0.6rem;
  border-radius: 10px;
  color: var(--dim);
  font-size: 0.92rem;
  text-decoration: none;
  transition: color 0.16s ease, background 0.16s ease;
}

.foot-nav a:hover { color: #fff; background: rgba(255, 255, 255, 0.09); }

.copy {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  color: #a99296;
}

/* ---------- 入场 ---------- */
[data-rv] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.65s ease, transform 0.65s cubic-bezier(0.2, 0.7, 0.3, 1);
}

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

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  [data-rv] { opacity: 1; transform: none; transition: none; }
  .cta, .btn { transition: none; }
}

/* ---------- 窄屏 ---------- */
@media (max-width: 920px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: 0;
    padding-top: 1.4rem;
    padding-bottom: 2rem;
  }

  .hero-copy {
    order: 1;
    align-items: flex-start;
    text-align: left;
  }

  .hero-art {
    order: 2;
    min-height: 38vh;
  }

  .hero::before { inset: 4% 6% 46% 6%; }

  .shell {
    grid-template-columns: 1fr;
  }

  .col { order: 1; }

  .rail {
    order: 2;
    position: static;
    margin-top: 0.4rem;
  }

  .rail-nav ul {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .wrap { max-width: none; }
}

@media (max-width: 520px) {
  body { font-size: 16.5px; }

  .mainnav a { padding: 0.45rem 0.62rem; font-size: 0.92rem; }

  .mark-txt { letter-spacing: 0.12em; }

  .foot { flex-direction: column; align-items: flex-start; }

  .prose div { scroll-margin-top: 168px; }
}

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