@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;500;600&family=Cormorant+Garamond:ital,wght@0,300;0,500;0,700;1,300;1,500&family=Crimson+Pro:ital,wght@0,300;0,400;0,600;1,300;1,400&display=swap');

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

:root {
  --acid: #80ff00;
  --neon: #00ff00;
  --ink: #1f2617;
  --ink-deep: #12160c;
  --ink-soft: #252e1b;
  --paper: #f3ffe4;
  --mute: #a8bd92;
  --edge: rgba(128, 255, 0, 0.24);
  --display: 'Cinzel', 'Cormorant Garamond', 'Crimson Pro', 'Songti SC', 'Noto Serif SC', serif;
  --body: 'Crimson Pro', 'Cormorant Garamond', 'Songti SC', 'Noto Serif SC', 'SimSun', serif;
}

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

body {
  margin: 0;
  padding-bottom: 122px;
  background:
    radial-gradient(circle at 10% 6%, rgba(128, 255, 0, 0.12), transparent 44%),
    radial-gradient(circle at 92% 58%, rgba(0, 255, 0, 0.09), transparent 46%),
    var(--ink);
  color: var(--paper);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.72;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.055;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.82' numOctaves='3'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
}

body.locked {
  overflow: hidden;
}

img {
  max-width: 100%;
}

a {
  color: var(--acid);
}

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

h1,
h2,
h3 {
  font-weight: 500;
  text-wrap: balance;
}

/* ---- 顶部跑马灯 ---- */
.ticker {
  overflow: hidden;
  border-bottom: 2px solid var(--ink-deep);
  background: var(--acid);
  color: var(--ink-deep);
  font-family: var(--display);
  font-size: 16px;
  letter-spacing: 0.2em;
  padding: 5px 0;
}

.ticker-track {
  display: flex;
  gap: 2.2rem;
  white-space: nowrap;
  width: max-content;
  animation: slide 24s linear infinite;
}

@keyframes slide {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---- 底部固定导航 ---- */
.dock {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 60;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 6px 14px 8px;
  background: var(--ink-deep);
  border-top: 2px solid var(--acid);
  box-shadow: 0 -10px 26px -14px #000;
}

.dock-brand,
.dock-tools {
  position: relative;
  z-index: 2;
}

.dock-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 2px;
  color: var(--acid);
  text-decoration: none;
  font-family: var(--display);
  font-size: 16px;
  letter-spacing: 0.12em;
  border-bottom: 1px dashed var(--edge);
}

.dock-mark {
  border-radius: 3px;
  transform: rotate(-6deg);
}

.dock-tools {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-top: 2px;
}

.dock-search {
  display: flex;
  flex: 1 1 auto;
  min-width: 0;
  gap: 6px;
}

.dock-search input {
  flex: 1 1 auto;
  min-width: 0;
  height: 42px;
  padding: 0 10px;
  font-family: var(--body);
  font-size: 16px;
  color: var(--paper);
  background: var(--ink-soft);
  border: 1px solid var(--edge);
  border-radius: 4px;
}

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

.dock-search button,
.dock-burger {
  height: 42px;
  padding: 0 14px;
  font-family: var(--body);
  font-size: 16px;
  color: var(--ink-deep);
  background: var(--acid);
  border: 2px solid var(--ink-deep);
  border-radius: 4px;
  box-shadow: 2px 2px 0 rgba(128, 255, 0, 0.45);
  cursor: pointer;
  transition: transform 0.14s ease, background 0.14s ease;
}

.dock-burger {
  background: var(--ink-soft);
  color: var(--acid);
  border-color: var(--acid);
  flex: 0 0 auto;
}

.dock.menu-open .dock-burger {
  background: var(--acid);
  color: var(--ink-deep);
}

.dock-search button:hover,
.dock-burger:hover {
  transform: translate(-1px, -1px) rotate(-1.2deg);
}

/* 全屏遮罩菜单 */
.dock-menu {
  position: fixed;
  inset: 0;
  z-index: 1;
  display: none;
  margin: 0;
  padding: 12vh 20px 140px;
  list-style: none;
  overflow-y: auto;
  background:
    radial-gradient(circle at 82% 10%, rgba(0, 255, 0, 0.18), transparent 52%),
    repeating-radial-gradient(circle at 14% 88%, rgba(128, 255, 0, 0.1) 0 2px, transparent 2px 12px),
    var(--ink-deep);
}

.dock.menu-open .dock-menu {
  display: block;
}

.dock-menu li + li {
  border-top: 1px dashed rgba(128, 255, 0, 0.28);
}

.dock-menu a {
  display: flex;
  align-items: baseline;
  gap: 0.7rem;
  padding: 13px 6px;
  min-height: 52px;
  text-decoration: none;
  color: var(--paper);
  font-family: var(--display);
  font-size: clamp(1.15rem, 4.4vw, 1.55rem);
  transform: rotate(-0.7deg);
}

.dock-menu a:hover {
  color: var(--acid);
}

.idx {
  font-size: 0.68em;
  letter-spacing: 0.14em;
  color: var(--acid);
}

/* ---- 主栅格 ---- */
main.page {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.4rem;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 18px 2rem;
}

main section {
  scroll-margin-top: 1.2rem;
  scroll-margin-bottom: 130px;
}

/* ---- 首屏 ---- */
.hero {
  display: flex;
  flex-direction: column;
  min-height: 100svh;
  padding: 1.4rem 0 1.2rem;
  gap: 1rem;
}

.hero-media {
  position: relative;
  flex: 0 0 auto;
  height: 32svh;
}

.hero-shot {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: 3px solid var(--acid);
  border-radius: 4px;
  transform: rotate(-1.6deg);
  filter: saturate(150%) contrast(1.05);
  box-shadow: 0 18px 36px -20px #000;
}

.hero-media::after {
  content: "";
  position: absolute;
  right: -6px;
  bottom: -8px;
  width: 74px;
  height: 26px;
  background: var(--neon);
  mix-blend-mode: multiply;
  transform: rotate(4deg);
  border-radius: 3px;
}

.hero-copy {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  gap: 0.9rem;
}

.hero-title {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(2rem, 8vw, 4.4rem);
  line-height: 1.12;
  letter-spacing: 0.01em;
  color: var(--paper);
  text-shadow: 3px 3px 0 rgba(128, 255, 0, 0.32);
}

.hero-desc {
  margin: 0;
  max-width: 44ch;
  font-size: 17px;
  color: var(--mute);
}

.hero-jump {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 22px;
  text-decoration: none;
  color: var(--ink-deep);
  background: var(--acid);
  border: 2px solid var(--ink-deep);
  border-radius: 4px;
  font-size: 16px;
  letter-spacing: 0.14em;
  transform: rotate(-1.4deg);
  box-shadow: 4px 4px 0 rgba(0, 255, 0, 0.34);
  transition: transform 0.16s ease;
}

.hero-jump:hover {
  transform: rotate(1.4deg) scale(1.03);
}

/* ---- 左栏目录 ---- */
.rail {
  order: 3;
  align-self: start;
  padding: 0.9rem 0.9rem 1rem;
  background: var(--ink-soft);
  border: 1px solid var(--edge);
  border-left: 4px solid var(--acid);
  border-radius: 4px;
  box-shadow: 0 16px 30px -22px #000;
}

.rail-title {
  margin: 0;
  font-family: var(--display);
  font-size: 1.05rem;
  letter-spacing: 0.22em;
  color: var(--acid);
}

.rail hr {
  border: 0;
  height: 6px;
  margin: 0.5rem 0 0.7rem;
  background: repeating-linear-gradient(90deg, var(--acid) 0 9px, transparent 9px 18px);
  opacity: 0.6;
}

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

.rail-list li + li {
  border-top: 1px dashed rgba(128, 255, 0, 0.2);
}

.rail-list a {
  display: flex;
  gap: 0.55rem;
  align-items: baseline;
  padding: 9px 2px;
  text-decoration: none;
  color: var(--paper);
  font-size: 16px;
  line-height: 1.5;
}

.rail-list a:hover {
  color: var(--acid);
}

.rail-stamp {
  margin: 1rem 0 0;
  padding: 4px 8px;
  display: inline-block;
  font-family: var(--display);
  font-size: 16px;
  letter-spacing: 0.16em;
  color: var(--ink-deep);
  background: var(--neon);
  border-radius: 3px;
  transform: rotate(-3deg);
}

/* ---- 正文 ---- */
.prose {
  order: 2;
  min-width: 0;
  max-width: 72ch;
}

.prose section {
  margin: 0 0 1.4rem;
  padding: 1.2rem 1.1rem 1.5rem;
  background: var(--ink-soft);
  border: 1px solid var(--edge);
  border-left: 4px solid var(--acid);
  border-radius: 4px;
  box-shadow: 0 18px 34px -26px #000;
}

.prose h2 {
  margin: 0 0 0.2rem;
  font-family: var(--display);
  font-size: clamp(1.45rem, 4.6vw, 2rem);
  line-height: 1.28;
  color: var(--acid);
  letter-spacing: 0.01em;
}

.prose h2::before {
  content: "";
  display: inline-block;
  width: 0.46em;
  height: 0.46em;
  margin-right: 0.45em;
  background: var(--neon);
  transform: rotate(45deg);
}

.prose h3 {
  margin: 1.4rem 0 0.3rem;
  font-family: var(--display);
  font-size: 1.2rem;
  color: var(--paper);
}

.prose hr {
  border: 0;
  height: 8px;
  margin: 0.45rem 0 1rem;
  background: repeating-linear-gradient(90deg, var(--acid) 0 11px, transparent 11px 22px);
  opacity: 0.55;
}

.prose p {
  margin: 0 0 0.9rem;
}

.prose ul,
.prose ol {
  margin: 0 0 1rem;
  padding-left: 1.3rem;
}

.prose li {
  margin-bottom: 0.4rem;
}

.prose a {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.prose strong {
  color: var(--neon);
}

.prose blockquote {
  margin: 1rem 0;
  padding: 0.6rem 1rem;
  border-left: 5px solid var(--neon);
  background: rgba(0, 255, 0, 0.07);
  font-style: italic;
}

.prose img {
  display: block;
  height: auto;
  margin: 1rem 0;
  border: 2px solid var(--acid);
  border-radius: 4px;
  filter: saturate(140%);
}

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

.prose th,
.prose td {
  padding: 8px 10px;
  border: 1px solid var(--edge);
  text-align: left;
}

.prose th {
  background: rgba(128, 255, 0, 0.14);
  color: var(--acid);
}

.prose time {
  font-variant-numeric: tabular-nums;
  color: var(--mute);
}

/* ---- 页脚 ---- */
.foot {
  max-width: 1180px;
  margin: 2rem auto 0;
  padding: 1.2rem 18px 0;
  border-top: 2px dashed var(--edge);
}

.foot-cols {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
}

.foot dl {
  margin: 0;
}

.foot dt {
  font-family: var(--display);
  font-size: 16px;
  letter-spacing: 0.16em;
  color: var(--acid);
}

.foot dd {
  margin: 4px 0 0;
  font-size: 16px;
  line-height: 1.5;
}

.foot dd a {
  display: inline-block;
  padding: 4px 0;
  min-height: 30px;
  color: var(--paper);
  text-decoration: none;
}

.foot dd a:hover {
  color: var(--acid);
}

.foot-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-top: 1rem;
  padding: 0.6rem 0;
  border-top: 1px solid rgba(128, 255, 0, 0.14);
  font-size: 16px;
  color: var(--mute);
}

.foot-bar a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 10px;
  color: var(--acid);
  text-decoration: none;
  border: 1px solid var(--edge);
  border-radius: 4px;
  transform: rotate(-1deg);
}

/* ---- 中等屏 ---- */
@media (min-width: 720px) {
  .hero {
    flex-direction: row;
    align-items: stretch;
    gap: 2rem;
  }

  .hero-media {
    flex: 1 1 46%;
    height: auto;
    min-height: 46svh;
  }

  .hero-copy {
    flex: 1 1 54%;
  }

  .foot-cols {
    gap: 1.6rem;
  }
}

/* ---- 桌面栅格 ---- */
@media (min-width: 900px) {
  body {
    font-size: 18px;
  }

  main.page {
    grid-template-columns: 230px minmax(0, 1fr);
    gap: 2rem;
    padding: 0 24px 3rem;
  }

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

  .rail {
    grid-column: 1;
    order: 0;
    position: sticky;
    top: 1.5rem;
  }

  .prose {
    grid-column: 2;
    order: 0;
  }

  .dock {
    padding: 6px 22px 10px;
  }

  .dock-menu {
    padding: 16vh 18vw 150px;
  }

  .foot {
    padding-left: 24px;
    padding-right: 24px;
  }
}

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

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

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