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

:root {
  --ink: #261717;
  --ink-2: #1a0e0e;
  --red: #ff0000;
  --pink: #ff1493;
  --text: #f7ecee;
  --muted: #c9a9b0;
  --hh: 60px;
}

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

body {
  margin: 0;
  overflow-x: clip;
  background: #1b0e10;
  color: var(--text);
  font-family: "IBM Plex Sans", system-ui, -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 17px;
  line-height: 1.72;
  font-weight: 400;
}

body::before {
  content: "";
  position: fixed;
  inset: -22vmax;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(38vmax 32vmax at 16% 10%, rgba(255, 0, 0, 0.55), transparent 62%),
    radial-gradient(34vmax 30vmax at 84% 22%, rgba(255, 20, 147, 0.5), transparent 60%),
    radial-gradient(44vmax 36vmax at 60% 90%, rgba(255, 0, 0, 0.28), transparent 66%),
    radial-gradient(30vmax 28vmax at 6% 84%, rgba(255, 20, 147, 0.32), transparent 62%),
    #1b0e10;
  background-size: 200% 200%;
  filter: saturate(1.2);
  animation: aurora 12s ease-in-out infinite alternate;
}

@keyframes aurora {
  from { transform: translate3d(-2%, -1%, 0) scale(1.05); }
  to { transform: translate3d(2%, 2%, 0) scale(1.14); }
}

img { max-width: 100%; }

a { color: inherit; }

.skip {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 80;
  padding: 10px 16px;
  background: var(--red);
  color: #fff;
  text-decoration: none;
  font-size: 15px;
}
.skip:focus { top: 10px; }

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

/* 顶栏 */
.top {
  position: sticky;
  top: 0;
  z-index: 40;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 10px;
  min-height: var(--hh);
  padding: 8px clamp(10px, 3vw, 24px);
  background: rgba(26, 14, 14, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.top-side {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}
.top-side--r { justify-content: flex-end; }

.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 8px;
  text-decoration: none;
  letter-spacing: 0.1em;
  font-weight: 600;
  font-size: 17px;
  white-space: nowrap;
}
.brand-mark { display: block; }
.brand-t {
  background: linear-gradient(92deg, #fff, #ffd0e2);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.burger {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  padding: 0 12px;
  border: 0;
  border-radius: 0;
  background: rgba(255, 255, 255, 0.09);
  color: var(--text);
  font: inherit;
  font-size: 14px;
  letter-spacing: 0.1em;
  cursor: pointer;
}
.burger:hover { background: rgba(255, 255, 255, 0.16); }
.burger-bars {
  width: 16px;
  height: 2px;
  background: currentColor;
  box-shadow: 0 -5px 0 currentColor, 0 5px 0 currentColor;
}

.top-nav { display: none; }
.top-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 8px;
  color: var(--muted);
  text-decoration: none;
  font-size: 15px;
  white-space: nowrap;
}
.top-link:hover { color: #fff; }

.contact {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 14px;
  background: var(--red);
  color: #fff;
  text-decoration: none;
  font-size: 14px;
  letter-spacing: 0.14em;
  white-space: nowrap;
}
.contact:hover { background: var(--pink); }

/* 全屏遮罩菜单 */
.drawer {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: grid;
  align-content: center;
  gap: 26px;
  padding: clamp(24px, 8vw, 90px);
  background: rgba(17, 9, 9, 0.96);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-12px);
  transition: opacity 0.32s ease, transform 0.32s ease, visibility 0.32s;
}
.drawer.is-open {
  opacity: 1;
  visibility: visible;
  transform: none;
}
.drawer-x {
  justify-self: end;
  min-height: 44px;
  padding: 0 16px;
  border: 0;
  border-radius: 0;
  background: rgba(255, 255, 255, 0.12);
  color: var(--text);
  font: inherit;
  font-size: 14px;
  letter-spacing: 0.14em;
  cursor: pointer;
}
.drawer-nav { display: grid; max-width: 720px; width: 100%; }
.drawer-nav a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 52px;
  padding: 10px 4px;
  text-decoration: none;
  font-size: clamp(19px, 3.2vw, 28px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
.drawer-nav a:hover { color: #ff8ab6; }
.drawer-n {
  font-size: 12px;
  letter-spacing: 0.16em;
  color: var(--pink);
}

/* 锚点条 */
.anchors {
  position: sticky;
  top: var(--hh);
  z-index: 35;
  background: rgba(22, 12, 12, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.anchors-nav {
  display: flex;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 clamp(6px, 3vw, 20px);
  overflow-x: auto;
  scrollbar-width: thin;
}
.anchors-nav a {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 12px;
  font-size: 14px;
  letter-spacing: 0.06em;
  color: var(--muted);
  text-decoration: none;
  border-bottom: 2px solid transparent;
}
.anchors-nav a:hover { color: #fff; border-bottom-color: var(--pink); }

/* 首屏 */
.hero {
  display: grid;
  grid-template-columns: 1fr;
  align-items: stretch;
  min-height: calc(100vh - var(--hh));
  min-height: calc(100svh - var(--hh));
  padding: 0;
}

.hero-visual {
  position: relative;
  margin: 0;
  order: 2;
  overflow: hidden;
  min-height: 34vh;
  background:
    radial-gradient(60% 70% at 30% 30%, rgba(255, 0, 0, 0.6), transparent 70%),
    radial-gradient(70% 60% at 75% 70%, rgba(255, 20, 147, 0.55), transparent 70%),
    #2c1414;
}
.hero-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.badge {
  position: absolute;
  left: 14px;
  bottom: 14px;
  padding: 8px 14px;
  background: rgba(18, 10, 10, 0.78);
  color: #fff;
  font-size: 13px;
  letter-spacing: 0.2em;
  backdrop-filter: blur(6px);
}

.hero-copy {
  order: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 14px;
  padding: clamp(26px, 6vw, 64px) clamp(16px, 5vw, 56px);
}
.hero-h1 {
  margin: 0;
  font-size: clamp(30px, 5.2vw, 62px);
  line-height: 1.1;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-shadow: 0 0 42px rgba(255, 20, 147, 0.28);
}
.hero-desc {
  margin: 0;
  max-width: 46ch;
  color: var(--muted);
  font-size: 17px;
  font-weight: 300;
}

/* 主体 */
.wrap {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
  max-width: 1240px;
  margin: 0 auto;
  padding: clamp(26px, 5vw, 68px) clamp(14px, 4vw, 40px) 72px;
  align-items: start;
}

main [id] { scroll-margin-top: calc(var(--hh) + 56px); }

/* 侧栏 */
.rail {
  font-size: 15px;
}
.rail-k {
  display: block;
  font-size: 12px;
  letter-spacing: 0.34em;
  color: var(--pink);
}
.rail-h {
  margin: 6px 0 14px;
  font-size: 18px;
  font-weight: 500;
  letter-spacing: 0.08em;
}
.rail-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 2px;
}
.rail-nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 8px 10px;
  background: rgba(38, 23, 23, 0.62);
  color: var(--text);
  text-decoration: none;
  font-size: 15px;
  line-height: 1.4;
}
.rail-nav a:hover { background: rgba(255, 20, 147, 0.22); }
.rail-n {
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--pink);
  font-variant-numeric: tabular-nums;
}

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

.doc > article {
  padding: clamp(22px, 3.4vw, 42px);
  background: rgba(38, 23, 23, 0.66);
  margin-bottom: 16px;
}
.doc > article:nth-child(even) {
  background: rgba(60, 27, 40, 0.62);
}
.doc > article:last-child { margin-bottom: 0; }

.doc small {
  display: block;
  font-size: 12px;
  letter-spacing: 0.3em;
  color: var(--pink);
  margin-bottom: 8px;
  font-weight: 500;
}

.doc h2 {
  margin: 0 0 0.66em;
  font-size: clamp(24px, 3.2vw, 38px);
  line-height: 1.18;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.doc h3 {
  margin: 1.5em 0 0.5em;
  font-size: clamp(19px, 2.2vw, 24px);
  line-height: 1.3;
  font-weight: 600;
}
.doc h2 + h3 { margin-top: 0; }
.doc p { margin: 0 0 1.05em; }
.doc p:last-child { margin-bottom: 0; }
.doc ul,
.doc ol { margin: 0 0 1.2em; padding-left: 1.35em; }
.doc li { margin: 0.36em 0; }
.doc a {
  color: #ff7baa;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}
.doc a:hover { color: #fff; }
.doc strong { color: #fff; font-weight: 600; }
.doc img { display: block; max-width: 100%; height: auto; margin: 1.2em 0; }
.doc blockquote {
  margin: 1.3em 0;
  padding: 16px 20px;
  background: rgba(255, 20, 147, 0.14);
  color: #ffe4ee;
}
.doc blockquote p:last-child { margin-bottom: 0; }
.doc table {
  width: 100%;
  border-collapse: collapse;
  font-size: 16px;
  margin: 1.2em 0;
}
.doc th,
.doc td {
  padding: 10px 12px;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  vertical-align: top;
}
.doc th { color: #fff; font-weight: 600; }
.doc hr {
  border: 0;
  height: 1px;
  background: rgba(255, 255, 255, 0.16);
  margin: 1.8em 0;
}

/* 动效 */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.in { opacity: 1; transform: none; }

/* 页脚 */
.foot {
  margin-top: 44px;
  padding: clamp(30px, 5vw, 64px) clamp(14px, 4vw, 40px) 26px;
  background: rgba(18, 10, 10, 0.92);
  backdrop-filter: blur(8px);
}
.foot-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 26px;
  max-width: 1240px;
  margin: 0 auto;
}
.foot-addr {
  font-style: normal;
  font-size: 21px;
  letter-spacing: 0.12em;
  font-weight: 500;
}
.foot-nav dl {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 2px 12px;
  margin: 0;
  align-items: center;
}
.foot-nav dt {
  font-size: 12px;
  letter-spacing: 0.16em;
  color: var(--pink);
  font-variant-numeric: tabular-nums;
}
.foot-nav dd { margin: 0; }
.foot-nav a {
  display: inline-block;
  padding: 10px 0;
  min-height: 40px;
  color: var(--text);
  text-decoration: none;
  font-size: 15px;
}
.foot-nav a:hover { color: #ff8ab6; }
.foot-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 2px;
}
.foot-list a {
  display: inline-block;
  padding: 10px 0;
  min-height: 40px;
  color: var(--muted);
  text-decoration: none;
  font-size: 15px;
}
.foot-list a:hover { color: #fff; }
.foot-base {
  max-width: 1240px;
  margin: 30px auto 0;
  padding-top: 18px;
  text-align: center;
  font-size: 14px;
  color: var(--muted);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}
.foot-base p { margin: 0; }

/* 断点 */
@media (min-width: 720px) {
  .hero-copy { align-items: flex-end; text-align: right; }
  .foot-grid { grid-template-columns: 1.2fr 1.2fr 1fr; gap: 34px; }
}

@media (min-width: 900px) {
  .hero {
    grid-template-columns: 1.05fr 0.95fr;
    min-height: calc(100vh - var(--hh));
  }
  .hero-visual { order: 1; min-height: 60vh; }
  .hero-copy { order: 2; padding-right: clamp(20px, 4vw, 58px); }
  .hero-desc { font-size: 18px; }
  .wrap { grid-template-columns: 232px minmax(0, 1fr); gap: clamp(24px, 4vw, 52px); }
  .rail { position: sticky; top: calc(var(--hh) + 62px); }
}

@media (min-width: 1080px) {
  .top-nav { display: flex; }
  .brand { font-size: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  body::before { animation: none; }
  .drawer { transition: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

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