@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@300;400;500;600;700&family=Syne:wght@400;500;600;700&display=swap');

:root {
  --red: #ff0000;
  --pink: #ff1493;
  --ink: #261717;
  --bg: #1a0f0f;
  --fg: #f8ecec;
  --muted: #c8adad;
  --line: rgba(255, 235, 240, 0.16);
  --max: 1160px;
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: 'Manrope', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.75;
  letter-spacing: 0.01em;
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed;
  inset: -25%;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(42% 38% at 18% 22%, rgba(255, 0, 0, 0.55), transparent 62%),
    radial-gradient(38% 42% at 78% 26%, rgba(255, 20, 147, 0.48), transparent 62%),
    radial-gradient(58% 48% at 52% 88%, rgba(120, 12, 62, 0.72), transparent 66%),
    radial-gradient(32% 32% at 66% 62%, rgba(255, 96, 152, 0.32), transparent 72%);
  background-size: 180% 180%;
  filter: saturate(1.2) blur(38px);
  opacity: 0.85;
  animation: aurora 11s ease-in-out infinite alternate;
}

@keyframes aurora {
  0% { transform: translate3d(-2%, -1%, 0) scale(1); }
  50% { transform: translate3d(2%, 2%, 0) scale(1.09); }
  100% { transform: translate3d(-1%, 1%, 0) scale(1.03); }
}

body > * {
  position: relative;
  z-index: 1;
}

h1, h2, h3, .brand, .foot-cta, .menu-inner a {
  font-family: 'Syne', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  line-height: 1.12;
  letter-spacing: -0.015em;
  margin: 0;
}

a {
  color: inherit;
}

img {
  max-width: 100%;
  height: auto;
}

/* ---------- 顶部两行 ---------- */
header.top {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(180deg, rgba(24, 13, 13, 0.94), rgba(24, 13, 13, 0.62));
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.brandrow {
  padding: 0.7rem 1rem 0.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  min-height: 44px;
  text-decoration: none;
  font-size: clamp(1.05rem, 2.6vw, 1.3rem);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: #fff;
}

.brand .mark {
  height: 32px;
  width: auto;
  display: block;
}

.brand span {
  background: linear-gradient(92deg, var(--red), var(--pink));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.menurow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0 1rem 0.62rem;
}

.burger {
  min-height: 44px;
  padding: 0.4rem 1.1rem;
  font: inherit;
  font-size: 0.95rem;
  letter-spacing: 0.2em;
  color: var(--fg);
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 0;
  cursor: pointer;
  transition: border-color 0.25s ease, color 0.25s ease;
}

.burger:hover,
.burger:focus-visible {
  border-color: var(--pink);
  color: #fff;
}

.contact {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0.4rem 0.2rem;
  font-size: 0.95rem;
  text-decoration: none;
  color: var(--muted);
  border-bottom: 1px solid transparent;
  transition: color 0.25s ease, border-color 0.25s ease;
}

.contact:hover,
.contact:focus-visible {
  color: #fff;
  border-color: var(--red);
}

/* ---------- 全屏遮罩菜单 ---------- */
.menu {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  background: rgba(18, 9, 9, 0.94);
  backdrop-filter: blur(16px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.34s ease, visibility 0.34s ease;
}

.menu.is-open {
  opacity: 1;
  visibility: visible;
}

.menu-inner {
  display: flex;
  flex-direction: column;
  padding: 2rem 1rem;
  max-height: 100%;
  overflow-y: auto;
}

.menu-inner a {
  display: block;
  min-height: 52px;
  padding: 0.5rem 0.9rem;
  text-decoration: none;
  font-size: clamp(1.3rem, 4.4vw, 2rem);
  font-weight: 600;
  color: #f6e6ea;
  border-left: 2px solid transparent;
  transition: color 0.22s ease, border-color 0.22s ease, transform 0.22s ease;
}

.menu-inner a:hover,
.menu-inner a:focus-visible {
  color: #fff;
  border-left-color: var(--red);
  transform: translateX(6px);
}

/* ---------- 首屏 ---------- */
.hero {
  min-height: 45vh;
  display: flex;
  align-items: center;
  width: min(var(--max), 100% - 2rem);
  margin: 0 auto;
  padding: clamp(1.6rem, 5vw, 3.2rem) 0;
}

.hero-in {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 3vw, 2rem);
  flex-wrap: wrap;
}

.hero-mark {
  width: 78px;
  height: 78px;
  flex: none;
  filter: drop-shadow(0 0 18px rgba(255, 20, 147, 0.55));
}

.hero h1 {
  font-size: clamp(1.9rem, 6.2vw, 3.6rem);
  font-weight: 700;
  text-align: left;
  text-shadow: 0 0 32px rgba(255, 0, 0, 0.35);
}

/* ---------- 主体 ---------- */
.wrap {
  width: min(var(--max), 100% - 2rem);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 264px;
  gap: clamp(1.6rem, 3vw, 3rem);
  align-items: start;
  padding: clamp(1rem, 3vw, 2rem) 0 clamp(2.4rem, 6vw, 4rem);
}

.body {
  min-width: 0;
}

article [id] {
  scroll-margin-top: 128px;
}

article > section {
  position: relative;
  padding: 0 0 1.9rem;
  margin-bottom: 2.2rem;
  border-bottom: 1px solid var(--line);
}

article > section::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 68px;
  height: 2px;
  background: linear-gradient(90deg, var(--red), var(--pink));
}

article h2 {
  font-size: clamp(1.4rem, 3.4vw, 2rem);
  color: #fff;
  margin: 0 0 0.7rem;
}

article h3 {
  font-size: clamp(1.12rem, 2.4vw, 1.32rem);
  color: #ffe6ee;
  margin: 1.6rem 0 0.55rem;
}

article p {
  margin: 0 0 1rem;
  max-width: 68ch;
  color: #f0dfe2;
}

article ul,
article ol {
  margin: 0 0 1.1rem;
  padding-left: 1.25rem;
  max-width: 66ch;
}

article li {
  margin: 0.35rem 0;
}

article strong {
  color: #fff;
}

article a {
  color: #ffb0c6;
  text-decoration: underline;
  text-underline-offset: 3px;
}

article a:hover {
  color: #fff;
  background: rgba(255, 20, 147, 0.18);
}

article blockquote {
  margin: 1.3rem 0;
  padding: 0.5rem 0 0.5rem 1rem;
  border-left: 2px solid var(--pink);
  color: #f6dfe6;
}

article img {
  display: block;
  margin: 1.1rem 0;
}

article table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
  font-size: 0.97rem;
}

article th,
article td {
  border-bottom: 1px solid var(--line);
  padding: 0.55rem 0.6rem;
  text-align: left;
}

/* ---------- 侧栏 ---------- */
.side {
  position: sticky;
  top: 128px;
  align-self: start;
  padding: 1rem 0 1.2rem;
  border-bottom: 2px solid transparent;
  background-image: linear-gradient(90deg, var(--red), var(--pink));
  background-repeat: no-repeat;
  background-size: 68px 2px;
  background-position: left bottom;
}

.side h2 {
  font-size: 1.12rem;
  color: #fff;
  margin: 0 0 0.35rem;
  letter-spacing: 0.02em;
}

.side .subtitle {
  margin: 0 0 1rem;
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--muted);
}

.side-links {
  list-style: none;
  margin: 0;
  padding: 0;
}

.side-links a {
  display: block;
  min-height: 40px;
  padding: 0.45rem 0;
  font-size: 0.97rem;
  text-decoration: none;
  color: #f2dde2;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  transition: color 0.22s ease, padding-left 0.22s ease;
}

.side-links a:hover,
.side-links a:focus-visible {
  color: var(--pink);
  padding-left: 8px;
}

/* ---------- 页脚 ---------- */
.foot {
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(20, 10, 10, 0.2), rgba(12, 6, 6, 0.85));
  padding: clamp(1.6rem, 4vw, 2.6rem) 1rem 1.4rem;
}

.foot-cta a {
  display: inline-block;
  font-size: clamp(1.9rem, 6vw, 3.2rem);
  font-weight: 700;
  text-decoration: none;
  color: transparent;
  background-image: linear-gradient(92deg, var(--red), var(--pink));
  -webkit-background-clip: text;
  background-clip: text;
  padding-bottom: 0.2rem;
  border-bottom: 2px solid rgba(255, 20, 147, 0.5);
  transition: border-color 0.25s ease, letter-spacing 0.3s ease;
}

.foot-cta a:hover,
.foot-cta a:focus-visible {
  border-color: var(--red);
  letter-spacing: 0.02em;
}

.foot-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 1.2rem;
  max-width: var(--max);
  margin: 1.6rem auto 1rem;
  align-items: start;
}

.foot address {
  font-style: normal;
  font-size: 1rem;
  color: #fff;
  letter-spacing: 0.08em;
}

.foot nav dl {
  margin: 0;
}

.foot nav dt {
  margin: 0;
}

.foot nav dd {
  display: none;
  margin: 0;
}

.foot nav a,
.foot-list a {
  display: inline-block;
  min-height: 40px;
  padding: 0.42rem 0;
  font-size: 0.96rem;
  text-decoration: none;
  color: var(--muted);
  border-bottom: 1px solid transparent;
  transition: color 0.22s ease, border-color 0.22s ease;
}

.foot nav a:hover,
.foot-list a:hover,
.foot nav a:focus-visible,
.foot-list a:focus-visible {
  color: #fff;
  border-color: var(--pink);
}

.foot-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.foot-list li {
  margin: 0;
}

.copy {
  max-width: var(--max);
  margin: 0.6rem auto 0;
  font-size: 0.88rem;
  letter-spacing: 0.1em;
  color: #a98f92;
}

.foot-cta,
.foot-grid,
.copy {
  max-width: 1160px;
  margin-left: auto;
  margin-right: auto;
}

/* ---------- 窄屏 ---------- */
@media (max-width: 860px) {
  .wrap {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.6rem;
  }

  .side {
    position: static;
    top: auto;
    order: 2;
    padding-top: 1.2rem;
    border-top: 1px solid var(--line);
  }

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

  article [id] {
    scroll-margin-top: 132px;
  }
}

@media (max-width: 520px) {
  body {
    font-size: 16.5px;
  }

  .hero {
    min-height: 45vh;
    padding: 1.4rem 0;
  }

  .hero-mark {
    width: 58px;
    height: 58px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

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