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

:root {
  --red: #ff0000;
  --vio: #8b00ff;
  --ink: #261717;
  --glass: rgba(255, 255, 255, 0.075);
  --glass-2: rgba(255, 255, 255, 0.14);
  --line: rgba(255, 255, 255, 0.2);
  --line-soft: rgba(255, 255, 255, 0.11);
  --blur: blur(15px);
  --max: 1180px;
  --r: 10px;
}

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

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

body {
  margin: 0;
  min-height: 100vh;
  font-family: 'Space Grotesk', system-ui, -apple-system, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  font-size: 17px;
  line-height: 1.75;
  color: #f3eaea;
  background-color: var(--ink);
  background-image:
    radial-gradient(62vw 58vw at 84% -10%, rgba(139, 0, 255, 0.42), transparent 62%),
    radial-gradient(70vw 52vw at 6% 10%, rgba(255, 0, 0, 0.3), transparent 58%),
    radial-gradient(60vw 46vw at 58% 118%, rgba(139, 0, 255, 0.24), transparent 62%);
  background-attachment: fixed;
  background-repeat: no-repeat;
}

main { display: block; }

::selection {
  background: var(--red);
  color: #fff;
}

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

/* ---------- 顶栏 ---------- */
.top {
  position: sticky;
  top: 0;
  z-index: 50;
  padding: 8px clamp(14px, 4vw, 34px) 0;
}

.top::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(38, 23, 23, 0.9), rgba(38, 23, 23, 0.58));
  border-bottom: 1px solid var(--line-soft);
  backdrop-filter: blur(12px) saturate(130%);
  -webkit-backdrop-filter: blur(12px) saturate(130%);
}

.brandrow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 50px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 8px 2px;
  font-size: 1.12rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #fff;
  text-decoration: none;
  text-shadow: 0 0 24px rgba(255, 0, 0, 0.45);
}

.brand .mark {
  width: 26px;
  height: 26px;
  border-radius: 7px;
  object-fit: cover;
}

.call {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid rgba(255, 0, 0, 0.5);
  background: rgba(255, 0, 0, 0.16);
  color: #ffd9d9;
  font-size: 0.92rem;
  letter-spacing: 0.08em;
  text-decoration: none;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.call:hover { background: rgba(255, 0, 0, 0.3); color: #fff; }

.menu { display: block; padding-bottom: 9px; }

.menu summary {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.11);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  font-size: 0.9rem;
  letter-spacing: 0.16em;
  color: #ffe9e9;
  cursor: pointer;
  list-style: none;
  user-select: none;
}

.menu summary::-webkit-details-marker { display: none; }

.bars {
  position: relative;
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
}

.bars::before,
.bars::after {
  content: '';
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  background: currentColor;
  transition: transform 0.25s ease, top 0.25s ease;
}

.bars::before { top: -6px; }
.bars::after { top: 6px; }

.menu[open] summary { background: rgba(255, 0, 0, 0.26); border-color: rgba(255, 0, 0, 0.6); }
.menu[open] .bars { background: transparent; }
.menu[open] .bars::before { top: 0; transform: rotate(45deg); }
.menu[open] .bars::after { top: 0; transform: rotate(-45deg); }

.menu-panel {
  position: fixed;
  inset: 0;
  z-index: 1;
  margin: 0;
  padding: clamp(84px, 15vh, 140px) clamp(18px, 7vw, 64px) 44px;
  list-style: none;
  overflow-y: auto;
  background:
    radial-gradient(80vw 60vh at 80% 0%, rgba(139, 0, 255, 0.42), transparent 60%),
    radial-gradient(60vw 50vh at 10% 100%, rgba(255, 0, 0, 0.3), transparent 62%),
    rgba(24, 13, 13, 0.8);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  animation: knock 0.3s ease both;
}

@keyframes knock {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: none; }
}

.menu-panel li { border-bottom: 1px solid rgba(255, 255, 255, 0.13); }

.menu-panel a {
  display: block;
  padding: 16px 2px;
  min-height: 44px;
  font-size: clamp(1.2rem, 4.4vw, 1.9rem);
  font-weight: 600;
  letter-spacing: -0.01em;
  color: #fff;
  text-decoration: none;
}

.menu-panel a:hover,
.menu-panel a:focus-visible {
  color: var(--red);
  transform: translateX(6px);
  transition: transform 0.2s ease, color 0.2s ease;
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  isolation: isolate;
  display: grid;
  place-items: center;
  min-height: 70vh;
  padding: clamp(46px, 11vh, 96px) 18px clamp(72px, 16vh, 132px);
  overflow: hidden;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 5vw), 0 100%);
}

.hero::before {
  content: '';
  position: absolute;
  inset: -22%;
  z-index: -2;
  background: conic-gradient(from 210deg at 34% 44%, rgba(255, 0, 0, 0.62), transparent 38%, rgba(139, 0, 255, 0.66) 68%, transparent 100%);
  filter: blur(58px);
  opacity: 0.72;
}

.hero-img {
  position: absolute;
  inset: 0;
  z-index: -3;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.44;
}

.ghost {
  position: absolute;
  left: 50%;
  top: 6%;
  z-index: -1;
  margin: 0;
  transform: translate3d(-50%, 0, 0);
  white-space: nowrap;
  font-size: clamp(2.4rem, 15vw, 11rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.05em;
  color: rgba(255, 255, 255, 0.11);
  pointer-events: none;
  will-change: transform;
}

.hero-in {
  position: relative;
  max-width: 940px;
  text-align: center;
}

.hero h1 {
  margin: 0;
  font-size: clamp(1.85rem, 6.4vw, 4.3rem);
  line-height: 1.14;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: #fff;
  text-shadow: 0 14px 44px rgba(0, 0, 0, 0.6);
}

/* ---------- 主体 ---------- */
.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(26px, 6vw, 62px) clamp(14px, 4vw, 34px) 44px;
}

.content {
  display: grid;
  grid-template-columns: 226px minmax(0, 1fr);
  gap: clamp(18px, 3vw, 36px);
  align-items: start;
}

.side {
  grid-column: 1;
  grid-row: 1;
  position: sticky;
  top: 118px;
  max-height: calc(100vh - 150px);
  overflow-y: auto;
  padding: 16px 14px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--glass);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
}

.side h2,
.bot h2 {
  margin: 0 0 10px;
  font-size: 0.86rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  color: rgba(255, 255, 255, 0.68);
}

.side h2 > span,
.bot h2 > span {
  display: inline;
  padding-bottom: 2px;
  border-bottom: 2px solid rgba(255, 0, 0, 0.6);
}

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

.side-list a {
  display: flex;
  align-items: center;
  min-height: 42px;
  padding: 8px 8px;
  border-radius: 7px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  font-size: 0.93rem;
  line-height: 1.4;
  color: #eddede;
  text-decoration: none;
}

.side-list a:hover {
  background: rgba(255, 0, 0, 0.2);
  color: #fff;
}

.body {
  grid-column: 2;
  grid-row: 1;
  min-width: 0;
}

.body > section {
  position: relative;
  margin: 0 0 clamp(18px, 3vw, 28px);
  padding: clamp(18px, 3.4vw, 34px);
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--glass);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  box-shadow: 0 22px 56px -34px rgba(0, 0, 0, 0.9);
  scroll-margin-top: 122px;
}

.body > section::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  border-radius: 0 0 var(--r) var(--r);
  background: linear-gradient(90deg, var(--red), var(--vio));
  opacity: 0.92;
}

.body h2 {
  margin: 0.15em 0 0.62em;
  font-size: clamp(1.24rem, 3.1vw, 1.78rem);
  line-height: 1.32;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: #fff;
}

.body h2 > span {
  display: inline;
  padding: 0 2px;
  background: linear-gradient(180deg, transparent 66%, rgba(255, 0, 0, 0.45) 66%);
}

.body h3 {
  margin: 1.2em 0 0.5em;
  font-size: 1.1rem;
  color: #fff;
}

.body h3 > span {
  border-left: 3px solid var(--vio);
  padding-left: 9px;
}

.body p {
  margin: 0 0 1em;
  color: #ecdfdf;
}

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

.body ul,
.body ol { padding-left: 1.25em; margin: 0 0 1em; }
.body li { margin: 0.35em 0; }

.body img {
  max-width: 100%;
  height: auto;
  border-radius: var(--r);
  border: 1px solid var(--line-soft);
}

.body blockquote {
  margin: 1em 0;
  padding: 12px 16px;
  border-left: 3px solid var(--red);
  border-radius: 0 var(--r) var(--r) 0;
  background: rgba(255, 0, 0, 0.1);
}

.body table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

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

/* ---------- 页脚 ---------- */
.bot {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(30px, 6vw, 62px) clamp(14px, 4vw, 34px) 34px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 26px;
  border-top: 1px solid var(--line-soft);
}

.ft-cta {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: clamp(20px, 4vw, 42px);
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: linear-gradient(118deg, rgba(255, 0, 0, 0.3), rgba(139, 0, 255, 0.34));
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
}

.ft-cta h2 {
  margin: 0;
  font-size: clamp(1.45rem, 5.4vw, 2.9rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  color: #fff;
}

.ft-cta h2 > span { border-bottom: none; }

.toTop {
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  padding: 0 22px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  font-size: 0.94rem;
  letter-spacing: 0.08em;
  text-decoration: none;
}

.toTop:hover { background: #ff0000; border-color: #ff0000; }

.ft-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(132px, 1fr));
  gap: 0 14px;
}

.ft-list a {
  display: flex;
  align-items: center;
  min-height: 42px;
  padding: 6px 4px;
  font-size: 0.93rem;
  color: #e5d5d5;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.ft-list a:hover { color: var(--red); }

.ft-bar {
  display: grid;
  gap: 8px;
  justify-items: end;
  align-content: start;
  text-align: right;
}

.ft-bar p {
  margin: 0;
  font-size: 0.9rem;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.7);
}

.ft-bar a {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.86rem;
  color: #f0dede;
  text-decoration: none;
}

.ft-bar a:hover { border-color: var(--red); color: #fff; }

/* ---------- 进场 ---------- */
.js .body > section,
.js .side,
.js .ft-cta {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.55s ease, transform 0.55s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.js .body > section:nth-child(2) { transition-delay: 0.05s; }
.js .body > section:nth-child(3) { transition-delay: 0.1s; }
.js .body > section:nth-child(4) { transition-delay: 0.14s; }

.js .body > section.in,
.js .side.in,
.js .ft-cta.in {
  opacity: 1;
  transform: none;
}

/* ---------- 断点 ---------- */
@media (max-width: 900px) {
  .content { grid-template-columns: minmax(0, 1fr); }
  .side {
    grid-column: 1;
    grid-row: 1;
    position: static;
    max-height: none;
    padding: 12px 14px;
  }
  .side h2 { margin-bottom: 8px; }
  .side-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 10px;
  }
  .side-list a { font-size: 0.88rem; }
  .body { grid-column: 1; grid-row: 2; }
  .hero { min-height: 58vh; }
  .bot { grid-template-columns: minmax(0, 1fr); }
  .ft-bar {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    text-align: left;
  }
}

@media (max-width: 420px) {
  body { font-size: 16px; }
  .ghost { top: 3%; opacity: 0.9; }
  .hero { clip-path: polygon(0 0, 100% 0, 100% calc(100% - 22px), 0 100%); }
  .side-list { grid-template-columns: 1fr; }
  .menu-panel { padding-top: 96px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .body > section,
  .js .side,
  .js .ft-cta {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .menu-panel { animation: none; }
  .ghost { will-change: auto; }
}

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