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

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

:root {
  --red: #ff0000;
  --pink: #ff1493;
  --ink: #261717;
  --text: #fff5f1;
  --dim: rgba(255, 245, 241, 0.68);
  --block: rgba(255, 255, 255, 0.06);
  --r: 18px;
}

html {
  background: var(--ink);
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
}

body {
  margin: 0;
  background: transparent;
  color: var(--text);
  font: 400 17px/1.7 Barlow, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
  overflow-x: hidden;
  overflow-wrap: break-word;
  position: relative;
}

body.is-locked { overflow: hidden; }

body::before {
  content: "";
  position: fixed;
  inset: -25%;
  z-index: -1;
  background:
    radial-gradient(42% 38% at 18% 16%, rgba(255, 0, 0, 0.62), transparent 62%),
    radial-gradient(38% 42% at 82% 12%, rgba(255, 20, 147, 0.55), transparent 64%),
    radial-gradient(52% 48% at 62% 82%, rgba(255, 20, 147, 0.36), transparent 66%),
    radial-gradient(46% 44% at 12% 86%, rgba(255, 0, 0, 0.44), transparent 66%),
    conic-gradient(from 210deg at 50% 50%, rgba(255, 0, 0, 0.3), rgba(255, 20, 147, 0.28), rgba(38, 23, 23, 0.7), rgba(255, 0, 0, 0.3));
  background-size: 200% 200%, 200% 200%, 200% 200%, 200% 200%, 100% 100%;
  filter: saturate(1.25) blur(28px);
  animation: drift 11s ease-in-out infinite alternate;
  pointer-events: none;
}

@keyframes drift {
  from { background-position: 0% 0%, 100% 0%, 50% 100%, 0% 100%, 0 0; }
  to { background-position: 34% 22%, 66% 30%, 40% 62%, 22% 68%, 0 0; }
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

h1, h2, h3 {
  font-family: "Barlow Condensed", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: 0.01em;
  margin: 0 0 0.5em;
}

/* ---------- 顶部 ---------- */

.masthead {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(38, 23, 23, 0.7);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  backdrop-filter: blur(16px) saturate(1.4);
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
}

.ticker {
  display: flex;
  justify-content: center;
  padding: 5px 16px;
  background: linear-gradient(90deg, var(--red), var(--pink));
  color: #fff;
  font-family: "Barlow Condensed", system-ui, sans-serif;
  font-size: 16px;
  letter-spacing: 0.16em;
  line-height: 1.5;
}

.ticker p {
  margin: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.masthead-row {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 10px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 6px 8px;
}

.rail p {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 2px;
  margin: 0;
}

.rail-l p { justify-content: flex-start; }
.rail-r p { justify-content: flex-end; }

.rail a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 10px;
  font-size: 16px;
  color: var(--dim);
  border-radius: 10px;
  white-space: nowrap;
  transition: color 0.2s ease, background 0.2s ease;
}

.rail a:hover { color: #fff; background: rgba(255, 255, 255, 0.12); }

.rail-r { margin-right: 46px; }

.wordmark {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 12px;
  font-family: "Barlow Condensed", system-ui, sans-serif;
  font-size: 1.55rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  background: linear-gradient(96deg, #fff 10%, #ffd6e6 90%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.burger {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  min-height: 44px;
  min-width: 44px;
  padding: 0 12px;
  border: 0;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.13);
  color: #fff;
  font: inherit;
  font-size: 16px;
  cursor: pointer;
  transition: background 0.2s ease;
}

.burger:hover { background: rgba(255, 255, 255, 0.24); }

/* ---------- 全屏遮罩菜单 ---------- */

.veil {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  align-content: center;
  padding: 64px 20px 40px;
  overflow-y: auto;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease;
  background:
    radial-gradient(58% 48% at 18% 10%, rgba(255, 0, 0, 0.6), transparent 62%),
    radial-gradient(52% 50% at 86% 84%, rgba(255, 20, 147, 0.55), transparent 64%),
    rgba(22, 12, 12, 0.97);
}

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

.veil-close {
  position: absolute;
  top: 16px;
  right: 16px;
  min-height: 44px;
  padding: 0 16px;
  border: 0;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  font: inherit;
  font-size: 16px;
  cursor: pointer;
}

.veil-nav p {
  display: grid;
  gap: 8px;
  max-width: 540px;
  margin: 0 auto;
}

.veil-link {
  display: block;
  padding: 14px 18px;
  min-height: 52px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.09);
  font-family: "Barlow Condensed", system-ui, sans-serif;
  font-size: 1.45rem;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.4s ease, transform 0.4s ease, background 0.2s ease;
}

.veil.is-open .veil-link { opacity: 1; transform: none; }
.veil-link:hover { background: linear-gradient(90deg, var(--red), var(--pink)); }

.veil.is-open .veil-link:nth-child(1) { transition-delay: 0.04s; }
.veil.is-open .veil-link:nth-child(2) { transition-delay: 0.08s; }
.veil.is-open .veil-link:nth-child(3) { transition-delay: 0.12s; }
.veil.is-open .veil-link:nth-child(4) { transition-delay: 0.16s; }
.veil.is-open .veil-link:nth-child(5) { transition-delay: 0.2s; }
.veil.is-open .veil-link:nth-child(6) { transition-delay: 0.24s; }
.veil.is-open .veil-link:nth-child(7) { transition-delay: 0.28s; }

/* ---------- 首屏 ---------- */

.hero {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 70vh;
  overflow: hidden;
  clip-path: polygon(0 0, 100% 0, 100% 86%, 0 100%);
  background:
    radial-gradient(60% 60% at 25% 20%, rgba(255, 0, 0, 0.75), transparent 62%),
    radial-gradient(55% 55% at 80% 70%, rgba(255, 20, 147, 0.7), transparent 64%),
    var(--ink);
}

.hero-art {
  position: absolute;
  inset: 0;
  margin: 0;
}

.hero-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.2) contrast(1.05);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(38, 23, 23, 0.42), rgba(38, 23, 23, 0.72) 68%, rgba(255, 20, 147, 0.5));
}

.hero-copy {
  position: relative;
  z-index: 2;
  max-width: 980px;
  padding: 26px 22px;
  text-align: center;
}

.hero-title {
  margin: 0;
  font-size: clamp(2.4rem, 9vw, 5.4rem);
  line-height: 0.98;
  letter-spacing: 0.01em;
  text-shadow: 0 8px 34px rgba(0, 0, 0, 0.55);
}

/* ---------- 内容区 ---------- */

.layout {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  align-items: start;
  gap: 34px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 46px 20px 64px;
}

.side {
  position: sticky;
  top: 112px;
  padding: 22px 18px;
  border-radius: var(--r);
  background: linear-gradient(158deg, rgba(255, 0, 0, 0.28), rgba(255, 20, 147, 0.18));
}

.side-head {
  margin: 0 0 0.15em;
  font-size: 1.55rem;
}

.subtitle {
  margin: 0 0 14px;
  font-size: 16px;
  letter-spacing: 0.06em;
  color: var(--dim);
}

.side-nav p {
  display: grid;
  gap: 2px;
  margin: 0;
}

.side-nav a {
  display: flex;
  align-items: center;
  min-height: 40px;
  padding: 8px 10px;
  border-radius: 10px;
  font-size: 16px;
  color: rgba(255, 255, 255, 0.86);
  transition: background 0.2s ease, color 0.2s ease;
}

.side-nav a:hover { background: rgba(255, 255, 255, 0.16); color: #fff; }

.article { min-width: 0; }

.article > section {
  margin: 0 0 22px;
  padding: 28px 26px;
  border-radius: var(--r);
  background: var(--block);
  scroll-margin-top: 122px;
  animation: rise 0.6s ease both;
}

.article > section:nth-child(1) { animation-delay: 0.04s; }
.article > section:nth-child(2) { animation-delay: 0.08s; }
.article > section:nth-child(3) { animation-delay: 0.12s; }
.article > section:nth-child(4) { animation-delay: 0.16s; }
.article > section:nth-child(5) { animation-delay: 0.2s; }
.article > section:nth-child(6) { animation-delay: 0.24s; }
.article > section:nth-child(7) { animation-delay: 0.28s; }

.article > section:last-child { margin-bottom: 0; }

@keyframes rise {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}

.article h2 {
  margin-top: 0;
  font-size: 1.95rem;
}

.article h3 { font-size: 1.35rem; margin-top: 1.2em; }

.article p { margin: 0 0 1em; color: rgba(255, 245, 241, 0.9); }
.article p:last-child { margin-bottom: 0; }

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

.article ul, .article ol { margin: 0 0 1em; padding-left: 1.3em; }
.article li { margin-bottom: 0.45em; }

.article figure {
  margin: 20px 0;
  border-radius: 14px;
  overflow: hidden;
}

.article figure img { width: 100%; height: auto; }

.article blockquote {
  margin: 20px 0;
  padding: 14px 18px;
  border-radius: 14px;
  background: rgba(255, 20, 147, 0.16);
}

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

section[id] { scroll-margin-top: 122px; }

/* ---------- 页脚 ---------- */

.foot {
  margin-top: 24px;
  padding: 42px 20px 18px;
  background: #150c0c;
}

.foot-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  align-items: center;
  gap: 22px;
  max-width: 1180px;
  margin: 0 auto;
}

.foot-mark {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-family: "Barlow Condensed", system-ui, sans-serif;
  font-size: 1.6rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: #fff;
}

.foot-nav p {
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
  margin: 0;
}

.foot-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 12px;
  border-radius: 10px;
  font-size: 16px;
  color: var(--dim);
  transition: color 0.2s ease, background 0.2s ease;
}

.foot-nav a:hover { color: #fff; background: rgba(255, 255, 255, 0.12); }

.foot-form {
  display: flex;
  gap: 8px;
}

.foot-form input {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 44px;
  padding: 0 14px;
  border: 0;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.11);
  color: #fff;
  font: inherit;
  font-size: 16px;
}

.foot-form input::placeholder { color: rgba(255, 245, 241, 0.55); }

.foot-form button {
  min-height: 44px;
  padding: 0 18px;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(90deg, var(--red), var(--pink));
  color: #fff;
  font: inherit;
  font-size: 16px;
  cursor: pointer;
}

.foot-end {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  max-width: 1180px;
  margin: 22px auto 0;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 16px;
  color: var(--dim);
}

.foot-end .copy { margin: 0; }

.totop {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 12px;
  border-radius: 10px;
  transition: background 0.2s ease, color 0.2s ease;
}

.totop:hover { background: rgba(255, 255, 255, 0.12); color: #fff; }

/* ---------- 断点 ---------- */

@media (max-width: 1020px) {
  .rail { display: none; }
  .rail-r { margin-right: 0; }
}

@media (max-width: 900px) {
  .layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 22px;
    padding: 28px 16px 48px;
  }
  .side { position: static; }
  .side-nav p { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .foot-row { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .hero { clip-path: polygon(0 0, 100% 0, 100% 92%, 0 100%); }
}

@media (max-width: 560px) {
  body { font-size: 17px; }
  .article > section { padding: 22px 18px; }
  .article h2 { font-size: 1.7rem; }
  .hero { min-height: 66vh; }
  .side-nav p { grid-template-columns: minmax(0, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  body::before,
  .article > section,
  .veil-link { animation: none; }
  .veil-link { transition: none; opacity: 1; transform: none; }
  * { transition-duration: 0.001ms !important; }
}

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