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

/* ── 变量 ── */
:root {
  --c-primary: #80ff00;
  --c-accent: #00ff00;
  --c-bg: #1f2617;
  --c-bg2: #151c0f;
  --c-surface: rgba(31,38,23,0.75);
  --c-glass: rgba(128,255,0,0.07);
  --c-glass-border: rgba(128,255,0,0.22);
  --c-text: #e8f5d0;
  --c-text-muted: #9ab87a;
  --c-danger: #ff3c6e;
  --c-warn: #ffd600;
  --radius-card: 10px;
  --font-main: 'Outfit', 'Work Sans', system-ui, sans-serif;
  --header-h: 64px;
  --scroll-top: 72px;
}

/* ── 重置 ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  scroll-behavior: smooth;
  font-size: 16px;
  background: var(--c-bg2);
  color: var(--c-text);
}
body.body-root {
  font-family: var(--font-main);
  line-height: 1.7;
  overflow-x: hidden;
  background: var(--c-bg);
  min-height: 100vh;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--c-primary); text-decoration: none; transition: color .2s, opacity .2s; }
a:hover { color: var(--c-accent); }
ul, ol { list-style: none; }
input, button { font-family: inherit; }
address { font-style: normal; }

/* ── 无障碍跳过 ── */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ── 全局滚动偏移（sticky nav） ── */
article[id] { scroll-margin-top: var(--scroll-top); }

/* ═══════════════════════════════════════
   页面包装
════════════════════════════════════════ */
.page-wrapper {
  position: relative;
  overflow: hidden;
}

/* ═══════════════════════════════════════
   顶部导航
════════════════════════════════════════ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(21,28,15,0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1.5px solid var(--c-glass-border);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.25rem;
  height: var(--header-h);
}
.brand-link {
  display: flex;
  align-items: center;
  gap: .5rem;
  flex-shrink: 0;
  color: var(--c-primary);
}
.logo-wrap { display: flex; align-items: center; }
.logo-img { width: 36px; height: 36px; object-fit: contain; }
.brand-text {
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: .04em;
  color: var(--c-primary);
  text-shadow: 0 0 10px var(--c-accent);
}
.main-nav { flex: 1; overflow: hidden; }
.nav-row {
  display: flex;
  flex-wrap: nowrap;
  gap: .25rem;
  align-items: center;
  overflow-x: auto;
  scrollbar-width: none;
}
.nav-row::-webkit-scrollbar { display: none; }
.nav-link {
  display: inline-flex;
  align-items: center;
  padding: .6rem .7rem;
  font-size: .875rem;
  font-weight: 500;
  color: var(--c-text);
  white-space: nowrap;
  border-radius: 6px;
  min-height: 44px;
  transition: color .2s, background .2s;
}
.nav-link:hover {
  color: var(--c-primary);
  background: var(--c-glass);
}
.cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .6rem 1.2rem;
  font-size: .9rem;
  font-weight: 700;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  background: var(--c-primary);
  color: var(--c-bg);
  letter-spacing: .03em;
  transition: background .2s, box-shadow .2s, transform .15s;
  min-height: 44px;
  white-space: nowrap;
}
.cta-btn:hover {
  background: var(--c-accent);
  box-shadow: 0 0 18px var(--c-accent);
  color: var(--c-bg);
  transform: translateY(-1px);
}
.header-cta { flex-shrink: 0; }
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  padding: .5rem;
  min-height: 44px;
  min-width: 44px;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.burger-line {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--c-primary);
  border-radius: 2px;
  transition: transform .25s, opacity .25s;
}
.mobile-nav {
  background: rgba(21,28,15,0.98);
  border-top: 1px solid var(--c-glass-border);
  padding: .75rem 1.25rem 1rem;
}
.mobile-nav[hidden] { display: none; }
.mobile-nav-row {
  display: flex;
  flex-direction: column;
  gap: .25rem;
}
.mobile-nav-row .nav-link {
  font-size: 1rem;
  padding: .7rem .75rem;
  border-radius: 8px;
  min-height: 44px;
}

/* ═══════════════════════════════════════
   跑马灯
════════════════════════════════════════ */
.marquee-track {
  overflow: hidden;
  background: var(--c-primary);
  color: var(--c-bg);
  font-weight: 700;
  font-size: .85rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: .45rem 0;
  position: relative;
  z-index: 10;
}
.marquee-inner {
  display: inline-flex;
  gap: 1.5rem;
  animation: marquee-scroll 22s linear infinite;
  white-space: nowrap;
}
.marquee-inner span { display: inline-block; }
.marquee-inner .sep { color: var(--c-bg2); opacity: .6; }
@keyframes marquee-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ═══════════════════════════════════════
   main & article 骨架
════════════════════════════════════════ */
.site-main { position: relative; }

.content-section {
  position: relative;
  width: 100%;
}

/* Hero article */
.content-grid {
  display: grid;
  grid-template-columns: 1fr 260px;
  gap: 0;
  min-height: 70vh;
  align-items: stretch;
}
.hero-figure {
  position: relative;
  overflow: hidden;
  background: var(--c-bg2);
  min-height: 70vh;
}
.hero-bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(150%) brightness(.5);
  mix-blend-mode: luminosity;
  z-index: 0;
}
.hero-grid-bg {
  position: absolute;
  inset: 0;
  z-index: 1;
  background-image:
    linear-gradient(rgba(128,255,0,.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(128,255,0,.1) 1px, transparent 1px);
  background-size: 40px 40px;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(135deg, rgba(31,38,23,.7) 0%, rgba(21,28,15,.3) 60%, transparent 100%);
}
.hero-text-block {
  position: relative;
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-align: right;
  padding: 5rem 2.5rem 4rem;
  height: 100%;
  justify-content: center;
}
.hero-h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.15;
  color: var(--c-primary);
  text-shadow: 0 0 30px rgba(128,255,0,.6), 0 2px 4px rgba(0,0,0,.8);
  margin-bottom: 1rem;
  letter-spacing: .02em;
}
.hero-sub {
  font-size: 1.1rem;
  color: var(--c-text);
  max-width: 480px;
  margin-bottom: 2rem;
  text-shadow: 0 1px 3px rgba(0,0,0,.9);
}
.cta-hero {
  font-size: 1rem;
  padding: .75rem 2rem;
}
.sticker-layer {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
}
.sticker {
  position: absolute;
  font-family: var(--font-main);
  font-weight: 700;
  line-height: 1;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(0,0,0,.4);
  animation: jitter 3s ease-in-out infinite;
}
.sticker-lg { width: 72px; height: 72px; font-size: 1rem; background: var(--c-danger); color: #fff; }
.sticker-md { width: 56px; height: 56px; font-size: .85rem; background: var(--c-primary); color: var(--c-bg); }
.sticker-sm { width: 44px; height: 44px; font-size: .75rem; background: var(--c-warn); color: var(--c-bg); }
@keyframes jitter {
  0%, 100% { transform: rotate(var(--r, -6deg)) scale(1); }
  25% { transform: rotate(calc(var(--r, -6deg) + 3deg)) scale(1.05); }
  75% { transform: rotate(calc(var(--r, -6deg) - 2deg)) scale(.97); }
}
.hero-clip-bottom {
  position: absolute;
  bottom: -2px;
  left: 0; right: 0;
  height: 60px;
  background: var(--c-bg);
  clip-path: polygon(0 60px, 100% 0, 100% 60px);
  z-index: 5;
}

/* Hero aside */
.hero-aside {
  background: var(--c-glass);
  border-left: 1.5px solid var(--c-glass-border);
  backdrop-filter: blur(8px);
  padding: 2rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  position: relative;
  z-index: 4;
}
.aside-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--c-primary);
  letter-spacing: .1em;
  text-transform: uppercase;
  padding-bottom: .5rem;
  border-bottom: 1px solid var(--c-glass-border);
}
.aside-title span { display: inline; }
.aside-nav-list {
  display: flex;
  flex-direction: column;
  gap: .35rem;
}
.aside-link {
  display: block;
  font-size: .875rem;
  color: var(--c-text-muted);
  padding: .5rem .6rem;
  border-radius: 6px;
  transition: background .2s, color .2s;
  min-height: 40px;
  line-height: 1.6;
}
.aside-link:hover {
  color: var(--c-primary);
  background: rgba(128,255,0,.1);
}
.aside-badge {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: .8rem;
  color: var(--c-text-muted);
  margin-top: auto;
}
.badge-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--c-accent);
  box-shadow: 0 0 6px var(--c-accent);
  animation: pulse-dot 2s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .5; transform: scale(1.3); }
}

/* 正文+侧边 article */
.content-body-wrap {
  display: grid;
  grid-template-columns: 1fr 280px;
  grid-template-rows: auto 1fr;
  gap: 2rem;
  max-width: 1280px;
  margin: 0 auto;
  padding: 3rem 1.5rem 4rem;
  align-items: start;
}
.deco-figure {
  grid-column: 1 / -1;
  display: flex;
  gap: 1rem;
  height: 6px;
}
.deco-block {
  display: block;
  height: 6px;
  border-radius: 3px;
}
.deco-a { flex: 2; background: var(--c-primary); }
.deco-b { flex: 1; background: var(--c-danger); }

.content-prose {
  grid-column: 1;
  grid-row: 2;
  min-width: 0;
}
.content-aside {
  grid-column: 2;
  grid-row: 2;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  position: sticky;
  top: calc(var(--header-h) + 1rem);
}

/* ═══════════════════════════════════════
   玻璃拟态卡片
════════════════════════════════════════ */
.glass-card {
  background: var(--c-glass);
  border: 1.5px solid var(--c-glass-border);
  border-radius: var(--radius-card);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 1.25rem;
  transition: box-shadow .25s, border-color .25s;
}
.glass-card:hover {
  box-shadow: 0 0 24px rgba(128,255,0,.15);
  border-color: rgba(128,255,0,.4);
}
.aside-card-title {
  font-size: .9rem;
  font-weight: 700;
  color: var(--c-primary);
  margin-bottom: .75rem;
  letter-spacing: .08em;
}
.aside-card-title span { display: inline; }
.aside-tip-list {
  display: flex;
  flex-direction: column;
  gap: .5rem;
  font-size: .82rem;
  color: var(--c-text-muted);
  line-height: 1.6;
}
.aside-tip-list li::before {
  content: '✦ ';
  color: var(--c-primary);
  font-size: .7rem;
}
.stats-dl { display: flex; flex-direction: column; gap: .6rem; }
.stat-item {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: .85rem;
  border-bottom: 1px solid rgba(128,255,0,.1);
  padding-bottom: .4rem;
}
.stat-item dt { color: var(--c-text-muted); }
.stat-item dd { font-weight: 700; color: var(--c-primary); font-size: 1rem; }

/* ═══════════════════════════════════════
   page.content 内部样式（S3写入的7个article）
════════════════════════════════════════ */
.content-prose h2 {
  font-size: clamp(1.3rem, 3vw, 1.8rem);
  font-weight: 700;
  color: var(--c-primary);
  margin: 2.5rem 0 1rem;
  line-height: 1.3;
  letter-spacing: .02em;
}
.content-prose h2 span { display: inline; }
.content-prose h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--c-accent);
  margin: 1.75rem 0 .75rem;
}
.content-prose h3 span { display: inline; }
.content-prose p {
  font-size: 1rem;
  line-height: 1.85;
  color: var(--c-text);
  margin-bottom: 1rem;
}
.content-prose ul, .content-prose ol {
  padding-left: 1.5rem;
  margin-bottom: 1rem;
  list-style: disc;
}
.content-prose li {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--c-text);
  margin-bottom: .4rem;
}
.content-prose article {
  border-top: 1px solid var(--c-glass-border);
  padding-top: 2rem;
  margin-top: 2rem;
}
.content-prose article:first-child {
  border-top: none;
  padding-top: 0;
  margin-top: 0;
}
.content-prose strong { color: var(--c-primary); font-weight: 700; }
.content-prose a { color: var(--c-accent); text-decoration: underline; text-underline-offset: 3px; }
.content-prose a:hover { color: var(--c-primary); }
.content-prose blockquote {
  border-left: 3px solid var(--c-primary);
  margin: 1.5rem 0;
  padding: .75rem 1.25rem;
  background: var(--c-glass);
  border-radius: 0 var(--radius-card) var(--radius-card) 0;
  font-style: italic;
  color: var(--c-text-muted);
}
.content-prose table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1.5rem;
  font-size: .9rem;
}
.content-prose th, .content-prose td {
  padding: .6rem .8rem;
  border: 1px solid var(--c-glass-border);
  text-align: left;
}
.content-prose th {
  background: rgba(128,255,0,.12);
  color: var(--c-primary);
  font-weight: 600;
}

/* ═══════════════════════════════════════
   页脚
════════════════════════════════════════ */
.site-footer {
  background: var(--c-bg2);
  border-top: 1.5px solid var(--c-glass-border);
  margin-top: 3rem;
}
.footer-form-block {
  background: linear-gradient(135deg, rgba(128,255,0,.12) 0%, rgba(0,255,0,.06) 100%);
  border-bottom: 1px solid var(--c-glass-border);
  padding: 3rem 1.5rem;
}
.footer-form-inner {
  max-width: 560px;
  margin: 0 auto;
  text-align: center;
}
.footer-form-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--c-primary);
  margin-bottom: .6rem;
}
.footer-form-title span { display: inline; }
.footer-form-desc {
  font-size: .9rem;
  color: var(--c-text-muted);
  margin-bottom: 1.25rem;
}
.subscribe-form {
  display: flex;
  gap: .75rem;
  flex-wrap: wrap;
}
.sub-input {
  flex: 1;
  min-width: 200px;
  padding: .65rem 1rem;
  border-radius: 6px;
  border: 1.5px solid var(--c-glass-border);
  background: rgba(31,38,23,.8);
  color: var(--c-text);
  font-size: .95rem;
  outline: none;
  transition: border-color .2s;
}
.sub-input:focus { border-color: var(--c-primary); }
.sub-btn { flex-shrink: 0; }

.footer-main {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  max-width: 1280px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem;
}
.footer-brand-link {
  display: flex;
  align-items: center;
  gap: .5rem;
  color: var(--c-primary);
  margin-bottom: .75rem;
}
.footer-brand-text {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: .04em;
}
.footer-desc {
  font-size: .875rem;
  color: var(--c-text-muted);
  line-height: 1.7;
  margin-bottom: 1rem;
}
.footer-address {
  display: flex;
  flex-direction: column;
  gap: .4rem;
  font-size: .85rem;
  color: var(--c-text-muted);
}
.contact-item { display: block; }
.footer-links-title {
  font-size: .9rem;
  font-weight: 700;
  color: var(--c-primary);
  letter-spacing: .08em;
  margin-bottom: .75rem;
}
.footer-links-title span { display: inline; }
.footer-nav-list {
  display: flex;
  flex-direction: column;
  gap: .35rem;
}
.footer-link {
  display: inline-flex;
  align-items: center;
  font-size: .875rem;
  color: var(--c-text-muted);
  padding: .4rem 0;
  min-height: 44px;
  line-height: 1.6;
  transition: color .2s;
}
.footer-link:hover { color: var(--c-primary); }
.footer-bottom {
  text-align: center;
  padding: 1.25rem 1.5rem;
  border-top: 1px solid var(--c-glass-border);
  font-size: .8rem;
  color: var(--c-text-muted);
}
.copyright { margin-bottom: .3rem; }
.icp-note { opacity: .7; }

/* ═══════════════════════════════════════
   Stagger list 动效
════════════════════════════════════════ */
@media (prefers-reduced-motion: no-preference) {
  .content-section {
    animation: fade-up .6s ease both;
  }
  .content-section:nth-child(2) { animation-delay: .15s; }
  .aside-nav-list li {
    animation: fade-up .4s ease both;
  }
  .aside-nav-list li:nth-child(1) { animation-delay: .05s; }
  .aside-nav-list li:nth-child(2) { animation-delay: .1s; }
  .aside-nav-list li:nth-child(3) { animation-delay: .15s; }
  .aside-nav-list li:nth-child(4) { animation-delay: .2s; }
  .aside-nav-list li:nth-child(5) { animation-delay: .25s; }
  .aside-nav-list li:nth-child(6) { animation-delay: .3s; }
  .aside-nav-list li:nth-child(7) { animation-delay: .35s; }
  @keyframes fade-up {
    from { opacity: 0; transform: translateY(18px); }
    to   { opacity: 1; transform: translateY(0); }
  }
  .glass-card {
    animation: fade-up .5s ease both;
  }
  .glass-card:nth-child(2) { animation-delay: .1s; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

/* ═══════════════════════════════════════
   响应式
════════════════════════════════════════ */
@media (max-width: 1024px) {
  .content-grid {
    grid-template-columns: 1fr;
  }
  .hero-aside {
    border-left: none;
    border-top: 1.5px solid var(--c-glass-border);
    flex-direction: row;
    flex-wrap: wrap;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
  }
  .aside-nav-list {
    flex-direction: row;
    flex-wrap: wrap;
  }
  .content-body-wrap {
    grid-template-columns: 1fr 240px;
  }
}

@media (max-width: 768px) {
  :root { --scroll-top: 56px; --header-h: 56px; }
  .main-nav { display: none; }
  .header-cta { display: none; }
  .menu-toggle { display: flex; }
  .content-body-wrap {
    grid-template-columns: 1fr;
  }
  .content-aside {
    position: static;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
  }
  .footer-main {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .hero-text-block {
    padding: 3rem 1.25rem 2.5rem;
    align-items: flex-start;
    text-align: left;
  }
  .hero-sub { max-width: 100%; }
  .subscribe-form { flex-direction: column; }
  .sub-input { width: 100%; }
}

@media (max-width: 480px) {
  .content-aside {
    grid-template-columns: 1fr;
  }
  .content-body-wrap {
    padding: 2rem 1rem 3rem;
  }
  .hero-h1 { font-size: 1.75rem; }
  .sticker-lg { width: 54px; height: 54px; font-size: .8rem; }
  .sticker-md { width: 44px; height: 44px; font-size: .75rem; }
  .sticker-sm { width: 36px; height: 36px; font-size: .65rem; }
}
