/* ==========================================================================
   MossKB 官网样式（mosskb.cn）
   零依赖静态站点：无构建步骤，直接部署即可。
   品牌色取自 MossKB logo（#70BE55 / #2B9C70 / #087F83 / #A6D968）。
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. 设计令牌
   -------------------------------------------------------------------------- */
:root {
  --brand-leaf: #70be55;
  --brand-moss: #2b9c70;
  --brand-deep: #087f83;
  --brand-lime: #a6d968;

  --ink: #0e1f1a;
  --ink-2: #35504a;
  --ink-3: #5d7570;
  --muted: #7d918c;

  --line: #e2ede8;
  --line-strong: #cfe0d9;
  --bg: #ffffff;
  --bg-soft: #f5faf7;
  --bg-soft-2: #eef7f2;
  --bg-dark: #08201c;

  --grad-brand: linear-gradient(135deg, #70be55 0%, #2b9c70 48%, #087f83 100%);
  --grad-brand-soft: linear-gradient(135deg, rgba(112, 190, 85, 0.14) 0%, rgba(8, 127, 131, 0.14) 100%);

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --radius-pill: 999px;

  --shadow-xs: 0 1px 2px rgba(8, 32, 28, 0.06);
  --shadow-sm: 0 4px 14px rgba(8, 32, 28, 0.06);
  --shadow-md: 0 14px 38px rgba(8, 32, 28, 0.09);
  --shadow-lg: 0 30px 70px rgba(8, 32, 28, 0.14);

  --container: 1180px;
  --nav-h: 68px;

  --font-sans: "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei", "Hiragino Sans GB",
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: "JetBrains Mono", "Cascadia Mono", Consolas, "SFMono-Regular", Menlo, monospace;
}

/* --------------------------------------------------------------------------
   2. 基础
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 20px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink-2);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1,
h2,
h3,
h4 {
  color: var(--ink);
  line-height: 1.28;
  margin: 0 0 0.6em;
  font-weight: 700;
  letter-spacing: -0.01em;
}

h1 {
  font-size: clamp(2.05rem, 4.6vw, 3.35rem);
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(1.55rem, 2.9vw, 2.25rem);
}

h3 {
  font-size: clamp(1.1rem, 1.6vw, 1.3rem);
}

p {
  margin: 0 0 1em;
}

a {
  color: var(--brand-deep);
  text-decoration: none;
  transition: color 0.18s ease, opacity 0.18s ease;
}

a:hover {
  color: var(--brand-moss);
}

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

ul,
ol {
  margin: 0;
  padding: 0;
}

li {
  list-style: none;
}

code,
kbd,
pre {
  font-family: var(--font-mono);
  font-size: 0.88em;
}

code {
  background: var(--bg-soft-2);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0.1em 0.42em;
  color: #14615f;
  word-break: break-word;
}

:focus-visible {
  outline: 2px solid var(--brand-moss);
  outline-offset: 3px;
  border-radius: 6px;
}

/* --------------------------------------------------------------------------
   3. 布局
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: clamp(56px, 7vw, 96px) 0;
}

.section--soft {
  background: var(--bg-soft);
}

.section--tint {
  background:
    radial-gradient(1100px 420px at 88% -8%, rgba(112, 190, 85, 0.13), transparent 68%),
    radial-gradient(900px 380px at 0% 105%, rgba(8, 127, 131, 0.1), transparent 66%),
    var(--bg-soft);
}

.section--tight {
  padding: clamp(38px, 4.6vw, 60px) 0;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: #fff;
  padding: 10px 16px;
  border-radius: 0 0 var(--radius-sm) 0;
  z-index: 200;
}

.skip-link:focus {
  left: 0;
  color: #fff;
}

/* --------------------------------------------------------------------------
   4. 通用组件
   -------------------------------------------------------------------------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--brand-moss);
  background: rgba(112, 190, 85, 0.12);
  border: 1px solid rgba(43, 156, 112, 0.2);
  border-radius: var(--radius-pill);
  padding: 5px 14px;
  margin-bottom: 18px;
}

.eyebrow--plain {
  background: none;
  border: none;
  padding: 0;
}

.section-head {
  max-width: 760px;
  margin-bottom: clamp(30px, 4vw, 52px);
}

.section-head--center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.section-head p {
  font-size: 1.03rem;
  color: var(--ink-3);
  margin-bottom: 0;
}

.lead {
  font-size: clamp(1.02rem, 1.4vw, 1.16rem);
  color: var(--ink-3);
}

.text-grad {
  background: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 13px 26px;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  font-size: 0.97rem;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease,
    border-color 0.18s ease, color 0.18s ease;
  white-space: nowrap;
}

.btn svg {
  width: 18px;
  height: 18px;
  flex: none;
}

.btn--primary {
  background: var(--grad-brand);
  color: #fff;
  box-shadow: 0 10px 26px rgba(11, 122, 116, 0.26);
}

.btn--primary:hover {
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(11, 122, 116, 0.32);
}

.btn--ghost {
  background: #fff;
  color: var(--ink);
  border-color: var(--line-strong);
  box-shadow: var(--shadow-xs);
}

.btn--ghost:hover {
  color: var(--brand-deep);
  border-color: var(--brand-moss);
  transform: translateY(-2px);
}

.btn--light {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.42);
}

.btn--light:hover {
  background: rgba(255, 255, 255, 0.24);
  color: #fff;
  transform: translateY(-2px);
}

.btn--sm {
  padding: 9px 18px;
  font-size: 0.9rem;
}

.btn--block {
  width: 100%;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

.grid {
  display: grid;
  gap: 22px;
}

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

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

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

.card {
  display: block;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow-xs);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.card:hover {
  transform: translateY(-4px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow-md);
}

.card h3 {
  margin-bottom: 8px;
}

.card p:last-child {
  margin-bottom: 0;
}

.card--flat:hover {
  transform: none;
  box-shadow: var(--shadow-xs);
}

.card__icon {
  width: 46px;
  height: 46px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  background: var(--grad-brand-soft);
  border: 1px solid rgba(43, 156, 112, 0.18);
  color: var(--brand-deep);
  margin-bottom: 16px;
}

.card__icon svg {
  width: 23px;
  height: 23px;
}

.card__icon--solid {
  background: var(--grad-brand);
  border-color: transparent;
  color: #fff;
}

.check-list li {
  position: relative;
  padding-left: 27px;
  margin-bottom: 9px;
  color: var(--ink-3);
  font-size: 0.95rem;
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.53em;
  width: 14px;
  height: 8px;
  border-left: 2px solid var(--brand-moss);
  border-bottom: 2px solid var(--brand-moss);
  transform: rotate(-45deg) scale(0.85);
  border-radius: 1px;
}

.check-list--light li {
  color: rgba(255, 255, 255, 0.86);
}

.check-list--light li::before {
  border-color: var(--brand-lime);
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tag {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--brand-deep);
  background: #fff;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-pill);
  padding: 6px 15px;
}

.tag--soft {
  background: rgba(43, 156, 112, 0.08);
  border-color: rgba(43, 156, 112, 0.16);
  color: var(--brand-moss);
}

/* --------------------------------------------------------------------------
   5. 顶部导航
   -------------------------------------------------------------------------- */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.22s ease, box-shadow 0.22s ease;
}

.site-nav.is-stuck {
  border-bottom-color: var(--line);
  box-shadow: 0 6px 24px rgba(8, 32, 28, 0.06);
}

.site-nav__inner {
  min-height: var(--nav-h);
  display: flex;
  align-items: center;
  gap: 18px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.06rem;
  color: var(--ink);
  letter-spacing: -0.01em;
  flex: none;
}

.brand:hover {
  color: var(--ink);
  opacity: 0.85;
}

.brand img {
  height: 30px;
  width: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: 12px;
}

.nav-links a {
  display: block;
  padding: 8px 13px;
  border-radius: var(--radius-pill);
  color: var(--ink-2);
  font-size: 0.94rem;
  font-weight: 500;
}

.nav-links a:hover {
  color: var(--brand-deep);
  background: var(--bg-soft-2);
}

.nav-links a.is-active {
  color: var(--brand-deep);
  background: rgba(43, 156, 112, 0.1);
  font-weight: 600;
}

.nav-links .nav-links__ext::after {
  content: "↗";
  font-size: 0.76em;
  margin-left: 4px;
  opacity: 0.6;
}

.site-nav__actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid var(--line-strong);
  background: #fff;
  cursor: pointer;
  padding: 0;
  place-items: center;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  position: relative;
  transition: background 0.2s ease;
}

.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.2s ease;
}

.nav-toggle span::before {
  top: -6px;
}

.nav-toggle span::after {
  top: 6px;
}

.nav-toggle[aria-expanded="true"] span {
  background: transparent;
}

.nav-toggle[aria-expanded="true"] span::before {
  transform: translateY(6px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span::after {
  transform: translateY(-6px) rotate(-45deg);
}

/* --------------------------------------------------------------------------
   6. 首页 Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(48px, 6vw, 84px) 0 clamp(40px, 5vw, 64px);
  background:
    radial-gradient(900px 460px at 78% 4%, rgba(112, 190, 85, 0.2), transparent 66%),
    radial-gradient(760px 440px at 8% 22%, rgba(8, 127, 131, 0.14), transparent 66%),
    linear-gradient(180deg, #f7fcf9 0%, #ffffff 78%);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(8, 127, 131, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(8, 127, 131, 0.05) 1px, transparent 1px);
  background-size: 58px 58px;
  mask-image: radial-gradient(circle at 50% 26%, #000 0%, transparent 76%);
  -webkit-mask-image: radial-gradient(circle at 50% 26%, #000 0%, transparent 76%);
  pointer-events: none;
}

.hero__inner {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
}

.hero h1 {
  margin-bottom: 20px;
}

.hero__sub {
  font-size: clamp(1.02rem, 1.5vw, 1.18rem);
  color: var(--ink-3);
  max-width: 760px;
  margin: 0 auto 30px;
}

.hero .btn-row {
  justify-content: center;
}

.hero__note {
  margin-top: 20px;
  font-size: 0.88rem;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  justify-content: center;
}

.hero__note span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.hero__note span::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand-moss);
  opacity: 0.7;
}

.hero__shot {
  position: relative;
  z-index: 1;
  margin: clamp(36px, 5vw, 60px) auto 0;
  max-width: 1080px;
}

/* --------------------------------------------------------------------------
   7. 浏览器窗口外框
   -------------------------------------------------------------------------- */
.frame {
  border-radius: var(--radius-lg);
  border: 1px solid var(--line-strong);
  background: #fff;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.frame__bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 11px 16px;
  background: linear-gradient(180deg, #fbfdfc, #f2f8f5);
  border-bottom: 1px solid var(--line);
}

.frame__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #d8e6e0;
}

.frame__dot:nth-child(1) {
  background: #ffbdb0;
}

.frame__dot:nth-child(2) {
  background: #ffe1a8;
}

.frame__dot:nth-child(3) {
  background: #b6e3c2;
}

.frame__url {
  margin-left: 12px;
  flex: 1;
  font-size: 0.78rem;
  color: var(--muted);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  padding: 4px 14px;
  font-family: var(--font-mono);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.frame img {
  width: 100%;
}

/* --------------------------------------------------------------------------
   8. 数据条
   -------------------------------------------------------------------------- */
.stat-band {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.stat {
  background: #fff;
  padding: 26px 22px;
  text-align: center;
}

.stat__num {
  display: block;
  font-size: clamp(1.45rem, 2.4vw, 1.95rem);
  font-weight: 700;
  color: var(--brand-deep);
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.stat__label {
  display: block;
  font-size: 0.9rem;
  color: var(--ink-3);
  margin-top: 6px;
}

/* --------------------------------------------------------------------------
   9. 步骤
   -------------------------------------------------------------------------- */
.steps {
  counter-reset: step;
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.step {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 26px 26px;
  overflow: hidden;
}

.step::after {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  position: absolute;
  right: 18px;
  top: 8px;
  font-size: 3.1rem;
  font-weight: 700;
  color: rgba(43, 156, 112, 0.1);
  letter-spacing: -0.04em;
  font-family: var(--font-mono);
}

.step h3 {
  margin-bottom: 6px;
}

.step p:last-child {
  margin-bottom: 0;
  color: var(--ink-3);
  font-size: 0.95rem;
}

/* 分栏图文 */
.split {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(26px, 4vw, 56px);
  align-items: center;
}

.split--reverse .split__media {
  order: -1;
}

.split__media img {
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
}

/* --------------------------------------------------------------------------
   10. 截图墙
   -------------------------------------------------------------------------- */
.shot-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.shot {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-xs);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.shot:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.shot img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: top center;
  border-bottom: 1px solid var(--line);
  background: var(--bg-soft);
}

.shot figcaption {
  padding: 16px 18px 18px;
}

.shot figcaption strong {
  display: block;
  color: var(--ink);
  margin-bottom: 4px;
  font-size: 0.98rem;
}

.shot figcaption span {
  font-size: 0.88rem;
  color: var(--ink-3);
  line-height: 1.6;
}

/* --------------------------------------------------------------------------
   11. 成功案例
   -------------------------------------------------------------------------- */
.case-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.case {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.case:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--line-strong);
}

.case__top {
  display: flex;
  align-items: center;
  gap: 12px;
}

.case__avatar {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--grad-brand-soft);
  border: 1px solid rgba(43, 156, 112, 0.18);
  color: var(--brand-deep);
  font-weight: 700;
  font-size: 0.95rem;
  flex: none;
}

.case h3 {
  font-size: 1.04rem;
  margin: 0;
}

.case__industry {
  font-size: 0.8rem;
  color: var(--brand-moss);
  font-weight: 600;
  letter-spacing: 0.04em;
}

.case p {
  margin: 0;
  font-size: 0.93rem;
  color: var(--ink-3);
}

.case__results {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px dashed var(--line-strong);
}

.case__results b {
  display: block;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
  font-weight: 700;
}

.case__results li {
  position: relative;
  padding-left: 18px;
  font-size: 0.9rem;
  color: var(--ink-2);
  margin-bottom: 4px;
}

.case__results li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.62em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand-leaf);
}

.notice {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: var(--bg-soft-2);
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  padding: 16px 20px;
  font-size: 0.9rem;
  color: var(--ink-3);
  margin-top: 26px;
}

.notice svg {
  width: 20px;
  height: 20px;
  flex: none;
  color: var(--brand-moss);
  margin-top: 3px;
}

.notice p {
  margin: 0;
}

/* --------------------------------------------------------------------------
   12. 架构图
   -------------------------------------------------------------------------- */
.arch {
  display: grid;
  gap: 16px;
}

.arch__layer {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  padding: 18px 20px;
  box-shadow: var(--shadow-xs);
}

.arch__layer > h4 {
  margin: 0 0 14px;
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.arch__row {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
}

.arch__box {
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--bg-soft);
  padding: 13px 15px;
  font-size: 0.9rem;
  color: var(--ink-2);
}

.arch__box strong {
  display: block;
  color: var(--ink);
  font-size: 0.95rem;
  margin-bottom: 2px;
}

.arch__box em {
  font-style: normal;
  font-size: 0.82rem;
  color: var(--muted);
}

.arch__box--brand {
  background: var(--grad-brand-soft);
  border-color: rgba(43, 156, 112, 0.28);
}

.arch__arrow {
  text-align: center;
  color: var(--line-strong);
  font-size: 1.1rem;
  line-height: 1;
}

.arch__arrow span {
  display: inline-block;
  padding: 2px 12px;
  font-size: 0.78rem;
  color: var(--muted);
  background: var(--bg-soft-2);
  border-radius: var(--radius-pill);
  font-family: var(--font-mono);
}

/* --------------------------------------------------------------------------
   13. 表格
   -------------------------------------------------------------------------- */
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-xs);
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 560px;
  font-size: 0.93rem;
}

thead th {
  text-align: left;
  background: var(--bg-soft);
  color: var(--ink);
  font-weight: 700;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}

tbody td {
  padding: 13px 18px;
  border-bottom: 1px solid var(--line);
  color: var(--ink-3);
  vertical-align: top;
}

tbody tr:last-child td {
  border-bottom: none;
}

tbody td:first-child {
  color: var(--ink);
  font-weight: 600;
  white-space: nowrap;
}

/* --------------------------------------------------------------------------
   14. CTA 横幅
   -------------------------------------------------------------------------- */
.cta-band {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, #0b7a6f 0%, #087f83 52%, #0a5f63 100%);
  color: #fff;
  padding: clamp(34px, 5vw, 56px);
  text-align: center;
}

.cta-band::before {
  content: "";
  position: absolute;
  inset: -40% -10% auto;
  height: 120%;
  background: radial-gradient(closest-side, rgba(166, 217, 104, 0.36), transparent 72%);
  pointer-events: none;
}

.cta-band > * {
  position: relative;
  z-index: 1;
}

.cta-band h2 {
  color: #fff;
  margin-bottom: 12px;
}

.cta-band p {
  color: rgba(255, 255, 255, 0.86);
  max-width: 620px;
  margin: 0 auto 26px;
}

.cta-band .btn-row {
  justify-content: center;
}

/* --------------------------------------------------------------------------
   15. 折叠问答
   -------------------------------------------------------------------------- */
.faq {
  display: grid;
  gap: 12px;
}

.faq details {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 4px 20px;
  box-shadow: var(--shadow-xs);
}

.faq details[open] {
  border-color: var(--line-strong);
  box-shadow: var(--shadow-sm);
}

.faq summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--ink);
  padding: 16px 0;
  list-style: none;
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  font-size: 1.25rem;
  color: var(--brand-moss);
  line-height: 1;
  flex: none;
  margin-left: auto;
  padding-left: 14px;
}

.faq details[open] summary::after {
  content: "–";
}

.faq details p {
  margin: 0 0 16px;
  font-size: 0.94rem;
  color: var(--ink-3);
}

/* --------------------------------------------------------------------------
   16. 内页头
   -------------------------------------------------------------------------- */
.page-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(44px, 5.5vw, 74px) 0 clamp(30px, 4vw, 46px);
  background:
    radial-gradient(760px 340px at 82% 0%, rgba(112, 190, 85, 0.18), transparent 68%),
    radial-gradient(640px 320px at 6% 90%, rgba(8, 127, 131, 0.12), transparent 66%),
    var(--bg-soft);
  border-bottom: 1px solid var(--line);
}

.page-hero .container {
  max-width: 900px;
}

.page-hero h1 {
  font-size: clamp(1.8rem, 3.6vw, 2.6rem);
  margin-bottom: 14px;
}

.page-hero p {
  font-size: 1.04rem;
  color: var(--ink-3);
  margin-bottom: 0;
  max-width: 700px;
}

.crumbs {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 14px;
}

.crumbs a {
  color: var(--ink-3);
}

.crumbs span {
  margin: 0 7px;
  opacity: 0.55;
}

/* --------------------------------------------------------------------------
   17. 页脚
   -------------------------------------------------------------------------- */
.site-footer {
  background: var(--bg-dark);
  color: rgba(255, 255, 255, 0.68);
  padding: clamp(46px, 5.5vw, 70px) 0 26px;
  margin-top: 0;
}

.site-footer h4 {
  color: #fff;
  font-size: 0.92rem;
  letter-spacing: 0.02em;
  margin-bottom: 16px;
}

.site-footer__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 34px;
  padding-bottom: 34px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.site-footer__brand img {
  height: 34px;
  width: auto;
  filter: brightness(0) invert(1);
  opacity: 0.94;
}

.site-footer__brand p {
  margin: 16px 0 0;
  font-size: 0.9rem;
  line-height: 1.75;
  max-width: 300px;
}

.site-footer ul li {
  margin-bottom: 10px;
  font-size: 0.9rem;
}

.site-footer a {
  color: rgba(255, 255, 255, 0.7);
}

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

.site-footer__bottom {
  padding-top: 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.55);
}

.site-footer__bottom a {
  color: rgba(255, 255, 255, 0.62);
}

.site-footer__bottom a:hover {
  color: var(--brand-lime);
}

.site-footer__legal {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  align-items: center;
}

/* --------------------------------------------------------------------------
   18. 滚动出现动画（渐进增强）
   -------------------------------------------------------------------------- */
/* 只有在 JS 可用时才把待动画元素藏起来：禁用 JS 时内容照常完整显示 */
html.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s cubic-bezier(0.22, 0.61, 0.36, 1),
    transform 0.6s cubic-bezier(0.22, 0.61, 0.36, 1);
  will-change: opacity, transform;
}

html.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

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

  html.js .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .btn,
  .card,
  .shot,
  .case {
    transition: none;
  }
}

/* --------------------------------------------------------------------------
   19. 响应式
   -------------------------------------------------------------------------- */
@media (max-width: 1040px) {
  .grid--4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .shot-grid,
  .case-grid,
  .steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

@media (max-width: 900px) {
  .nav-toggle {
    display: grid;
    flex: none;
  }

  .site-nav__actions .btn--ghost {
    display: none;
  }

  .nav-links {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 12px 20px 18px;
    margin-left: 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 18px 34px rgba(8, 32, 28, 0.1);
    display: none;
  }

  .nav-links.is-open {
    display: flex;
  }

  .nav-links a {
    padding: 11px 14px;
    border-radius: var(--radius-sm);
  }

  .split,
  .grid--2,
  .grid--3 {
    grid-template-columns: minmax(0, 1fr);
  }

  .split--reverse .split__media {
    order: 0;
  }

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

@media (max-width: 640px) {
  body {
    font-size: 15.5px;
  }

  .container {
    padding: 0 18px;
  }

  .shot-grid,
  .case-grid,
  .steps,
  .grid--4,
  .site-footer__grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .card,
  .case {
    padding: 22px;
  }

  .btn {
    padding: 12px 20px;
    font-size: 0.93rem;
  }

  .hero .btn-row .btn {
    flex: 1 1 100%;
  }
}

/* --------------------------------------------------------------------------
   20. 打印
   -------------------------------------------------------------------------- */
@media print {
  .site-nav,
  .cta-band,
  .site-footer {
    display: none;
  }

  .reveal,
  html.js .reveal {
    opacity: 1;
    transform: none;
  }
}
