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

:root {
  --red: #ff0000;
  --rose: #ff006e;
  --ink: #1a1a2e;
  --bg: #0a0a16;
  --bg2: #11111f;
  --tx: #e9ecff;
  --dim: #9ba1c9;
  --glass: rgba(26, 26, 46, 0.55);
  --edge: rgba(255, 0, 110, 0.26);
  --head: 62px;
  --shadow: 0 0 0 1px rgba(255, 0, 110, 0.14), 0 20px 44px -26px rgba(255, 0, 110, 0.65);
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--tx);
  font: 400 17px/1.7 Inter, system-ui, -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(58% 46% at 86% -4%, rgba(255, 0, 110, 0.18), transparent 72%),
    radial-gradient(48% 40% at 6% 8%, rgba(255, 0, 0, 0.13), transparent 72%),
    linear-gradient(rgba(122, 132, 255, 0.07) 1px, transparent 1px) 0 0 / 100% 44px,
    linear-gradient(90deg, rgba(122, 132, 255, 0.07) 1px, transparent 1px) 0 0 / 44px 100%;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 60;
  pointer-events: none;
  opacity: 0.28;
  background: repeating-linear-gradient(180deg, rgba(0, 0, 0, 0.5) 0 1px, transparent 1px 3px);
}

body.lock { overflow: hidden; }

a { color: inherit; }
img { max-width: 100%; }

/* 顶部 */
.site-head {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 12px;
  height: var(--head);
  padding: 0 14px;
  background: rgba(10, 10, 22, 0.86);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--edge);
}

.lockup {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  text-decoration: none;
  flex: 0 0 auto;
}

.lockup .mark {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  object-fit: cover;
}

.wordmark {
  font-weight: 700;
  font-size: 17px;
  letter-spacing: 0.06em;
  color: #fff;
  text-shadow: 0 0 14px rgba(255, 0, 110, 0.85), 0 0 34px rgba(255, 0, 0, 0.4);
}

.head-nav {
  margin: 0;
  min-width: 0;
  flex: 1 1 auto;
  overflow: hidden;
}

.head-nav p {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 2px;
  white-space: nowrap;
}

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

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

.head-tools {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  flex: 0 0 auto;
}

.cta {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 15px;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  color: #0a0a16;
  background: linear-gradient(96deg, var(--red), var(--rose));
  box-shadow: 0 0 20px rgba(255, 0, 110, 0.5);
}

.burger {
  min-width: 46px;
  min-height: 44px;
  padding: 0 12px;
  font: 500 16px/1 Inter, system-ui, sans-serif;
  color: var(--tx);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--edge);
  border-radius: 8px;
  cursor: pointer;
}

.burger:hover { border-color: var(--rose); box-shadow: 0 0 16px rgba(255, 0, 110, 0.45); }

/* 锚点条 */
.rail {
  position: sticky;
  top: var(--head);
  z-index: 30;
  overflow-x: auto;
  scrollbar-width: none;
  background: rgba(12, 12, 24, 0.9);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 0, 110, 0.16);
}

.rail::-webkit-scrollbar { display: none; }

.rail p {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  white-space: nowrap;
}

.rail a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 13px;
  font-size: 16px;
  color: var(--dim);
  text-decoration: none;
  border: 1px solid rgba(255, 0, 110, 0.26);
  border-radius: 999px;
  transition: color 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.rail a:hover {
  color: #fff;
  border-color: var(--rose);
  box-shadow: 0 0 16px rgba(255, 0, 110, 0.5);
}

/* 全屏菜单 */
.menu {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(8, 8, 18, 0.96);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.28s ease, visibility 0.28s ease;
}

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

.menu-list {
  list-style: none;
  counter-reset: m;
  margin: 0;
  padding: 0 16px;
  width: min(520px, 92vw);
}

.menu-list li { counter-increment: m; }

.menu-list a {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 52px;
  padding: 12px 6px;
  font-size: 20px;
  text-decoration: none;
  color: var(--tx);
  border-bottom: 1px solid rgba(255, 0, 110, 0.2);
}

.menu-list a::before {
  content: counter(m, decimal-leading-zero);
  font: 500 16px/1 ui-monospace, "SFMono-Regular", monospace;
  color: var(--rose);
  text-shadow: 0 0 10px var(--rose);
}

.menu-list a:hover { color: #fff; text-shadow: 0 0 16px var(--rose); }

/* 舞台 */
.stage {
  position: relative;
  z-index: 1;
  max-width: 1180px;
  margin: 0 auto;
  padding: 22px 16px 0;
}

.post {
  display: grid;
  grid-template-columns: 214px minmax(0, 1fr);
  align-items: start;
  gap: 0 30px;
}

/* 侧栏 */
.side {
  grid-column: 1;
  grid-row: 1 / span 60;
  align-self: start;
  position: sticky;
  top: calc(var(--head) + 60px);
  padding: 16px 14px;
  background: var(--glass);
  border: 1px solid rgba(255, 0, 110, 0.22);
  border-radius: 10px;
  -webkit-backdrop-filter: blur(9px);
  backdrop-filter: blur(9px);
  box-shadow: var(--shadow);
}

.side-title {
  margin: 0 0 9px;
  font: 600 16px/1.4 Inter, system-ui, sans-serif;
  letter-spacing: 0.16em;
  color: var(--rose);
  text-shadow: 0 0 12px rgba(255, 0, 110, 0.6);
}

.side hr {
  height: 0;
  border: 0;
  border-top: 1px solid rgba(255, 0, 110, 0.3);
  margin: 0 0 10px;
}

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

.side-list a {
  display: flex;
  align-items: center;
  min-height: 40px;
  font-size: 16px;
  color: var(--dim);
  text-decoration: none;
}

.side-list a:hover { color: #fff; text-shadow: 0 0 12px var(--rose); }

/* 首屏 */
.post > .hero {
  grid-column: 2;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  min-height: 70vh;
  padding: 34px 24px 30px;
  text-align: right;
  border-radius: 10px;
  overflow: hidden;
  scroll-margin-top: calc(var(--head) + 62px);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.55;
  background-image: radial-gradient(rgba(255, 0, 110, 0.4) 1px, transparent 1.7px);
  background-size: 24px 24px;
  -webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.95), transparent 78%);
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.95), transparent 78%);
}

.kicker {
  margin: 0 0 12px;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.24em;
  color: var(--rose);
  text-shadow: 0 0 14px rgba(255, 0, 110, 0.8);
}

.hero h1 {
  position: relative;
  margin: 0;
  font-size: clamp(2.3rem, 6.4vw, 4.4rem);
  line-height: 1.08;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #fff;
  text-shadow: 0 0 20px rgba(255, 0, 110, 0.6), 0 0 52px rgba(255, 0, 0, 0.3);
}

.hero h1::before,
.hero h1::after {
  content: attr(data-text);
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  text-align: right;
  pointer-events: none;
}

.hero h1::before {
  color: var(--rose);
  clip-path: inset(0 0 54% 0);
  opacity: 0.85;
  animation: gl-a 5s steps(2, end) infinite;
}

.hero h1::after {
  color: var(--red);
  clip-path: inset(52% 0 0 0);
  opacity: 0.8;
  animation: gl-b 5s steps(2, end) infinite;
}

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

@keyframes gl-b {
  0%, 90%, 100% { transform: translate(0, 0); }
  93% { transform: translate(3px, -1px); }
  96% { transform: translate(-2px, 1px); }
  98% { transform: translate(2px, 0); }
}

.lede {
  margin: 16px 0 24px;
  max-width: 52ch;
  align-self: flex-end;
  font-size: 17px;
  color: #cdd3ef;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0 24px;
  border-radius: 999px;
  font-size: 17px;
  font-weight: 700;
  text-decoration: none;
  color: #0a0a16;
  background: linear-gradient(96deg, var(--red), var(--rose));
  box-shadow: 0 0 26px rgba(255, 0, 110, 0.6);
}

.hero-art-wrap {
  width: 100%;
  margin-top: 30px;
}

.hero-art {
  width: 100%;
  max-height: 340px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid rgba(255, 0, 110, 0.3);
  box-shadow: 0 0 0 1px rgba(255, 0, 0, 0.12), 0 34px 64px -34px rgba(255, 0, 110, 0.85);
  will-change: transform;
}

/* 正文块 */
.post > section {
  grid-column: 2;
  position: relative;
  margin-bottom: 22px;
  padding: 26px 24px;
  scroll-margin-top: calc(var(--head) + 64px);
  background: linear-gradient(180deg, rgba(26, 26, 46, 0.74), rgba(17, 17, 31, 0.58));
  border: 1px solid rgba(255, 0, 110, 0.16);
  border-radius: 10px;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
}

.post > section h2 {
  margin: 0 0 12px;
  font-size: clamp(1.35rem, 2.6vw, 1.8rem);
  line-height: 1.3;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #fff;
  text-shadow: 0 0 18px rgba(255, 0, 110, 0.45);
}

.post > section h3 {
  margin: 24px 0 10px;
  font-size: 1.18rem;
  line-height: 1.4;
  color: #fff;
}

.post > section hr {
  height: 0;
  border: 0;
  border-top: 1px solid rgba(255, 0, 110, 0.32);
  margin: 0 0 16px;
}

.post > section p { margin: 0 0 14px; color: #dfe3f7; }
.post > section ul,
.post > section ol { margin: 0 0 16px; padding-left: 1.2em; }
.post > section li { margin: 8px 0; color: #dfe3f7; }
.post > section strong { color: #fff; }
.post > section a {
  color: #ff6aa2;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.post > section a:hover { color: #fff; }
.post > section img {
  height: auto;
  border-radius: 10px;
  border: 1px solid rgba(255, 0, 110, 0.24);
  margin: 6px 0 14px;
}
.post > section blockquote {
  margin: 0 0 16px;
  padding: 4px 0 4px 16px;
  border-left: 2px solid var(--rose);
  color: #cfd5f2;
}

/* 页脚 */
.site-foot {
  position: relative;
  z-index: 1;
  margin-top: 44px;
  padding: 54px 16px 26px;
  border-top: 1px solid var(--edge);
  background: linear-gradient(180deg, rgba(255, 0, 110, 0.07), rgba(10, 10, 22, 0));
}

.foot-inner { max-width: 1080px; margin: 0 auto; }

.giant {
  margin: 0 0 34px;
  font-size: clamp(2.4rem, 12.5vw, 7rem);
  line-height: 0.94;
  font-weight: 700;
  letter-spacing: -0.045em;
  word-break: break-word;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 0, 110, 0.62);
  text-shadow: 0 0 46px rgba(255, 0, 0, 0.32);
}

.foot-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 26px 18px;
}

.foot-grid dl { margin: 0; }

.foot-grid dt {
  margin-bottom: 8px;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--rose);
}

.foot-grid dd {
  margin: 0;
  font-size: 16px;
  color: var(--dim);
}

.foot-grid dd a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  text-decoration: none;
  color: var(--dim);
}

.foot-grid dd a:hover { color: #fff; text-shadow: 0 0 12px var(--rose); }

.foot-base {
  margin-top: 32px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  text-align: center;
  font-size: 16px;
  color: var(--dim);
}

.foot-base p { margin: 0; }

/* 滚动显现 */
.js .reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.js .reveal.in {
  opacity: 1;
  transform: none;
}

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

/* 窄屏 */
@media (max-width: 1049px) {
  .head-nav { display: none; }
}

@media (max-width: 899px) {
  .post { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .post > section { grid-column: 1; }
  .post > .hero { grid-column: 1; min-height: auto; padding: 26px 18px; }
  .side {
    grid-column: 1;
    grid-row: auto;
    position: static;
    margin-bottom: 18px;
    padding: 12px 12px 14px;
    overflow-x: auto;
    scrollbar-width: none;
  }
  .side::-webkit-scrollbar { display: none; }
  .side-list { display: flex; gap: 8px; }
  .side-list a {
    min-height: 44px;
    padding: 0 13px;
    border: 1px solid rgba(255, 0, 110, 0.26);
    border-radius: 999px;
    white-space: nowrap;
  }
  .foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .giant { margin-bottom: 26px; }
  .post > section { padding: 20px 16px; }
  .hero-art { max-height: 240px; }
}

@media (max-width: 520px) {
  .wordmark { font-size: 16px; letter-spacing: 0.02em; }
  .head-tools { gap: 6px; }
  .cta { padding: 0 12px; font-size: 16px; }
  .stage { padding: 16px 12px 0; }
  .hero h1 { font-size: clamp(2rem, 9vw, 2.8rem); }
}

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