:root {
  --ink: #17211d;
  --muted: #65706b;
  --paper: #f7f2e8;
  --paper-2: #ebe4d7;
  --green: #123f32;
  --green-2: #22624f;
  --amber: #d99b2b;
  --blue: #168ce2;
  --red: #e9533e;
  --line: rgba(23, 33, 29, .13);
  --shadow: 0 28px 80px rgba(18, 63, 50, .14);
  --radius: 28px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 18% 0%, rgba(217, 155, 43, .13), transparent 34rem),
    linear-gradient(180deg, #fbf8f1 0%, var(--paper) 48%, #f6f0e5 100%);
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

.skip-link {
  position: fixed;
  left: 16px;
  top: -60px;
  z-index: 100;
  padding: 10px 14px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  transition: top .2s ease;
}

.skip-link:focus {
  top: 16px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: min(1180px, calc(100% - 32px));
  margin: 14px auto 0;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, .62);
  border-radius: 999px;
  background: rgba(250, 247, 240, .82);
  backdrop-filter: blur(18px);
  box-shadow: 0 18px 55px rgba(18, 63, 50, .08);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

/* 品牌字标。原来这里是一个用渐变画出来的占位方块（.brand-mark），现在换成真图。
   字标本身是透明底的手写字，四周不加圆角和阴影——那两样是给纯色方块用的，
   套在透明底的字上会切掉笔画边缘、并在字周围投出一圈灰边。
   写死 40×40 且 object-fit: contain：图是正方形的，但万一以后换成别的比例，
   contain 会留白而不是把字裁掉。 */
.brand-logo {
  width: 40px;
  height: 40px;
  flex: none;
  object-fit: contain;
}

.brand strong {
  display: block;
  font-size: 14px;
  line-height: 1.1;
}

.brand small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 5px;
  color: #31413b;
  font-size: 14px;
}

.site-nav a {
  padding: 9px 12px;
  border-radius: 999px;
  transition: background .2s ease, color .2s ease;
}

.site-nav a:hover {
  background: rgba(18, 63, 50, .08);
  color: var(--green);
}

.nav-toggle {
  display: none;
}

main {
  overflow: hidden;
}

section {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 110px 0;
}

.hero {
  min-height: calc(100dvh - 70px);
  display: grid;
  grid-template-columns: .86fr 1.14fr;
  align-items: center;
  gap: 52px;
  padding-top: 70px;
}

.hero-copy,
.feature-copy,
.platform-copy,
.security-copy {
  position: relative;
  z-index: 2;
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--green-2);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 42rem;
  margin-bottom: 24px;
  font-size: clamp(42px, 5.2vw, 66px);
  line-height: 1.08;
  letter-spacing: 0;
  text-wrap: balance;
}

h2 {
  max-width: 13ch;
  margin-bottom: 18px;
  font-size: clamp(38px, 5.4vw, 58px);
  line-height: .98;
  letter-spacing: 0;
  text-wrap: balance;
}

h3 {
  margin-bottom: 14px;
  font-size: clamp(26px, 3.2vw, 44px);
  line-height: 1.05;
  letter-spacing: 0;
}

.hero-lede,
.section-intro p,
.feature-copy p,
.platform-copy p,
.security-copy p {
  max-width: 38rem;
  color: var(--muted);
  font-size: clamp(17px, 1.7vw, 21px);
  line-height: 1.72;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.btn,
.detail-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  transition: transform .2s ease, background .2s ease, border-color .2s ease, color .2s ease;
}

.btn:hover,
.detail-trigger:hover {
  transform: translateY(-2px);
}

.btn:active,
.detail-trigger:active {
  transform: translateY(0);
}

.btn-primary {
  color: #fff;
  background: var(--green);
  box-shadow: 0 14px 35px rgba(18, 63, 50, .24);
}

.btn-secondary {
  color: var(--green);
  background: rgba(255, 255, 255, .58);
  border-color: var(--line);
}

.detail-trigger {
  margin-top: 22px;
  color: var(--green);
  background: rgba(18, 63, 50, .07);
  border-color: rgba(18, 63, 50, .1);
}

.image-slot {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 520px;
  border: 1px solid rgba(255, 255, 255, .65);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 76% 20%, rgba(22, 140, 226, .18), transparent 20rem),
    radial-gradient(circle at 30% 80%, rgba(217, 155, 43, .16), transparent 18rem),
    linear-gradient(145deg, rgba(255, 255, 255, .72), rgba(235, 228, 215, .72));
  box-shadow: var(--shadow);
  overflow: hidden;
  isolation: isolate;
}

.image-slot::before {
  content: "";
  position: absolute;
  inset: 34px;
  border-radius: calc(var(--radius) - 8px);
  background-image:
    linear-gradient(rgba(18, 63, 50, .08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(18, 63, 50, .08) 1px, transparent 1px);
  background-size: 38px 38px;
  mask-image: radial-gradient(circle at 50% 50%, #000, transparent 72%);
  opacity: .45;
  z-index: -1;
}

.image-slot::after {
  content: attr(data-image);
  position: absolute;
  right: 22px;
  bottom: 18px;
  color: rgba(23, 33, 29, .42);
  font-size: 12px;
  font-weight: 700;
}

.image-slot b {
  display: block;
  color: var(--green);
  font-size: clamp(28px, 3vw, 46px);
  line-height: 1;
  letter-spacing: -0.03em;
}

.image-slot.has-image {
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

.image-slot.has-image::before {
  opacity: 0;
}

.image-slot.has-image>* {
  opacity: 0;
  pointer-events: none;
}

.image-slot.has-image::after {
  content: "";
}

.image-slot small {
  display: block;
  margin-top: 12px;
  color: var(--muted);
  font-size: 15px;
}

.slot-kicker {
  display: inline-flex;
  margin-bottom: 18px;
  padding: 7px 10px;
  border-radius: 999px;
  color: var(--green);
  background: rgba(18, 63, 50, .08);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .12em;
}

.image-slot-hero {
  min-height: 620px;
}

.section-intro {
  display: grid;
  grid-template-columns: .75fr 1.1fr;
  align-items: end;
  gap: 40px;
  margin-bottom: 42px;
}

.section-intro .eyebrow {
  grid-column: 1 / -1;
  margin-bottom: -20px;
}

.section-intro h2 {
  margin: 0;
}

.section-intro p {
  margin: 0;
}

.manifesto {
  padding-top: 70px;
}

.belief-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
}

.belief-tab {
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(255, 255, 255, .45);
  cursor: pointer;
}

.belief-tab.is-active {
  color: #fff;
  background: var(--green);
  border-color: var(--green);
}

.belief-stage {
  display: grid;
  grid-template-columns: .76fr 1.24fr;
  gap: 24px;
  align-items: stretch;
}

.belief-copy {
  padding: clamp(28px, 5vw, 58px);
  border-radius: var(--radius);
  color: #eef7f1;
  background:
    radial-gradient(circle at 12% 8%, rgba(217, 155, 43, .22), transparent 18rem),
    linear-gradient(145deg, #123f32, #0b2a22);
  box-shadow: var(--shadow);
}

.belief-copy span {
  display: inline-block;
  margin-bottom: 64px;
  color: rgba(255, 255, 255, .56);
  font-weight: 800;
  letter-spacing: .14em;
}

.belief-copy p {
  color: rgba(238, 247, 241, .78);
  font-size: 19px;
}

.belief-copy .detail-trigger {
  color: #fff;
  background: rgba(255, 255, 255, .11);
  border-color: rgba(255, 255, 255, .12);
}

.feature,
.security-section {
  display: grid;
  grid-template-columns: .82fr 1.18fr;
  gap: 42px;
  align-items: center;
}

.feature-reverse {
  grid-template-columns: 1.18fr .82fr;
}

.feature-reverse .feature-copy {
  order: 2;
}

.feature-reverse .image-slot {
  order: 1;
}

.feature .image-slot,
.security-section .image-slot {
  min-height: 560px;
}

.path-layout {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 26px;
  align-items: start;
}

.grade-rail {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.grade-rail li {
  min-height: 82px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, .46);
}

.grade-rail b {
  display: block;
  color: var(--green);
  font-size: 26px;
  line-height: 1;
}

.grade-rail span {
  color: var(--muted);
  font-size: 14px;
}

.path-layout .detail-trigger {
  justify-self: start;
}

.platform {
  display: grid;
  grid-template-columns: .72fr 1.28fr;
  gap: 42px;
  align-items: center;
}

.platform-grid {
  display: grid;
  gap: 16px;
}

.platform-grid .image-slot {
  min-height: 520px;
}

.capability-list {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}

.capability-list span {
  padding: 13px 10px;
  border-radius: 14px;
  color: var(--green);
  background: rgba(18, 63, 50, .08);
  font-size: 13px;
  font-weight: 700;
  text-align: center;
}

.security-section {
  width: 100%;
  max-width: none;
  padding-inline: max(16px, calc((100% - 1180px) / 2));
  background: linear-gradient(135deg, #123f32, #0b2a22);
  color: #f5f1e8;
}

.security-copy p {
  color: rgba(245, 241, 232, .72);
}

.security-section .eyebrow {
  color: #d8b060;
}

.security-section .detail-trigger {
  color: #fff;
  background: rgba(255, 255, 255, .1);
  border-color: rgba(255, 255, 255, .12);
}

.security-section .image-slot {
  background:
    radial-gradient(circle at 75% 25%, rgba(217, 155, 43, .18), transparent 20rem),
    linear-gradient(145deg, rgba(255, 255, 255, .12), rgba(255, 255, 255, .04));
  border-color: rgba(255, 255, 255, .14);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.security-section .image-slot b {
  color: #f5f1e8;
}

.security-section .image-slot small,
.security-section .image-slot::after {
  color: rgba(245, 241, 232, .55);
}

.articles .article-shell {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 24px;
  align-items: start;
}

.article-visual {
  min-height: 520px;
}

.article-panel {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .46);
}

.article-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.article-filters button {
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(255, 255, 255, .6);
  cursor: pointer;
}

.article-filters button.is-active {
  color: #fff;
  background: var(--green);
  border-color: var(--green);
}

.article-grid {
  display: grid;
  gap: 10px;
}

.article-card {
  display: block;
  padding: 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, .72);
  transition: transform .2s ease, box-shadow .2s ease;
}

.article-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 45px rgba(18, 63, 50, .1);
}

.article-card span {
  color: var(--green-2);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .1em;
}

.article-card h3 {
  margin: 9px 0 8px;
  font-size: 22px;
  line-height: 1.15;
}

.article-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.detail-drawer {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: none;
}

.detail-drawer.is-open {
  display: block;
}

.detail-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(11, 42, 34, .42);
  backdrop-filter: blur(5px);
}

.detail-panel {
  position: absolute;
  top: 18px;
  right: 18px;
  bottom: 18px;
  width: min(560px, calc(100% - 36px));
  padding: clamp(26px, 4vw, 44px);
  border-radius: var(--radius);
  background: #fbf8f1;
  box-shadow: 0 35px 120px rgba(0, 0, 0, .22);
  overflow: auto;
}

.detail-close {
  position: sticky;
  top: 0;
  float: right;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 999px;
  color: var(--green);
  background: rgba(18, 63, 50, .08);
  cursor: pointer;
  font-size: 24px;
  line-height: 1;
}

#detail-body {
  color: var(--muted);
  font-size: 17px;
}

#detail-body ul,
#detail-body ol {
  padding-left: 1.2em;
}

#detail-body li {
  margin: 10px 0;
}

#detail-body table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

#detail-body td,
#detail-body th {
  padding: 10px;
  border-bottom: 1px solid var(--line);
  text-align: left;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 36px 0 54px;
  color: var(--muted);
  border-top: 1px solid var(--line);
}

.site-footer strong {
  color: var(--ink);
}

.site-footer p {
  margin: 6px 0 0;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.site-footer a:hover {
  color: var(--green);
}

@media (max-width: 980px) {
  .site-header {
    border-radius: 24px;
  }

  .nav-toggle {
    display: inline-grid;
    gap: 5px;
    width: 42px;
    height: 42px;
    place-content: center;
    border: 0;
    border-radius: 999px;
    background: rgba(18, 63, 50, .08);
  }

  .nav-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    background: var(--green);
  }

  .site-nav {
    position: absolute;
    left: 12px;
    right: 12px;
    top: calc(100% + 8px);
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: #fbf8f1;
  }

  .site-header.nav-open .site-nav {
    display: flex;
  }

  .hero,
  .feature,
  .feature-reverse,
  .platform,
  .path-layout,
  .articles .article-shell,
  .security-section {
    grid-template-columns: 1fr;
  }

  .feature-reverse .feature-copy,
  .feature-reverse .image-slot {
    order: initial;
  }

  .section-intro {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .section-intro .eyebrow {
    margin-bottom: 0;
  }

  h1 {
    max-width: 100%;
  }

  h2 {
    max-width: 12ch;
  }

  .capability-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  section {
    width: min(100% - 24px, 1180px);
    padding: 72px 0;
  }

  .hero {
    padding-top: 54px;
  }

  .image-slot,
  .image-slot-hero,
  .feature .image-slot,
  .security-section .image-slot {
    min-height: 360px;
  }

  .belief-stage,
  .grade-rail {
    grid-template-columns: 1fr;
  }

  .belief-copy span {
    margin-bottom: 34px;
  }

  .site-footer {
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

/* 深色区那张图只显示一小块的修复。
   .image-slot.has-image 在第 236 行设了 background-size: cover，但第 413 行的
   .security-section .image-slot 用 background 简写重设了背景——简写会把 background-size
   一并重置回 auto，而两条权重相同(0,2,0)、后者靠后，于是深色区的图按原始像素尺寸平铺，
   1498×1050 的图塞进约 800×560 的框，只看得见中间一小块。

   这里用 0,3,0 的选择器把尺寸重新钉死，与书写顺序无关，将来再加分节级背景也不会被顶掉。
   教训：给已经有 has-image 状态的容器写分节样式时，用 background-color / background-image
   这类具体属性，别用 background 简写。 */
.image-slot.has-image,
.security-section .image-slot.has-image {
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}
/* ---------- 家长指南：接后台之后新增的几个状态 ---------- */

/* 「查看全部」通向 /articles ——那一页由平台后端渲染，是完整的列表 */
.article-all { margin: 16px 0 0; }
.article-all a {
  font-size: 15px;
  font-weight: 700;
  color: var(--green-2);
  border-bottom: 1px solid rgba(34, 98, 79, .3);
  padding-bottom: 2px;
  transition: color .18s ease, border-color .18s ease;
}
.article-all a:hover { color: var(--green); border-color: var(--green); }

/* 某个分类下暂时没有文章，或接口和兜底都取不到时 */
.article-empty {
  margin: 0;
  padding: 18px 0;
  color: var(--muted);
  font-size: 15px;
}

/* 没有详情地址的条目：仍然显示，但不做成链接——点了没反应比不能点更让人困惑 */
.article-card--flat { cursor: default; }
