@import url('https://fonts.googleapis.com/css2?family=Atkinson+Hyperlegible:wght@400;700&display=swap');

/* ========== 设计令牌 ========== */
:root {
  --c-primary: #99ffcc;
  --c-accent: #00ff41;
  --c-dark: #001e3c;
  --c-dark-80: rgba(0,30,60,0.8);
  --c-dark-60: rgba(0,30,60,0.6);
  --c-dark-20: rgba(0,30,60,0.12);
  --c-primary-dim: rgba(153,255,204,0.18);
  --c-accent-dim: rgba(0,255,65,0.12);
  --c-text: #001e3c;
  --c-text-muted: rgba(0,30,60,0.55);
  --c-bg: #f4fff9;
  --c-bg-deep: #e8fff2;
  --c-card-bg: #ffffff;
  --c-border: rgba(0,30,60,0.1);
  --c-shadow: 0 4px 24px rgba(0,30,60,0.10), 0 1px 4px rgba(0,255,65,0.08);
  --font: 'Atkinson Hyperlegible', system-ui, -apple-system, sans-serif;
  --radius: 0px;
  --container: 1200px;
  --sidebar-w: 280px;
  --gap: 2rem;
}

/* ========== 重置与基础 ========== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.7;
  color: var(--c-text);
  background: var(--c-bg);
  overflow-x: hidden;
}

a { color: var(--c-dark); text-decoration: underline; text-underline-offset: 3px; }
a:hover { color: #007a2a; }

img { max-width: 100%; height: auto; display: block; }

ul { list-style: none; }

/* ========== 有机背景底纹 ========== */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    radial-gradient(ellipse 60% 40% at 20% 30%, rgba(153,255,204,0.22) 0%, transparent 70%),
    radial-gradient(ellipse 50% 60% at 80% 70%, rgba(0,255,65,0.10) 0%, transparent 65%),
    radial-gradient(ellipse 80% 50% at 50% 100%, rgba(0,30,60,0.06) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.site-wrapper { position: relative; z-index: 1; }

/* ========== 顶部公告条 ========== */
.topbar {
  background: var(--c-dark);
  color: var(--c-primary);
  font-size: 13px;
  text-align: center;
  padding: 6px 1rem;
  letter-spacing: 0.04em;
}

/* ========== 页头 ========== */
.site-header {
  background: rgba(0,30,60,0.97);
  backdrop-filter: blur(8px);
  position: sticky;
  top: 0;
  z-index: 200;
  border-bottom: 1px solid rgba(153,255,204,0.15);
}

.brand-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 2rem;
  border-bottom: 1px solid rgba(153,255,204,0.08);
}

.brand-name {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--c-primary);
  text-decoration: none;
  letter-spacing: 0.02em;
}
.brand-name:hover { color: var(--c-accent); }

/* 汉堡按钮 */
.burger {
  background: none;
  border: 1px solid rgba(153,255,204,0.3);
  cursor: pointer;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-height: 44px;
  min-width: 44px;
  align-items: center;
  justify-content: center;
}
.burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--c-primary);
  transition: transform 0.3s, opacity 0.3s;
}
.burger:hover span { background: var(--c-accent); }

/* 桌面导航行 */
.nav-row {
  padding: 0 2rem;
  overflow-x: auto;
}
.nav-row aside { display: contents; }
.nav-row aside nav ul {
  display: flex;
  gap: 0;
  flex-wrap: nowrap;
}
.nav-row aside nav ul li a {
  display: block;
  padding: 0.65rem 1rem;
  color: rgba(153,255,204,0.75);
  text-decoration: none;
  font-size: 14px;
  letter-spacing: 0.03em;
  white-space: nowrap;
  min-height: 44px;
  display: flex;
  align-items: center;
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}
.nav-row aside nav ul li a:hover {
  color: var(--c-accent);
  border-bottom-color: var(--c-accent);
}

/* ========== 全屏遮罩菜单 ========== */
.overlay-menu {
  position: fixed;
  inset: 0;
  background: rgba(0,20,40,0.97);
  z-index: 500;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s;
}
.overlay-menu.is-open {
  opacity: 1;
  pointer-events: auto;
}
.overlay-menu aside { width: 100%; max-width: 480px; }
.overlay-menu aside nav ul {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0 2rem;
}
.overlay-menu aside nav ul li a {
  display: block;
  padding: 1rem 1.5rem;
  color: var(--c-primary);
  text-decoration: none;
  font-size: 1.25rem;
  font-weight: 700;
  border-left: 3px solid transparent;
  transition: border-color 0.2s, color 0.2s;
  min-height: 44px;
}
.overlay-menu aside nav ul li a:hover {
  border-left-color: var(--c-accent);
  color: var(--c-accent);
}
.menu-close {
  position: absolute;
  top: 1.5rem;
  right: 2rem;
  background: none;
  border: 1px solid rgba(153,255,204,0.3);
  color: var(--c-primary);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.5rem 0.8rem;
  min-height: 44px;
  min-width: 44px;
  transition: color 0.2s;
}
.menu-close:hover { color: var(--c-accent); }

/* ========== Hero ========== */
.hero {
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--c-dark);
}

/* 有机形态斑点 */
.hero-blob {
  position: absolute;
  width: 700px;
  height: 500px;
  left: -120px;
  top: -60px;
  background: radial-gradient(ellipse at 40% 50%, rgba(0,255,65,0.18) 0%, rgba(153,255,204,0.08) 50%, transparent 80%);
  border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
  animation: blobBreath 8s ease-in-out infinite;
  pointer-events: none;
}

@keyframes blobBreath {
  0%, 100% { transform: scale(1) rotate(0deg); border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%; }
  33% { transform: scale(1.08) rotate(3deg); border-radius: 40% 60% 70% 30% / 40% 70% 30% 60%; }
  66% { transform: scale(0.95) rotate(-2deg); border-radius: 70% 30% 50% 50% / 30% 60% 40% 70%; }
}

/* 点阵底纹 */
.hero-dot-grid {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(153,255,204,0.25) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
  opacity: 0.5;
}

.hero-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 4rem 2rem;
  display: flex;
  justify-content: flex-end;
}

.hero-text {
  max-width: 600px;
  text-align: right;
}

.hero-eyebrow {
  font-size: 13px;
  letter-spacing: 0.12em;
  color: var(--c-accent);
  text-transform: uppercase;
  margin-bottom: 1rem;
  font-weight: 700;
}

.hero h1 {
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--c-primary);
  line-height: 1.25;
  margin-bottom: 1.2rem;
}

.hero-desc {
  color: rgba(153,255,204,0.75);
  font-size: 1.05rem;
  margin-bottom: 2rem;
  line-height: 1.7;
}

.hero--channel .hero-text { max-width: 540px; }

/* ========== 按钮 ========== */
.btn-primary {
  display: inline-block;
  background: var(--c-accent);
  color: var(--c-dark);
  font-weight: 700;
  padding: 0.85rem 2rem;
  text-decoration: none;
  font-size: 1rem;
  letter-spacing: 0.04em;
  min-height: 44px;
  transition: background 0.2s, transform 0.2s;
}
.btn-primary:hover {
  background: var(--c-primary);
  color: var(--c-dark);
  transform: translateY(-2px);
}

/* ========== 面包屑 ========== */
.breadcrumb-bar {
  background: var(--c-bg-deep);
  border-bottom: 1px solid var(--c-border);
  padding: 0.65rem 2rem;
  font-size: 13px;
  color: var(--c-text-muted);
}
.breadcrumb-bar a { color: var(--c-dark); text-decoration: none; }
.breadcrumb-bar a:hover { color: #007a2a; text-decoration: underline; }

/* ========== 主体布局 ========== */
main {
  display: grid;
  grid-template-columns: 1fr var(--sidebar-w);
  gap: var(--gap);
  max-width: var(--container);
  margin: 3rem auto;
  padding: 0 2rem;
  align-items: start;
}

main > section {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

main > section > article {
  /* 直接子 article 满足契约 */
}

/* ========== 侧边栏 ========== */
.sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  position: sticky;
  top: 120px;
}

.sidebar-block {
  background: var(--c-card-bg);
  border: 1px solid var(--c-border);
  padding: 1.25rem;
  box-shadow: var(--c-shadow);
}

.sidebar-block h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--c-dark);
}

.sidebar-block ul { display: flex; flex-direction: column; gap: 0.35rem; }
.sidebar-block ul li a {
  font-size: 14px;
  color: var(--c-dark);
  text-decoration: none;
  display: block;
  padding: 0.25rem 0;
  border-bottom: 1px solid var(--c-border);
  transition: color 0.2s, padding-left 0.2s;
}
.sidebar-block ul li a:hover { color: #007a2a; padding-left: 6px; }

.sidebar-block p { font-size: 14px; color: var(--c-text-muted); line-height: 1.6; }

.sidebar-link {
  display: inline-block;
  margin-top: 0.75rem;
  font-size: 14px;
  color: #007a2a;
  text-decoration: underline;
}

/* ========== 内容区 ========== */
.content-section { }

.prose {
  font-size: 17px;
  line-height: 1.8;
  color: var(--c-text);
}
.prose h2 { font-size: 1.5rem; font-weight: 700; margin: 2rem 0 0.75rem; color: var(--c-dark); }
.prose h3 { font-size: 1.2rem; font-weight: 700; margin: 1.5rem 0 0.5rem; }
.prose p { margin-bottom: 1.2rem; }
.prose ul, .prose ol { padding-left: 1.5rem; margin-bottom: 1.2rem; }
.prose li { margin-bottom: 0.4rem; }
.prose a { color: #007a2a; }
.prose blockquote {
  border-left: 3px solid var(--c-accent);
  padding: 0.75rem 1.25rem;
  background: var(--c-accent-dim);
  margin: 1.5rem 0;
  color: var(--c-text-muted);
}
.prose table { width: 100%; border-collapse: collapse; margin: 1.5rem 0; }
.prose th, .prose td { padding: 0.65rem 1rem; border: 1px solid var(--c-border); font-size: 15px; }
.prose th { background: var(--c-dark); color: var(--c-primary); }
.prose tr:nth-child(even) td { background: var(--c-bg-deep); }

/* ========== 眉题（small + h2/h3 同级紧邻） ========== */
.eyebrow {
  display: block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--c-accent);
  text-transform: uppercase;
  margin-bottom: 0.4rem;
}

article > small.eyebrow,
.sidebar-block > small.eyebrow,
.ch-card-inner > small.eyebrow,
.art-card-body > small.eyebrow {
  display: block;
}

/* ========== 频道卡片网格 ========== */
.channels-section h2,
.recent-section h2,
.articles-section h2,
.related-section h2,
.about-stats-section h2,
.privacy-links-section h2 {
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: var(--c-dark);
}

.ch-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem;
}

.ch-card {
  background: var(--c-card-bg);
  border: 1px solid var(--c-border);
  box-shadow: var(--c-shadow);
  transition: transform 0.25s, box-shadow 0.25s;
}
.ch-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(0,30,60,0.13), 0 2px 8px rgba(0,255,65,0.1);
}

.ch-card-inner { padding: 1.5rem; }
.ch-card-inner h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 0.5rem; }
.ch-card-inner h3 a { text-decoration: none; color: var(--c-dark); }
.ch-card-inner h3 a:hover { color: #007a2a; }
.ch-card-inner p { font-size: 14px; color: var(--c-text-muted); margin-bottom: 0.75rem; line-height: 1.6; }

.ch-links { display: flex; flex-direction: column; gap: 0.25rem; }
.ch-link {
  font-size: 13px;
  color: #007a2a;
  text-decoration: none;
  padding: 0.2rem 0;
  border-bottom: 1px solid var(--c-border);
}
.ch-link:hover { text-decoration: underline; }

/* ========== 文章卡片网格 ========== */
.art-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.art-card {
  background: var(--c-card-bg);
  border: 1px solid var(--c-border);
  box-shadow: var(--c-shadow);
  transition: transform 0.3s, box-shadow 0.3s;
  opacity: 0;
  transform: translateY(20px);
}
.art-card.revealed {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.5s calc(var(--stagger-i, 0) * 0.08s), transform 0.5s calc(var(--stagger-i, 0) * 0.08s), box-shadow 0.25s;
}
.art-card:hover {
  box-shadow: 0 8px 32px rgba(0,30,60,0.13), 0 2px 8px rgba(0,255,65,0.1);
  transform: translateY(-3px);
}

.art-card .card-img { width: 100%; height: 160px; object-fit: cover; }
.art-card-body { padding: 1.25rem; }
.art-card-body h3 { font-size: 1rem; font-weight: 700; margin-bottom: 0.5rem; }
.art-card-body h3 a { text-decoration: none; color: var(--c-dark); }
.art-card-body h3 a:hover { color: #007a2a; }
.art-card-body p { font-size: 14px; color: var(--c-text-muted); margin-bottom: 0.75rem; line-height: 1.6; }
.art-date { font-size: 12px; color: var(--c-text-muted); margin-bottom: 0.5rem; }
.read-more { font-size: 13px; color: #007a2a; text-decoration: none; font-weight: 700; }
.read-more:hover { text-decoration: underline; }

/* ========== 近期文章表格 ========== */
.table-wrap { overflow-x: auto; }
.table-wrap table { width: 100%; border-collapse: collapse; min-width: 500px; }
.table-wrap thead th {
  background: var(--c-dark);
  color: var(--c-primary);
  padding: 0.75rem 1rem;
  text-align: left;
  font-size: 14px;
  letter-spacing: 0.05em;
}
.table-wrap tbody tr { border-bottom: 1px solid var(--c-border); }
.table-wrap tbody tr:nth-child(even) { background: var(--c-bg-deep); }
.table-wrap tbody td { padding: 0.75rem 1rem; font-size: 14px; vertical-align: top; }
.table-wrap tbody td a { color: var(--c-dark); text-decoration: none; font-weight: 700; }
.table-wrap tbody td a:hover { color: #007a2a; text-decoration: underline; }
.table-wrap tbody td time { color: var(--c-text-muted); font-size: 13px; }

/* ========== 关于页 ========== */
.about-intro-section {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--c-border);
}
.about-vert-label {
  writing-mode: vertical-rl;
  text-orientation: mixed;
  font-size: 11px;
  letter-spacing: 0.15em;
  color: var(--c-accent);
  font-weight: 700;
  flex-shrink: 0;
  padding-top: 0.5rem;
}
.about-title-col h1 { font-size: clamp(1.6rem, 3vw, 2.4rem); font-weight: 700; margin-bottom: 0.75rem; }

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-top: 1.5rem;
}
.stat-item {
  background: var(--c-dark);
  padding: 1.5rem;
  text-align: center;
}
.stat-num { display: block; font-size: 2.5rem; font-weight: 700; color: var(--c-primary); line-height: 1; margin-bottom: 0.5rem; }
.stat-label { display: block; font-size: 13px; color: rgba(153,255,204,0.65); letter-spacing: 0.05em; }

/* ========== 隐私页 ========== */
.privacy-header-section {
  padding-bottom: 2rem;
  border-bottom: 2px solid var(--c-accent);
}
.privacy-badge {
  display: inline-block;
  background: var(--c-dark);
  color: var(--c-primary);
  font-size: 11px;
  letter-spacing: 0.1em;
  padding: 4px 12px;
  margin-bottom: 1rem;
  font-weight: 700;
}
.privacy-header-section h1 { font-size: clamp(1.5rem, 3vw, 2.2rem); margin-bottom: 0.75rem; }
.privacy-date { font-size: 14px; color: var(--c-text-muted); margin-bottom: 0.75rem; }
.privacy-prose { background: var(--c-card-bg); border: 1px solid var(--c-border); padding: 2rem; box-shadow: var(--c-shadow); }

/* ========== 文章页 ========== */
.article-hero-section {
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--c-border);
}
.article-meta { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 0.75rem; }
.pub-date, .mod-date { font-size: 13px; color: var(--c-text-muted); }
.article-hero-section h1 { font-size: clamp(1.5rem, 3.5vw, 2.4rem); font-weight: 700; margin-bottom: 0.75rem; line-height: 1.3; }
.article-lead { font-size: 1.1rem; color: var(--c-text-muted); line-height: 1.7; margin-bottom: 1.25rem; }
.article-hero-img { margin-top: 1.5rem; }
.article-hero-img .hero-img { width: 100%; max-height: 400px; object-fit: cover; }

/* ========== 相关/关联列表 ========== */
.related-list { display: flex; flex-direction: column; gap: 0.5rem; }
.related-list li a {
  display: block;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--c-border);
  color: var(--c-dark);
  text-decoration: none;
  font-size: 15px;
  transition: color 0.2s, padding-left 0.2s;
}
.related-list li a:hover { color: #007a2a; padding-left: 8px; }

/* ========== 页脚 ========== */
footer {
  background: var(--c-dark);
  color: rgba(153,255,204,0.75);
  margin-top: 5rem;
  border-top: 2px solid rgba(153,255,204,0.15);
}

.footer-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 3rem 2rem;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

.footer-brand { display: block; font-size: 1rem; color: var(--c-primary); font-weight: 700; margin-bottom: 0.75rem; }

footer address { font-style: normal; font-size: 14px; line-height: 1.7; color: rgba(153,255,204,0.55); }
footer address p { margin-bottom: 0.25rem; }

.footer-col small.eyebrow { color: var(--c-accent); margin-bottom: 0.75rem; }
.footer-col h4 { font-size: 0.95rem; font-weight: 700; color: var(--c-primary); margin-bottom: 0.75rem; }
.footer-col p { font-size: 13px; color: rgba(153,255,204,0.5); line-height: 1.65; }
.footer-col ul { display: flex; flex-direction: column; gap: 0.3rem; }
.footer-col ul li a {
  font-size: 14px;
  color: rgba(153,255,204,0.65);
  text-decoration: none;
  display: block;
  padding: 0.2rem 0;
  transition: color 0.2s;
  min-height: 28px;
}
.footer-col ul li a:hover { color: var(--c-accent); }

.footer-bottom {
  max-width: var(--container);
  margin: 0 auto;
  padding: 1.25rem 2rem;
  border-top: 1px solid rgba(153,255,204,0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 13px;
  color: rgba(153,255,204,0.45);
}

.footer-bottom ul { display: flex; gap: 1.5rem; }
.footer-bottom ul li a { color: rgba(153,255,204,0.55); text-decoration: none; font-size: 13px; min-height: 28px; display: inline-flex; align-items: center; }
.footer-bottom ul li a:hover { color: var(--c-accent); }

/* ========== Scroll Reveal（原生 JS 触发） ========== */
.stagger-item {
  opacity: 0;
  transform: translateY(20px);
}
.stagger-item.revealed {
  transition:
    opacity 0.55s ease calc(var(--stagger-i, 0) * 0.08s),
    transform 0.55s ease calc(var(--stagger-i, 0) * 0.08s);
  opacity: 1;
  transform: translateY(0);
}

/* prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .stagger-item { opacity: 1 !important; transform: none !important; }
  .art-card { opacity: 1 !important; transform: none !important; }
  .hero-blob { animation: none !important; }
}

/* ========== 响应式 ========== */
@media (max-width: 900px) {
  main {
    grid-template-columns: 1fr;
  }
  .sidebar {
    position: static;
  }
  .footer-inner {
    grid-template-columns: repeat(2, 1fr);
  }
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .brand-row { padding: 0.75rem 1rem; }
  .nav-row { padding: 0 0.5rem; display: none; }
  main { padding: 0 1rem; margin: 1.5rem auto; }
  .hero-inner { padding: 2.5rem 1rem; }
  .hero-text { text-align: left; max-width: 100%; }
  .hero h1 { font-size: 1.6rem; }
  .ch-grid { grid-template-columns: 1fr; }
  .art-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; padding: 2rem 1rem; }
  .footer-bottom { flex-direction: column; align-items: flex-start; padding: 1rem; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .about-intro-section { flex-direction: column; }
  .breadcrumb-bar { padding: 0.5rem 1rem; font-size: 12px; }
  .topbar { font-size: 12px; padding: 5px 0.75rem; }
  .table-wrap { margin: 0 -1rem; padding: 0 1rem; }
}

@media (max-width: 375px) {
  body { font-size: 16px; }
  .hero { min-height: 60vh; }
}
