/* ==========================================================================
   常青 / EVERGREEN · 服务优势（advantages）
   --------------------------------------------------------------------------
   只负责本页内容区：令牌与顶部 / 底部组件来自 theme.css。
   深色首屏 + 编号矩阵 + 图文交替 + 对比表 + 深绿数据条，
   内容始终 100% 可见，不做隐藏式入场动画。
   ========================================================================== */

.ag-main { display: block; background: var(--g-cream); }
.ag-wrap { width: min(var(--g-wrap), calc(100% - 64px)); margin-inline: auto; }
.ag-sec { padding: clamp(72px, 8vw, 118px) 0; }
.ag-main :focus-visible { outline: 3px solid var(--g-leaf); outline-offset: 3px; }
.ag-main h1, .ag-main h2, .ag-main h3 { text-wrap: balance; }

/* ---------- 通用标题区 ----------
   标题容器铺满内容区，多行时由 text-wrap:balance 均分，避免末行孤字；
   只有说明段落限制阅读宽度。 */
.ag-sec-head { margin-bottom: 46px; max-width: none; }
.ag-sec-head h2 {
  font-size: clamp(28px, 3.15vw, 42px); line-height: 1.3;
  margin: 16px 0 16px; color: var(--g-ink);
}
.ag-sec-head > p, .ag-sec-head--split > p {
  font-size: 16px; line-height: 1.85; color: var(--g-muted); max-width: 68ch;
}
.ag-sec-head--split {
  display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, .8fr);
  gap: clamp(24px, 4vw, 60px); align-items: end;
}
.ag-sec-head--split > div { min-width: 0; }
.ag-sec-head--split > p { padding-bottom: 6px; }
.ag-more {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 26px;
  font-size: 14px; font-weight: 700; color: var(--g-green);
}
.ag-more svg { width: 17px; height: 17px; }
.ag-more:hover { gap: 13px; text-decoration: underline; text-underline-offset: 5px; }

/* ---------- 1. 首屏：深松绿 banner ---------- */
.ag-hero {
  position: relative; overflow: hidden; isolation: isolate;
  padding: 34px 0 clamp(56px, 6vw, 88px);
  background: var(--g-deep); color: #fff;
}
.ag-hero-bg {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-position: center; background-size: cover; background-repeat: no-repeat;
  opacity: 1;
}
.ag-hero-veil {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(13,47,34,.8) 0%, rgba(13,47,34,.62) 46%, rgba(13,47,34,.26) 100%),
    linear-gradient(180deg, rgba(13,47,34,.14) 0%, rgba(13,47,34,.32) 100%);
}
.ag-hero-glow {
  position: absolute; right: -240px; top: -320px; width: 700px; height: 700px; z-index: 0;
  border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgba(98,173,123,.22), transparent 68%);
}
.ag-hero .ag-wrap { position: relative; z-index: 1; }
.ag-hero-grid {
  display: grid; grid-template-columns: minmax(0, 1.04fr) minmax(0, .96fr);
  gap: clamp(36px, 5vw, 78px); align-items: center;
}
.ag-hero-copy { min-width: 0; }
.ag-crumb {
  display: flex; align-items: center; gap: 10px;
  font-size: 13px; color: rgba(255,255,255,.62); margin-bottom: 28px;
}
.ag-crumb a:hover { color: var(--g-leaf); }
.ag-crumb span[aria-current] { color: #fff; font-weight: 600; }
.ag-hero .g-eyebrow { color: var(--g-leaf); }
.ag-hero .g-eyebrow::before { background: var(--g-leaf); }
.ag-hero-copy h1 {
  font-size: clamp(36px, 4.1vw, 58px); line-height: 1.18; letter-spacing: -.03em;
  color: #fff; margin: 18px 0 22px;
}
.ag-h1-sub {
  display: block; margin-top: 12px; letter-spacing: 0;
  font-size: clamp(21px, 2.4vw, 33px); font-weight: 700; color: var(--g-leaf);
}
.ag-hero-lead { font-size: 18px; line-height: 1.85; color: rgba(255,255,255,.86); max-width: 56ch; }
.ag-hero-note { margin-top: 16px; font-size: 14.5px; line-height: 1.9; color: rgba(255,255,255,.7); max-width: 58ch; }
.ag-hero-btns { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.ag-hero-btns .g-btn-primary { background: #fff; color: var(--g-deep); box-shadow: 0 14px 30px -16px rgba(0,0,0,.6); }
.ag-hero-btns .g-btn-primary:hover { background: var(--g-leaf); color: var(--g-deep); }
.ag-hero-btns .g-btn-ghost { color: #fff; border-color: rgba(255,255,255,.45); }
.ag-hero-btns .g-btn-ghost:hover { background: rgba(255,255,255,.12); border-color: #fff; }
.ag-hero-btns .g-btn svg { width: 18px; height: 18px; }
.ag-hero-media {
  position: relative; margin: 0; overflow: hidden; border-radius: 28px;
  border: 1px solid rgba(255,255,255,.18);
  box-shadow: 0 40px 90px -40px rgba(0,0,0,.65);
}
.ag-hero-media img { width: 100%; height: auto; aspect-ratio: 4 / 3.5; object-fit: cover; }
.ag-hero-cap {
  position: absolute; left: 20px; bottom: 20px;
  display: inline-flex; align-items: center; gap: 9px;
  background: rgba(255,255,255,.96); color: var(--g-ink);
  font-size: 13px; font-weight: 700; padding: 11px 17px; border-radius: 999px;
  box-shadow: 0 10px 26px -14px rgba(13,47,34,.5);
}
.ag-cap-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--g-green-2); flex: 0 0 8px; }

/* 首屏统计条：白底卡片压在深色 banner 下沿 */
.ag-facts {
  position: relative; z-index: 1;
  margin: clamp(34px, 4vw, 54px) 0 0; display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  background: #fff; color: var(--g-text);
  border: 1px solid rgba(255,255,255,.16); border-radius: var(--g-r-lg);
  overflow: hidden; box-shadow: 0 24px 60px -40px rgba(0,0,0,.75);
}
.ag-facts > div { padding: 26px 24px 24px; border-right: 1px solid var(--g-line); min-width: 0; }
.ag-facts > div:last-child { border-right: 0; }
.ag-facts dt { font-size: 13px; color: var(--g-muted); letter-spacing: .02em; }
.ag-facts dd { margin: 8px 0 4px; color: var(--g-green); line-height: 1; }
.ag-facts dd b { font-size: clamp(32px, 3.2vw, 44px); font-weight: 800; letter-spacing: -.04em; }
.ag-facts dd span { font-size: 14px; font-weight: 700; margin-left: 4px; }
.ag-facts p { font-size: 12.5px; line-height: 1.6; color: var(--g-muted); }

/* ---------- 2. 六项核心优势：编号矩阵 ---------- */
.ag-matrix { background: #fff; }
.ag-matrix-grid {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 1px solid var(--g-line); border-radius: var(--g-r-lg);
  overflow: hidden; background: var(--g-line);
  gap: 1px;
}
.ag-matrix-cell {
  position: relative; background: #fff; padding: 34px 30px 34px;
  transition: background .25s var(--g-ease);
}
.ag-matrix-cell:hover { background: var(--g-cream); }
.ag-matrix-n {
  display: block; font-size: clamp(30px, 3vw, 40px); font-weight: 800;
  line-height: 1; letter-spacing: -.05em; color: var(--g-mint-2);
}
.ag-matrix-cell h3 { font-size: 18px; line-height: 1.45; margin: 16px 0 10px; color: var(--g-ink); }
.ag-matrix-cell p { font-size: 14px; line-height: 1.85; color: var(--g-muted); }

/* ---------- 3. 自有资源：图文交替 ---------- */
.ag-stories { background: var(--g-cream); }
.ag-story-list { display: grid; gap: clamp(48px, 6vw, 84px); }
.ag-story {
  display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(0, .98fr);
  gap: clamp(32px, 4.5vw, 70px); align-items: center;
}
.ag-story--rev .ag-story-media { order: 2; }
.ag-story--rev .ag-story-copy { order: 1; }
.ag-story-media { margin: 0; min-width: 0; }
.ag-story-media img {
  width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover;
  border-radius: var(--g-r-lg); box-shadow: var(--g-shadow);
  background: var(--g-mint);
}
.ag-story-media figcaption { margin-top: 12px; font-size: 12.5px; line-height: 1.7; color: var(--g-muted); }
.ag-story-copy { min-width: 0; }
.ag-story-tag {
  display: inline-flex; align-items: center; height: 28px; padding: 0 14px;
  border-radius: 999px; background: var(--g-mint); border: 1px solid var(--g-mint-2);
  font-size: 12px; font-weight: 800; letter-spacing: .06em; color: var(--g-green);
}
.ag-story-copy h3 { font-size: clamp(22px, 2.3vw, 30px); line-height: 1.4; margin: 18px 0 14px; color: var(--g-ink); }
.ag-story-desc { font-size: 15.5px; line-height: 1.95; color: var(--g-muted); max-width: 68ch; }
.ag-story-points { margin-top: 22px; display: grid; gap: 12px; }
.ag-story-points li { display: flex; align-items: flex-start; gap: 11px; font-size: 14.5px; line-height: 1.75; color: var(--g-text); }
.ag-tick {
  flex: 0 0 22px; width: 22px; height: 22px; margin-top: 1px; border-radius: 50%;
  display: grid; place-items: center; background: var(--g-mint); color: var(--g-green);
}
.ag-tick svg { width: 13px; height: 13px; }

/* ---------- 4. 服务承诺对比：表格 ---------- */
.ag-compare { background: var(--g-mint); }
.ag-table-scroll {
  overflow-x: auto; border: 1px solid var(--g-line); border-radius: var(--g-r-lg);
  background: #fff; box-shadow: 0 20px 50px -40px rgba(13,47,34,.5);
}
.ag-table { width: 100%; min-width: 720px; border-collapse: collapse; font-size: 14.5px; }
.ag-table thead th {
  padding: 17px 22px; text-align: left; white-space: nowrap;
  font-size: 13px; font-weight: 800; letter-spacing: .04em;
  color: var(--g-ink); background: var(--g-cream);
  border-bottom: 1px solid var(--g-line);
}
.ag-table thead th:nth-child(2) { color: var(--g-green); background: var(--g-mint); }
.ag-table tbody th {
  width: 20%; padding: 18px 22px; text-align: left; white-space: nowrap;
  font-size: 14px; font-weight: 700; color: var(--g-ink);
  background: var(--g-cream); border-bottom: 1px solid var(--g-line);
}
.ag-table tbody td {
  padding: 18px 22px; line-height: 1.8; color: var(--g-text);
  border-bottom: 1px solid var(--g-line); vertical-align: top;
}
.ag-table tbody td:nth-child(2) { font-weight: 600; color: var(--g-ink); background: rgba(233,244,236,.6); }
.ag-table tbody tr:last-child th, .ag-table tbody tr:last-child td { border-bottom: 0; }
.ag-table-note { margin-top: 20px; font-size: 13px; line-height: 1.8; color: var(--g-muted); }
.ag-sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- 5. 客户价值：深绿数据条 ---------- */
.ag-stats {
  background: var(--g-deep); color: #fff;
  padding: clamp(64px, 7vw, 100px) 0;
}
.ag-stats .g-eyebrow { color: var(--g-leaf); }
.ag-stats .g-eyebrow::before { background: var(--g-leaf); }
.ag-stats-head { margin-bottom: clamp(30px, 3.6vw, 46px); }
.ag-stats-head h2 { font-size: clamp(28px, 3.15vw, 42px); line-height: 1.3; color: #fff; margin-top: 16px; }
.ag-stats-grid {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid rgba(255,255,255,.16);
}
.ag-stat {
  padding: 34px 26px 6px 0; border-right: 1px solid rgba(255,255,255,.12);
  min-width: 0;
}
.ag-stat + .ag-stat { padding-left: 26px; }
.ag-stat:last-child { border-right: 0; }
.ag-stat b {
  font-size: clamp(42px, 4.6vw, 62px); font-weight: 800; line-height: 1;
  letter-spacing: -.05em; color: var(--g-leaf);
}
.ag-stat-u { margin-left: 6px; font-size: 14px; font-weight: 700; color: rgba(255,255,255,.72); }
.ag-stat strong { display: block; margin-top: 16px; font-size: 16px; font-weight: 700; color: #fff; }
.ag-stat em { display: block; margin-top: 6px; font-style: normal; font-size: 13px; color: rgba(255,255,255,.58); }

/* ---------- 6. 继续了解 ---------- */
.ag-next { background: var(--g-sand); border-top: 1px solid var(--g-line); padding: 26px 0; }
.ag-next-in { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 26px; }
.ag-next-in > span { margin-right: 6px; font-size: 13px; font-weight: 800; letter-spacing: .06em; color: var(--g-green); }
.ag-next-in a { font-size: 14px; font-weight: 600; color: var(--g-text); }
.ag-next-in a:hover { color: var(--g-green); text-decoration: underline; text-underline-offset: 5px; }

/* ---------- 响应式 ---------- */
@media (max-width: 1180px) {
  .ag-matrix-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ag-stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ag-stat { padding: 28px 24px 26px 0; }
  .ag-stat + .ag-stat { padding-left: 24px; }
  .ag-stat:nth-child(2) { border-right: 0; }
  .ag-stat:nth-child(n+3) { border-top: 1px solid rgba(255,255,255,.12); padding-top: 28px; }
}
@media (max-width: 980px) {
  .ag-hero-grid, .ag-story { grid-template-columns: 1fr; }
  .ag-sec-head--split { grid-template-columns: 1fr; gap: 16px; }
  .ag-hero-media { max-width: 620px; }
  .ag-story--rev .ag-story-media { order: 0; }
  .ag-story--rev .ag-story-copy { order: 0; }
  .ag-facts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ag-facts > div { border-right: 1px solid var(--g-line); border-top: 1px solid var(--g-line); }
  .ag-facts > div:nth-child(-n+3) { border-top: 0; }
  .ag-facts > div:nth-child(3n) { border-right: 0; }
  .ag-facts > div:nth-child(5) { border-right: 1px solid var(--g-line); grid-column: span 1; }
}
@media (max-width: 620px) {
  .ag-wrap { width: calc(100% - 36px); }
  .ag-sec { padding: 62px 0; }
  .ag-hero-copy h1 { font-size: 34px; }
  .ag-hero-lead { font-size: 16px; }
  .ag-hero-media img { aspect-ratio: 4 / 3; }
  .ag-hero-cap { left: 12px; bottom: 12px; font-size: 11.5px; padding: 9px 13px; }
  .ag-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ag-facts > div { padding: 20px 16px; border-right: 1px solid var(--g-line); border-top: 1px solid var(--g-line); }
  .ag-facts > div:nth-child(-n+2) { border-top: 0; }
  .ag-facts > div:nth-child(2n) { border-right: 0; }
  .ag-facts > div:nth-child(5) { border-right: 0; grid-column: 1 / -1; }
  .ag-matrix-grid { grid-template-columns: 1fr; }
  .ag-matrix-cell { padding: 26px 22px 28px; }
  .ag-story-copy h3 { font-size: 21px; }
  .ag-story-media img { aspect-ratio: 4 / 3; }
  .ag-table thead th { padding: 14px 16px; font-size: 12.5px; }
  .ag-table tbody th, .ag-table tbody td { padding: 14px 16px; font-size: 13.5px; white-space: normal; }
  .ag-stats-grid { grid-template-columns: 1fr; }
  .ag-stat, .ag-stat + .ag-stat { padding: 24px 0; border-right: 0; border-top: 1px solid rgba(255,255,255,.12); }
  .ag-stat:first-child { border-top: 0; padding-top: 0; }
  .ag-stat b { font-size: 44px; }
  .ag-next-in { gap: 10px 18px; }
}

/* 窄屏已有底部四宫格客服栏，隐藏右侧浮动客服避免压住正文。
   带 body 前缀提高优先级：theme.css 最后加载。 */
@media (max-width: 760px) {
  body .cs-float { display: none !important; }
}

@media (prefers-reduced-motion: reduce) {
  .ag-matrix-cell, .ag-more { transition: none; }
}
