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

:root {
  --ink: #1a1a2e;
  --ink-deep: #0a0a15;
  --red: #ff0000;
  --rose: #ff006e;
  --ice: #e3e6ff;
  --paper: #f7f1f5;
  --muted: #a9a4c2;
  --line: rgba(255, 0, 110, 0.34);
  --line-soft: rgba(255, 255, 255, 0.12);
  --glow-red: 0 0 18px rgba(255, 0, 0, 0.55);
  --glow-rose: 0 0 22px rgba(255, 0, 110, 0.5);
  --fd: "Cormorant", "Times New Roman", Georgia, serif;
  --fb: "Montserrat", "Helvetica Neue", Arial, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 108px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(900px 620px at 12% -8%, rgba(255, 0, 110, 0.2), transparent 60%),
    radial-gradient(760px 520px at 92% 4%, rgba(255, 0, 0, 0.16), transparent 62%),
    linear-gradient(180deg, #12101f 0%, var(--ink) 42%, var(--ink-deep) 100%);
  background-attachment: fixed;
  color: var(--paper);
  font-family: var(--fb);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.72;
  letter-spacing: 0.012em;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 70;
  pointer-events: none;
  background: repeating-linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.05) 0 1px,
    rgba(0, 0, 0, 0.16) 1px 3px
  );
  opacity: 0.55;
  mix-blend-mode: screen;
  animation: crt 6s steps(60) infinite;
}

@keyframes crt {
  0%, 100% { opacity: 0.5; }
  48% { opacity: 0.6; }
  50% { opacity: 0.42; }
  52% { opacity: 0.62; }
}

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

a {
  color: var(--rose);
  text-decoration: none;
}

a:hover {
  color: #ff5c9e;
}

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

small {
  display: block;
  font-family: var(--fb);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--rose);
  text-shadow: 0 0 10px rgba(255, 0, 110, 0.55);
}

/* 顶部细条 */
.topbar {
  position: relative;
  z-index: 55;
  padding: 9px 6vw;
  text-align: center;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(90deg, rgba(255, 0, 0, 0.22), rgba(255, 0, 110, 0.18), rgba(255, 0, 0, 0.22));
  overflow: hidden;
}

.topbar__txt {
  display: block;
  font-size: 0.8125rem;
  letter-spacing: 0.16em;
  color: #ffd9e7;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* 页头 */
.hdr {
  position: sticky;
  top: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 6vw;
  border-bottom: 1px solid var(--line);
  background: rgba(10, 10, 21, 0.82);
  backdrop-filter: blur(14px) saturate(1.3);
  -webkit-backdrop-filter: blur(14px) saturate(1.3);
}

.brand {
  font-family: var(--fd);
  font-size: clamp(1.5rem, 3.4vw, 2.05rem);
  font-weight: 700;
  letter-spacing: 0.05em;
  color: #fff;
  text-shadow: var(--glow-rose), var(--glow-red);
  white-space: nowrap;
}

.brand:hover {
  color: #fff;
  text-shadow: 0 0 26px rgba(255, 0, 110, 0.9), var(--glow-red);
}

.nav {
  display: flex;
  align-items: center;
}

.nav details {
  position: relative;
}

.nav summary {
  list-style: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 20px;
  border: 1px solid var(--line);
  border-radius: 28px;
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: var(--ice);
  background: rgba(255, 0, 110, 0.08);
  box-shadow: inset 0 0 18px rgba(255, 0, 110, 0.16);
  transition: color 0.2s, box-shadow 0.25s, border-color 0.2s;
}

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

.nav summary:hover {
  color: #fff;
  border-color: var(--rose);
  box-shadow: 0 0 22px rgba(255, 0, 110, 0.45), inset 0 0 22px rgba(255, 0, 110, 0.3);
}

.nav details[open] summary {
  color: #fff;
  border-color: var(--rose);
  background: rgba(255, 0, 110, 0.2);
}

.nav__menu {
  position: absolute;
  right: 0;
  top: calc(100% + 12px);
  z-index: 70;
  min-width: min(300px, 84vw);
  margin: 0;
  padding: 10px;
  list-style: none;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: rgba(14, 12, 28, 0.97);
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.6), inset 0 0 30px rgba(255, 0, 110, 0.1);
}

.nav__menu li + li {
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.nav__menu a {
  display: flex;
  align-items: center;
  min-height: 46px;
  padding: 6px 16px;
  border-radius: 20px;
  color: var(--ice);
  font-size: 1rem;
  letter-spacing: 0.04em;
  transition: background 0.2s, color 0.2s, padding-left 0.2s;
}

.nav__menu a:hover {
  color: #fff;
  background: linear-gradient(90deg, rgba(255, 0, 110, 0.28), transparent);
  padding-left: 22px;
}

/* 主视觉 */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  padding: 0 6vw 13vh;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__pic {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.25) contrast(1.08) hue-rotate(-6deg);
  transform: scale(1.04);
  animation: drift 22s ease-in-out infinite alternate;
}

@keyframes drift {
  from { transform: scale(1.04) translate3d(0, 0, 0); }
  to { transform: scale(1.12) translate3d(-1.6%, -1.2%, 0); }
}

.hero__veil {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(200deg, rgba(10, 10, 21, 0.28) 0%, rgba(10, 10, 21, 0.86) 72%, rgba(10, 10, 21, 0.97) 100%),
    repeating-linear-gradient(180deg, rgba(255, 0, 110, 0.07) 0 2px, transparent 2px 5px);
}

.hero__text {
  position: relative;
  z-index: 2;
  max-width: min(660px, 90vw);
  text-align: right;
}

.hero__h1 {
  margin: 0;
  font-family: var(--fd);
  font-weight: 700;
  font-size: clamp(2.5rem, 7.4vw, 5.4rem);
  line-height: 1.02;
  letter-spacing: 0.01em;
  color: #fff;
  text-shadow:
    0 0 14px rgba(255, 0, 110, 0.85),
    0 0 46px rgba(255, 0, 0, 0.55),
    4px 0 0 rgba(255, 0, 0, 0.42),
    -4px 0 0 rgba(255, 0, 110, 0.42);
  animation: glitch 7s steps(1) infinite;
}

@keyframes glitch {
  0%, 88%, 100% { transform: none; }
  89% { transform: skewX(-4deg) translateX(-3px); }
  90% { transform: skewX(3deg) translateX(4px); }
  91% { transform: none; }
  94% { transform: skewX(-2deg) translateX(2px); }
  95% { transform: none; }
}

.hero__desc {
  margin: 20px 0 0;
  font-size: 1.0625rem;
  font-weight: 300;
  letter-spacing: 0.05em;
  color: #ded7ea;
}

.hero__cta {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  margin-top: 28px;
  padding: 0 34px;
  border: 1px solid var(--rose);
  border-radius: 28px;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  color: #fff;
  background: linear-gradient(90deg, rgba(255, 0, 0, 0.38), rgba(255, 0, 110, 0.38));
  box-shadow: 0 0 22px rgba(255, 0, 110, 0.42);
  transition: transform 0.25s, box-shadow 0.25s, background 0.25s;
}

.hero__cta:hover {
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 0 38px rgba(255, 0, 110, 0.7);
  background: linear-gradient(90deg, rgba(255, 0, 0, 0.6), rgba(255, 0, 110, 0.6));
}

/* 主体：侧栏在左 */
.grid {
  display: grid;
  grid-template-columns: minmax(0, 220px) minmax(0, 1fr);
  gap: 56px;
  align-items: start;
  max-width: 1240px;
  margin: 0 auto;
  padding: 76px 6vw 96px;
}

.rail {
  position: sticky;
  top: 108px;
  padding: 24px 20px 26px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(26, 26, 46, 0.92), rgba(12, 11, 24, 0.92));
  box-shadow: inset 0 0 32px rgba(255, 0, 110, 0.12);
}

.rail h2 {
  margin: 8px 0 16px;
  font-family: var(--fd);
  font-size: 1.6rem;
  font-weight: 600;
  line-height: 1.1;
  color: #fff;
}

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

.rail__menu li + li {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.rail__menu a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 4px 2px;
  font-size: 1rem;
  color: var(--ice);
  letter-spacing: 0.03em;
  transition: color 0.2s, transform 0.2s;
}

.rail__menu a:hover {
  color: var(--rose);
  transform: translateX(5px);
}

/* 正文 */
.prose {
  min-width: 0;
  max-width: 74ch;
  font-size: 1.0625rem;
  line-height: 1.78;
  color: #ece7f4;
}

.prose > article {
  scroll-margin-top: 116px;
  padding: 34px clamp(20px, 3.4vw, 40px) 36px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(26, 26, 46, 0.72), rgba(12, 11, 24, 0.72));
  box-shadow: inset 0 0 40px rgba(255, 0, 110, 0.08);
}

.prose > article + article {
  margin-top: 30px;
}

.prose > article:first-of-type {
  border-color: rgba(255, 0, 110, 0.6);
  box-shadow: inset 0 0 46px rgba(255, 0, 110, 0.18), 0 0 26px rgba(255, 0, 110, 0.16);
}

.prose h2,
.prose h3 {
  font-family: var(--fd);
  font-weight: 600;
  line-height: 1.12;
  color: #fff;
  text-shadow: 0 0 16px rgba(255, 0, 110, 0.55);
}

.prose h2 {
  margin: 10px 0 18px;
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  letter-spacing: 0.01em;
}

.prose h3 {
  margin: 30px 0 12px;
  font-size: clamp(1.35rem, 2.8vw, 1.7rem);
}

.prose p {
  margin: 0 0 18px;
}

.prose p:last-child {
  margin-bottom: 0;
}

.prose strong {
  color: #fff;
  font-weight: 600;
  text-shadow: 0 0 12px rgba(255, 0, 110, 0.5);
}

.prose ul,
.prose ol {
  margin: 0 0 18px;
  padding-left: 1.35em;
}

.prose li {
  margin-bottom: 10px;
}

.prose li::marker {
  color: var(--rose);
}

.prose img {
  width: 100%;
  margin: 22px 0;
  border: 1px solid var(--line);
  border-radius: 28px;
}

.prose a {
  color: #ff4d92;
  border-bottom: 1px solid rgba(255, 77, 146, 0.45);
}

.prose a:hover {
  color: #fff;
  border-bottom-color: var(--rose);
  text-shadow: 0 0 14px rgba(255, 0, 110, 0.8);
}

.prose blockquote {
  margin: 24px 0;
  padding: 16px 22px;
  border-left: 2px solid var(--rose);
  border-radius: 0 28px 28px 0;
  background: rgba(255, 0, 110, 0.08);
  color: #f0e8f3;
}

.prose blockquote p:last-child {
  margin-bottom: 0;
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 22px 0;
  font-size: 1rem;
}

.prose th,
.prose td {
  padding: 11px 12px;
  border: 1px solid var(--line-soft);
  text-align: left;
}

.prose th {
  color: #fff;
  background: rgba(255, 0, 110, 0.14);
  font-weight: 600;
}

.prose code {
  font-family: "Courier New", ui-monospace, monospace;
  font-size: 0.9375rem;
  color: #ffd0e0;
  background: rgba(255, 0, 110, 0.14);
  padding: 1px 6px;
  border-radius: 8px;
}

/* 页脚 */
.ftr {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 44px 34px;
  padding: 78px 6vw 26px;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(26, 26, 46, 0.94), rgba(8, 8, 16, 1));
}

.ftr > article {
  min-width: 0;
}

.ftr h2 {
  margin: 8px 0 14px;
  font-family: var(--fd);
  font-size: 1.5rem;
  font-weight: 600;
  color: #fff;
}

.ftr__brandcol small {
  margin-bottom: 2px;
}

.ftr__brand {
  margin: 0;
  font-family: var(--fd);
  font-weight: 700;
  font-size: clamp(2.3rem, 7.6vw, 5.2rem);
  line-height: 0.94;
  letter-spacing: 0.01em;
  color: #fff;
  text-shadow: var(--glow-rose), var(--glow-red);
  word-break: break-word;
}

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

.ftr__menu li + li {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.ftr__menu a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 4px 0;
  font-size: 1rem;
  color: var(--ice);
  transition: color 0.2s, transform 0.2s;
}

.ftr__menu a:hover {
  color: var(--rose);
  transform: translateX(5px);
}

.ftr__p {
  margin: 0;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--muted);
}

.ftr .copy {
  grid-column: 1 / -1;
  margin: 8px 0 0;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.9375rem;
  letter-spacing: 0.08em;
  color: #8f8aab;
}

/* 回到顶部 */
.totop {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 65;
  min-height: 46px;
  padding: 0 20px;
  border: 1px solid var(--line);
  border-radius: 28px;
  font-family: var(--fb);
  font-size: 0.9375rem;
  letter-spacing: 0.16em;
  color: #fff;
  background: rgba(16, 14, 30, 0.9);
  box-shadow: 0 0 20px rgba(255, 0, 110, 0.32);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.3s, transform 0.3s, visibility 0.3s, box-shadow 0.3s;
}

.totop.is-on {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.totop:hover {
  box-shadow: 0 0 32px rgba(255, 0, 110, 0.6);
}

/* 窄屏 */
@media (max-width: 960px) {
  .grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 34px;
    padding-top: 46px;
  }

  .rail {
    position: static;
  }

  .rail__menu {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 16px;
  }

  .rail__menu li + li {
    border-top: 0;
  }

  .prose {
    max-width: none;
  }

  .ftr {
    grid-template-columns: 1fr 1fr;
    padding-top: 56px;
  }

  .ftr__brandcol {
    grid-column: 1 / -1;
  }

  .ftr .copy {
    grid-column: 1 / -1;
  }
}

@media (max-width: 640px) {
  body {
    font-size: 16px;
  }

  .topbar {
    padding: 8px 5vw;
  }

  .topbar__txt {
    font-size: 0.75rem;
    letter-spacing: 0.1em;
  }

  .hdr {
    padding: 12px 5vw;
  }

  .hero {
    min-height: 84vh;
    min-height: 84svh;
    padding: 0 5vw 9vh;
    justify-content: flex-start;
  }

  .hero__text {
    max-width: 100%;
    text-align: left;
  }

  .grid {
    padding: 38px 5vw 64px;
    gap: 26px;
  }

  .prose > article {
    padding: 26px 20px 28px;
  }

  .ftr {
    grid-template-columns: 1fr;
    gap: 30px;
    padding: 48px 5vw 22px;
  }

  .totop {
    right: 12px;
    bottom: 12px;
  }
}

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

  body::before,
  .hero__pic,
  .hero__h1 {
    animation: none;
  }

  * {
    transition-duration: 0.01ms !important;
  }
}

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