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

/* ===== 变量 ===== */
:root {
  --c-lime: #80ff00;
  --c-green: #00ff00;
  --c-dark: #1f2617;
  --c-dark2: #161d0f;
  --c-dark3: #2a3320;
  --c-lime-dim: rgba(128,255,0,0.12);
  --c-lime-mid: rgba(128,255,0,0.35);
  --c-glass: rgba(31,38,23,0.72);
  --c-text: #e8f0d8;
  --c-text-muted: #9aad7a;
  --c-border: rgba(128,255,0,0.25);
  --font-display: 'Bodoni Moda', Georgia, serif;
  --font-body: 'Jost', system-ui, sans-serif;
  --nav-h: 100px;
  --radius: 0px;
  --transition: 0.25s ease;
}

/* ===== 重置 ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  background: var(--c-dark);
  color: var(--c-text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--c-lime); text-decoration: none; }
a:hover { color: var(--c-green); text-decoration: underline; }
ol, ul { list-style: none; }
button, input { font-family: inherit; }

/* ===== 滚动字幕 ===== */
.marquee-wrap {
  overflow: hidden;
  background: var(--c-lime);
  color: var(--c-dark);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 6px 0;
  white-space: nowrap;
}
.marquee-track {
  display: inline-flex;
  gap: 3rem;
  animation: marqueeScroll 20s linear infinite;
}
.marquee-wrap:hover .marquee-track { animation-play-state: paused; }
@keyframes marqueeScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ===== 站点外壳 ===== */
.site-wrapper { display: flex; flex-direction: column; min-height: 100vh; }

/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--c-dark2);
  border-bottom: 2px solid var(--c-border);
}
.header__brand-row {
  padding: 14px 24px 10px;
  border-bottom: 1px solid var(--c-border);
}
.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.brand-logo { width: 32px; height: 32px; object-fit: contain; }
.brand-name {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--c-lime);
  letter-spacing: 0.02em;
  line-height: 1.2;
}

.header__nav-row {
  padding: 0 16px;
  overflow-x: auto;
  scrollbar-width: none;
}
.header__nav-row::-webkit-scrollbar { display: none; }

nav ol {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 10px 0;
}
nav ol li a {
  display: inline-flex;
  align-items: center;
  padding: 8px 16px;
  min-height: 40px;
  background: var(--c-lime-dim);
  border: 1px solid var(--c-border);
  border-radius: 999px;
  color: var(--c-text);
  font-size: 0.875rem;
  font-weight: 500;
  white-space: nowrap;
  transition: background var(--transition), color var(--transition);
  text-decoration: none;
}
nav ol li a:hover,
nav ol li a[aria-current="page"] {
  background: var(--c-lime);
  color: var(--c-dark);
  border-color: var(--c-lime);
  text-decoration: none;
}

/* ===== Hero（首页）===== */
.hero {
  position: relative;
  width: 100%;
  height: 45vh;
  min-height: 280px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
}
.hero__media { position: absolute; inset: 0; }
.hero__bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: saturate(140%) brightness(0.75);
}
.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(31,38,23,0.85) 40%, rgba(0,255,0,0.08) 100%);
}
.hero__content {
  position: relative;
  z-index: 2;
  padding: 32px 40px;
  max-width: 720px;
}
.hero__h1 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 5vw, 3.2rem);
  font-weight: 700;
  color: #fff;
  line-height: 1.15;
  margin-bottom: 12px;
  text-shadow: 0 2px 20px rgba(0,0,0,0.6);
}
.hero__sub {
  font-size: 1rem;
  color: var(--c-text);
  margin-bottom: 20px;
  max-width: 520px;
}
.hero__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

/* ===== Sticker 徽章 ===== */
.sticker, .badge {
  display: inline-block;
  padding: 4px 10px;
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border: 2px solid var(--c-lime);
  color: var(--c-lime);
  background: rgba(31,38,23,0.8);
  border-radius: 0;
  line-height: 1.4;
}
.badge--1 { transform: rotate(-3deg); background: var(--c-lime); color: var(--c-dark); border-color: var(--c-dark); }
.badge--2 { transform: rotate(1.5deg); }
.badge--3 { transform: rotate(-1deg); background: var(--c-dark3); }
.badge--4 { transform: rotate(2deg); }

.eyebrow-tag {
  display: inline-block;
  margin-bottom: 10px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* ===== 按钮 ===== */
.btn-pill {
  display: inline-flex;
  align-items: center;
  padding: 9px 20px;
  min-height: 40px;
  background: var(--c-lime-dim);
  border: 1px solid var(--c-lime);
  border-radius: 999px;
  color: var(--c-lime);
  font-size: 0.875rem;
  font-weight: 600;
  transition: background var(--transition), color var(--transition);
  text-decoration: none;
}
.btn-pill:hover { background: var(--c-lime); color: var(--c-dark); text-decoration: none; }

.btn-chaos {
  display: inline-flex;
  align-items: center;
  padding: 12px 28px;
  min-height: 48px;
  background: var(--c-lime);
  color: var(--c-dark);
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  border: none;
  border-radius: 0;
  cursor: pointer;
  letter-spacing: 0.05em;
  transition: background var(--transition), transform 0.15s;
  text-decoration: none;
}
.btn-chaos:hover { background: var(--c-green); transform: translate(-2px,-2px); text-decoration: none; color: var(--c-dark); }

/* ===== Inner Hero（子页）===== */
.inner-hero {
  position: relative;
  width: 100%;
  height: 38vh;
  min-height: 200px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
}
.inner-hero__media { position: absolute; inset: 0; }
.inner-hero__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(130%) brightness(0.65);
}
.inner-hero__content {
  position: relative;
  z-index: 2;
  padding: 24px 40px;
}
.inner-hero__content h1 {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 4vw, 2.4rem);
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
  text-shadow: 0 2px 16px rgba(0,0,0,0.7);
}

/* ===== 页面标题条 ===== */
.page-title-bar {
  padding: 48px 40px 32px;
  background: var(--c-dark2);
  border-bottom: 2px solid var(--c-border);
  position: relative;
  overflow: hidden;
}
.page-title-bar::before {
  content: '';
  position: absolute;
  top: -40px; right: -40px;
  width: 200px; height: 200px;
  background: radial-gradient(circle, rgba(128,255,0,0.08) 0%, transparent 70%);
  pointer-events: none;
}
.page-title-bar__inner { max-width: 860px; }
.page-title-bar__inner h1 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 4vw, 2.6rem);
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
  margin-top: 8px;
}
.page-title-bar__desc {
  margin-top: 10px;
  color: var(--c-text-muted);
  font-size: 1rem;
  max-width: 600px;
}

/* ===== 布局：aside 在左，main 在右 ===== */
.content-layout {
  display: flex;
  align-items: flex-start;
  gap: 0;
  flex: 1;
  max-width: 1280px;
  margin: 0 auto;
  width: 100%;
  padding: 0;
}

.site-aside {
  width: 240px;
  flex-shrink: 0;
  padding: 32px 20px;
  border-right: 1px solid var(--c-border);
  position: sticky;
  top: var(--nav-h);
  max-height: calc(100vh - var(--nav-h));
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--c-border) transparent;
}

.aside-block { margin-bottom: 28px; }
.aside-title {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--c-lime);
  margin-bottom: 12px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--c-border);
}
.aside-title span { display: inline; }
.aside-list { display: flex; flex-direction: column; gap: 4px; }
.aside-list li a {
  display: block;
  padding: 7px 10px;
  font-size: 0.875rem;
  color: var(--c-text-muted);
  border-left: 2px solid transparent;
  transition: color var(--transition), border-color var(--transition), background var(--transition);
  text-decoration: none;
  line-height: 1.4;
}
.aside-list li a:hover,
.aside-list li.aside-list__item--active a {
  color: var(--c-lime);
  border-left-color: var(--c-lime);
  background: var(--c-lime-dim);
  text-decoration: none;
}

.site-main {
  flex: 1;
  min-width: 0;
  padding: 40px 40px 48px;
}

/* ===== article / div 契约 ===== */
article { display: block; }
.content-section { margin-bottom: 48px; }

/* ===== 正文 ===== */
.prose { font-size: 1rem; line-height: 1.8; color: var(--c-text); }
.prose h2, .prose h3 {
  font-family: var(--font-display);
  color: #fff;
  margin: 2em 0 0.6em;
  line-height: 1.25;
}
.prose h2 { font-size: 1.5rem; }
.prose h3 { font-size: 1.2rem; color: var(--c-lime); }
.prose p { margin-bottom: 1.1em; }
.prose ul, .prose ol { padding-left: 1.4em; margin-bottom: 1em; }
.prose li { margin-bottom: 0.4em; }
.prose strong { color: var(--c-lime); font-weight: 600; }
.prose a { color: var(--c-lime); text-decoration: underline; }
.prose a:hover { color: var(--c-green); }
.prose blockquote {
  border-left: 3px solid var(--c-lime);
  padding: 8px 16px;
  margin: 1.5em 0;
  background: var(--c-lime-dim);
  color: var(--c-text-muted);
  font-style: italic;
}

/* ===== 元数据栏 ===== */
.meta-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  color: var(--c-text-muted);
  margin-bottom: 20px;
  padding: 8px 12px;
  border-left: 3px solid var(--c-lime);
  background: var(--c-lime-dim);
}
.meta-bar__sep { opacity: 0.5; }

/* ===== 区块标题 ===== */
.section-title {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--c-lime);
  line-height: 1.25;
}
.section-title span { display: inline; }

/* ===== 卡片 ===== */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}
.cards-grid--small {
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}

.glass-card {
  background: var(--c-glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
  will-change: transform;
}
.glass-card:hover {
  transform: translate(-3px, -3px);
  border-color: var(--c-lime);
  box-shadow: 4px 4px 0 var(--c-lime);
}

.card__media img { width: 100%; height: 160px; object-fit: cover; }
.card__body { padding: 16px; }
.card__title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 6px;
  line-height: 1.3;
}
.card__title span { display: inline; }
.card__date { display: block; font-size: 0.75rem; color: var(--c-text-muted); margin-bottom: 8px; }
.card__desc { font-size: 0.875rem; color: var(--c-text-muted); margin-bottom: 14px; line-height: 1.5; }

/* ===== 表格 ===== */
.table-wrap { overflow-x: auto; }
.guide-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}
.guide-table th {
  text-align: left;
  padding: 10px 14px;
  background: var(--c-dark3);
  color: var(--c-lime);
  font-weight: 600;
  border-bottom: 2px solid var(--c-lime);
  white-space: nowrap;
}
.guide-table td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--c-border);
  color: var(--c-text);
  vertical-align: top;
}
.guide-table tr:hover td { background: var(--c-lime-dim); }
.guide-table a { color: var(--c-lime); }
.guide-table a:hover { color: var(--c-green); }
.guide-table time { color: var(--c-text-muted); font-size: 0.8rem; white-space: nowrap; }

/* ===== 相关列表 ===== */
.related-list { display: flex; flex-direction: column; gap: 8px; }
.related-list li { padding-left: 0; }
.related-list li a {
  display: block;
  padding: 10px 14px;
  background: var(--c-lime-dim);
  border: 1px solid var(--c-border);
  color: var(--c-text);
  font-size: 0.9rem;
  transition: border-color var(--transition), color var(--transition);
  text-decoration: none;
}
.related-list li a:hover {
  border-color: var(--c-lime);
  color: var(--c-lime);
  text-decoration: none;
}

/* ===== Footer ===== */
.site-footer {
  background: var(--c-dark2);
  border-top: 2px solid var(--c-border);
  padding: 0;
  margin-top: auto;
}
.footer__top {
  padding: 24px 40px 16px;
  border-bottom: 1px solid var(--c-border);
}
.footer__brand {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--c-lime);
}
.footer__cols {
  display: flex;
  gap: 0;
  padding: 28px 40px;
}
.footer__cols dl {
  flex: 1;
  padding-right: 24px;
}
.footer__cols dl:not(:last-child) {
  border-right: 1px solid var(--c-border);
  margin-right: 24px;
}
.footer__cols dt {
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--c-lime);
  margin-bottom: 12px;
}
.footer__cols dd {
  margin-bottom: 6px;
}
.footer__cols dd a {
  color: var(--c-text-muted);
  font-size: 0.875rem;
  text-decoration: none;
  display: inline-block;
  padding: 2px 0;
  min-height: 24px;
  transition: color var(--transition);
}
.footer__cols dd a:hover { color: var(--c-lime); }

.footer-form { display: flex; flex-direction: column; gap: 8px; margin-top: 4px; }
.footer-form__label { font-size: 0.8rem; color: var(--c-text-muted); }
.footer-form__input {
  padding: 9px 12px;
  background: var(--c-dark3);
  border: 1px solid var(--c-border);
  border-radius: 0;
  color: var(--c-text);
  font-size: 0.875rem;
  min-height: 40px;
  width: 100%;
  transition: border-color var(--transition);
}
.footer-form__input:focus { outline: none; border-color: var(--c-lime); }
.footer-form__btn {
  padding: 9px 16px;
  min-height: 40px;
  background: var(--c-lime);
  color: var(--c-dark);
  border: none;
  border-radius: 0;
  font-weight: 700;
  font-size: 0.875rem;
  cursor: pointer;
  transition: background var(--transition);
  align-self: flex-start;
}
.footer-form__btn:hover { background: var(--c-green); }

.footer__bar {
  padding: 14px 40px;
  border-top: 1px solid var(--c-border);
  font-size: 0.8rem;
  color: var(--c-text-muted);
}

/* ===== Scroll Reveal ===== */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ===== Parallax ===== */
.parallax-layer {
  will-change: transform;
}

/* ===== 响应式 ===== */
@media (max-width: 900px) {
  .content-layout { flex-direction: column; }
  .site-aside {
    width: 100%;
    position: static;
    max-height: none;
    border-right: none;
    border-bottom: 1px solid var(--c-border);
    padding: 20px 16px;
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
  }
  .aside-block { margin-bottom: 0; flex: 1; min-width: 160px; }
  .site-main { padding: 24px 16px 32px; }
  .footer__cols { flex-direction: column; gap: 24px; padding: 20px 16px; }
  .footer__cols dl { border-right: none !important; margin-right: 0 !important; padding-right: 0; }
  .footer__top { padding: 16px; }
  .footer__bar { padding: 12px 16px; }
}

@media (max-width: 600px) {
  .hero { height: 45vh; min-height: 300px; }
  .hero__content { padding: 20px 16px; }
  .hero__h1 { font-size: 1.6rem; }
  .inner-hero { height: 34vh; min-height: 180px; }
  .inner-hero__content { padding: 16px; }
  .inner-hero__content h1 { font-size: 1.3rem; }
  .page-title-bar { padding: 28px 16px 20px; }
  .page-title-bar__inner h1 { font-size: 1.4rem; }
  .header__brand-row { padding: 10px 12px 8px; }
  .brand-name { font-size: 1rem; }
  nav ol { gap: 4px; padding: 8px 0; }
  nav ol li a { padding: 8px 12px; font-size: 0.8rem; min-height: 40px; }
  .cards-grid { grid-template-columns: 1fr; }
  .section-title { font-size: 1.1rem; }
}

/* ===== prefers-reduced-motion ===== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .marquee-track { animation: none; }
}
