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

/* ============================================================
   CSS 变量 & 重置
   ============================================================ */
:root {
  --green: #87ff71;
  --amber: #ffce5c;
  --dark: #192617;
  --dark2: #1e2e1b;
  --dark3: #243521;
  --white: #f5f5ef;
  --text: #e8f0e6;
  --text-muted: #9ab090;
  --radius: 4px;
  --font: 'DM Sans', system-ui, -apple-system, sans-serif;
  --nav-h: 48px;
  --brand-h: 64px;
  --sidebar-w: 220px;
  --content-max: 800px;
  --gap: 24px;
}

*, *::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;
  background: var(--dark);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
a { color: var(--green); text-decoration: none; }
a:hover { text-decoration: underline; }
ul, ol { list-style: none; }
hr {
  border: none;
  border-top: 2px dashed var(--green);
  margin: 12px 0 20px;
  opacity: 0.5;
}

/* ============================================================
   全屏遮罩菜单
   ============================================================ */
.overlay {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: var(--dark2);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transform: translateX(-100%);
  transition: transform 0.35s cubic-bezier(0.77, 0, 0.18, 1);
  border-right: 4px solid var(--green);
}
.overlay.is-open {
  transform: translateX(0);
}
.overlay__close {
  position: absolute;
  top: 20px;
  right: 24px;
  background: var(--green);
  color: var(--dark);
  border: none;
  font-size: 22px;
  font-weight: 700;
  width: 44px;
  height: 44px;
  border-radius: var(--radius);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font);
}
.overlay__nav ul {
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-align: center;
}
.overlay__link {
  display: block;
  font-size: 20px;
  font-weight: 700;
  color: var(--white);
  padding: 12px 32px;
  border-radius: var(--radius);
  transition: background 0.15s, color 0.15s;
  min-height: 48px;
  line-height: 1.4;
}
.overlay__link:hover {
  background: var(--green);
  color: var(--dark);
  text-decoration: none;
}

/* ============================================================
   品牌条
   ============================================================ */
.brand-bar {
  background: var(--dark);
  border-bottom: 3px solid var(--green);
  position: sticky;
  top: 0;
  z-index: 100;
}
.brand-bar__inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--gap);
  height: var(--brand-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.brand-logo__img { height: 36px; width: auto; }
.brand-logo__text {
  font-size: 22px;
  font-weight: 700;
  color: var(--green);
  letter-spacing: -0.5px;
  white-space: nowrap;
}
.brand-logo--sm .brand-logo__text,
.brand-logo--sm {
  font-size: 16px;
  font-weight: 700;
  color: var(--green);
}
.brand-bar__deco {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* ============================================================
   导航条
   ============================================================ */
.nav-bar {
  background: var(--dark3);
  border-bottom: 2px solid var(--amber);
  position: sticky;
  top: var(--brand-h);
  z-index: 99;
}
.nav-bar__inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--gap);
  height: var(--nav-h);
  display: flex;
  align-items: center;
  gap: 12px;
}
.site-aside--navrow {
  flex: 1;
  min-width: 0;
}
.site-aside--navrow nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  align-items: center;
}
.site-aside--navrow nav ul li a {
  display: block;
  color: var(--text);
  font-size: 14px;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: var(--radius);
  white-space: nowrap;
  min-height: 40px;
  display: flex;
  align-items: center;
  transition: background 0.15s, color 0.15s;
}
.site-aside--navrow nav ul li a:hover,
.site-aside--navrow nav ul li a[aria-current="page"] {
  background: var(--green);
  color: var(--dark);
  text-decoration: none;
}

/* ============================================================
   汉堡按钮
   ============================================================ */
.hamburger {
  background: none;
  border: 2px solid var(--amber);
  border-radius: var(--radius);
  width: 44px;
  height: 44px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  flex-shrink: 0;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--amber);
  border-radius: 1px;
  transition: transform 0.2s;
}

/* ============================================================
   CTA 按钮
   ============================================================ */
.cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--green);
  color: var(--dark);
  font-weight: 700;
  font-size: 14px;
  padding: 0 18px;
  height: 40px;
  border-radius: var(--radius);
  white-space: nowrap;
  flex-shrink: 0;
  transition: background 0.15s, transform 0.1s;
  text-decoration: none;
  min-height: 40px;
}
.cta-btn:hover {
  background: var(--amber);
  color: var(--dark);
  text-decoration: none;
  transform: translateY(-1px);
}
.cta-btn--hero {
  font-size: 16px;
  height: 48px;
  padding: 0 28px;
  margin-top: 20px;
  min-height: 48px;
}
.cta-btn--block {
  display: flex;
  width: 100%;
  justify-content: center;
}

/* ============================================================
   几何装饰元素
   ============================================================ */
.geo {
  display: inline-block;
  pointer-events: none;
}
.geo--tri {
  width: 0;
  height: 0;
  border-left: 14px solid transparent;
  border-right: 14px solid transparent;
  border-bottom: 24px solid var(--green);
  transform: rotate(15deg);
}
.geo--tri.geo--lg {
  border-left-width: 28px;
  border-right-width: 28px;
  border-bottom-width: 48px;
}
.geo--circle {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--amber);
}
.geo--circle.geo--lg {
  width: 60px;
  height: 60px;
}
.geo--circle.geo--amber { background: var(--amber); }
.geo--square {
  width: 18px;
  height: 18px;
  background: var(--green);
  transform: rotate(22deg);
}
.geo--square.geo--amber { background: var(--amber); }
.geo--squiggle {
  width: 48px;
  height: 16px;
  background: none;
  border-bottom: 3px solid var(--amber);
  border-radius: 0 0 50% 50%;
  transform: scaleX(-1);
}

/* ============================================================
   HERO — 首页
   ============================================================ */
.hero--home {
  position: relative;
  min-height: 70vh;
  background: var(--dark2);
  display: flex;
  align-items: stretch;
  overflow: hidden;
}
.hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero__media .hero__img,
.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.3;
}
.hero__content {
  position: relative;
  z-index: 2;
  margin-left: auto;
  max-width: 560px;
  padding: 80px var(--gap) 80px;
  text-align: right;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.hero__eyebrow {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 12px;
}
.hero__h1 {
  font-size: clamp(28px, 5vw, 54px);
  font-weight: 700;
  line-height: 1.15;
  color: var(--green);
}
.hero__desc {
  font-size: 17px;
  color: var(--text-muted);
  margin-top: 16px;
}
.hero__clip {
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 80px;
  background: var(--dark);
  clip-path: polygon(0 100%, 100% 100%, 100% 0);
  z-index: 3;
}

/* ============================================================
   HERO — 文章页
   ============================================================ */
.article-hero {
  background: var(--dark3);
  border-bottom: 3px solid var(--amber);
  padding: 48px var(--gap) 40px;
  position: relative;
  overflow: hidden;
}
.article-hero__geo {
  position: absolute;
  top: -20px;
  left: -20px;
  width: 120px;
  height: 120px;
  background: var(--green);
  opacity: 0.08;
  clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
  transform: rotate(30deg);
}
.article-hero__content {
  max-width: 1280px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}
.article-hero__back {
  font-size: 13px;
  color: var(--text-muted);
  display: inline-block;
  margin-bottom: 12px;
  min-height: 32px;
  line-height: 32px;
}
.article-hero__back:hover { color: var(--green); text-decoration: none; }
.article-hero__h1 {
  font-size: clamp(22px, 4vw, 40px);
  font-weight: 700;
  line-height: 1.2;
  color: var(--white);
  max-width: 760px;
}
.article-hero__meta {
  margin-top: 14px;
  display: flex;
  gap: 20px;
  font-size: 13px;
  color: var(--text-muted);
}
.article-hero__meta time { color: var(--amber); }

/* ============================================================
   关于页 Banner
   ============================================================ */
.about-banner {
  background: var(--dark2);
  border-bottom: 3px solid var(--green);
  min-height: 200px;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 40px var(--gap);
}
.about-banner__shapes {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  gap: 20px;
  padding: 20px;
  opacity: 0.25;
}
.about-banner__content {
  position: relative;
  z-index: 1;
  max-width: 1280px;
  width: 100%;
  margin: 0 auto;
}
.about-banner__eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 3px;
  color: var(--amber);
  text-transform: uppercase;
  margin-bottom: 10px;
}
.about-banner__h1 {
  font-size: clamp(24px, 4vw, 42px);
  font-weight: 700;
  color: var(--green);
}

/* ============================================================
   隐私页 Header
   ============================================================ */
.privacy-header {
  background: var(--dark3);
  border-bottom: 3px solid var(--amber);
  padding: 40px var(--gap);
  position: relative;
  overflow: hidden;
}
.privacy-header__stripe {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 6px;
  background: repeating-linear-gradient(
    180deg,
    var(--amber) 0px,
    var(--amber) 10px,
    transparent 10px,
    transparent 20px
  );
}
.privacy-header__content {
  max-width: 1280px;
  margin: 0 auto;
  padding-left: 20px;
}
.privacy-header__h1 {
  font-size: clamp(22px, 3.5vw, 36px);
  font-weight: 700;
  color: var(--white);
}
.privacy-header__date {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 8px;
}
.privacy-header__date time { color: var(--amber); }

/* ============================================================
   页面主体布局 (sidebar + main)
   ============================================================ */
.page-body {
  max-width: 1280px;
  margin: 0 auto;
  padding: 40px var(--gap);
  display: flex;
  gap: 40px;
  align-items: flex-start;
}

.sidebar {
  width: var(--sidebar-w);
  flex-shrink: 0;
  position: sticky;
  top: calc(var(--brand-h) + var(--nav-h) + 20px);
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.sidebar__block {
  background: var(--dark3);
  border-radius: var(--radius);
  padding: 20px;
  border-left: 3px solid var(--green);
}
.sidebar__block--cta {
  border-left-color: var(--amber);
}
.sidebar__block--info {
  border-left-color: var(--amber);
}
.sidebar__title {
  font-size: 14px;
  font-weight: 700;
  color: var(--green);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 4px;
}
.sidebar__block nav ul {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.sidebar__block nav ul li a {
  display: block;
  font-size: 14px;
  color: var(--text-muted);
  padding: 6px 8px;
  border-radius: var(--radius);
  min-height: 36px;
  line-height: 1.4;
  display: flex;
  align-items: center;
  transition: background 0.15s, color 0.15s;
}
.sidebar__block nav ul li a:hover {
  background: var(--dark);
  color: var(--green);
  text-decoration: none;
}
.sidebar__cta-label {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 10px;
  font-weight: 500;
}
.sidebar__deco {
  display: flex;
  justify-content: center;
  padding: 8px;
}
.sidebar__info-label {
  font-size: 12px;
  color: var(--amber);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 6px;
}
.sidebar__info-text {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
}

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

/* ============================================================
   正文排版
   ============================================================ */
.prose {
  max-width: var(--content-max);
  font-size: 17px;
  line-height: 1.8;
  color: var(--text);
}
.prose h1 {
  font-size: clamp(24px, 4vw, 40px);
  font-weight: 700;
  color: var(--green);
  margin-bottom: 20px;
  line-height: 1.2;
}
.prose h2 {
  font-size: 22px;
  font-weight: 700;
  color: var(--amber);
  margin: 40px 0 4px;
}
.prose h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--green);
  margin: 28px 0 8px;
}
.prose p { margin-bottom: 18px; }
.prose ul, .prose ol {
  list-style: disc;
  padding-left: 24px;
  margin-bottom: 18px;
}
.prose ol { list-style: decimal; }
.prose li { margin-bottom: 6px; }
.prose a { color: var(--green); text-decoration: underline; }
.prose a:hover { color: var(--amber); }
.prose strong { color: var(--white); font-weight: 700; }
.prose blockquote {
  border-left: 4px solid var(--amber);
  padding: 12px 20px;
  margin: 24px 0;
  background: var(--dark3);
  border-radius: 0 var(--radius) var(--radius) 0;
  color: var(--text-muted);
  font-style: italic;
}
.prose code {
  background: var(--dark3);
  color: var(--green);
  padding: 2px 6px;
  border-radius: 3px;
  font-size: 15px;
}
.prose hr {
  border-top-color: var(--amber);
  margin: 32px 0;
}
.prose time { color: var(--amber); font-weight: 500; }

/* ============================================================
   区块标题
   ============================================================ */
.section-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--amber);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 4px;
}

/* ============================================================
   卡片网格
   ============================================================ */
.cards-section {
  margin-top: 48px;
}
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
  margin-top: 8px;
}
.cards-grid--sm {
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
}
.card {
  background: var(--dark3);
  border-radius: var(--radius);
  padding: 20px;
  border-top: 3px solid var(--green);
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: transform 0.2s, border-color 0.2s;
}
.card:hover {
  transform: translateY(-3px);
  border-color: var(--amber);
}
.card__tag {
  font-size: 11px;
  font-weight: 700;
  color: var(--dark);
  background: var(--green);
  display: inline-block;
  padding: 2px 8px;
  border-radius: 2px;
  text-transform: uppercase;
  letter-spacing: 1px;
  align-self: flex-start;
}
.card__title {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.4;
}
.card__title a {
  color: var(--white);
  text-decoration: none;
}
.card__title a:hover { color: var(--green); }
.card__desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
  flex: 1;
}
.card__date {
  font-size: 12px;
  color: var(--amber);
  font-weight: 500;
}

/* 错位动画 */
@media (prefers-reduced-motion: no-preference) {
  .card--stagger {
    opacity: 0;
    transform: translateY(24px);
    animation: cardIn 0.45s cubic-bezier(0.22, 1, 0.36, 1) forwards;
    animation-delay: calc(var(--i, 0) * 80ms);
  }
  @keyframes cardIn {
    to { opacity: 1; transform: translateY(0); }
  }
}

/* ============================================================
   关于页 / 隐私页 DL 列表
   ============================================================ */
.about-dl {
  display: grid;
  gap: 0;
}
.about-dl dt {
  font-weight: 700;
  padding: 12px 0 4px;
  border-top: 1px solid rgba(135, 255, 113, 0.15);
}
.about-dl dt:first-child { border-top: none; }
.about-dl dt a {
  color: var(--green);
  font-size: 16px;
  text-decoration: none;
  display: inline-block;
  min-height: 28px;
  line-height: 1.5;
}
.about-dl dt a:hover { color: var(--amber); text-decoration: underline; }
.about-dl dd {
  font-size: 14px;
  color: var(--text-muted);
  padding-bottom: 12px;
  padding-left: 0;
}

/* ============================================================
   文章页底部导航
   ============================================================ */
.article-footer-nav {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 2px dashed rgba(135, 255, 113, 0.2);
}

/* ============================================================
   隐私页尾部
   ============================================================ */
.privacy-foot {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 2px dashed rgba(255, 206, 92, 0.2);
}

/* ============================================================
   关于页链接区
   ============================================================ */
.about-links {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 2px dashed rgba(135, 255, 113, 0.2);
}

/* ============================================================
   页脚
   ============================================================ */
.site-footer {
  background: var(--dark2);
  border-top: 3px solid var(--green);
  margin-top: 60px;
}
.footer__inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 28px var(--gap);
  display: flex;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
}
.footer__logo {
  flex-shrink: 0;
}
.footer__nav {
  flex: 1;
  min-width: 0;
}
.footer__nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}
.footer__nav ul li a {
  color: var(--text-muted);
  font-size: 13px;
  padding: 6px 10px;
  border-radius: var(--radius);
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  transition: color 0.15s, background 0.15s;
}
.footer__nav ul li a:hover {
  color: var(--green);
  background: rgba(135, 255, 113, 0.08);
  text-decoration: none;
}
.footer__copy {
  text-align: center;
  font-size: 12px;
  color: var(--text-muted);
  flex-shrink: 0;
}
.footer__note {
  margin-top: 4px;
  opacity: 0.7;
}

/* ============================================================
   首页特殊区块
   ============================================================ */
.page-body--home .main-content .prose {
  margin-bottom: 0;
}

/* ============================================================
   移动端响应
   ============================================================ */
@media (max-width: 900px) {
  .page-body {
    flex-direction: column;
    gap: 28px;
  }
  .sidebar {
    width: 100%;
    position: static;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 16px;
  }
  .sidebar__block {
    flex: 1;
    min-width: 200px;
  }
}

@media (max-width: 640px) {
  :root {
    --brand-h: 56px;
    --nav-h: 44px;
    --gap: 16px;
    --sidebar-w: 100%;
  }

  .brand-logo__text { font-size: 17px; }

  .site-aside--navrow nav ul li a {
    font-size: 12px;
    padding: 4px 8px;
  }

  /* 小屏隐藏导航文字，只保留汉堡 */
  .site-aside--navrow {
    display: none;
  }

  .hero--home {
    min-height: 60vh;
  }
  .hero__content {
    text-align: left;
    margin-left: 0;
    max-width: 100%;
    padding: 48px 16px 64px;
  }

  .footer__inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
  .footer__copy {
    text-align: left;
  }

  .cards-grid {
    grid-template-columns: 1fr;
  }

  .about-banner {
    min-height: 140px;
    padding: 28px var(--gap);
  }
  .about-banner__shapes { display: none; }
}

@media (max-width: 480px) {
  body { font-size: 16px; }

  .brand-bar__deco { display: none; }

  .sidebar { flex-direction: column; }

  .article-hero { padding: 28px var(--gap) 24px; }
}

/* ============================================================
   prefers-reduced-motion 全局关闭动效
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .overlay { transition: none; }
}
