:root {
  --red: #ff0000;
  --pink: #ff1493;
  --ink: #261717;
  --line: rgba(255, 255, 255, 0.16);
  --glass: rgba(255, 255, 255, 0.07);
  --txt: #f8efef;
  --dim: #dcc7c7;
  --r: 28px;
  --shadow: 0 18px 44px rgba(0, 0, 0, 0.42);
}

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

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

body {
  margin: 0;
  font-family: "Roboto", system-ui, -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 17px;
  line-height: 1.7;
  color: var(--txt);
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: -25% -15%;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(40% 44% at 16% 20%, rgba(255, 0, 0, 0.6), transparent 66%),
    radial-gradient(36% 40% at 84% 14%, rgba(255, 20, 147, 0.55), transparent 64%),
    radial-gradient(52% 50% at 62% 74%, rgba(255, 20, 147, 0.34), transparent 72%),
    radial-gradient(46% 46% at 24% 86%, rgba(255, 0, 0, 0.36), transparent 70%);
  filter: blur(46px) saturate(1.25);
  animation: aurora 11s ease-in-out infinite alternate;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  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: 68px 68px;
  -webkit-mask-image: radial-gradient(72% 64% at 50% 26%, #000 6%, transparent 82%);
  mask-image: radial-gradient(72% 64% at 50% 26%, #000 6%, transparent 82%);
}

@keyframes aurora {
  0% {
    transform: translate3d(-2%, 1%, 0) scale(1);
    filter: blur(46px) saturate(1.2) hue-rotate(0deg);
  }
  50% {
    transform: translate3d(2%, -2%, 0) scale(1.12);
  }
  100% {
    transform: translate3d(-1%, 2%, 0) scale(1.05);
    filter: blur(52px) saturate(1.3) hue-rotate(-14deg);
  }
}

/* 顶部：品牌居中，菜单分列两侧 */
.topbar {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(38, 23, 23, 0.74);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
}

.mainnav ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 2px;
  list-style: none;
  margin: 0;
  padding: 7px 10px;
}

.mainnav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 12px;
  border-radius: 999px;
  text-decoration: none;
  font-size: 16px;
  font-weight: 500;
  color: var(--dim);
  transition: color 0.2s ease, background 0.2s ease;
}

.mainnav a:hover,
.mainnav a:focus-visible {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
}

.brand-li a {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: #fff;
  background: linear-gradient(100deg, rgba(255, 0, 0, 0.55), rgba(255, 20, 147, 0.55));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
}

/* 首屏 */
.hero {
  position: relative;
  isolation: isolate;
  min-height: 70vh;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  padding: 64px 26px 72px;
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: -1;
}

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

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(255deg, rgba(21, 13, 13, 0.92) 6%, rgba(38, 23, 23, 0.42) 50%, rgba(21, 13, 13, 0.18) 100%);
}

.hero-text {
  text-align: right;
  max-width: 660px;
}

.hero h1 {
  margin: 0 0 14px;
  font-size: clamp(30px, 5.4vw, 56px);
  line-height: 1.16;
  font-weight: 700;
  letter-spacing: -0.01em;
  background: linear-gradient(96deg, #ffffff 6%, #ffd9e8 42%, #ff1493 96%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-desc {
  margin: 0 auto 26px;
  max-width: 52ch;
  font-size: 17px;
  color: var(--dim);
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0 26px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(96deg, var(--red), var(--pink));
  box-shadow: 0 12px 30px rgba(255, 20, 147, 0.36);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.hero-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 38px rgba(255, 20, 147, 0.5);
}

/* 主体：正文左，侧栏右 */
.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 52px 20px 80px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 32px;
  align-items: start;
}

.body {
  background: var(--glass);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 34px 32px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: var(--shadow);
}

.body > * {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.body.in > * {
  opacity: 1;
  transform: none;
}

.body article {
  scroll-margin-top: 104px;
}

.body article + article {
  margin-top: 42px;
  padding-top: 42px;
  border-top: 1px solid var(--line);
}

.body h2 {
  margin: 0 0 16px;
  font-size: clamp(22px, 3.2vw, 31px);
  line-height: 1.28;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.body h2 > span,
.body h3 > span {
  background: linear-gradient(94deg, #ff7a7a, var(--pink));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.body h3 {
  margin: 26px 0 10px;
  font-size: 20px;
  font-weight: 600;
}

.body p {
  margin: 0 0 16px;
}

.body ul,
.body ol {
  margin: 0 0 18px;
  padding-left: 22px;
}

.body li {
  margin: 6px 0;
}

.body a {
  color: #ffc9de;
  text-underline-offset: 3px;
}

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

.body strong {
  color: #fff;
}

.body img {
  max-width: 100%;
  height: auto;
  border-radius: 18px;
}

.body blockquote {
  margin: 20px 0;
  padding: 14px 20px;
  border-left: 3px solid var(--pink);
  background: rgba(255, 20, 147, 0.1);
  border-radius: 0 16px 16px 0;
}

.body table {
  width: 100%;
  border-collapse: collapse;
}

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

/* 侧栏 */
.side {
  display: grid;
  gap: 18px;
  position: sticky;
  top: 88px;
}

.side-card {
  background: var(--glass);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 22px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--shadow);
}

.side-card h2 {
  margin: 0 0 12px;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.side-card h2 > span {
  background: linear-gradient(94deg, #ff8a8a, var(--pink));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.side-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 2px;
}

.side-list a {
  display: flex;
  align-items: center;
  min-height: 42px;
  padding: 0 12px;
  border-radius: 14px;
  text-decoration: none;
  font-size: 16px;
  color: var(--dim);
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.side-list a:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  transform: translateX(3px);
}

/* 页脚：单行横排 */
footer {
  border-top: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 18px 20px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px 18px;
  text-align: center;
}

.f-brand a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: #fff;
  text-decoration: none;
}

footer nav ol {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2px;
  list-style: none;
  margin: 0;
  padding: 0;
}

footer nav a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 10px;
  border-radius: 12px;
  font-size: 16px;
  color: var(--dim);
  text-decoration: none;
}

footer nav a:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

.f-copy {
  font-size: 16px;
  color: #c6b0b0;
}

.totop {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 70;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 999px;
  font-size: 16px;
  color: #fff;
  text-decoration: none;
  background: rgba(38, 23, 23, 0.82);
  border: 1px solid var(--line);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
}

.totop:hover {
  background: linear-gradient(96deg, var(--red), var(--pink));
}

@media (max-width: 900px) {
  .wrap {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
    padding: 36px 16px 64px;
  }

  .side {
    position: static;
    grid-template-columns: 1fr;
  }

  .body {
    padding: 24px 20px;
  }

  .hero {
    min-height: 62vh;
    padding: 44px 18px 48px;
  }

  .hero-text {
    max-width: 100%;
  }

  .mainnav a {
    padding: 0 9px;
    font-size: 16px;
  }

  .brand-li a {
    font-size: 16px;
  }
}

@media (max-width: 420px) {
  .hero h1 {
    font-size: clamp(26px, 8vw, 34px);
  }

  .hero-desc {
    font-size: 16px;
  }
}

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

  .body > * {
    opacity: 1 !important;
    transform: none !important;
  }

  html {
    scroll-behavior: auto;
  }
}

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