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

/* ===== 变量 ===== */
:root {
  --green: #87ff71;
  --yellow: #ffce5c;
  --dark: #192617;
  --dark2: #1e3019;
  --dark3: #243b1e;
  --white: #f5fff2;
  --card-radius: 28px;
  --nav-w: 240px;
  --font: 'Atkinson Hyperlegible', system-ui, -apple-system, sans-serif;
  --shadow: 0 8px 32px rgba(25,38,23,0.45), 0 2px 8px rgba(135,255,113,0.10);
  --shadow-hover: 0 16px 48px rgba(25,38,23,0.6), 0 4px 16px rgba(135,255,113,0.18);
}

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

/* ===== 布局包装 ===== */
.site-wrap {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* ===== HEADER / NAV ===== */
.site-header {
  position: fixed;
  left: 0; top: 0;
  width: var(--nav-w);
  height: 100vh;
  background: var(--dark2);
  border-right: 3px solid var(--green);
  display: flex;
  flex-direction: column;
  z-index: 100;
  overflow-y: auto;
  overflow-x: hidden;
}

.header-announce {
  background: var(--green);
  color: var(--dark);
  font-size: 11px;
  font-weight: 700;
  text-align: center;
  padding: 6px 8px;
  letter-spacing: 0.04em;
  flex-shrink: 0;
}

.header-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
  padding: 24px 12px 24px;
  gap: 28px;
}

.brand-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.logo-mark {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 3px solid var(--yellow);
  object-fit: cover;
}

.brand-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--yellow);
  text-align: center;
  letter-spacing: 0.02em;
  line-height: 1.3;
  word-break: keep-all;
}
.brand-name:hover { text-decoration: none; color: var(--green); }

/* 导航结构：header > nav > p > a */
.site-header nav {
  width: 100%;
}

.site-header nav > p {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
}

.site-header nav > p > a {
  display: block;
  padding: 10px 14px;
  border-radius: 50px;
  background: var(--dark3);
  color: var(--white);
  font-size: 13px;
  font-weight: 700;
  text-align: center;
  letter-spacing: 0.02em;
  border: 2px solid transparent;
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.15s;
  min-height: 42px;
  line-height: 1.3;
  word-break: keep-all;
}

.site-header nav > p > a:hover,
.site-header nav > p > a[aria-current="page"] {
  background: var(--green);
  color: var(--dark);
  border-color: var(--green);
  text-decoration: none;
  transform: translateX(3px);
}

/* ===== 主内容区偏移（腾出左侧 nav） ===== */
main, .site-footer {
  margin-left: var(--nav-w);
}

/* ===== Memphis 装饰形状 ===== */
.shape {
  position: absolute;
  display: block;
  pointer-events: none;
}

.shape-tri {
  width: 0; height: 0;
  border-left: 40px solid transparent;
  border-right: 40px solid transparent;
  border-bottom: 70px solid var(--yellow);
  opacity: 0.7;
  transform: rotate(18deg);
  top: 20px; right: 60px;
}

.shape-circle {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: var(--green);
  opacity: 0.5;
  bottom: 30px; left: 20px;
  mix-blend-mode: screen;
}

.shape-zigzag {
  width: 80px; height: 20px;
  background: repeating-linear-gradient(
    90deg,
    var(--yellow) 0px, var(--yellow) 10px,
    transparent 10px, transparent 20px
  );
  opacity: 0.6;
  top: 60px; left: 30px;
  clip-path: polygon(0 100%, 10% 0, 20% 100%, 30% 0, 40% 100%, 50% 0, 60% 100%, 70% 0, 80% 100%, 90% 0, 100% 100%);
}

.shape-rect {
  width: 50px; height: 50px;
  background: var(--yellow);
  opacity: 0.4;
  transform: rotate(22deg);
  top: 15px; right: 40px;
}

.shape-dot-grid {
  width: 80px; height: 80px;
  background-image: radial-gradient(var(--green) 2px, transparent 2px);
  background-size: 12px 12px;
  opacity: 0.4;
  bottom: 20px; right: 20px;
}

.shape-tri-sm {
  width: 0; height: 0;
  border-left: 18px solid transparent;
  border-right: 18px solid transparent;
  border-bottom: 32px solid var(--green);
  opacity: 0.6;
  transform: rotate(-12deg);
  top: 10px; left: 10px;
}

.shape-circle-sm {
  width: 32px; height: 32px;
  border-radius: 50%;
  border: 4px dashed var(--yellow);
  opacity: 0.7;
  bottom: 10px; right: 10px;
}

/* ===== HERO (首页) ===== */
.hero-section {
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--dark2);
  border-bottom: 3px dashed var(--green);
  padding: 60px 40px;
}

.hero-deco-shapes {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 640px;
}

.hero-illus {
  margin: 0 auto 24px;
  width: 80px;
}
.hero-illus img { border-radius: 50%; border: 4px solid var(--yellow); }

.hero-h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 700;
  color: var(--green);
  letter-spacing: -0.01em;
  line-height: 1.2;
  margin-bottom: 16px;
}

.hero-sub {
  font-size: 1.05rem;
  color: var(--white);
  opacity: 0.85;
  max-width: 480px;
  margin: 0 auto 28px;
}

.hero-ctas {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ===== 药丸胶囊按钮 ===== */
.pill-btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 50px;
  background: var(--green);
  color: var(--dark);
  font-weight: 700;
  font-size: 15px;
  border: 2px solid var(--green);
  cursor: pointer;
  transition: background 0.2s, color 0.2s, transform 0.15s, box-shadow 0.2s;
  min-height: 44px;
  line-height: 1.3;
  text-align: center;
}
.pill-btn:hover {
  background: var(--yellow);
  border-color: var(--yellow);
  color: var(--dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(135,255,113,0.3);
  text-decoration: none;
}
.pill-btn.secondary {
  background: transparent;
  color: var(--yellow);
  border-color: var(--yellow);
}
.pill-btn.secondary:hover {
  background: var(--yellow);
  color: var(--dark);
}
.pill-btn.large {
  padding: 14px 36px;
  font-size: 16px;
}

/* ===== 内容区通用 (侧栏 + 主内容) ===== */
.content-section {
  display: flex;
  gap: 32px;
  padding: 40px 40px;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

/* 侧边栏在左 */
.sidebar {
  width: 220px;
  flex-shrink: 0;
  position: sticky;
  top: 24px;
  align-self: flex-start;
}

.sidebar h2 {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--yellow);
  margin-bottom: 12px;
  padding-bottom: 6px;
  border-bottom: 2px solid var(--yellow);
}

.aside-links {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 24px;
}

.aside-links li a {
  display: block;
  padding: 8px 12px;
  border-radius: 8px;
  color: var(--white);
  font-size: 13px;
  background: var(--dark3);
  border: 1px solid rgba(135,255,113,0.15);
  transition: background 0.2s, color 0.2s;
  min-height: 40px;
  line-height: 1.4;
}
.aside-links li a:hover {
  background: var(--green);
  color: var(--dark);
  text-decoration: none;
}

.aside-sticker {
  width: 48px;
  height: 48px;
  margin-top: 16px;
  border-radius: 50%;
  border: 4px dotted var(--green);
  transform: rotate(15deg);
}
.aside-sticker.geo-yellow { border-color: var(--yellow); border-style: dashed; }
.aside-sticker.geo-green { background: rgba(135,255,113,0.1); }

.main-content {
  flex: 1;
  min-width: 0;
}

/* ===== 正文内容 ===== */
.page-content-body {
  line-height: 1.8;
  font-size: 17px;
  max-width: 760px;
}
.page-content-body h2 {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--green);
  margin: 2em 0 0.7em;
  padding-left: 12px;
  border-left: 4px solid var(--yellow);
}
.page-content-body h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--yellow);
  margin: 1.5em 0 0.5em;
}
.page-content-body p { margin-bottom: 1.1em; }
.page-content-body ul, .page-content-body ol {
  padding-left: 1.5em;
  margin-bottom: 1em;
}
.page-content-body li { margin-bottom: 0.4em; }
.page-content-body a { color: var(--green); text-decoration: underline; }
.page-content-body strong { color: var(--yellow); }
.page-content-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5em 0;
  font-size: 15px;
}
.page-content-body th {
  background: var(--dark3);
  color: var(--yellow);
  padding: 10px 14px;
  text-align: left;
  border: 1px solid rgba(135,255,113,0.2);
}
.page-content-body td {
  padding: 9px 14px;
  border: 1px solid rgba(135,255,113,0.1);
}
.page-content-body tr:nth-child(even) td { background: rgba(255,255,255,0.03); }

/* 日期 */
.entry-date, .entry-mod {
  font-size: 13px;
  color: rgba(245,255,242,0.55);
  margin-right: 16px;
}

/* ===== 页面 Banner ===== */
.page-banner {
  position: relative;
  overflow: hidden;
  padding: 56px 40px 40px;
  background: var(--dark2);
  border-bottom: 3px solid var(--dark3);
}

.banner-deco {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.page-banner h1 {
  font-size: clamp(1.6rem, 3.5vw, 2.6rem);
  font-weight: 700;
  color: var(--green);
  max-width: 800px;
  line-height: 1.25;
  margin-bottom: 12px;
  position: relative;
  z-index: 2;
}
.banner-desc {
  font-size: 1rem;
  color: rgba(245,255,242,0.75);
  max-width: 600px;
  position: relative;
  z-index: 2;
}
.banner-date {
  margin-top: 10px;
  position: relative;
  z-index: 2;
}

.breadcrumb {
  font-size: 13px;
  color: rgba(245,255,242,0.5);
  margin-bottom: 12px;
  position: relative;
  z-index: 2;
}
.breadcrumb a { color: var(--yellow); }

.tag-eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--yellow);
  text-transform: uppercase;
  margin-bottom: 8px;
  position: relative;
  z-index: 2;
}

/* ===== 卡片 ===== */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
  padding: 0 40px 40px;
  max-width: 1200px;
  margin: 0 auto;
}

.card {
  background: var(--dark2);
  border-radius: var(--card-radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 2px solid rgba(135,255,113,0.15);
  display: flex;
  flex-direction: column;
  transition: transform 0.25s, box-shadow 0.25s;
}
.card:hover {
  transform: translateY(-6px) rotate(-0.5deg);
  box-shadow: var(--shadow-hover);
}

.card-thumb {
  overflow: hidden;
  aspect-ratio: 16/9;
  background: var(--dark3);
}
.card-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.35s; }
.card:hover .card-thumb img { transform: scale(1.06); }

.card-body {
  padding: 20px 22px 22px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.card-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--yellow);
}

.card-body h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1.4;
}

.card-date {
  font-size: 12px;
  color: rgba(245,255,242,0.45);
}

.card-desc {
  font-size: 13px;
  color: rgba(245,255,242,0.7);
  flex: 1;
  line-height: 1.6;
}

.card-sm .card-body { padding: 14px 16px 16px; }

/* ===== 栏目卡片 (首页) ===== */
.cats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 24px;
  padding: 0 40px 40px;
  max-width: 1200px;
  margin: 0 auto;
}

.cat-tile {
  position: relative;
  background: var(--dark3);
  border-radius: var(--card-radius);
  border: 2px dashed var(--yellow);
  padding: 28px 24px 24px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.25s, box-shadow 0.25s;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.cat-tile:hover {
  transform: translateY(-4px) rotate(0.3deg);
  box-shadow: var(--shadow-hover);
}

.cat-geo {
  position: absolute;
  top: -20px; right: -20px;
  width: 60px; height: 60px;
  clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
  background: var(--green);
  opacity: 0.3;
  transform: rotate(30deg);
}

.cat-tile h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--yellow);
}
.cat-tile p {
  font-size: 13px;
  color: rgba(245,255,242,0.7);
  flex: 1;
  line-height: 1.6;
}

/* ===== 区块标题 ===== */
.cats-section, .featured-section, .cards-section {
  padding-top: 8px;
}

.cats-section > h2,
.featured-section > h2,
.cards-section > h2 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--white);
  padding: 24px 40px 16px;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 12px;
}
.cats-section > h2::before,
.featured-section > h2::before,
.cards-section > h2::before {
  content: '';
  display: inline-block;
  width: 16px; height: 16px;
  background: var(--yellow);
  clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
  flex-shrink: 0;
}

/* ===== entry 页面特有 ===== */
.entry-header-section {
  position: relative;
  overflow: hidden;
  padding: 48px 40px 32px;
  background: var(--dark2);
  border-bottom: 3px solid rgba(135,255,113,0.2);
}
.entry-deco {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}
.entry-header-section h1 {
  font-size: clamp(1.5rem, 3vw, 2.4rem);
  font-weight: 700;
  color: var(--green);
  line-height: 1.25;
  margin: 12px 0 14px;
  max-width: 800px;
}
.entry-meta {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.entry-hero-wrap {
  max-width: 760px;
  border-radius: 16px;
  overflow: hidden;
  margin-top: 16px;
}
.entry-body { max-width: 760px; }
.entry-footer-links {
  margin-top: 32px;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.entry-layout { align-items: flex-start; }

/* ===== DL 列表 ===== */
.dl-wrap { margin-top: 32px; max-width: 760px; }
.entry-dl { }
.entry-dl dt {
  margin-top: 16px;
  font-weight: 700;
}
.entry-dl dt > a {
  color: var(--green);
  font-size: 1.05rem;
  border-bottom: 2px solid rgba(135,255,113,0.3);
  padding-bottom: 2px;
  transition: color 0.2s, border-color 0.2s;
}
.entry-dl dt > a:hover {
  color: var(--yellow);
  border-color: var(--yellow);
  text-decoration: none;
}
.entry-dl dd {
  font-size: 14px;
  color: rgba(245,255,242,0.65);
  margin-left: 0;
  padding: 6px 0 6px 14px;
  border-left: 3px solid rgba(135,255,113,0.2);
  margin-top: 4px;
  line-height: 1.6;
}

/* ===== 首页内容区特殊 ===== */
.home-content { padding-top: 0; }

/* ===== 页脚 ===== */
.site-footer {
  background: var(--dark2);
  border-top: 3px solid var(--green);
  padding: 32px 40px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
  margin-top: auto;
}

.footer-cta {
  font-size: 15px;
  font-weight: 700;
  color: var(--yellow);
  letter-spacing: 0.02em;
}

.site-footer small {
  font-size: 13px;
  color: rgba(245,255,242,0.45);
}
.site-footer small a {
  color: rgba(245,255,242,0.6);
  transition: color 0.2s;
}
.site-footer small a:hover { color: var(--green); }

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

/* ===== tag 页 ===== */
.tag-banner { background: var(--dark); }
.tag-links a { font-size: 13px; font-style: italic; }

/* ===== about / privacy ===== */
.about-body, .privacy-body { max-width: 720px; }

/* ===== Reduced motion ===== */
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  .card, .cat-tile, .pill-btn { transition: none; }
}

/* ===== 响应式：平板 ===== */
@media (max-width: 900px) {
  :root { --nav-w: 200px; }
  .site-header nav > p > a { font-size: 12px; padding: 9px 10px; }
  .content-section { padding: 28px 24px; gap: 20px; }
  .cards-grid { padding: 0 24px 32px; }
  .cats-grid { padding: 0 24px 32px; }
  .cats-section > h2, .featured-section > h2, .cards-section > h2 { padding: 20px 24px 12px; }
  .page-banner { padding: 40px 24px 28px; }
  .hero-section { padding: 48px 24px; }
  .entry-header-section { padding: 36px 24px 24px; }
}

/* ===== 响应式：手机 ===== */
@media (max-width: 640px) {
  :root { --nav-w: 0px; }

  .site-header {
    position: relative;
    width: 100%;
    height: auto;
    border-right: none;
    border-bottom: 3px solid var(--green);
    flex-direction: column;
  }

  .header-inner {
    flex-direction: column;
    align-items: stretch;
    padding: 14px 14px 16px;
    gap: 14px;
  }

  .brand-block { flex-direction: row; align-items: center; gap: 10px; }
  .brand-name { font-size: 14px; }

  .site-header nav > p {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: center;
  }
  .site-header nav > p > a {
    font-size: 12px;
    padding: 8px 12px;
    min-height: 40px;
    flex: 0 1 auto;
  }
  .site-header nav > p > a:hover { transform: none; }

  main, .site-footer { margin-left: 0; }

  .hero-section { min-height: 60vh; padding: 36px 18px; }
  .hero-h1 { font-size: 1.6rem; }
  .hero-ctas { flex-direction: column; align-items: center; }

  .content-section {
    flex-direction: column;
    padding: 20px 16px;
    gap: 20px;
  }
  .sidebar {
    width: 100%;
    position: static;
  }
  .sidebar h2 { font-size: 12px; }

  .cards-grid {
    grid-template-columns: 1fr;
    padding: 0 16px 24px;
    gap: 16px;
  }
  .cats-grid {
    grid-template-columns: 1fr;
    padding: 0 16px 24px;
    gap: 16px;
  }
  .cats-section > h2, .featured-section > h2, .cards-section > h2 {
    padding: 16px 16px 10px;
    font-size: 1.1rem;
  }
  .page-banner { padding: 28px 16px 20px; }
  .entry-header-section { padding: 24px 16px 18px; }
  .entry-footer-links { flex-direction: column; }
  .site-footer { padding: 24px 16px 18px; }

  .aside-sticker { display: none; }
}
