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

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

:root {
  --red: #ff0000;
  --purple: #8b00ff;
  --ink: #261717;
  --txt: #f8eff1;
  --dim: #d5c2c8;
  --glass: rgba(255, 255, 255, 0.12);
  --glass-d: rgba(255, 255, 255, 0.19);
  --line: rgba(255, 255, 255, 0.24);
  --shadow: 0 20px 50px rgba(0, 0, 0, 0.32);
  --mono: "Fira Code", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Fira Sans", system-ui, -apple-system, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 16.5px;
  line-height: 1.68;
  color: var(--txt);
  background: transparent;
  overflow-x: clip;
}

body::before {
  content: "";
  position: fixed;
  inset: -12%;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(42vw 42vw at 12% 6%, rgba(255, 0, 0, 0.62), transparent 62%),
    radial-gradient(38vw 38vw at 88% 16%, rgba(139, 0, 255, 0.62), transparent 60%),
    radial-gradient(52vw 52vw at 74% 90%, rgba(255, 0, 0, 0.34), transparent 66%),
    radial-gradient(44vw 44vw at 16% 82%, rgba(139, 0, 255, 0.42), transparent 62%);
  filter: blur(52px) saturate(128%);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(120vw 80vh at 50% 0%, rgba(38, 23, 23, 0.18), rgba(38, 23, 23, 0.66));
}

img { max-width: 100%; display: block; }
a { color: inherit; }
p { margin: 0 0 0.85em; }

.shell {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}

/* ---------- 顶栏 ---------- */
.top { position: relative; z-index: 40; padding: 14px 0 10px; }
.top-in { display: flex; align-items: center; gap: 14px; }

.brand {
  flex: 0 0 auto;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 12px;
  text-decoration: none;
  background: linear-gradient(135deg, var(--red), var(--purple));
  box-shadow: 0 10px 26px rgba(255, 0, 0, 0.28);
}
.brand img { width: 100%; height: 100%; object-fit: cover; }
.mark-glyph {
  font-family: var(--mono);
  font-weight: 700;
  font-size: 20px;
  color: #fff;
}

.grpnav { display: flex; align-items: center; gap: 8px; margin-right: auto; }

.nav-lead, .drop-t {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--glass);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  font-family: var(--mono);
  font-size: 13.5px;
  letter-spacing: 0.06em;
  text-decoration: none;
  color: var(--txt);
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease, color 0.2s ease;
}
.nav-lead:hover, .drop-t:hover, .drop-t:focus-visible {
  background: var(--glass-d);
  color: #fff;
  transform: translateY(-1px);
}

.drop { position: relative; }
.drop-m {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  display: none;
  gap: 18px;
  min-width: 340px;
  padding: 16px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(38, 23, 23, 0.74);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
}
.drop:hover .drop-m,
.drop:focus-within .drop-m { display: flex; }

.drop-col { display: flex; flex-direction: column; gap: 2px; min-width: 150px; }
.drop-col a {
  display: flex;
  align-items: center;
  min-height: 40px;
  padding: 0 10px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 15px;
  color: var(--txt);
}
.drop-col a:hover { background: rgba(255, 0, 0, 0.24); color: #fff; }

.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 20px;
  border-radius: 999px;
  text-decoration: none;
  color: #fff;
  font-family: var(--mono);
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  background: linear-gradient(120deg, var(--red), var(--purple));
  box-shadow: 0 10px 26px rgba(139, 0, 255, 0.34);
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}
.cta:hover { transform: translateY(-2px); box-shadow: 0 14px 34px rgba(255, 0, 0, 0.42); filter: saturate(118%); }
.top-cta { margin-left: auto; }

/* ---------- 粘性锚点条 ---------- */
.rail {
  position: sticky;
  top: 0;
  z-index: 35;
  border-bottom: 1px solid var(--line);
  background: rgba(38, 23, 23, 0.58);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}
.rail-in {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-top: 10px;
  padding-bottom: 10px;
  scrollbar-width: none;
}
.rail-in::-webkit-scrollbar { display: none; }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: rgba(255, 255, 255, 0.07);
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.05em;
  white-space: nowrap;
  text-decoration: none;
  color: var(--dim);
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.chip i { font-style: normal; font-size: 11px; color: var(--red); }
.chip:hover { background: rgba(255, 255, 255, 0.17); color: #fff; }
.chip.on {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.36);
  background: linear-gradient(120deg, rgba(255, 0, 0, 0.86), rgba(139, 0, 255, 0.86));
}
.chip.on i { color: #fff; }

/* ---------- 首屏 ---------- */
.hero { padding: 24px 0 42px; }
.hero-in {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 30px;
  align-items: center;
  min-height: 66vh;
}

.hero-art { position: relative; min-height: clamp(290px, 44vh, 450px); }

.shot {
  position: absolute;
  margin: 0;
  overflow: hidden;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: linear-gradient(140deg, rgba(255, 0, 0, 0.38), rgba(139, 0, 255, 0.5));
  box-shadow: var(--shadow);
  transition: transform 0.15s linear;
}
.shot.a { left: 0; top: 0; width: 60%; aspect-ratio: 4 / 5; transform: rotate(-3deg); }
.shot.b { right: 0; bottom: -6%; width: 52%; aspect-ratio: 3 / 4; transform: rotate(4deg); }
.shot img { width: 100%; height: 100%; object-fit: cover; }

.badge {
  position: absolute;
  left: 50%;
  top: 4%;
  transform: translateX(-50%);
  padding: 6px 13px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.2);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  white-space: nowrap;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 16px;
  text-align: right;
}
h1 {
  margin: 0;
  font-size: clamp(2rem, 5.2vw, 3.5rem);
  line-height: 1.14;
  letter-spacing: -0.02em;
  background: linear-gradient(100deg, #ffffff 18%, #ffd8d8 56%, #e7ccff 92%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.lede { margin: 0; max-width: 34ch; color: var(--dim); font-size: 1.02rem; }

/* ---------- 正文骨架 ---------- */
main { padding: 6px 0 44px; }

.wrap {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
  display: grid;
  grid-template-columns: 232px minmax(0, 1fr);
  gap: 26px;
  align-items: start;
}

h2 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 6px;
  font-size: 1.15rem;
  line-height: 1.4;
}
h2 > span { display: inline-flex; align-items: center; gap: 10px; }
h2 > span::before {
  content: "";
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--red);
  transform: rotate(45deg);
}

.side {
  position: sticky;
  top: 88px;
  padding: 18px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--glass);
  -webkit-backdrop-filter: blur(15px);
  backdrop-filter: blur(15px);
  box-shadow: var(--shadow);
}
.side-nav { display: flex; flex-direction: column; gap: 2px; margin-top: 12px; }
.side-nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 40px;
  padding: 0 10px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 14.5px;
  color: var(--dim);
  transition: background 0.2s ease, color 0.2s ease;
}
.side-nav a i { font-family: var(--mono); font-style: normal; font-size: 11px; color: var(--red); }
.side-nav a:hover, .side-nav a.on { background: rgba(255, 255, 255, 0.17); color: #fff; }

.col { min-width: 0; }

.doc div {
  scroll-margin-top: 106px;
  margin: 0 0 22px;
  padding: 24px 22px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--glass);
  -webkit-backdrop-filter: blur(15px);
  backdrop-filter: blur(15px);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.22);
}
.doc div:last-child { margin-bottom: 0; }

.doc h2 { font-size: 1.32rem; margin: 0 0 0.55em; }
.doc h3 { font-size: 1.08rem; margin: 1.2em 0 0.5em; line-height: 1.45; }
.doc h3 > span { display: inline; }
.doc p:last-child { margin-bottom: 0; }
.doc ul, .doc ol { margin: 0 0 0.9em; padding-left: 1.25em; }
.doc li { margin: 0.28em 0; }
.doc a { color: #ffd2d2; text-underline-offset: 3px; }
.doc strong { color: #fff; }
.doc blockquote {
  margin: 0 0 0.9em;
  padding: 12px 16px;
  border-left: 3px solid var(--purple);
  border-radius: 0 8px 8px 0;
  background: rgba(139, 0, 255, 0.16);
}
.doc img { margin: 0.6em 0; border-radius: 10px; }
.doc table { width: 100%; border-collapse: collapse; font-size: 15px; }
.doc th, .doc td { padding: 8px 10px; border-bottom: 1px solid var(--line); text-align: left; }

/* ---------- 页脚 ---------- */
footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 26px;
  margin-top: 12px;
  padding: 22px max(20px, calc((100% - 1140px) / 2));
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.1);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}

.f-brand { display: flex; align-items: center; gap: 12px; }
.f-brand h2 { margin: 0; font-size: 1rem; }

.f-nav dl { display: flex; flex-wrap: wrap; gap: 2px; margin: 0; }
.f-nav dt, .f-nav dd { margin: 0; }
.f-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 12px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 14px;
  color: var(--dim);
  transition: background 0.2s ease, color 0.2s ease;
}
.f-nav a:hover { background: rgba(255, 255, 255, 0.16); color: #fff; }

.f-end { display: flex; align-items: center; gap: 14px; }
.copy { margin: 0; font-family: var(--mono); font-size: 12.5px; color: var(--dim); }

a:focus-visible, .drop-t:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

/* ---------- 断点 ---------- */
@media (max-width: 960px) {
  .hero-in { grid-template-columns: 1fr; min-height: 0; }
  .hero-copy { align-items: flex-start; text-align: left; order: -1; }
  .lede { max-width: 46ch; }
  .hero-art { margin-top: 26px; min-height: 300px; }
  .wrap { grid-template-columns: 1fr; }
  .side { position: static; }
  .grpnav { display: none; }
  .top-cta { margin-left: auto; }
}

@media (max-width: 620px) {
  body { font-size: 16px; }
  .shot.a { width: 66%; }
  .shot.b { width: 56%; }
  .badge { left: 44%; }
  .doc div { padding: 20px 16px; }
  footer { flex-direction: column; align-items: flex-start; }
  .f-end { flex-wrap: wrap; }
  .f-brand h2 { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .shot, .cta, .chip, .drop-t, .chrome { transition: none; }
}

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