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

:root {
  --bg: #08080f;
  --ink: #1a1a2e;
  --red: #ff0000;
  --pink: #ff006e;
  --fg: #eae7f5;
  --dim: #a29dbe;
  --line: rgba(255, 0, 110, 0.24);
  --sans: "Inter", system-ui, -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --max: 1180px;
}

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

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

body {
  margin: 0;
  background-color: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.7;
  overflow-x: hidden;
  background-image:
    radial-gradient(1000px 520px at 86% -6%, rgba(255, 0, 110, 0.17), transparent 65%),
    radial-gradient(760px 500px at -12% 10%, rgba(255, 0, 0, 0.13), transparent 62%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 6;
  pointer-events: none;
  background: repeating-linear-gradient(180deg, rgba(255, 255, 255, 0.05) 0 1px, transparent 1px 3px);
  opacity: 0.55;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 0, 110, 0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 0, 110, 0.1) 1px, transparent 1px);
  background-size: 64px 64px;
  opacity: 0.5;
  -webkit-mask-image: radial-gradient(circle at 50% 26%, #000 28%, transparent 78%);
  mask-image: radial-gradient(circle at 50% 26%, #000 28%, transparent 78%);
}

img { max-width: 100%; display: block; height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0; line-height: 1.2; font-weight: 700; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }

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

/* 顶栏 */
.top {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 0.55rem clamp(1rem, 4vw, 2rem);
  background: rgba(8, 8, 15, 0.85);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
}

.brand {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--pink);
  border-radius: 4px;
  background: rgba(255, 0, 110, 0.07);
  box-shadow: 0 0 12px rgba(255, 0, 110, 0.5), inset 0 0 12px rgba(255, 0, 110, 0.18);
  overflow: hidden;
  transition: box-shadow 0.2s, transform 0.2s;
}

.brand:hover { box-shadow: 0 0 22px rgba(255, 0, 110, 0.85); transform: translateY(-1px); }
.brand img { width: 100%; height: 100%; object-fit: cover; }
.brand .mark {
  font-family: var(--mono);
  font-size: 1.1rem;
  color: #fff;
  text-shadow: 0 0 10px var(--pink);
}

.top nav {
  flex: 1 1 auto;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
}

.top nav::-webkit-scrollbar { display: none; }

.top nav p {
  display: flex;
  gap: 0.1rem;
  margin: 0;
  white-space: nowrap;
}

.top nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 0.7rem;
  font-size: 16px;
  letter-spacing: 0.02em;
  color: var(--dim);
  border-radius: 4px;
  transition: color 0.18s, background 0.18s, text-shadow 0.18s;
}

.top nav a:hover,
.top nav a:focus-visible {
  color: #fff;
  background: rgba(255, 0, 110, 0.12);
  text-shadow: 0 0 12px var(--pink);
}

/* 版心 */
main {
  position: relative;
  z-index: 1;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 clamp(1rem, 4vw, 2rem);
}

article {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  column-gap: 2.4rem;
  align-items: start;
}

/* 首屏 */
.hero {
  grid-column: 1 / -1;
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: clamp(1.4rem, 5vw, 3.5rem);
  min-height: 100vh;
  min-height: 100svh;
  padding: clamp(3.5rem, 9vh, 6rem) 0 clamp(2.5rem, 7vh, 4.5rem);
}

.hero-copy { position: relative; z-index: 2; }

.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.75rem;
  font-family: var(--mono);
  font-size: 15px;
  letter-spacing: 0.16em;
  color: #ffd7e6;
  border: 1px solid var(--pink);
  border-radius: 4px;
  background: rgba(255, 0, 110, 0.1);
  box-shadow: 0 0 18px rgba(255, 0, 110, 0.45);
  animation: hover-badge 5s ease-in-out infinite;
}

.hero h1 {
  position: relative;
  margin-top: 1rem;
  font-size: clamp(2.3rem, 6.2vw, 4.5rem);
  color: #fff;
  text-shadow: 0 0 24px rgba(255, 0, 110, 0.55), 0 0 60px rgba(255, 0, 0, 0.32);
  animation: flicker 7s infinite;
}

.hero h1::before,
.hero h1::after {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero h1::before {
  color: var(--red);
  clip-path: inset(0 0 55% 0);
  animation: glitch-a 5s infinite steps(1);
}

.hero h1::after {
  color: var(--pink);
  clip-path: inset(52% 0 0 0);
  animation: glitch-b 4.2s infinite steps(1);
}

.hero-line {
  border: 0;
  height: 1px;
  width: min(320px, 80%);
  margin: 1.5rem 0 0;
  background: linear-gradient(90deg, var(--red), var(--pink) 45%, transparent);
  box-shadow: 0 0 12px rgba(255, 0, 110, 0.6);
}

.hero-art {
  position: relative;
  z-index: 1;
  min-height: min(58vh, 430px);
}

.shot {
  position: absolute;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: linear-gradient(160deg, rgba(255, 0, 110, 0.18), rgba(26, 26, 46, 0.92));
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.55), 0 0 26px rgba(255, 0, 110, 0.26);
}

.shot img { width: 100%; height: 100%; object-fit: cover; }

.shot.a {
  top: 3%;
  left: 0;
  width: 62%;
  aspect-ratio: 4 / 5;
  transform: rotate(-5deg);
  animation: float-a 9s ease-in-out infinite;
}

.shot.b {
  right: 0;
  bottom: 2%;
  width: 56%;
  aspect-ratio: 3 / 4;
  transform: rotate(4deg);
  border-color: rgba(255, 0, 0, 0.5);
  animation: float-b 10s ease-in-out infinite;
}

.shot.ph::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 0, 110, 0.22) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 0, 110, 0.22) 1px, transparent 1px);
  background-size: 22px 22px;
}

/* 侧栏 */
.rail {
  grid-column: 1;
  grid-row: 2;
  position: sticky;
  top: 5.5rem;
  padding-right: 1.2rem;
  padding-bottom: 2rem;
  margin-bottom: 3rem;
  border-right: 1px solid var(--line);
}

.rail h2 {
  font-family: var(--mono);
  font-size: 15px;
  letter-spacing: 0.2em;
  color: #ffb9d1;
  text-shadow: 0 0 10px rgba(255, 0, 110, 0.5);
}

.rail hr {
  border: 0;
  height: 1px;
  margin: 0.6rem 0 0.9rem;
  background: linear-gradient(90deg, var(--pink), transparent);
}

.rail ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.1rem;
}

.rail a {
  display: block;
  padding: 0.55rem 0.4rem 0.55rem 0;
  font-size: 16px;
  color: var(--dim);
  border-bottom: 1px dashed rgba(255, 0, 110, 0.16);
  transition: color 0.18s, padding-left 0.18s, text-shadow 0.18s;
}

.rail a:hover,
.rail a:focus-visible {
  color: #fff;
  padding-left: 0.45rem;
  text-shadow: 0 0 12px var(--pink);
}

/* 正文 */
.body {
  grid-column: 2;
  grid-row: 2;
  min-width: 0;
  padding-bottom: 4rem;
}

.body section {
  padding: 2.4rem 0 1rem;
  border-top: 1px solid var(--line);
  scroll-margin-top: 6.5rem;
}

.body section:first-child { border-top: 0; padding-top: 0.4rem; }

.body h2 {
  font-size: clamp(1.5rem, 3.3vw, 2rem);
  color: #fff;
  text-shadow: 0 0 18px rgba(255, 0, 110, 0.4);
}

.body h3 {
  margin: 1.6rem 0 0.5rem;
  font-size: 1.2rem;
  color: #ffd2e0;
}

.body hr {
  border: 0;
  height: 1px;
  margin: 0.85rem 0 1.1rem;
  background: linear-gradient(90deg, var(--red), var(--pink) 40%, transparent);
}

.body p { color: #d6d2e6; line-height: 1.8; }

.body a {
  color: #ff5c9a;
  border-bottom: 1px solid rgba(255, 92, 154, 0.45);
  transition: color 0.18s, text-shadow 0.18s;
}

.body a:hover { color: #fff; text-shadow: 0 0 10px var(--pink); }
.body strong { color: #fff; }
.body ul, .body ol { padding-left: 1.15rem; color: #d6d2e6; }
.body li { margin: 0.4rem 0; }
.body li::marker { color: var(--pink); }

.body img {
  margin: 1.2rem 0;
  border: 1px solid var(--line);
  border-radius: 4px;
}

.body blockquote {
  margin: 1.4rem 0;
  padding: 0.2rem 0 0.2rem 1rem;
  border-left: 2px solid var(--pink);
  color: #cfc9e2;
}

/* 页脚 */
footer {
  position: relative;
  z-index: 1;
  margin-top: 2rem;
  padding: 2.6rem 1.2rem 2rem;
  text-align: center;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 0, 110, 0.08), transparent);
}

footer .cta { margin: 0 0 1rem; }

footer .cta a {
  display: inline-flex;
  align-items: center;
  min-height: 52px;
  padding: 0.6rem 1.7rem;
  font-size: 1.15rem;
  font-weight: 600;
  color: #fff;
  border: 1px solid var(--pink);
  border-radius: 4px;
  box-shadow: 0 0 22px rgba(255, 0, 110, 0.4);
  transition: background 0.2s, box-shadow 0.2s, transform 0.2s;
}

footer .cta a:hover,
footer .cta a:focus-visible {
  background: rgba(255, 0, 110, 0.18);
  box-shadow: 0 0 34px rgba(255, 0, 110, 0.7);
  transform: translateY(-2px);
}

footer small {
  display: block;
  font-size: 15px;
  letter-spacing: 0.05em;
  color: var(--dim);
}

/* 入场 */
.rv {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.rv.in { opacity: 1; transform: none; }

@keyframes glitch-a {
  0%, 91%, 100% { transform: translate(0, 0); }
  92% { transform: translate(-3px, -2px); }
  95% { transform: translate(3px, 1px); }
  97% { transform: translate(-2px, 2px); }
}

@keyframes glitch-b {
  0%, 88%, 100% { transform: translate(0, 0); }
  90% { transform: translate(3px, 2px); }
  94% { transform: translate(-3px, -1px); }
  96% { transform: translate(2px, -2px); }
}

@keyframes flicker {
  0%, 96%, 100% { opacity: 1; }
  97% { opacity: 0.78; }
  98% { opacity: 1; }
  99% { opacity: 0.88; }
}

@keyframes float-a {
  0%, 100% { transform: rotate(-5deg) translateY(0); }
  50% { transform: rotate(-5deg) translateY(-12px); }
}

@keyframes float-b {
  0%, 100% { transform: rotate(4deg) translateY(0); }
  50% { transform: rotate(4deg) translateY(10px); }
}

@keyframes hover-badge {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

/* 移动端 */
@media (max-width: 900px) {
  article { grid-template-columns: 1fr; }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding: 2.4rem 0 2.6rem;
    gap: 1.6rem;
  }

  .hero-art { min-height: 300px; }
  .shot.a { width: 58%; }
  .shot.b { width: 52%; }

  .rail {
    grid-column: 1;
    grid-row: auto;
    position: static;
    padding: 0 0 1rem;
    margin: 0 0 1.6rem;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .rail ul { display: flex; flex-wrap: wrap; gap: 0.35rem; }
  .rail a { padding: 0.55rem 0.7rem; border: 1px solid var(--line); border-radius: 4px; }
  .rail a:hover { padding-left: 0.7rem; background: rgba(255, 0, 110, 0.12); }
  .rail h2 { font-size: 15px; }

  .body { grid-column: 1; }
  .body section { padding: 2rem 0 0.8rem; }
}

@media (max-width: 520px) {
  body { font-size: 16px; }
  .body p { font-size: 16px; }
  .top nav a { padding: 0 0.55rem; font-size: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
  .rv { opacity: 1; transform: none; }
}

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