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

:root {
  --red: #ff0000;
  --violet: #8b00ff;
  --ink: #261717;
  --bg: #12070b;
  --text: #f7eff3;
  --muted: #c8b5c1;
  --line: rgba(255, 255, 255, 0.16);
  --line-soft: rgba(255, 255, 255, 0.09);
  --glass: rgba(255, 255, 255, 0.06);
  --glass-2: rgba(255, 255, 255, 0.1);
  --blur: blur(16px);
  --pad: clamp(16px, 4vw, 44px);
  --maxw: 1280px;
}

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

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

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei",
    "Noto Sans SC", -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.7;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a {
  color: inherit;
  text-decoration: none;
}

a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 3px;
}

.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- 背景光层 ---------- */
.bgmat {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  background:
    radial-gradient(1100px 620px at 18% -8%, rgba(255, 0, 0, 0.24), transparent 62%),
    radial-gradient(900px 620px at 92% 14%, rgba(139, 0, 255, 0.3), transparent 64%),
    linear-gradient(180deg, #1b0a12 0%, #14080d 55%, #0c0407 100%);
}

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

.orb-a {
  width: 44vw;
  height: 44vw;
  min-width: 280px;
  min-height: 280px;
  left: -12vw;
  top: -14vh;
  background: rgba(255, 0, 0, 0.42);
}

.orb-b {
  width: 52vw;
  height: 52vw;
  min-width: 300px;
  min-height: 300px;
  right: -15vw;
  top: 10vh;
  background: rgba(139, 0, 255, 0.5);
}

.orb-c {
  width: 40vw;
  height: 40vw;
  min-width: 240px;
  min-height: 240px;
  left: 26vw;
  bottom: -18vh;
  background: rgba(255, 0, 0, 0.24);
}

.mesh {
  position: absolute;
  inset: 0;
  opacity: 0.6;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 72px 72px;
}

/* ---------- 页头 ---------- */
.masthead {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(17, 7, 11, 0.64);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
}

.brandrow {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px var(--pad);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 40px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.mark {
  width: 20px;
  height: 20px;
  flex: none;
  background: linear-gradient(135deg, var(--red), var(--violet));
  box-shadow: 0 0 20px rgba(255, 0, 0, 0.55);
}

.brandtext {
  font-size: 1.05rem;
  font-weight: 600;
}

.tagline {
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  color: var(--muted);
  border-left: 1px solid var(--line);
  padding-left: 14px;
}

.jump {
  border-top: 1px solid var(--line-soft);
}

.jump p {
  display: flex;
  gap: 2px;
  margin: 0;
  padding: 0 clamp(6px, 3vw, 38px);
  overflow-x: auto;
  scrollbar-width: none;
}

.jump p::-webkit-scrollbar {
  display: none;
}

.jump a {
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  padding: 0 12px;
  font-size: 0.88rem;
  color: var(--muted);
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.jump a:hover,
.jump a:focus-visible {
  color: #fff;
  border-bottom-color: var(--red);
  background: rgba(255, 255, 255, 0.05);
}

/* ---------- 首屏 ---------- */
main {
  position: relative;
  z-index: 1;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(20px, 4vw, 58px);
  min-height: 68vh;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(26px, 5vw, 68px) var(--pad);
}

.hero-copy {
  grid-column: 2;
  grid-row: 1;
  text-align: right;
}

.hero-art {
  grid-column: 1;
  grid-row: 1;
  margin: 0;
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.hero-art::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(140deg, rgba(255, 0, 0, 0.16), transparent 45%, rgba(139, 0, 255, 0.2));
  pointer-events: none;
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

h1 {
  margin: 0 0 0.45em;
  font-size: clamp(1.9rem, 4.4vw, 3.25rem);
  line-height: 1.14;
  font-weight: 600;
  letter-spacing: -0.012em;
  text-shadow: 0 0 34px rgba(255, 0, 0, 0.28);
}

.lead {
  margin: 0;
  font-size: 1.02rem;
  color: var(--muted);
}

/* ---------- 正文区 ---------- */
.deck {
  display: grid;
  grid-template-columns: 252px minmax(0, 1fr);
  align-items: start;
  gap: clamp(18px, 3vw, 40px);
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--pad) clamp(50px, 7vw, 84px);
}

.rail {
  position: sticky;
  top: 128px;
  order: 0;
  padding: 18px 16px 14px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
  box-shadow: 0 20px 46px rgba(0, 0, 0, 0.4);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
}

.eyebrow {
  display: block;
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  color: var(--red);
  margin-bottom: 4px;
}

.rail-title {
  margin: 0 0 10px;
  font-size: 1.02rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.rail-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1px;
  border-top: 1px solid var(--line-soft);
  padding-top: 8px;
}

.rail-list a {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 0 8px;
  font-size: 0.88rem;
  color: var(--muted);
  border-left: 2px solid transparent;
  transition: color 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.rail-list a:hover,
.rail-list a:focus-visible {
  color: #fff;
  border-left-color: var(--violet);
  background: rgba(255, 255, 255, 0.06);
}

.rn {
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.42);
  font-variant-numeric: tabular-nums;
}

.rail-up {
  display: inline-flex;
  align-items: center;
  width: 100%;
  min-height: 40px;
  margin-top: 6px;
  padding-top: 6px;
  font-size: 0.8rem;
  color: var(--muted);
  border-top: 1px solid var(--line-soft);
}

.rail-up:hover {
  color: #fff;
}

.prose {
  order: 1;
  max-width: 78ch;
  padding: clamp(18px, 3vw, 42px);
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid var(--line);
  box-shadow: 0 36px 90px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.14);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
}

.prose section {
  scroll-margin-top: 132px;
  padding: 12px 0 24px;
  border-top: 1px solid var(--line-soft);
}

.prose section:first-child {
  border-top: 0;
  padding-top: 2px;
}

.prose small {
  display: block;
  font-size: 0.7rem;
  letter-spacing: 0.26em;
  color: var(--red);
  margin-bottom: 6px;
}

.prose h2 {
  margin: 0.15em 0 0.6em;
  font-size: clamp(1.24rem, 2.4vw, 1.66rem);
  line-height: 1.32;
  font-weight: 600;
  letter-spacing: -0.005em;
}

.prose h3 {
  margin: 1.2em 0 0.45em;
  font-size: 1.1rem;
  font-weight: 600;
}

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

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

.prose li {
  margin: 0.35em 0;
}

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

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

.prose strong {
  color: #fff;
  font-weight: 600;
}

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

.prose blockquote {
  margin: 1em 0;
  padding: 0.5em 0 0.5em 1em;
  border-left: 3px solid var(--violet);
  color: var(--muted);
}

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

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

.prose code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.9em;
  background: rgba(255, 255, 255, 0.1);
  padding: 1px 5px;
}

/* ---------- 页脚 ---------- */
.base {
  position: relative;
  z-index: 1;
  padding: clamp(28px, 4vw, 54px) var(--pad) 16px;
  background: rgba(11, 4, 8, 0.74);
  border-top: 1px solid var(--line);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.cols {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: clamp(18px, 3vw, 40px);
  max-width: var(--maxw);
  margin: 0 auto;
}

.cols dl {
  margin: 0;
}

.cols dt {
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 10px;
}

.cols dd {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
}

.c-brand dd {
  max-width: 34ch;
  line-height: 1.75;
}

.c-nav dd {
  display: inline-block;
  min-width: 48%;
}

.c-nav dd a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
}

.c-nav dd a:hover {
  color: #fff;
}

.subform {
  display: flex;
  gap: 8px;
  margin: 4px 0 8px;
}

.subform input {
  flex: 1;
  min-width: 0;
  min-height: 44px;
  padding: 0 12px;
  font: inherit;
  font-size: 0.9rem;
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--line);
}

.subform input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.subform button {
  min-height: 44px;
  padding: 0 16px;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  color: #fff;
  cursor: pointer;
  border: 0;
  background: linear-gradient(135deg, var(--red), var(--violet));
  transition: filter 0.2s ease;
}

.subform button:hover {
  filter: brightness(1.15);
}

.subnote {
  margin: 0;
  min-height: 1.2em;
  font-size: 0.78rem;
  color: #ff9a9a;
}

.bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  max-width: var(--maxw);
  margin: 24px auto 0;
  padding-top: 12px;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.5);
  border-top: 1px solid var(--line-soft);
}

.bottom .up {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
}

.bottom .up:hover {
  color: #fff;
}

/* ---------- 动效 ---------- */
@keyframes rise {
  from {
    opacity: 0;
    transform: translate3d(0, 20px, 0);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.hero-copy {
  animation: rise 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.hero-art {
  animation: rise 0.9s 0.08s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.prose section {
  animation: rise 0.62s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.prose section:nth-child(1) { animation-delay: 0.04s; }
.prose section:nth-child(2) { animation-delay: 0.1s; }
.prose section:nth-child(3) { animation-delay: 0.16s; }
.prose section:nth-child(4) { animation-delay: 0.22s; }
.prose section:nth-child(5) { animation-delay: 0.28s; }
.prose section:nth-child(6) { animation-delay: 0.34s; }
.prose section:nth-child(7) { animation-delay: 0.4s; }
.prose section:nth-child(n + 8) { animation-delay: 0.46s; }

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .hero-copy,
  .hero-art,
  .prose section {
    animation: none;
    opacity: 1;
    transform: none;
  }
  .orb {
    transform: none !important;
  }
}

/* ---------- 断点 ---------- */
@media (max-width: 960px) {
  .hero {
    grid-template-columns: minmax(0, 1fr);
    min-height: 0;
    padding-top: 26px;
  }
  .hero-copy {
    grid-column: 1;
    grid-row: 1;
    text-align: left;
  }
  .hero-art {
    grid-column: 1;
    grid-row: 2;
    aspect-ratio: 16 / 9;
  }
  .deck {
    grid-template-columns: minmax(0, 1fr);
  }
  .prose {
    max-width: none;
  }
  .rail {
    position: static;
    order: 2;
  }
  .prose section {
    scroll-margin-top: 120px;
  }
  .cols {
    grid-template-columns: 1fr 1fr;
  }
  .c-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 620px) {
  body {
    font-size: 16px;
  }
  .tagline {
    display: none;
  }
  .jump a {
    padding: 0 10px;
    font-size: 0.84rem;
  }
  .hero {
    gap: 18px;
  }
  .hero-art {
    aspect-ratio: 16 / 10;
  }
  .prose {
    padding: 16px;
  }
  .cols {
    grid-template-columns: 1fr;
  }
  .c-nav dd {
    min-width: 46%;
  }
  .bottom {
    font-size: 0.78rem;
  }
}

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