@import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,300;0,400;0,500;0,700;1,400&display=swap');

:root {
  --ink: #0d0d0d;
  --ink-2: #131018;
  --neon: #8000ff;
  --neon-2: #ff00ff;
  --text: #e9e3f4;
  --muted: #a79dbd;
  --line: rgba(128, 0, 255, 0.34);
  --rail: 244px;
}

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

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

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--ink);
  color: var(--text);
  font-family: 'Roboto', "Noto Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.75;
  letter-spacing: 0.01em;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 5;
  pointer-events: none;
  opacity: 0.55;
  mix-blend-mode: screen;
  background: repeating-linear-gradient(180deg, rgba(255, 255, 255, 0.045) 0 1px, transparent 1px 3px);
}

img { max-width: 100%; }

a { color: var(--neon-2); }

:focus-visible {
  outline: 2px solid var(--neon-2);
  outline-offset: 2px;
}

/* ---------- 左侧固定导航轨 ---------- */
.rail {
  position: fixed;
  left: 0;
  top: 0;
  bottom: 0;
  z-index: 40;
  width: var(--rail);
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
  padding: 1.65rem 1.15rem;
  background: linear-gradient(180deg, #140e1e 0%, #0a0810 72%);
  border-right: 1px solid var(--line);
  box-shadow: 1px 0 28px rgba(128, 0, 255, 0.22);
}

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

.brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  object-fit: cover;
  background: radial-gradient(circle at 30% 28%, var(--neon-2), var(--neon) 62%, #35006a);
  box-shadow: 0 0 18px rgba(255, 0, 255, 0.45);
}

.brand-mark--txt {
  color: #fff;
  font-size: 1rem;
}

.brand-name {
  font-weight: 700;
  font-size: 1.02rem;
  letter-spacing: 0.05em;
  text-shadow: 0 0 12px rgba(255, 0, 255, 0.55);
}

.nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.nav-list li {
  animation: slide-in 0.55s ease both;
  animation-delay: calc(var(--i, 0) * 55ms);
}

.pill {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0.5rem 0.95rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(128, 0, 255, 0.08);
  color: var(--muted);
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.2s, border-color 0.2s, background 0.2s, box-shadow 0.2s, transform 0.2s;
}

.pill:hover,
.pill:focus-visible {
  color: #fff;
  border-color: var(--neon-2);
  background: rgba(255, 0, 255, 0.16);
  box-shadow: 0 0 18px rgba(255, 0, 255, 0.4);
  transform: translateY(-2px);
}

/* ---------- 主区域 ---------- */
.hud-main {
  margin-left: var(--rail);
  display: grid;
  grid-template-columns: minmax(0, 1fr) 288px;
  gap: 2.5rem;
  padding: 0 2.5rem 3.5rem;
  align-items: start;
}

/* ---------- 首屏 ---------- */
.hero {
  position: relative;
  grid-column: 1 / -1;
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  align-items: center;
  gap: 2.5rem;
  padding: 2rem 0 4.5rem;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 104px;
  pointer-events: none;
  background: repeating-linear-gradient(115deg, rgba(128, 0, 255, 0.85) 0 18px, rgba(255, 0, 255, 0.7) 18px 36px);
  clip-path: polygon(0 72%, 100% 0, 100% 100%, 0 100%);
  opacity: 0.8;
}

.hero-media,
.hero-copy { position: relative; z-index: 1; }

.hero-media {
  aspect-ratio: 4 / 5;
  max-height: 74vh;
  border: 1px solid var(--neon);
  border-radius: 4px;
  overflow: hidden;
  background: #100c18;
  box-shadow: 0 0 34px rgba(128, 0, 255, 0.3), inset 0 0 0 1px rgba(255, 0, 255, 0.18);
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: contrast(1.08) saturate(1.15);
}

.hero-fallback {
  width: 100%;
  height: 100%;
  background:
    repeating-linear-gradient(135deg, rgba(128, 0, 255, 0.4) 0 12px, rgba(255, 0, 255, 0.16) 12px 24px),
    radial-gradient(circle at 70% 20%, rgba(255, 0, 255, 0.35), transparent 60%),
    #100c18;
}

.hero-copy { text-align: right; }

.hero-brand {
  margin: 0 0 0.65rem;
  font-size: 0.82rem;
  letter-spacing: 0.34em;
  color: var(--neon-2);
  text-shadow: 0 0 12px rgba(255, 0, 255, 0.6);
}

.hero-title {
  margin: 0 0 1rem;
  font-size: clamp(2rem, 4.3vw, 3.3rem);
  line-height: 1.18;
  color: #fff;
  letter-spacing: 0.01em;
  text-shadow: 0 0 18px rgba(128, 0, 255, 0.85), 0 0 42px rgba(255, 0, 255, 0.35);
  animation: flicker 5.5s ease-in-out infinite;
}

.hero-desc {
  margin: 0 0 0 auto;
  max-width: 42ch;
  color: var(--muted);
  font-size: 1.02rem;
}

.hero-cue {
  display: inline-block;
  margin-top: 1.6rem;
  font-size: 0.8rem;
  color: var(--neon-2);
  animation: bob 2.2s ease-in-out infinite;
}

/* ---------- 正文 ---------- */
.hud-article { min-width: 0; }

.hud-article section {
  margin: 0 0 2rem;
  padding: 2rem 2.15rem;
  border: 1px solid var(--line);
  border-bottom: 2px solid var(--neon-2);
  border-radius: 4px;
  background: linear-gradient(180deg, var(--ink-2), #0f0c15);
  scroll-margin-top: 6.5rem;
  animation: rise 0.6s ease both;
  transition: box-shadow 0.25s, border-color 0.25s;
}

.hud-article section:hover {
  box-shadow: 0 0 26px rgba(128, 0, 255, 0.22);
  border-color: rgba(255, 0, 255, 0.5);
}

.hud-article section:last-child { margin-bottom: 0; }

.hud-article small {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.78rem;
  letter-spacing: 0.3em;
  color: var(--neon-2);
}

.hud-article h2 {
  margin: 0 0 0.85rem;
  font-size: clamp(1.3rem, 2.1vw, 1.72rem);
  line-height: 1.35;
  color: #fff;
  text-shadow: 0 0 14px rgba(128, 0, 255, 0.6);
}

.hud-article h3 {
  margin: 1.6rem 0 0.6rem;
  font-size: 1.14rem;
  color: #fff;
}

.hud-article h2 + p,
.hud-article h3 + p { margin-top: 0; }

.hud-article p { margin: 0 0 1rem; }

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

.hud-article li { margin-bottom: 0.45rem; }

.hud-article li::marker { color: var(--neon-2); }

.hud-article strong { color: #fff; }

.hud-article a { text-decoration-color: rgba(255, 0, 255, 0.5); }
.hud-article a:hover { color: #fff; }

/* ---------- 右侧栏 ---------- */
.hud-aside {
  position: sticky;
  top: 1.5rem;
  align-self: start;
  padding: 1.25rem 1.15rem;
  border: 1px solid var(--line);
  border-bottom: 2px solid var(--neon-2);
  border-radius: 4px;
  background: rgba(128, 0, 255, 0.07);
}

.aside-eyebrow {
  display: block;
  font-size: 0.75rem;
  letter-spacing: 0.3em;
  color: var(--neon-2);
}

.aside-title {
  margin: 0.25rem 0 0.9rem;
  font-size: 1.1rem;
  color: #fff;
}

.aside-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.aside-list a {
  display: flex;
  align-items: center;
  min-height: 40px;
  padding: 0.3rem 0.6rem;
  border-left: 2px solid rgba(255, 0, 255, 0.28);
  color: var(--muted);
  text-decoration: none;
  font-size: 0.92rem;
  transition: color 0.2s, background 0.2s, border-color 0.2s;
}

.aside-list a:hover,
.aside-list a:focus-visible {
  color: #fff;
  border-left-color: var(--neon-2);
  background: rgba(255, 0, 255, 0.12);
}

/* ---------- 页脚 ---------- */
.hud-footer {
  margin-left: var(--rail);
  padding: 2.6rem 2.5rem 1.4rem;
  border-top: 1px solid var(--line);
  background: #0a0810;
}

.foot-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
}

.foot-id {
  font-style: normal;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.foot-brand {
  font-size: 1.15rem;
  color: #fff;
  text-shadow: 0 0 14px rgba(255, 0, 255, 0.5);
}

.foot-host { color: var(--muted); font-size: 0.9rem; }

.foot-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.15rem 1rem;
}

.foot-links a {
  display: flex;
  align-items: center;
  min-height: 40px;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.92rem;
}

.foot-links a:hover,
.foot-links a:focus-visible { color: #fff; }

.foot-base {
  margin: 2rem 0 0;
  text-align: center;
  font-size: 0.85rem;
  color: #746c8b;
}

/* ---------- 动效 ---------- */
@keyframes slide-in {
  from { opacity: 0; transform: translateX(-12px); }
  to { opacity: 1; transform: translateX(0); }
}

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

@keyframes flicker {
  0%, 92%, 100% { opacity: 1; }
  93% { opacity: 0.78; }
  94% { opacity: 1; }
  96% { opacity: 0.86; }
  97% { opacity: 1; }
}

@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

/* ---------- 移动端 ---------- */
@media (max-width: 900px) {
  .rail {
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    bottom: auto;
    width: auto;
    flex-direction: row;
    align-items: center;
    gap: 1rem;
    padding: 0.55rem 0.9rem;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .brand-name { display: none; }

  .hud-nav { flex: 1; min-width: 0; }

  .nav-list {
    flex-direction: row;
    gap: 0.4rem;
    overflow-x: auto;
    padding-bottom: 0.15rem;
    -webkit-overflow-scrolling: touch;
  }

  .nav-list li { flex: 0 0 auto; }

  .pill {
    white-space: nowrap;
    padding: 0.45rem 0.85rem;
    font-size: 0.9rem;
  }

  .hud-main {
    margin-left: 0;
    grid-template-columns: minmax(0, 1fr);
    gap: 1.6rem;
    padding: 0 1rem 2.4rem;
  }

  .hero {
    grid-template-columns: minmax(0, 1fr);
    min-height: auto;
    padding: 1.6rem 0 3rem;
    gap: 1.2rem;
  }

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

  .hero-media {
    order: 2;
    aspect-ratio: 16 / 10;
    max-height: none;
  }

  .hero-title { font-size: clamp(1.7rem, 8vw, 2.3rem); }

  .hero-desc { margin: 0; }

  .hero-cue { display: none; }

  .hero::after { height: 64px; }

  .hud-article section {
    padding: 1.4rem 1.15rem;
    scroll-margin-top: 7.5rem;
  }

  .hud-aside {
    position: static;
    order: 3;
  }

  .aside-list {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.35rem;
  }

  .aside-list a {
    border-left: 0;
    border-bottom: 2px solid rgba(255, 0, 255, 0.28);
    padding: 0.3rem 0.7rem;
  }

  .hud-footer {
    margin-left: 0;
    padding: 2rem 1rem 1.2rem;
  }

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

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