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

:root {
  --red: #ff0000;
  --mag: #ff006e;
  --ink: #1a1a2e;
  --bg: #0c0a14;
  --bg2: #151226;
  --txt: #efeaf6;
  --dim: #a89ebd;
  --line: rgba(255, 0, 110, 0.28);
  --glass: rgba(255, 255, 255, 0.055);
  --r: 18px;
  --serif: "Bodoni Moda", Georgia, "Songti SC", serif;
  --sans: "Jost", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  --sidew: 236px;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background:
    radial-gradient(900px 520px at 82% -8%, rgba(255, 0, 110, 0.16), transparent 62%),
    radial-gradient(760px 480px at 6% 22%, rgba(255, 0, 0, 0.12), transparent 60%),
    linear-gradient(180deg, #100d1c 0%, var(--bg) 46%, #08070e 100%);
  background-attachment: fixed;
  color: var(--txt);
  font-family: var(--sans);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 70;
  pointer-events: none;
  background: repeating-linear-gradient(to bottom, rgba(255, 255, 255, 0.04) 0 1px, transparent 1px 3px);
  opacity: 0.6;
  mix-blend-mode: screen;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--mag); }

.vh {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- 左侧固定竖排导航 ---------- */
.side {
  position: fixed;
  inset: 0 auto 0 0;
  width: var(--sidew);
  z-index: 40;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 22px 16px 18px;
  border-right: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(26, 26, 46, 0.94), rgba(10, 9, 17, 0.97));
  backdrop-filter: blur(14px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 4px 2px;
  text-decoration: none;
  color: #fff;
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: 0.05em;
}

.brand .mark {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  box-shadow: 0 0 18px rgba(255, 0, 110, 0.6);
}

.brand-t {
  text-shadow: 0 0 16px rgba(255, 0, 110, 0.7), 0 0 2px rgba(255, 255, 255, 0.6);
}

.pills p {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.pills a {
  display: flex;
  align-items: center;
  min-height: 42px;
  padding: 9px 15px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--glass);
  color: var(--txt);
  font-size: 16px;
  line-height: 1.3;
  letter-spacing: 0.02em;
  text-decoration: none;
  transition: background 0.22s ease, color 0.22s ease, box-shadow 0.22s ease, transform 0.18s ease;
  animation: rise 0.5s both;
}

.pills a:nth-child(1) { animation-delay: 0.03s; }
.pills a:nth-child(2) { animation-delay: 0.07s; }
.pills a:nth-child(3) { animation-delay: 0.11s; }
.pills a:nth-child(4) { animation-delay: 0.15s; }
.pills a:nth-child(5) { animation-delay: 0.19s; }
.pills a:nth-child(6) { animation-delay: 0.23s; }
.pills a:nth-child(7) { animation-delay: 0.27s; }

.pills a:hover,
.pills a:focus-visible {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(100deg, var(--red), var(--mag));
  box-shadow: 0 0 22px rgba(255, 0, 110, 0.55);
  transform: translateX(2px);
}

.search {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 4px 4px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
}

.search input {
  flex: 1 1 auto;
  min-width: 0;
  border: 0;
  background: none;
  color: var(--txt);
  font: inherit;
  font-size: 16px;
  outline: none;
}

.search input::placeholder { color: var(--dim); }

.search button {
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--red), var(--mag));
  color: #fff;
  font: inherit;
  font-size: 15px;
  cursor: pointer;
  box-shadow: 0 0 16px rgba(255, 0, 110, 0.5);
}

.search button:hover { filter: brightness(1.12); }

/* ---------- 主体 ---------- */
main { margin-left: var(--sidew); }

.wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 28px 10px;
}

/* ---------- 斜切 hero ---------- */
.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: flex-end;
  min-height: 45vh;
  margin: 22px 0 36px;
  padding: 26px 30px 54px;
  overflow: hidden;
  clip-path: polygon(0 0, 100% 0, 100% 84%, 0 100%);
  background: linear-gradient(118deg, #1a1a2e 0%, #33102c 55%, #40081f 100%);
  border: 1px solid var(--line);
}

.hero-img {
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.44;
  filter: saturate(1.15) contrast(1.05);
}

.hero-word {
  position: absolute;
  top: 0.06em;
  right: -0.05em;
  margin: 0;
  z-index: -1;
  font-family: var(--serif);
  font-size: clamp(74px, 13vw, 200px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.02em;
  white-space: nowrap;
  color: transparent;
  -webkit-text-stroke: 1.4px rgba(255, 0, 110, 0.42);
  opacity: 0.9;
}

.hero-in { max-width: 22ch; }

.hero h1 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(30px, 4.6vw, 56px);
  line-height: 1.14;
  letter-spacing: 0.01em;
  color: #fff;
  text-shadow: 0 0 26px rgba(255, 0, 110, 0.5), 0 0 4px rgba(255, 255, 255, 0.35);
  animation: glitch 7s infinite steps(1);
}

/* ---------- 内容区 + 右侧栏 ---------- */
.board {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 268px;
  gap: 32px;
  align-items: start;
}

.prose {
  min-width: 0;
  padding: 26px 26px 34px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.018));
  backdrop-filter: blur(10px);
  box-shadow: 0 24px 60px -40px rgba(255, 0, 110, 0.8);
  overflow-wrap: break-word;
}

.prose section {
  padding: 28px 0;
  border-top: 1px solid rgba(255, 0, 110, 0.16);
  scroll-margin-top: 92px;
}

.prose section:first-child {
  border-top: 0;
  padding-top: 4px;
}

.prose h2 {
  position: relative;
  margin: 0 0 14px;
  padding-left: 16px;
  font-family: var(--serif);
  font-size: clamp(22px, 2.6vw, 30px);
  font-weight: 600;
  line-height: 1.3;
  color: #fff;
}

.prose h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.3em;
  width: 6px;
  height: 0.95em;
  border-radius: 3px;
  background: linear-gradient(var(--red), var(--mag));
  box-shadow: 0 0 14px var(--mag);
}

.prose h2 span { text-shadow: 0 0 18px rgba(255, 0, 110, 0.4); }

.prose h3 {
  position: relative;
  margin: 22px 0 10px;
  padding-left: 14px;
  font-size: 19px;
  font-weight: 600;
  line-height: 1.4;
  color: #ffd9e7;
}

.prose h3::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--mag);
  box-shadow: 0 0 10px var(--mag);
}

.prose p { margin: 0 0 14px; }
.prose ul,
.prose ol { margin: 0 0 16px; padding-left: 1.25em; }
.prose li { margin-bottom: 8px; }

.prose a {
  color: var(--mag);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}

.prose a:hover { color: #ff4f96; }

.prose strong { color: #fff; }

.prose blockquote {
  margin: 18px 0;
  padding: 12px 18px;
  border-left: 3px solid var(--mag);
  border-radius: 0 12px 12px 0;
  background: rgba(255, 0, 110, 0.08);
  color: #ffdcea;
}

.prose img { border-radius: 12px; margin: 14px 0; }

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

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

.prose th { background: rgba(255, 0, 110, 0.12); color: #fff; }

.prose time {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-size: 14px;
  color: var(--dim);
}

/* ---------- 侧栏 ---------- */
.rail {
  position: sticky;
  top: 20px;
  padding: 16px 14px 18px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--glass);
  backdrop-filter: blur(10px);
}

.rail-h {
  margin: 0 0 10px;
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 600;
  color: #fff;
  letter-spacing: 0.06em;
}

.rail-h span { text-shadow: 0 0 14px rgba(255, 0, 110, 0.55); }

.rail-list {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: railc;
}

.rail-list li { counter-increment: railc; }

.rail-list a {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 42px;
  padding: 6px 8px;
  border-radius: 10px;
  color: var(--dim);
  font-size: 16px;
  line-height: 1.35;
  text-decoration: none;
  transition: color 0.2s ease, background 0.2s ease;
}

.rail-list a::before {
  content: "0" counter(railc);
  font-family: var(--serif);
  font-size: 14px;
  color: var(--mag);
  letter-spacing: 0.06em;
}

.rail-list a:hover,
.rail-list a:focus-visible {
  color: #fff;
  background: rgba(255, 0, 110, 0.14);
}

/* ---------- 页脚 ---------- */
.foot {
  margin-left: var(--sidew);
  margin-top: 56px;
  padding: 42px 28px 24px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(26, 26, 46, 0.55), rgba(7, 6, 12, 0.96));
}

.cta {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 26px 28px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background:
    radial-gradient(520px 200px at 92% 0%, rgba(255, 0, 110, 0.28), transparent 70%),
    linear-gradient(100deg, #1a1a2e, #2c0d24);
}

.cta-h {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(24px, 3.4vw, 38px);
  font-weight: 600;
  line-height: 1.2;
  color: #fff;
}

.cta-h span { text-shadow: 0 0 22px rgba(255, 0, 110, 0.6); }

.cta-btn {
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  padding: 10px 26px;
  border-radius: 999px;
  background: linear-gradient(100deg, var(--red), var(--mag));
  color: #fff;
  font-size: 16px;
  letter-spacing: 0.08em;
  text-decoration: none;
  box-shadow: 0 0 22px rgba(255, 0, 110, 0.5);
  transition: transform 0.18s ease, filter 0.18s ease;
}

.cta-btn:hover { transform: translateY(-2px); filter: brightness(1.12); }

.fcol-h {
  margin: 0 0 10px;
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 600;
  color: #fff;
  letter-spacing: 0.06em;
}

.fcol-h span { text-shadow: 0 0 12px rgba(255, 0, 110, 0.5); }

.fdesc,
.fhost {
  margin: 0;
  font-size: 16px;
  line-height: 1.65;
  color: var(--dim);
  overflow-wrap: break-word;
}

.flist {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.flist a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  color: var(--dim);
  font-size: 16px;
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

.flist a:hover { color: #fff; border-bottom-color: var(--mag); }

.fbase {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 0, 110, 0.16);
  font-size: 15px;
  color: var(--dim);
}

.fbase p { margin: 0; }

.fbase a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 8px;
  color: var(--dim);
  text-decoration: none;
}

.fbase a:hover { color: #fff; }

/* ---------- 动效 ---------- */
@keyframes rise {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

@keyframes glitch {
  0%, 90%, 100% { transform: none; }
  91% { transform: translate(-2px, 1px) skewX(-2deg); text-shadow: 2px 0 var(--mag), -2px 0 #3ea8ff; }
  94% { transform: translate(2px, -1px) skewX(2deg); text-shadow: -2px 0 var(--mag), 2px 0 #3ea8ff; }
  97% { transform: none; }
}

@keyframes flash {
  0% { box-shadow: inset 0 0 0 2px rgba(255, 0, 110, 0.9); }
  100% { box-shadow: inset 0 0 0 2px rgba(255, 0, 110, 0); }
}

.prose section.flash { animation: flash 1.1s ease-out; }

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

/* ---------- 平板 ---------- */
@media (max-width: 1080px) {
  .board { grid-template-columns: minmax(0, 1fr) 236px; gap: 22px; }
  .hero-word { font-size: clamp(64px, 15vw, 150px); }
}

/* ---------- 手机 ---------- */
@media (max-width: 860px) {
  .side {
    position: sticky;
    inset: auto;
    top: 0;
    left: auto;
    width: 100%;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 10px;
    padding: 10px 14px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .brand { font-size: 20px; margin-right: auto; }

  .search {
    order: 2;
    margin-top: 0;
    flex: 1 1 150px;
    max-width: 210px;
  }

  .pills {
    order: 3;
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
    padding-bottom: 2px;
  }

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

  .pills p {
    flex-direction: row;
    gap: 8px;
    width: max-content;
  }

  .pills a {
    white-space: nowrap;
    min-height: 40px;
    padding: 8px 14px;
    font-size: 15px;
  }

  .pills a:hover { transform: none; }

  main,
  .foot { margin-left: 0; }

  .wrap { padding: 0 14px 8px; }

  .hero {
    min-height: 40vh;
    margin: 14px 0 24px;
    padding: 20px 18px 40px;
    clip-path: polygon(0 0, 100% 0, 100% 90%, 0 100%);
  }

  .hero-in { max-width: 100%; }

  .hero-word { font-size: 26vw; opacity: 0.75; }

  .board { grid-template-columns: minmax(0, 1fr); gap: 20px; }

  .prose { padding: 18px 16px 26px; }

  .prose section { scroll-margin-top: 132px; }

  .rail { position: static; }

  .foot {
    grid-template-columns: minmax(0, 1fr);
    padding: 30px 16px 22px;
    gap: 22px;
  }

  .cta { padding: 20px 18px; }
}

@media (max-width: 420px) {
  body { font-size: 16px; }
  .hero h1 { font-size: 30px; }
  .search { max-width: 100%; flex: 1 1 100%; }
  .brand { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

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