@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,wght@0,400;0,500;0,700;1,400&family=Nunito:ital,wght@0,700;0,800;0,900;1,700&display=swap');

/* ===== CSS 变量 ===== */
:root {
  --c-primary: #80ff00;
  --c-secondary: #00ff00;
  --c-dark: #1f2617;
  --c-dark2: #2a3320;
  --c-dark3: #161c10;
  --c-text: #e8f5d0;
  --c-text-muted: #a8c47a;
  --c-accent: #ff4dff;
  --c-accent2: #ffdd00;
  --c-border: rgba(128, 255, 0, 0.25);
  --radius-card: 4px;
  --radius-pill: 999px;
  --font-main: 'Nunito', 'DM Sans', system-ui, sans-serif;
  --font-body: 'DM Sans', 'Nunito', system-ui, sans-serif;
  --nav-h: 72px;
  --marquee-h: 36px;
  --transition: 0.2s ease;
}

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

/* ===== 跑马灯 ===== */
.marquee-bar {
  background: var(--c-primary);
  color: var(--c-dark3);
  height: var(--marquee-h);
  overflow: hidden;
  position: relative;
  z-index: 100;
  font-family: var(--font-main);
  font-weight: 900;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  display: flex;
  align-items: center;
  width: 100%;
}
.marquee-track {
  display: flex;
  white-space: nowrap;
  animation: marquee-scroll 28s linear infinite;
  will-change: transform;
}
.marquee-track span { padding: 0 2rem; flex-shrink: 0; }
@keyframes marquee-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; }
}

/* ===== 顶部导航 ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 90;
  background: rgba(22, 28, 16, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1.5px solid var(--c-border);
  height: var(--nav-h);
  display: flex;
  align-items: center;
  width: 100%;
  overflow: hidden;
}
.site-nav {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 0.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.25rem;
  overflow: hidden;
}
.nav-left, .nav-right {
  display: flex;
  align-items: center;
  gap: 0.2rem;
  flex: 1;
  min-width: 0;
  overflow: hidden;
}
.nav-right { justify-content: flex-end; }
.nav-left li, .nav-right li { display: flex; flex-shrink: 0; }
.nav-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 0.65rem;
  border-radius: var(--radius-pill);
  border: 1.5px solid var(--c-border);
  color: var(--c-text);
  font-family: var(--font-main);
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0;
  white-space: nowrap;
  transition: background var(--transition), color var(--transition), border-color var(--transition), transform var(--transition);
  min-height: 40px;
}
.nav-pill:hover {
  background: var(--c-primary);
  color: var(--c-dark3);
  border-color: var(--c-primary);
  transform: translateY(-1px) rotate(-1deg);
}
.brand-logo {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  margin: 0 0.25rem;
}
.brand-img { height: 40px; width: auto; }
.brand-text {
  font-family: var(--font-main);
  font-weight: 900;
  font-size: 0.88rem;
  color: var(--c-primary);
  letter-spacing: -0.01em;
  white-space: nowrap;
  padding: 0.25rem 0.55rem;
  border: 2px solid var(--c-primary);
  border-radius: var(--radius-pill);
  transition: background var(--transition), color var(--transition);
}
.brand-logo:hover .brand-text {
  background: var(--c-primary);
  color: var(--c-dark3);
}

/* ===== scroll-margin 给 article ===== */
article[id] { scroll-margin-top: calc(var(--nav-h) + var(--marquee-h)); }

/* ===== Hero ===== */
.hero-section {
  position: relative;
  min-height: 70vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  overflow: hidden;
  background: linear-gradient(160deg, #0e1409 0%, var(--c-dark) 60%, #0e1409 100%);
  padding-bottom: 0;
  width: 100%;
}
.hero-bg-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--font-main);
  font-weight: 900;
  font-size: clamp(5rem, 18vw, 16rem);
  color: rgba(128, 255, 0, 0.04);
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
  letter-spacing: -0.05em;
  z-index: 0;
}
.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 4rem 1.25rem 2rem;
  max-width: 800px;
  width: 100%;
}
.hero-eyebrow {
  display: inline-block;
  background: var(--c-primary);
  color: var(--c-dark3);
  font-family: var(--font-main);
  font-weight: 900;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  padding: 0.3rem 1rem;
  border-radius: var(--radius-pill);
  margin-bottom: 1.2rem;
  transform: rotate(-1.5deg);
}
.hero-h1 {
  font-family: var(--font-main);
  font-weight: 900;
  font-size: clamp(1.8rem, 5vw, 4.5rem);
  line-height: 1.1;
  color: var(--c-primary);
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
  text-shadow: 0 0 40px rgba(128, 255, 0, 0.4);
  word-break: break-word;
}
.hero-sub {
  font-size: clamp(0.92rem, 2vw, 1.1rem);
  color: var(--c-text-muted);
  line-height: 1.7;
  margin-bottom: 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}
.hero-cta-row {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}
.btn-primary {
  display: inline-flex;
  align-items: center;
  padding: 0.75rem 1.4rem;
  background: var(--c-primary);
  color: var(--c-dark3);
  font-family: var(--font-main);
  font-weight: 900;
  font-size: 0.92rem;
  border-radius: var(--radius-pill);
  border: 2px solid var(--c-primary);
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
  min-height: 48px;
  white-space: nowrap;
}
.btn-primary:hover {
  transform: translateY(-2px) rotate(-1deg);
  box-shadow: 0 8px 24px rgba(128, 255, 0, 0.35);
  background: var(--c-secondary);
  border-color: var(--c-secondary);
  color: var(--c-dark3);
}
.btn-ghost {
  display: inline-flex;
  align-items: center;
  padding: 0.75rem 1.4rem;
  background: transparent;
  color: var(--c-primary);
  font-family: var(--font-main);
  font-weight: 800;
  font-size: 0.92rem;
  border-radius: var(--radius-pill);
  border: 2px solid var(--c-primary);
  transition: background var(--transition), color var(--transition), transform var(--transition);
  min-height: 48px;
  white-space: nowrap;
}
.btn-ghost:hover {
  background: var(--c-primary);
  color: var(--c-dark3);
  transform: translateY(-2px) rotate(1deg);
}
.hero-media {
  position: relative;
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  z-index: 1;
  min-height: 80px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.hero-img-wrap {
  width: 100%;
  display: flex;
  justify-content: center;
  filter: saturate(130%);
}
.hero-img-wrap img {
  max-height: 320px;
  object-fit: cover;
  border-radius: 12px 12px 0 0;
  border: 2px solid var(--c-border);
  max-width: 100%;
}
.hero-placeholder {
  width: 100%;
  height: 60px;
  background: linear-gradient(to top, var(--c-dark), transparent);
}

/* 贴纸 */
.sticker {
  position: absolute;
  font-family: var(--font-main);
  font-weight: 900;
  border-radius: var(--radius-pill);
  pointer-events: none;
  z-index: 10;
  animation: jitter 3s infinite;
}
.sticker-1 {
  top: 20%;
  right: 8%;
  background: var(--c-accent);
  color: #fff;
  font-size: 0.75rem;
  padding: 0.3rem 0.8rem;
  transform: rotate(8deg);
  animation-delay: 0s;
}
.sticker-2 {
  top: 45%;
  left: 5%;
  background: var(--c-accent2);
  color: var(--c-dark3);
  font-size: 0.75rem;
  padding: 0.3rem 0.8rem;
  transform: rotate(-6deg);
  animation-delay: 0.8s;
  animation-name: jitter2;
}
.sticker-3 {
  bottom: 30%;
  right: 12%;
  background: var(--c-primary);
  color: var(--c-dark3);
  font-size: 1rem;
  padding: 0.35rem 0.7rem;
  border-radius: 50%;
  transform: rotate(15deg);
  animation-delay: 1.5s;
  animation-name: jitter3;
}
@keyframes jitter {
  0%, 100% { transform: rotate(8deg) translate(0, 0); }
  25% { transform: rotate(9.5deg) translate(1px, -1px); }
  50% { transform: rotate(7deg) translate(-1px, 1px); }
  75% { transform: rotate(9deg) translate(1px, 0); }
}
@keyframes jitter2 {
  0%, 100% { transform: rotate(-6deg) translate(0, 0); }
  25% { transform: rotate(-7.5deg) translate(-1px, 1px); }
  50% { transform: rotate(-5deg) translate(1px, -1px); }
  75% { transform: rotate(-6.5deg) translate(0, 1px); }
}
@keyframes jitter3 {
  0%, 100% { transform: rotate(15deg) scale(1); }
  33% { transform: rotate(18deg) scale(1.05); }
  66% { transform: rotate(12deg) scale(0.97); }
}
@media (prefers-reduced-motion: reduce) {
  .sticker { animation: none; }
}

/* ===== 主内容区 ===== */
.site-main {
  max-width: 1400px;
  margin: 0 auto;
  padding: 3rem 1.25rem 4rem;
  width: 100%;
}
.content-outer {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
  width: 100%;
  min-width: 0;
}
.content-aside {
  flex: 0 0 200px;
  min-width: 0;
  position: sticky;
  top: calc(var(--nav-h) + var(--marquee-h) + 1rem);
}
.aside-inner {
  background: var(--c-dark2);
  border: 1.5px solid var(--c-border);
  border-radius: 8px;
  padding: 1.25rem 1rem;
  border-bottom: 3px solid var(--c-primary);
}
.aside-title {
  font-family: var(--font-main);
  font-weight: 900;
  font-size: 0.88rem;
  color: var(--c-primary);
  letter-spacing: 0.06em;
  margin-bottom: 0.9rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--c-border);
}
.aside-title span { display: block; }
.aside-nav-list { display: flex; flex-direction: column; gap: 0.25rem; }
.aside-link {
  display: flex;
  align-items: center;
  padding: 0.4rem 0.6rem;
  border-radius: var(--radius-card);
  color: var(--c-text-muted);
  font-size: 0.82rem;
  font-weight: 700;
  transition: background var(--transition), color var(--transition), transform var(--transition);
  min-height: 40px;
  word-break: break-all;
}
.aside-link:hover {
  background: rgba(128, 255, 0, 0.12);
  color: var(--c-primary);
  transform: translateX(3px);
}
.aside-badge {
  margin-top: 1.2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  padding: 0.7rem;
  background: rgba(128, 255, 0, 0.07);
  border-radius: var(--radius-card);
  border: 1px dashed var(--c-border);
}
.badge-num {
  font-family: var(--font-main);
  font-weight: 900;
  font-size: 1.8rem;
  color: var(--c-primary);
  line-height: 1;
  letter-spacing: -0.05em;
}
.badge-label {
  font-size: 0.72rem;
  color: var(--c-text-muted);
  font-weight: 700;
  letter-spacing: 0.06em;
}
.content-body {
  flex: 1;
  min-width: 0;
  overflow: hidden;
}
.content-figure {
  width: 100%;
  padding: 0.7rem 1rem;
  background: linear-gradient(90deg, rgba(128,255,0,0.07), transparent);
  border-left: 3px solid var(--c-primary);
  border-radius: 0 var(--radius-card) var(--radius-card) 0;
  margin-bottom: 1.8rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
}
.fig-tag {
  display: inline-block;
  background: var(--c-dark2);
  border: 1px solid var(--c-border);
  color: var(--c-text-muted);
  font-size: 0.72rem;
  font-weight: 800;
  padding: 0.18rem 0.6rem;
  border-radius: var(--radius-pill);
  letter-spacing: 0.04em;
  white-space: nowrap;
}
.page-content-area { color: var(--c-text); overflow-wrap: break-word; word-break: break-word; }

/* ===== page.content 内部样式 ===== */
.page-content-area h2 {
  font-family: var(--font-main);
  font-weight: 900;
  font-size: clamp(1.2rem, 3vw, 1.8rem);
  color: var(--c-primary);
  margin: 2.5rem 0 1rem;
  line-height: 1.2;
  letter-spacing: -0.01em;
  padding-bottom: 0.4rem;
  border-bottom: 1.5px solid var(--c-border);
  word-break: break-word;
}
.page-content-area h2 span { display: inline; }
.page-content-area h3 {
  font-family: var(--font-main);
  font-weight: 800;
  font-size: clamp(1rem, 2.5vw, 1.35rem);
  color: var(--c-secondary);
  margin: 2rem 0 0.8rem;
  letter-spacing: -0.01em;
  word-break: break-word;
}
.page-content-area h3 span { display: inline; }
.page-content-area p {
  margin-bottom: 1rem;
  font-size: 1rem;
  line-height: 1.75;
  color: var(--c-text);
  overflow-wrap: break-word;
}
.page-content-area a {
  color: var(--c-primary);
  text-decoration: underline;
  text-decoration-color: rgba(128,255,0,0.3);
  transition: color var(--transition), text-decoration-color var(--transition);
  word-break: break-all;
}
.page-content-area a:hover {
  color: var(--c-secondary);
  text-decoration-color: var(--c-secondary);
}
.page-content-area ul, .page-content-area ol {
  margin: 0.8rem 0 1rem 1.2rem;
}
.page-content-area ul { list-style: disc; }
.page-content-area ol { list-style: decimal; }
.page-content-area li {
  margin-bottom: 0.4rem;
  line-height: 1.7;
  overflow-wrap: break-word;
}
.page-content-area strong { color: var(--c-primary); font-weight: 800; }
.page-content-area em { color: var(--c-accent2); font-style: italic; }
.page-content-area blockquote {
  margin: 1.5rem 0;
  padding: 1rem 1.2rem;
  background: rgba(128,255,0,0.06);
  border-left: 3px solid var(--c-primary);
  border-radius: 0 var(--radius-card) var(--radius-card) 0;
  color: var(--c-text-muted);
  font-style: italic;
  overflow-wrap: break-word;
}
.page-content-area table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.9rem;
  display: block;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.page-content-area th {
  background: var(--c-dark2);
  color: var(--c-primary);
  padding: 0.55rem 0.8rem;
  text-align: left;
  font-weight: 800;
  border-bottom: 2px solid var(--c-primary);
  white-space: nowrap;
}
.page-content-area td {
  padding: 0.5rem 0.8rem;
  border-bottom: 1px solid var(--c-border);
  color: var(--c-text);
  white-space: nowrap;
}
.page-content-area tr:hover td { background: rgba(128,255,0,0.04); }
.page-content-area article {
  padding: 2rem 0;
  border-bottom: 1px solid rgba(128,255,0,0.1);
}
.page-content-area article:last-child { border-bottom: none; }

/* ===== 页脚 ===== */
.site-footer {
  background: var(--c-dark3);
  border-top: 2px solid var(--c-border);
  width: 100%;
  overflow: hidden;
}
.footer-top {
  max-width: 1400px;
  margin: 0 auto;
  padding: 3rem 1.25rem 2rem;
  display: grid;
  grid-template-columns: 1.2fr 1fr 1.3fr;
  gap: 2rem;
}
.footer-brand-name {
  font-family: var(--font-main);
  font-weight: 900;
  font-size: 1.2rem;
  color: var(--c-primary);
  margin-bottom: 0.7rem;
  letter-spacing: -0.02em;
  word-break: break-all;
}
.footer-brand-desc {
  color: var(--c-text-muted);
  font-size: 0.86rem;
  line-height: 1.65;
  overflow-wrap: break-word;
}
.footer-col-title {
  font-family: var(--font-main);
  font-weight: 900;
  font-size: 0.88rem;
  color: var(--c-primary);
  margin-bottom: 0.8rem;
  letter-spacing: 0.05em;
}
.footer-col-title span { display: inline-block; }
.footer-address {
  font-style: normal;
  font-size: 0.86rem;
  color: var(--c-text-muted);
  line-height: 1.9;
  overflow-wrap: break-word;
  word-break: break-all;
}
.footer-address strong {
  font-family: var(--font-main);
  font-weight: 900;
  color: var(--c-primary);
  font-size: 0.88rem;
  display: block;
  margin-bottom: 0.4rem;
  letter-spacing: 0.05em;
}
.footer-address a { color: var(--c-text-muted); transition: color var(--transition); }
.footer-address a:hover { color: var(--c-primary); }
.footer-sub-desc {
  font-size: 0.82rem;
  color: var(--c-text-muted);
  margin-bottom: 0.8rem;
  line-height: 1.55;
}
.subscribe-form {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
}
.sub-input {
  flex: 1;
  min-width: 100px;
  padding: 0.5rem 0.9rem;
  background: var(--c-dark2);
  border: 1.5px solid var(--c-border);
  border-radius: var(--radius-pill);
  color: var(--c-text);
  font-size: 0.86rem;
  outline: none;
  transition: border-color var(--transition);
  min-height: 42px;
}
.sub-input:focus { border-color: var(--c-primary); }
.sub-input::placeholder { color: rgba(168,196,122,0.5); }
.sub-btn {
  padding: 0.5rem 1rem;
  background: var(--c-primary);
  color: var(--c-dark3);
  border: none;
  border-radius: var(--radius-pill);
  font-family: var(--font-main);
  font-weight: 900;
  font-size: 0.86rem;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
  min-height: 42px;
  white-space: nowrap;
}
.sub-btn:hover {
  background: var(--c-secondary);
  transform: scale(1.03);
}
.footer-links-bar {
  background: var(--c-dark2);
  border-top: 1px solid var(--c-border);
  border-bottom: 1px solid var(--c-border);
  padding: 0.5rem 1.25rem;
  overflow: hidden;
}
.footer-nav-ul {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 0.2rem 0.6rem;
  list-style: none;
}
.footer-nav-ul li a {
  color: var(--c-text-muted);
  font-size: 0.8rem;
  font-weight: 700;
  transition: color var(--transition);
  display: flex;
  align-items: center;
  padding: 0.25rem 0;
  min-height: 40px;
}
.footer-nav-ul li a:hover { color: var(--c-primary); }
.footer-bottom {
  max-width: 1400px;
  margin: 0 auto;
  padding: 1rem 1.25rem;
  text-align: center;
}
.copyright {
  color: rgba(168,196,122,0.5);
  font-size: 0.78rem;
  overflow-wrap: break-word;
}

/* ===== 视差占位 ===== */
@media (prefers-reduced-motion: no-preference) {
  .hero-bg-text { transition: transform 0.1s linear; }
}

/* ===== 响应式：平板 ===== */
@media (max-width: 1024px) {
  .footer-top {
    grid-template-columns: 1fr 1fr;
  }
  .footer-col-subscribe {
    grid-column: 1 / -1;
  }
  .content-aside {
    flex: 0 0 172px;
  }
}

/* ===== 响应式：手机 ===== */
@media (max-width: 768px) {
  :root {
    --nav-h: 56px;
  }
  .site-nav {
    padding: 0 0.5rem;
    gap: 0.2rem;
  }
  .nav-left, .nav-right {
    gap: 0.15rem;
  }
  .nav-pill {
    font-size: 0.68rem;
    padding: 0.28rem 0.45rem;
    min-height: 40px;
    letter-spacing: 0;
  }
  .brand-text {
    font-size: 0.8rem;
    padding: 0.22rem 0.45rem;
  }
  .hero-content {
    padding: 2.5rem 1rem 1.5rem;
  }
  .hero-cta-row {
    flex-direction: column;
    align-items: center;
  }
  .btn-primary, .btn-ghost {
    width: 100%;
    max-width: 280px;
    justify-content: center;
  }
  .content-outer {
    flex-direction: column;
    gap: 1.5rem;
  }
  .content-aside {
    flex: none;
    width: 100%;
    position: static;
    order: -1;
  }
  .aside-nav-list {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.35rem;
  }
  .aside-link {
    min-height: 40px;
    font-size: 0.78rem;
  }
  .aside-badge { display: none; }
  .footer-top {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 2rem 1rem 1.5rem;
  }
  .footer-nav-ul { gap: 0.15rem 0.4rem; }
  .site-main { padding: 2rem 1rem 3rem; }
  .page-content-area h2 { font-size: 1.15rem; }
  .page-content-area h3 { font-size: 1rem; }
  .sticker-1, .sticker-2, .sticker-3 { display: none; }
  .hero-bg-text { font-size: clamp(3rem, 22vw, 6rem); }
  .marquee-bar { font-size: 0.76rem; }
}

/* ===== 375px 极小屏修正 ===== */
@media (max-width: 420px) {
  :root { --nav-h: 52px; }
  .nav-left, .nav-right { gap: 0.1rem; }
  .nav-pill { font-size: 0.62rem; padding: 0.25rem 0.35rem; min-height: 40px; }
  .brand-text { font-size: 0.72rem; padding: 0.2rem 0.35rem; }
  .hero-h1 { font-size: 1.55rem; }
  .hero-sub { font-size: 0.88rem; }
  .site-main { padding: 1.5rem 0.75rem 2.5rem; }
  .footer-top { padding: 1.5rem 0.75rem 1.2rem; }
  .footer-links-bar { padding: 0.4rem 0.75rem; }
  .footer-bottom { padding: 0.8rem 0.75rem; }
  .subscribe-form { flex-direction: column; }
  .sub-input, .sub-btn { width: 100%; }
}

/* ===== 卡片通用 ===== */
.page-content-area .card {
  background: var(--c-dark2);
  border: 1.5px solid var(--c-border);
  border-radius: var(--radius-card);
  border-bottom: 3px solid var(--c-primary);
  padding: 1.1rem;
  transition: transform var(--transition), box-shadow var(--transition);
}
.page-content-area .card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(128,255,0,0.12);
}

/* ===== 工具 ===== */
.site-wrap { min-height: 100vh; display: flex; flex-direction: column; width: 100%; overflow-x: hidden; }
.site-main { flex: 1; }

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