@import url('https://fonts.googleapis.com/css2?family=Fira+Code:wght@300;400;500;600;700&family=Share+Tech+Mono&display=swap');

:root {
  --red: #ff0000;
  --vio: #8b00ff;
  --ink: #261717;
  --paper: #f8efef;
  --dim: rgba(248, 239, 239, 0.66);
  --faint: rgba(248, 239, 239, 0.42);
  --line: rgba(255, 255, 255, 0.18);
  --glass: rgba(255, 255, 255, 0.075);
  --mono: 'Share Tech Mono', 'Fira Code', ui-monospace, SFMono-Regular, Menlo, 'Noto Sans Mono CJK SC', monospace;
}

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

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

body {
  margin: 0;
  padding-bottom: 118px;
  background: var(--ink);
  color: var(--paper);
  font: 400 16px/1.75 var(--mono);
  letter-spacing: 0.015em;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, p, figure { margin: 0; }
ul, ol, dl, dd { margin: 0; padding: 0; list-style: none; }

/* ---- 背景光带层 ---- */
.fx {
  position: fixed;
  inset: -10% -10% -10% -10%;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  background:
    radial-gradient(58% 44% at 10% -6%, rgba(255, 0, 0, 0.55), transparent 64%),
    radial-gradient(52% 48% at 94% 2%, rgba(139, 0, 255, 0.48), transparent 62%),
    radial-gradient(74% 58% at 46% 110%, rgba(255, 0, 0, 0.26), transparent 68%),
    #1a0f0f;
}

.beam {
  position: absolute;
  border-radius: 50%;
  will-change: transform;
}

.beam.a {
  left: -14%;
  top: 10%;
  width: 72vw;
  height: 72vw;
  background: radial-gradient(circle, rgba(255, 0, 0, 0.36), transparent 68%);
  filter: blur(18px);
}

.beam.b {
  right: -18%;
  top: 34%;
  width: 66vw;
  height: 66vw;
  background: radial-gradient(circle, rgba(139, 0, 255, 0.38), transparent 68%);
  filter: blur(22px);
}

main, .foot { position: relative; z-index: 1; }

/* ---- 首屏 ---- */
.hero {
  position: relative;
  min-height: 70vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  padding: clamp(28px, 8vw, 84px) 18px 46px;
  text-align: center;
  overflow: hidden;
}

.hero-copy {
  width: min(760px, 100%);
  margin: auto auto 0;
  padding: 24px 22px 28px;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.09);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  backdrop-filter: blur(16px) saturate(1.2);
  box-shadow:
    0 30px 70px -34px rgba(0, 0, 0, 0.95),
    inset 0 1px 0 rgba(255, 255, 255, 0.24);
}

.h1 {
  font-size: clamp(27px, 7.2vw, 58px);
  line-height: 1.18;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-shadow: 0 0 28px rgba(255, 0, 0, 0.45);
}

.h1::after {
  content: "";
  display: block;
  width: 84px;
  height: 3px;
  margin: 18px auto 0;
  background: linear-gradient(90deg, var(--red), var(--vio));
}

.lead {
  margin-top: 16px;
  font-size: clamp(15px, 2.7vw, 17px);
  color: var(--dim);
  letter-spacing: 0.01em;
}

.hero-media {
  width: min(100%, 980px);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.06);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  transform: skewY(-1.3deg);
}

.hero-img {
  width: 100%;
  max-height: 38vh;
  object-fit: cover;
  transform: skewY(1.3deg) scale(1.04);
}

.slash {
  position: absolute;
  left: -8%;
  right: -8%;
  bottom: 0;
  height: 70px;
  background: linear-gradient(90deg, rgba(255, 0, 0, 0.6), rgba(139, 0, 255, 0.6));
  clip-path: polygon(0 66%, 100% 0, 100% 34%, 0 100%);
  opacity: 0.8;
}

/* ---- 主体网格 ---- */
.wrap {
  position: relative;
  z-index: 1;
  width: min(1180px, 100% - 36px);
  margin: 0 auto;
  padding: 36px 0 8px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 262px;
  gap: 26px;
  align-items: start;
}

.col { min-width: 0; }

.prose {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.prose > article {
  position: relative;
  padding: 26px 22px 28px;
  background: rgba(255, 255, 255, 0.055);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-radius: 0;
  scroll-margin-bottom: 120px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.prose > article:nth-child(even) { background: rgba(139, 0, 255, 0.085); }

.prose > article::before {
  content: "";
  position: absolute;
  left: 0;
  top: 26px;
  width: 3px;
  height: 44px;
  background: linear-gradient(180deg, var(--red), var(--vio));
}

.prose h2 {
  margin-bottom: 14px;
  font-size: clamp(20px, 3.4vw, 27px);
  line-height: 1.32;
  font-weight: 500;
  letter-spacing: 0.01em;
}

.prose h2 > span,
.prose h3 > span {
  display: inline-block;
  padding-bottom: 3px;
  background: linear-gradient(90deg, var(--red), var(--vio)) left bottom / 100% 2px no-repeat;
}

.prose h2 span span,
.prose h3 span span { color: var(--red); }

.prose h3 {
  margin: 20px 0 10px;
  font-size: clamp(17px, 2.6vw, 20px);
  font-weight: 500;
  line-height: 1.4;
}

.prose p { color: rgba(248, 239, 239, 0.84); }
.prose p + p { margin-top: 12px; }
.prose strong { color: #fff; }
.prose a { color: #ff9b9b; text-decoration: underline; text-underline-offset: 3px; }
.prose a:hover { color: #fff; }

.prose ul, .prose ol { margin: 12px 0; }
.prose li { position: relative; padding-left: 18px; color: rgba(248, 239, 239, 0.84); }
.prose li + li { margin-top: 7px; }
.prose li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.78em;
  width: 8px;
  height: 2px;
  background: var(--red);
}

.prose blockquote {
  margin: 14px 0;
  padding: 12px 16px;
  background: rgba(139, 0, 255, 0.17);
  border-left: 2px solid var(--vio);
  color: rgba(248, 239, 239, 0.9);
}

.prose table { width: 100%; border-collapse: collapse; font-size: 15px; }
.prose th, .prose td { padding: 9px 8px; text-align: left; border-bottom: 1px solid rgba(255, 255, 255, 0.13); }
.prose th { color: #fff; font-weight: 500; }

/* ---- 右侧栏 ---- */
.rail {
  position: sticky;
  top: 24px;
  padding: 18px 14px 20px;
  background: rgba(255, 255, 255, 0.075);
  border: 1px solid var(--line);
  -webkit-backdrop-filter: blur(15px);
  backdrop-filter: blur(15px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.rail-h {
  margin-bottom: 12px;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.34em;
  color: var(--faint);
}

.rail-list li + li { margin-top: 2px; }

.rail-list a {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 6px 10px;
  font-size: 15px;
  color: var(--paper);
  border-left: 1px solid rgba(255, 255, 255, 0.15);
  transition: background 0.22s ease, transform 0.22s ease, border-color 0.22s ease;
}

.rail-list a::before { content: ""; width: 6px; height: 1px; background: var(--red); }
.rail-list a:hover {
  background: rgba(255, 0, 0, 0.17);
  border-left-color: var(--red);
  transform: translateX(3px);
}

/* ---- 品牌 ---- */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 40px;
  padding: 4px 6px;
  font-size: 15px;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.mark {
  display: block;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  object-fit: cover;
  background: linear-gradient(135deg, var(--red), var(--vio));
  box-shadow: 0 0 16px rgba(255, 0, 0, 0.55);
  transition: transform 0.38s ease;
}

.brand:hover .mark { transform: rotate(90deg); }

/* ---- 页脚 ---- */
.foot {
  width: min(1180px, 100% - 36px);
  margin: 30px auto 0;
  padding: 22px 0 26px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.fnav-h {
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.32em;
  color: var(--faint);
  margin-bottom: 6px;
}

.fnav dl { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 20px; }
.fnav dt { font-size: 12px; letter-spacing: 0.28em; color: var(--faint); }

.fnav dd a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 2px 0;
  font-size: 14px;
  color: var(--dim);
  border-bottom: 1px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.fnav dd a:hover { color: #fff; border-bottom-color: var(--red); }

.fcopy {
  flex: 1 1 130px;
  min-width: 120px;
  text-align: center;
  font-size: 13px;
  color: var(--faint);
}

/* ---- 底部胶囊导航 ---- */
.dock {
  position: fixed;
  left: 50%;
  bottom: 14px;
  transform: translateX(-50%);
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 4px;
  max-width: min(1080px, calc(100% - 20px));
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(38, 23, 23, 0.6);
  -webkit-backdrop-filter: blur(18px) saturate(1.3);
  backdrop-filter: blur(18px) saturate(1.3);
  box-shadow:
    0 22px 54px -22px rgba(0, 0, 0, 0.95),
    inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.dock-list { display: contents; }

.dock-list li a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 14px;
  white-space: nowrap;
  color: rgba(248, 239, 239, 0.86);
  transition: background 0.2s ease, color 0.2s ease;
}

.dock-list li a:hover { background: rgba(255, 255, 255, 0.16); color: #fff; }

.dock-list li:nth-child(-n + 3) { order: 1; }
.dock-list li:nth-child(n + 4) { order: 3; }

.dock .brand {
  order: 2;
  margin: 0 4px;
  padding: 0 12px;
  border-left: 1px solid rgba(255, 255, 255, 0.16);
  border-right: 1px solid rgba(255, 255, 255, 0.16);
}

.cta {
  order: 4;
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 16px;
  border-radius: 999px;
  font-size: 14px;
  white-space: nowrap;
  color: #fff;
  background: linear-gradient(90deg, var(--red), var(--vio));
  box-shadow: 0 0 24px -4px rgba(255, 0, 0, 0.85);
  transition: filter 0.2s ease, transform 0.2s ease;
}

.cta:hover { filter: brightness(1.14); transform: translateY(-1px); }

/* ---- 断点 ---- */
@media (max-width: 980px) {
  .wrap { grid-template-columns: minmax(0, 1fr) 232px; gap: 20px; }
  .dock-list li a { padding: 0 9px; font-size: 13.5px; }
  .dock .brand .bname { display: none; }
}

@media (max-width: 860px) {
  body { padding-bottom: 208px; }
  html { scroll-padding-bottom: 208px; }

  .dock {
    left: 8px;
    right: 8px;
    bottom: 8px;
    transform: none;
    max-width: none;
    flex-wrap: wrap;
    row-gap: 5px;
    padding: 8px;
    border-radius: 18px;
  }

  .dock-list {
    display: flex;
    flex-wrap: wrap;
    order: 3;
    width: 100%;
    gap: 3px;
  }

  .dock-list li { flex: 1 1 auto; }

  .dock-list li a {
    width: 100%;
    justify-content: center;
    padding: 0 6px;
    font-size: 12.5px;
    border-radius: 11px;
    background: rgba(255, 255, 255, 0.05);
  }

  .dock .brand { order: 1; margin-right: auto; padding-left: 4px; border: 0; }
  .dock .brand .bname { display: inline; }

  .wrap { grid-template-columns: 1fr; width: min(1180px, 100% - 22px); }
  .rail { position: static; }

  .prose > article { padding: 22px 16px 24px; }
  .prose > article::before { top: 22px; height: 34px; }

  .foot { width: min(1180px, 100% - 22px); justify-content: flex-start; }
  .fcopy { text-align: left; }
}

@media (max-width: 420px) {
  .h1 { font-size: 26px; }
  .lead { font-size: 15px; }
  .prose h2 { font-size: 19px; }
  .dock-list li a { font-size: 12px; padding: 0 4px; }
  .cta { padding: 0 12px; font-size: 13px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
  .beam { transform: none !important; }
  .cta:hover, .rail-list a:hover { transform: none; }
}

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