/* ===================================
    CSS Variables - 占位变量
   =================================== */
:root {
  /* Brand Typography */
  --gre-font-display: 'Volkhov', serif;
  --gre-font-body: 'Poppins', sans-serif;
  --gre-font-weight-light: 300;
  --gre-font-weight-medium: 500;
  --gre-font-weight-semibold: 600;
  --gre-font-weight-bold: 700;

  /* Brand Colors */
  --gre-color-brand: #5B7B33;
  --gre-color-brand-hover: #779b49;
  --gre-color-brand-dark: #1C312A;
  --gre-color-highlight: #759e42;
  --gre-color-accent: #fff;
  --gre-color-accent-soft: #faf4ef;
  --gre-color-surface-cream: #f5efe6;
  --gre-color-surface-white: #ffffff;
  --gre-color-text-heading: #1C312A;
  --gre-color-text-body: #18181B;
  --gre-color-text-muted: #727871;
  --gre-color-text-subtle: #71717A;
  --gre-color-text-inverse: #ffffff;
  --gre-color-text-inverse-soft: rgba(255, 255, 255, 0.72);
  --gre-color-border: #d6cdc1;
  --gre-color-border-light: rgba(28, 49, 42, 0.08);
  --gre-color-overlay-dark: rgba(28, 49, 42, 0.7);

  /* Legacy Color Aliases */
  --color-primary: var(--gre-color-brand);
  --color-primary-hover: var(--gre-color-brand-hover);
  --color-primary-light: ;
  --color-secondary: var(--gre-color-accent);
  --color-secondary-hover: ;

  /* 文字颜色 */
  --color-text-heading: var(--gre-color-text-heading);
  --color-text-body: var(--gre-color-text-body);
  --color-text-secondary: ;
  --color-text-muted: var(--gre-color-text-muted);

  /* 边框与分割 */
  --color-border: var(--gre-color-border);
  --color-border-light: var(--gre-color-border-light);

  /* 背景色 */
  --color-bg-primary: var(--gre-color-surface-white);
  --color-bg-secondary: var(--gre-color-accent);
  --color-bg-tertiary: var(--gre-color-accent-soft);
  --color-bg-card: var(--gre-color-surface-white);

  /* 链接与交互 */
  --color-link: var(--gre-color-brand);
  --color-link-hover: var(--gre-color-brand-hover);

  /* 覆盖层 */
  --color-overlay-dark: var(--gre-color-overlay-dark);

  /* 标签/徽章背景 */
  --color-tag-bg: var(--gre-color-accent-soft);
  --color-tag-bg-hover: var(--gre-color-accent);

  /* 社交媒体颜色 */
  --color-social-facebook: ;
  --color-social-twitter: ;
  --color-social-linkedin: ;
  --color-social-whatsapp: ;
  --color-social-pinterest: ;
  --color-social-email: ;

  /* Type Scale */
  --gre-fs-h1: clamp(40px, 5vw, 64px);
  --gre-fs-h2: clamp(26px, 3vw, 44px);
  --gre-fs-h3: clamp(24px, 2.4vw, 32px);
  --gre-fs-h4: clamp(20px, 2vw, 26px);
  --gre-fs-h5: clamp(16px, 1.4vw, 20px);
  --gre-fs-h6: clamp(14px, 1.1vw, 16px);
  --gre-fs-body: 16px;
  --gre-fs-body-lg: clamp(15px, 1.2vw, 18px);
  --gre-fs-body-sm: 16px;
  --gre-fs-caption: 12px;
  --gre-fs-stat-number: clamp(32px, 4vw, 48px);
  --gre-fs-stat-label: clamp(10px, 1.2vw, 12px);
  --gre-fs-title-section: 1.625rem;
  --gre-fs-title-display-lg: 1.625rem;
  --gre-fs-title-display-xl: 1.625rem;
  --gre-fs-title-display-xl-medium: 1.625rem;
  --gre-fs-title-product: 1.125rem;
  --gre-fs-title-card: 1.25rem;
  --gre-fs-title-feature: 1rem;
  --gre-fs-title-list: 1.125rem;

  /* Layout & Spacing
   * 这一层只定义“页面节奏”，不处理具体组件样式。
   * 约定分工：
   * 1. section 负责上下留白（纵向呼吸感）
   * 2. container 负责左右留白 + 版心宽度
   * 3. stack 负责连续内容的垂直节奏
   * 4. gap 负责并列布局之间的间距
   */
  --gre-container-max: 1200px;
  --gre-container-max-wide: 1600px;
  --gre-space-container-x: clamp(1.5rem, 4vw, 3rem);
  --gre-space-section-y: clamp(40px, 8vw, 8rem);
  --gre-space-section-y-compact: clamp(40px, 7vw, 6rem);
  --gre-space-footer-top: clamp(40px, 8vw, 6rem);
  --gre-space-footer-sitemap-y: clamp(40px, 6vw, 5rem);
  --gre-space-stack-2xs: 0.5rem;
  --gre-space-stack-sm: 0.625rem;
  --gre-space-stack-md: 0.75rem;
  --gre-space-stack-lg: 1rem;
  --gre-space-stack-xl: 1.5rem;
  --gre-space-stack-2xl: 2.5rem;
  --gre-space-gap-card: 1rem;
  --gre-space-gap-grid: 1.25rem;
  --gre-space-gap-layout: 1.25rem;
  --gre-space-gap-layout-wide: 6rem;
  --gre-btn-padding-y: 1rem;
  --gre-btn-padding-x: 2rem;

  /* Radius, Shadow, Motion */
  --gre-radius-none: 0;
  --gre-radius-full: 9999px;
  --gre-shadow-none: none;
  --gre-shadow-soft: 0 12px 30px rgba(16, 26, 23, 0.08);
  --gre-duration-fast: 260ms;
  --gre-ease-standard: cubic-bezier(0.25, 1, 0.5, 1);
}

/* 覆盖 GeneratePress 默认间距 */
.separate-containers .site-main {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

/* ===================================
   Gre Design System - Global Tokens
   =================================== */
.gre-font-display {
  font-family: var(--gre-font-display);
}

.gre-font-body {
  font-family: var(--gre-font-body);
}

.gre-h1,
.gre-h2,
.gre-h3,
.gre-h4,
.gre-h5,
.gre-h6 {
  font-family: var(--gre-font-display);
  color: var(--gre-color-text-heading);
  letter-spacing: -0.025em;
}

.gre-h1 { font-size: var(--gre-fs-h1); line-height: 1.08; margin-bottom: 0; }
.gre-h2 { font-size: var(--gre-fs-h2); line-height: 1.16; margin-bottom: 0; }
.gre-h3 { font-size: var(--gre-fs-h3); line-height: 1.22; margin-bottom: 0; }
.gre-h4 { font-size: var(--gre-fs-h4); line-height: 1.28; margin-bottom: 0; }
.gre-h5 { font-size: var(--gre-fs-h5); line-height: 1.34; margin-bottom: 0; }
.gre-h6 { font-size: var(--gre-fs-h6); line-height: 1.4; margin-bottom: 0; }

/* 正文层级：常规正文 / 小正文 / caption / 强调正文 / lead / 响应式正文 */
.gre-body,
.gre-body-sm,
.gre-caption,
.gre-body-rich,
.gre-body-lead,
.gre-body-fluid,
.gre-caption-fluid {
  font-family: var(--gre-font-body);
  color: var(--gre-color-text-body);
}

.gre-body { font-size: var(--gre-fs-body); line-height: 1.8; }
.gre-body p,
.gre-body-rich p { margin-bottom: 1.5rem !important; }
.gre-body-sm { font-size: var(--gre-fs-body-sm); line-height: 1.7; }
.gre-caption { font-size: var(--gre-fs-caption); line-height: 1.5; }
.gre-body-rich { font-size: 1.25rem; line-height: 1.625; }
.gre-body-lead { font-size: var(--gre-fs-body-lg); line-height: 1.8; }
.gre-body-fluid { font-size: 0.875rem; line-height: 1.625; }
.gre-caption-fluid { font-size: 0.75rem; line-height: 1.5; }

@media (min-width: 768px) {
  .gre-caption { font-size: 0.875rem; }
  .gre-body-fluid { font-size: 1rem; }
  .gre-caption-fluid { font-size: 0.875rem; }
}

.gre-text-heading { color: var(--gre-color-text-heading); }
.gre-text-body { color: var(--gre-color-text-body); }
.gre-text-muted { color: var(--gre-color-text-muted); }
.gre-text-subtle { color: var(--gre-color-text-subtle); }
.gre-text-brand { color: var(--gre-color-brand); }
.gre-text-accent { color: var(--gre-color-accent); }
.gre-text-inverse { color: var(--gre-color-text-inverse); }
.gre-text-inverse-soft { color: var(--gre-color-text-inverse-soft); }

/* 左侧菜单高亮状态 (从各个 archive 页面的内联 style 中提取) */
.filter-item.is-active {
  font-weight: var(--gre-font-weight-bold);
  color: var(--gre-color-text-heading);
}

/* 标准版心：
 * - 最大宽度 1200px
 * - 左右安全边距由 --gre-space-container-x 控制
 * - 适用于大多数正文型、双栏型、卡片型标准区块
 */
.gre-container {
  width: min(100% - (var(--gre-space-container-x) * 2), var(--gre-container-max));
  margin-inline: auto;
}

/* 超宽版心：
 * - 最大宽度 1600px
 * - 仍然保留与标准容器一致的左右安全边距
 * - 适合信息密度更高、需要更宽展开面的模块，例如 S06 这种四列服务卡
 */
.gre-container-wide {
  width: min(100% - (var(--gre-space-container-x) * 2), var(--gre-container-max-wide));
  margin-inline: auto;
}

/* 全宽版心（无边距约束）：
 * - 不设最大宽度，内容区随视口自然展开
 * - 仍保留与标准容器一致的左右安全边距
 * - 适合双栏布局中右侧为大面积四列卡片的区块，例如首页 S03 产品分类区
 */
.gre-container-fluid {
  width: calc(100% - (var(--gre-space-container-x) * 2));
  margin-inline: auto;
}

/* section 只负责上下留白：
 * - 不直接管左右 padding，也不直接限制宽度
 * - 它通常应和 .gre-container / .gre-container-wide 搭配使用
 * - 这样可以把“上下节奏”和“版心宽度”拆开，避免一个类承担太多职责
 */
.gre-section {
  padding-block: var(--gre-space-section-y);
}

/* 紧凑 section：
 * - 用在内容更密、但仍属于标准模块的区块
 * - 目的是减少重复出现的 py-*，而不是制造新的特例
 */
.gre-section--compact {
  padding-block: var(--gre-space-section-y-compact);
}

/* footer 不完全等同于普通 section：
 * - 外层需要更稳的顶部留白和较小的底部收口
 * - 内部 sitemap 区也有自己的一层纵向节奏
 */
.gre-footer-shell {
  padding-top: var(--gre-space-footer-top);
  padding-bottom: 2rem;
}

.gre-footer-sitemap {
  padding-block: var(--gre-space-footer-sitemap-y);
}

/* ===================================
   Footer Mobile Accordion
   =================================== */
@media (max-width: 767px) {
  .gre-footer-accordion__content {
    display: none;
  }
  .gre-footer-accordion.is-open .gre-footer-accordion__content {
    display: block;
    animation: fadeIn 0.3s ease-out;
  }
  .gre-footer-accordion.is-open .fa-plus::before {
    content: "\f068"; /* fa-minus icon content */
  }
  .gre-footer-accordion.is-open .fa-plus {
    transform: rotate(180deg);
  }
  
  @keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
  }
}

@media (min-width: 768px) {
  :root {
    --gre-space-stack-sm: 0.75rem;
    --gre-space-stack-md: 1rem;
    --gre-space-stack-lg: 1.5rem;
    --gre-space-stack-xl: 2rem;
    --gre-space-stack-2xl: 4rem;
    --gre-space-gap-grid: 1.5rem;
    --gre-space-gap-layout: 4rem;
  }
}

/* stack 只负责垂直节奏，适合“连续往下排”的内容组：
 * - 标题 + 装饰线 + 描述
 * - 卡片正文
 * - 左侧文案栏
 * 它的好处是：以后改节奏时，只需要改 token 或类名，不必逐个改 margin。
 */
.gre-stack-2xs > * + * {
  margin-top: var(--gre-space-stack-2xs);
}

.gre-stack-sm > * + * {
  margin-top: var(--gre-space-stack-md);
}

.gre-stack-md > * + * {
  margin-top: var(--gre-space-stack-lg);
}

.gre-stack-lg > * + * {
  margin-top: var(--gre-space-stack-xl);
}

.gre-stack-xl > * + * {
  margin-top: var(--gre-space-stack-2xl);
}

/* gap stack：用于需要明确由 gap 而非 margin 管控上下节奏的纵向组。
 * 适用场景：
 * - 某些 flex 纵向容器内部希望统一用 gap 控制
 * - 需要在移动端纵向、桌面端仍保持同一套 gap 节奏的模块
 */
.gre-gap-stack-2xs {
  display: flex;
  flex-direction: column;
  gap: var(--gre-space-stack-2xs);
}

.gre-gap-stack-sm {
  display: flex;
  flex-direction: column;
  gap: var(--gre-space-stack-md);
}

.gre-gap-stack-md {
  display: flex;
  flex-direction: column;
  gap: var(--gre-space-stack-lg);
}

.gre-gap-stack-lg {
  display: flex;
  flex-direction: column;
  gap: var(--gre-space-stack-xl);
}

.gre-gap-stack-xl {
  display: flex;
  flex-direction: column;
  gap: var(--gre-space-stack-2xl);
}

/* gap 负责并列布局之间的横纵留白：
 * - grid / flex 的“项与项之间”用 gap
 * - 一串上下内容的“块与块之间”优先用 stack
 * 简单说：
 * - 同级并排关系 -> gap
 * - 同级纵向阅读关系 -> stack
 */
.gre-gap-card {
  gap: var(--gre-space-gap-card);
}

.gre-gap-grid {
  gap: var(--gre-space-gap-grid);
}

.gre-gap-layout {
  gap: var(--gre-space-gap-layout);
}

.gre-gap-stats {
  gap: 2rem 2.5rem;
}
@media (min-width: 768px) {
  .gre-gap-stats {
    gap: 2rem 4rem;
  }
}

/* 四列服务 / 信息卡网格的标准 gap 节奏：
 * - 当前先在首页 S06 落地验证
 * - 后续如果其他板块也是同类四列卡片布局，可以直接复用这组类
 * - 它管的是“卡与卡之间的节奏”，不是某个具体 section 的专属样式
 */
.gre-grid-service {
  gap: 3rem;
}

@media (min-width: 768px) {
  .gre-gap-card-md {
    gap: var(--gre-space-gap-grid);
  }

  .gre-grid-service {
    gap: 2rem;
  }
}

@media (min-width: 1024px) {
  .gre-gap-layout-lg {
    gap: var(--gre-space-gap-layout-wide);
  }

  .gre-grid-service {
    gap: 2.5rem;
  }
}

/* 左右双栏的标准拆分结构：
 * - 移动端先上下堆叠，保证阅读顺序自然
 * - 桌面端再切成左右双栏，并拉开更大的栏目间距
 * - 它适合像 S03 这种“左侧说明 / 右侧内容”的区块
 * - 如果某个模块有强烈的专属结构（例如 S05 横向滚动），就不要硬套这个类
 */
.gre-layout-split {
  display: flex;
  flex-direction: column;
  gap: var(--gre-space-gap-layout);
}

@media (min-width: 1024px) {
  .gre-layout-split {
    flex-direction: row;
    gap: var(--gre-space-gap-layout-wide);
  }
}

/* 图片优先变体：移动端上图下文字（column-reverse），桌面端恢复左右布局 */
.gre-layout-split--img-first {
  flex-direction: column-reverse;
}
@media (min-width: 1024px) {
  .gre-layout-split--img-first {
    flex-direction: row;
  }
}

/* 12 列栅格双栏布局：
 * - grid 版的双栏方案，移动端上下堆叠，桌面端 12 列自由分栏
 * - 子元素通过 lg:col-span-N 控制左右比例
 * - 适合 S07/S08/S09 这类"图文对照"或"左标题右内容"结构
 */
.gre-layout-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--gre-space-gap-layout);
}

@media (min-width: 1024px) {
  .gre-layout-grid {
    grid-template-columns: repeat(12, 1fr);
  }
}

/* section intro 用来承接“标题栏 / 说明栏”这类结构：
 * - 它不是单纯包 h2，而是把标题、装饰线、描述作为一个阅读组收口
 * - 这样模板里就不必反复出现 sticky top-32 + stack 的散写组合
 */
.gre-section-intro {
  display: flex;
  flex-direction: column;
  gap: var(--gre-space-stack-lg);
}

.gre-section-intro--sticky {
  position: relative;
}

@media (min-width: 1024px) {
  .gre-section-intro--sticky {
    position: sticky;
    top: 8rem;
  }
}

.gre-section-intro__head {
  display: flex;
  flex-direction: column;
  gap: var(--gre-space-stack-md);
}

.gre-section-intro__title {
  margin-top: 0.5rem;
}

.gre-section-intro__divider {
  width: 3rem;
  height: 0.25rem;
  background: var(--gre-color-brand);
}

.gre-section-intro__divider--light {
  background: var(--gre-color-accent);
}

/* 默认自带 1rem (16px) 的上边距，但在一些需要紧凑的移动端布局里，可以通过 mt-0 lg:mt-8 覆盖 */
.gre-section-intro__cta {
  padding-top: 1rem;
}

/* section intro 的紧凑描述文案：
 * - 移动端缩到 14px，避免 sticky/双栏说明区在小屏显得过重
 * - 平板及以上恢复 richer 正文字号，保留当前阅读体量
 */
.gre-section-intro__desc--compact {
  font-size: 14px;
  line-height: 1.7;
}

@media (min-width: 768px) {
  .gre-section-intro__desc--compact {
    font-size: 1.25rem;
    line-height: 1.625;
  }
}

/* section media 用来承接图文双栏里的图片区：
 * - 外层负责裁切、背景兜底和固定展示高度
 * - 图片本体只负责铺满容器并保持 cover 裁切
 * - 适合 S08 这类“左图右文 / 左文右图”的标准内容区
 */
.gre-section-media {
  position: relative;
  overflow: hidden;
  background: var(--gre-color-text-heading);
}

.gre-section-media--tall {
  aspect-ratio: 3 / 2;
}

.gre-section-media--square {
  aspect-ratio: 1 / 1;
}

.gre-section-media--portrait {
  aspect-ratio: 2 / 3;
}

.gre-section-media--auto {
  aspect-ratio: auto;
  background: transparent;
}

.gre-section-media--auto .gre-section-media__image {
  height: auto;
}

.gre-section-media__image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ===================================
   Tabs 组件 — Aceternity 风格
   =================================== */
.gre-tabs {
  display: flex;
  flex-direction: column;
  gap: var(--gre-space-stack-lg);
}

.gre-tabs__nav {
  position: relative;
  display: flex;
  justify-content: center;
  gap: 0;
}

.gre-tabs__btn {
  position: relative;
  padding: 0.625rem 1.75rem;
  font-family: var(--gre-font-display);
  font-size: 1.25rem;
  font-weight: var(--gre-font-weight-medium);
  color: var(--gre-color-brand-hover);
  background: transparent;
  border: none;
  border-radius: 100px;
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease;
  white-space: nowrap;
}

.gre-tabs__btn:hover {
  background: var(--gre-color-brand-hover);
  color: #fff;
}

.gre-tabs__btn.is-active {
  background: #e6d6c0;
  color: var(--gre-color-brand-hover);
}

.gre-tabs__panels {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: 1fr;
  perspective: 1000px;
  padding-top: 40px; /* Space for hover stack fan-out */
  padding-bottom: 20px;
}

.gre-tabs__panel {
  grid-column: 1;
  grid-row: 1;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1), z-index 0s;
  opacity: calc(1 - var(--stack-idx, 0) * 0.4);
  z-index: calc(10 - var(--stack-idx, 0));
  transform: scale(calc(1 - var(--stack-idx, 0) * 0.06)) translateY(calc(var(--stack-idx, 0) * 15px));
  transform-origin: top center;
  pointer-events: none;
}

.gre-tabs__panel.is-active {
  pointer-events: auto;
}

.gre-tabs:hover .gre-tabs__panel {
  transform: scale(calc(1 - var(--stack-idx, 0) * 0.06)) translateY(calc(var(--stack-idx, 0) * -40px));
}

.gre-tabs__card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-radius: var(--gre-radius-xl, 1rem);
  overflow: hidden;
  background: var(--gre-color-surface-white);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.gre-tabs__card-media {
  overflow: hidden;
  aspect-ratio: 3 / 2;
}

.gre-tabs__card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gre-tabs__card-body {
  padding: clamp(1.5rem, 4vw, 2.5rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: var(--gre-space-stack-md);
}

.gre-tabs__card-title {
  font-family: var(--gre-font-body);
  font-size: 1.25rem;
  font-weight: var(--gre-font-weight-medium);
  color: var(--gre-color-text-heading);
  margin: 0;
  display: -webkit-box !important;
  -webkit-line-clamp: 2 !important;
  /*! autoprefixer: off */
  -webkit-box-orient: vertical !important;
  /* autoprefixer: on */
  overflow: hidden !important;
}

.gre-tabs__card--brand {
  background: var(--gre-color-brand);
}

.gre-tabs__card--brand .gre-meta-list--body .gre-meta-item,
.gre-tabs__card--brand .gre-tabs__card-title,
.gre-tabs__card--brand .gre-meta-item {
  color: #fff;
}

.gre-tabs__card--brand .gre-meta-list--body .gre-meta-item span,
.gre-tabs__card--brand .gre-meta-item span {
  background: #fff;
}

.gre-tabs__card--brown {
  background: var(--gre-color-brand-hover);
}

.gre-tabs__card--brown .gre-meta-list--body .gre-meta-item,
.gre-tabs__card--brown .gre-tabs__card-title,
.gre-tabs__card--brown .gre-meta-item {
  color: #fff;
}

.gre-tabs__card--brown .gre-meta-list--body .gre-meta-item span,
.gre-tabs__card--brown .gre-meta-item span {
  background: #fff;
}

@media (max-width: 767px) {
  .gre-tabs__nav {
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
  }

  .gre-tabs__card {
    grid-template-columns: 1fr;
  }

  .gre-tabs__card-media {
    aspect-ratio: 3 / 2;
  }

  .gre-tabs__btn {
    padding: 0.625rem 1rem;
    font-size: 0.8125rem;
  }
}

/* 居中 section heading 适合"标题位于中间、下面再接列表或网格"的标准区块：
 * - 和 section intro 的区别是：它不承担左右双栏或 sticky 侧栏职责
 * - 它更像一个独立的区块头部容器，用来统一标题、分隔线与区块下方留白
 */
.gre-section-heading {
  display: flex;
  flex-direction: column;
  gap: var(--gre-space-stack-lg);
}

.gre-section-heading--center {
  align-items: center;
  text-align: center;
}

.gre-section-heading--center .gre-section-heading__head {
  align-items: center;
}

.gre-section-heading--narrow {
  max-width: 48rem;
  margin-inline: auto;
}

.gre-section-heading--section {
  margin-bottom: clamp(1.25rem, 4vw, 4rem);
}

.gre-section-heading--spacious {
  margin-bottom: clamp(4rem, 8vw, 6rem);
}

.gre-section-heading__head {
  display: flex;
  flex-direction: column;
  gap: var(--gre-space-stack-md);
}

/* 产品详情规格表：
 * - 仅承接产品详情页左侧 Technical Specifications 区的表格
 * - 用统一语义容器控制表格滚动、表头、列宽和行节奏
 */
.gre-spec-rich {
  color: var(--gre-color-text-body);
  overflow-wrap: anywhere;
  word-break: break-word;
}

.gre-spec-rich p,
.gre-spec-rich li,
.gre-spec-rich td,
.gre-spec-rich h2,
.gre-spec-rich h3,
.gre-spec-rich h4 {
  overflow-wrap: anywhere;
  word-break: break-word;
}
.gre-spec-rich p {
  margin-bottom: 1.5rem !important;
}
.gre-spec-rich ul,
.gre-spec-rich ol {
  margin-bottom: 1.5rem !important;
  padding-left: 1.5rem !important;
}
.gre-spec-rich li {
  margin-bottom: 0.4rem !important;
}

.gre-spec-rich .gre-spec-table-wrap {
  overflow-x: auto;
  margin-block: clamp(2rem, 4vw, 3rem);
  border-top: 2px solid var(--gre-color-brand);
  border-bottom: 1px solid var(--gre-color-border-light);
  background: var(--gre-color-surface-white);
}

.gre-spec-rich table {
  width: 100%;
  min-width: 34rem;
  border-collapse: collapse;
  background: var(--gre-color-surface-white);
}

.gre-spec-rich thead th {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--gre-color-border);
  background: var(--gre-color-accent-soft);
  font-family: var(--gre-font-body);
  font-size: 0.75rem;
  font-weight: var(--gre-font-weight-semibold);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gre-color-text-heading);
  text-align: left;
  white-space: normal;
  line-height: 1.4;
}

.gre-spec-rich tbody tr {
  border-bottom: 1px solid var(--gre-color-border-light);
}

.gre-spec-rich tbody tr:nth-child(even) {
  background: rgba(250, 244, 239, 0.52);
}

.gre-spec-rich td {
  padding: 1.125rem 1.25rem;
  vertical-align: top;
  font-size: var(--gre-fs-body-sm);
  line-height: 1.7;
  color: var(--gre-color-text-body);
}

.gre-spec-rich td:first-child {
  width: 32%;
  font-weight: var(--gre-font-weight-semibold);
  color: var(--gre-color-text-heading);
  background: rgba(245, 239, 230, 0.72);
}

.gre-spec-rich td > :first-child,
.gre-spec-rich th > :first-child {
  margin-top: 0;
}

.gre-spec-rich td > :last-child,
.gre-spec-rich th > :last-child {
  margin-bottom: 0;
}

/* Glass variant — frosted glass table */
.gre-spec-rich .gre-spec-table-wrap--glass {
  margin-block: 0;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  overflow: hidden;
}
.gre-spec-rich .gre-spec-table-wrap--glass table {
  background: transparent;
}
.gre-spec-rich .gre-spec-table-wrap--glass thead th {
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.9);
  border-bottom-color: rgba(255, 255, 255, 0.1);
}
.gre-spec-rich .gre-spec-table-wrap--glass tbody tr {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.gre-spec-rich .gre-spec-table-wrap--glass tbody tr:nth-child(even) {
  background: rgba(255, 255, 255, 0.04);
}
.gre-spec-rich .gre-spec-table-wrap--glass td {
  color: rgba(255, 255, 255, 0.85);
}
.gre-spec-rich .gre-spec-table-wrap--glass td:first-child {
  color: rgba(255, 255, 255, 0.95);
  background: rgba(255, 255, 255, 0.05);
}
.gre-spec-rich .gre-spec-table-wrap--glass td:last-child,
.gre-spec-rich .gre-spec-table-wrap--glass td:last-child strong {
  color: #759e42;
}

.gre-section-heading__divider {
  width: 4rem;
  height: 0.125rem;
  background: var(--gre-color-brand);
}

/* 按钮基类只放共性：尺寸、字重、转场；颜色交给变体类 */
.gre-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: var(--gre-btn-padding-y) var(--gre-btn-padding-x);
  border: none;
  border-radius: var(--gre-radius-none);
  box-shadow: var(--gre-shadow-none);
  background: transparent;
  color: inherit;
  width: 100%;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: var(--gre-font-weight-semibold);
  font-size: var(--gre-fs-caption);
  line-height: 1;
  text-align: center;
  transition: all var(--gre-duration-fast) var(--gre-ease-standard);
}

.gre-btn--primary,
.gre-btn--brand {
  background: var(--gre-color-brand);
  color: var(--gre-color-text-inverse);
}

.gre-btn--primary:hover,
.gre-btn--brand:hover {
  background: var(--gre-color-brand-hover);
  color: var(--gre-color-text-inverse);
}

.gre-btn--secondary,
.gre-btn--cream {
  background: var(--gre-color-accent);
  color: var(--gre-color-text-heading);
}

.gre-btn--secondary:hover,
.gre-btn--cream:hover {
  background: var(--gre-color-brand-hover);
  color: var(--gre-color-text-inverse);
}

.gre-btn--ghost-dark {
  background: transparent;
  color: var(--gre-color-text-heading);
  border: 1px solid var(--gre-color-text-heading);
}

.gre-btn--ghost-dark:hover {
  background: var(--gre-color-brand-hover);
  border-color: var(--gre-color-brand-hover);
  color: var(--gre-color-text-inverse);
}

.gre-btn--ghost-light {
  background: transparent;
  color: var(--gre-color-text-inverse);
  border: 1px solid var(--gre-color-text-inverse);
}

.gre-btn--ghost-light:hover {
  background: var(--gre-color-surface-white);
  border-color: var(--gre-color-surface-white);
  color: var(--gre-color-brand);
}

.gre-btn--text {
  padding: 0;
  border: 0;
  background: transparent;
  border-radius: 0;
  box-shadow: none;
  letter-spacing: 0.1em;
}

.gre-btn--text:hover {
  background: transparent;
  color: var(--gre-color-brand);
}

.gre-btn--text-brand {
  color: var(--gre-color-brand);
}

.gre-btn--text-brand:hover {
  color: var(--gre-color-brand-hover);
}

.gre-btn--text-dark {
  color: var(--gre-color-text-heading);
}

.gre-btn--text-dark:hover {
  color: var(--gre-color-brand);
}

.gre-btn--text-highlight {
  color: var(--gre-color-text-inverse);
}

.gre-btn--text-highlight:hover {
  color: var(--gre-color-highlight);
}

@media (min-width: 768px) {
  .gre-btn {
    width: auto;
  }
}

.gre-btn--full {
  width: 100%;
}

.gre-btn--nowrap {
  white-space: nowrap;
}

.gre-stat-number {
  font-family: var(--gre-font-display);
  font-size: var(--gre-fs-stat-number);
  font-weight: var(--gre-font-weight-medium);
  line-height: 1;
  letter-spacing: -0.025em;
  color: var(--gre-color-brand);
}

.gre-stat-number--lg {
  font-size: 24px;
  font-weight: var(--gre-font-weight-light);
}

.gre-stat-number--lg span {
  font-size: 18px;
  margin-left: 8px;
  color: #a3d160;
}

.gre-stat-percent {
  font-size: 0.55em;
  color: #a3d160;
}

/* 统计标签：服务于 S01b 这类数字说明，不混入正文体系 */
.gre-stat-label {
  font-family: var(--gre-font-body);
  font-size: var(--gre-fs-stat-label);
  font-weight: var(--gre-font-weight-semibold);
  line-height: 1.4;
  text-transform: uppercase;
  letter-spacing: 0.2em;
}

/* 统计网格：用于“数字在上、说明在下”的数据块阵列 */
.gre-stat-grid {
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  gap: var(--gre-space-gap-grid);
}

.gre-stat-grid--divided {
  padding-top: 2rem;
  border-top: 1px solid rgba(28, 49, 42, 0.1);
}

.gre-stat-card {
  display: flex;
  flex-direction: column;
  gap: var(--gre-space-stack-2xs);
}

@media (min-width: 640px) {
  .gre-stat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Meta 列表：用于 Hero 小列表、徽章说明等辅助信息 */
.gre-meta-list {
  font-family: var(--gre-font-body);
  font-size: 0.6875rem;
  font-weight: var(--gre-font-weight-medium);
  line-height: 1.45;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  list-style: none;
  margin: 0;
  padding: 0;
}

.gre-meta-item {
  display: flex;
  align-items: center;
}

/* Meta 列表 - Body 变体：用于正文级卖点列表，如产品分类页 S04 */
.gre-meta-list--body {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
  font-size: 1rem;
  text-transform: none;
  letter-spacing: normal;
}

.gre-meta-list--body .gre-meta-item {
  gap: 0.75rem;
  align-items: flex-start;
}

.gre-meta-list--body .gre-meta-item span {
  width: 0.375rem;
  height: 0.375rem;
  flex: none;
  margin-top: 0.5625rem;
  background-color: var(--gre-color-brand);
}

.gre-meta-list--body .gre-meta-item .gre-meta-item__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  margin-top: 0;
  margin-right: 0;
  flex: none;
  background-color: var(--gre-color-brand);
  color: #fff;
}

.gre-meta-list--body .gre-meta-item .gre-meta-item__icon-svg {
  width: 1.25rem;
  height: 1.25rem;
}

.gre-product-thumb-nav:hover,
.gre-product-thumb-nav:focus-visible {
  background: var(--gre-color-brand);
  border-color: var(--gre-color-brand);
  color: #fff;
}

.gre-banner .gre-meta-list--body .gre-meta-item,
.section-dark .gre-meta-list--body .gre-meta-item {
  color: rgba(255, 255, 255, 0.82);
}

.gre-banner .gre-meta-list--body .gre-meta-item span,
.section-dark .gre-meta-list--body .gre-meta-item span {
  background: var(--gre-color-accent);
}

@media (min-width: 768px) {
  .gre-meta-list {
    font-size: 0.75rem;
  }
  .gre-meta-list--body {
    font-size: 1rem;
  }
}

.gre-card-product {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--gre-color-surface-white);
  transition: all 300ms ease;
}

/* 产品卡媒体层：承接图片、角标和 hover CTA 遮罩 */
.gre-card-product__media {
  position: relative;
  overflow: hidden;
}

/* 默认产品卡图片优先保持完整展示，适合透明底商品图 */
.gre-card-product__image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 700ms ease;
}

/* 动态 SKU 卡那类实拍/裁切图改用 cover，不单开一套图片规则 */
.gre-card-product__image--cover {
  object-fit: cover;
}

.group:hover .gre-card-product__image {
  transform: scale(1.05);
}

/* 默认 badge 用在首页精选产品卡，居中压在图片顶部 */
.gre-card-product__badge {
  position: absolute;
  top: 0.75rem;
  left: 50%;
  z-index: 10;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.25rem 0.75rem;
  background: #faf4ef;
  color: #88593b;
  font-size: 10px;
  font-weight: var(--gre-font-weight-semibold);
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  transform: translateX(-50%);
  opacity: 1;
  transition: opacity 300ms ease;
}

.group:hover .gre-card-product__badge {
  opacity: 0;
}

/* 深底 badge 给动态产品卡复用，位置改到左上角 */
.gre-card-product__badge--dark {
  top: 1rem;
  left: 1rem;
  transform: none;
  background: var(--gre-color-text-heading);
  color: var(--gre-color-text-inverse);
  font-size: 9px;
}

/* SKU 角标只负责右上角的小编号标签 */
.gre-card-product__sku {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 10;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.25rem 0.5rem;
  background: var(--gre-color-brand);
  color: var(--gre-color-text-inverse);
  font-size: 10px;
  font-weight: var(--gre-font-weight-semibold);
  line-height: 1;
  letter-spacing: 0.08em;
}

/* 产品卡正文区：统一内边距和文本对齐，内部标题/描述另挂语义类 */
.gre-card-product__body {
  padding: 1.25rem 1.25rem 1.25rem;
  text-align: center;
}

/* 标题 hover 变色单独托管，避免在 HTML 里重复写 group-hover */
.gre-card-product__title {
  font-family: var(--gre-font-body);
  transition: color 300ms ease;
  display: -webkit-box !important;
  -webkit-line-clamp: 2 !important;
  /*! autoprefixer: off */
  -webkit-box-orient: vertical !important;
  /* autoprefixer: on */
  overflow: hidden !important;
}

.group:hover .gre-card-product__title {
  color: var(--gre-color-brand);
}

/* footer 只管底部链接区的分隔和留白，不承担文字样式
 * - margin-top 已收归为卡片 flex 容器的 gap，不再单独写 */
.gre-card-product__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.5rem 1.5rem;
  border-top: 1px solid rgba(28, 49, 42, 0.05);
}

/* 底部文字 CTA 统一进产品卡内部元素层 */
.gre-card-product__link {
  display: inline-flex;
  align-items: center;
  color: var(--gre-color-brand);
  font-size: var(--gre-fs-caption);
  font-weight: var(--gre-font-weight-semibold);
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  transition: color 300ms ease;
}

.gre-card-product__link:hover {
  color: var(--gre-color-text-heading);
}

/* hover 遮罩层只负责把 CTA 放到图中央 */
.gre-card-product__cta-layer {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(28, 49, 42, 0.4);
  opacity: 0;
  transition: opacity 300ms ease;
}

.group:hover .gre-card-product__cta-layer {
  opacity: 1;
}

/* 产品卡主 CTA：延续按钮体系的字重和字距，但尺寸更轻 */
.gre-card-product__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  background: var(--gre-color-brand);
  color: var(--gre-color-text-inverse);
  font-size: var(--gre-fs-caption);
  font-weight: var(--gre-font-weight-semibold);
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  transform: translateY(0.5rem);
  transition: transform 300ms ease;
}

.group:hover .gre-card-product__cta {
  transform: translateY(0);
}

/* 分类卡是更轻的图文卡，先抽公共外壳，比例仍由 HTML 决定 */
.gre-card-category {
  display: block;
  position: relative;
  overflow: hidden;
  background: var(--gre-color-surface-cream);
}

/* 分类卡图片统一成 cover，保证纵卡和横卡都能吃满容器 */
.gre-card-category__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1000ms ease;
}

.group:hover .gre-card-category__image {
  transform: scale(1.05);
}

/* overlay 只收显隐和居中布局，文案层次交给内部元素 */
.gre-card-category__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: rgba(28, 49, 42, 0.7);
  text-align: center;
  opacity: 0;
  transition: opacity 500ms ease;
}

.group:hover .gre-card-category__overlay {
  opacity: 1;
}

/* overlay 内部内容整体上移，箭头和说明共享同一段 reveal 节奏 */
.gre-card-category__body {
  transform: translateY(1rem);
  transition: transform 500ms ease;
}

.group:hover .gre-card-category__body {
  transform: translateY(0);
}

/* 分类卡箭头和场景卡箭头视觉一致，但保留各自独立类名 */
.gre-card-category__arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: clamp(2.75rem, 4vw, 5rem);
  height: clamp(2.75rem, 4vw, 5rem);
  background: var(--gre-color-brand);
  color: var(--gre-color-text-inverse);
  box-shadow: 0 10px 24px rgba(16, 26, 23, 0.18);
  transform: translateY(1rem);
  transition: transform 500ms ease;
}

.group:hover .gre-card-category__arrow {
  transform: translateY(0);
}

/* 分类卡标题链接只接管 hover 颜色 */
.gre-card-category__title-link {
  transition: color 300ms ease;
  display: -webkit-box !important;
  -webkit-line-clamp: 2 !important;
  /*! autoprefixer: off */
  -webkit-box-orient: vertical !important;
  /* autoprefixer: on */
  overflow: hidden !important;
}

.gre-card-category__title-link:hover {
  color: var(--gre-color-brand);
}

.gre-card-stack {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* 场景卡：S05 这类 hover reveal 卡片的公共骨架 */
.gre-card-scenario {
  display: block;
  position: relative;
  overflow: hidden;
}

/* 场景卡图片和分类卡共用同类动效，但单独命名便于以后拆组件 */
.gre-card-scenario__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1000ms ease;
}

.group:hover .gre-card-scenario__image {
  transform: scale(1.05);
}

/* 渐变遮罩和 reveal 内容拆开，后面别的图片卡也能复用 */
.gre-card-scenario__fade {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  height: 66.666667%;
  background: linear-gradient(to top, rgba(28, 49, 42, 1), rgba(28, 49, 42, 0.6), transparent);
  opacity: 0;
  transition: opacity 500ms ease;
}

@media (max-width: 767px) {
  .gre-card-scenario__fade {
    height: 100%;
  }
}

.group:hover .gre-card-scenario__fade {
  opacity: 1;
}

/* 分页：统一处理 WordPress paginate_links 输出的 page-numbers 列表 */
.page-numbers {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.page-numbers li {
  display: inline-flex;
}

.page-numbers a,
.page-numbers span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.5rem;
  height: 2.5rem;
  padding: 0 0.5rem;
  font-family: var(--gre-font-body);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--gre-color-text-muted);
  text-decoration: none;
  background: transparent;
  border-radius: 9999px;
  transition: all var(--gre-duration-fast) var(--gre-ease-standard);
}

.page-numbers a:hover {
  background: rgba(91, 123, 51, 0.1);
  color: var(--gre-color-brand);
}

.page-numbers .current {
  background: var(--gre-color-brand);
  color: #fff;
}

.gre-card-scenario__content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 2rem;
}

@media (max-width: 767px) {
  .gre-card-scenario__content {
    padding: 1rem;
  }
}

/* 内容整体上移显现，避免每张卡都重复写一套 hover 过渡
 * - gap 统一 reveal 内部 accent / desc / arrow 三层间距 */
.gre-card-scenario__reveal {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  transform: translateY(2rem);
  opacity: 0;
  transition: all 500ms ease-out;
}

@media (max-width: 767px) {
  .gre-card-scenario__reveal {
    gap: 0.75rem;
  }
}

.group:hover .gre-card-scenario__reveal {
  transform: translateY(0);
  opacity: 1;
}

/* 短横线是场景卡里的装饰锚点，不单独承担语义
 * - margin-bottom 已收归为 reveal 容器的 gap */
.gre-card-scenario__accent {
  display: block;
  width: 3rem;
  height: 2px;
  background: var(--gre-color-brand);
  transition: all 300ms ease;
}

.group:hover .gre-card-scenario__accent {
  height: 5px;
}

/* 箭头按钮延续现有 circle-arrow 视觉，只把公共尺寸和位移动效收进来 */
.gre-card-scenario__arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: var(--gre-color-brand);
  color: var(--gre-color-text-inverse);
  box-shadow: 0 10px 24px rgba(16, 26, 23, 0.18);
  transition: transform 300ms ease;
}

.group:hover .gre-card-scenario__arrow {
  transform: translateX(0.25rem);
}

/* 场景卡标题链接只保留颜色反馈，避免把标题结构耦进容器类 */
.gre-card-scenario__title-link {
  transition: color 300ms ease;
  display: -webkit-box !important;
  -webkit-line-clamp: 2 !important;
  /*! autoprefixer: off */
  -webkit-box-orient: vertical !important;
  /* autoprefixer: on */
  overflow: hidden !important;
}

.gre-card-scenario__title-link:hover {
  color: var(--gre-color-brand);
}

/* 服务卡：S06 这类图标 + 标题 + 描述的轻量信息卡 */
.gre-card-service {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1.5rem;
}

/* 服务卡 icon 容器：
 * - 自己承担圆形外壳，不再依赖旧的 circle-arrow
 * - 继续保持当前尺寸、底色和 hover 放大效果
 */
.gre-card-service__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 4rem;
  height: 4rem;
  border-radius: 9999px;
  background: var(--gre-color-brand);
  color: var(--gre-color-text-inverse);
  box-shadow: 0 10px 24px rgba(16, 26, 23, 0.18);
  transition: transform 300ms ease, background-color 300ms ease;
}

.group:hover .gre-card-service__icon {
  transform: scale(1.1);
}

/* 服务卡 SVG 图标本体：
 * - 把 fill / stroke 也收进来，模板里只保留图形路径
 */
.gre-card-service__icon-svg {
  width: 2rem;
  height: 2rem;
  fill: none;
  stroke: currentColor;
}

/* 服务卡 icon 线条规范：
 * - 统一圆角端点、折角和线宽
 * - 后续换图标时尽量沿用这层，保持整组图标笔触一致
 */
.gre-card-service__icon-path {
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.5;
}

/* 服务卡正文区用 flex 托底，保证不同文案长度也能对齐
 * - gap 统一 title / desc / cta 三层基础间距
 * - desc 的 margin-bottom 补足 desc→cta 额外余量（gap 0.75 + margin 0.75 = 1.5rem）
 */
.gre-card-service__body {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.gre-card-service__title {
  line-height: 1.375;
  transition: color 300ms ease;
}

.group:hover .gre-card-service__title {
  color: var(--gre-color-brand);
}

/* 描述区承担纵向拉伸，保证四张卡底部节奏一致
 * - margin-bottom 与 body gap 叠加后，desc→cta 总间距 = 1.5rem
 */
.gre-card-service__desc {
  margin-bottom: 0.75rem;
  flex: 1 1 auto;
  font-weight: var(--gre-font-weight-light);
}

/* 服务卡 CTA 继续复用全局按钮体系，但把垂直排列和下划线抽成卡片内部元素 */
.gre-card-service__cta {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  width: auto;
}

.gre-card-service__cta-line {
  width: 100%;
  height: 1px;
  background: currentColor;
}

/* 深色图文区的优势列表：
 * - 列表整体控制项与项之间的纵向节奏
 * - 标题行内放置白色 icon，避免模板里散写对齐样式
 */
.gre-advantage-list {
  display: flex;
  flex-direction: column;
  gap: var(--gre-space-stack-lg);
}

.gre-advantage-list__item {
  display: block;
}

.gre-advantage-list__body {
  display: flex;
  flex-direction: column;
  gap: var(--gre-space-stack-2xs);
}

.gre-advantage-list__head {
  display: flex;
  align-items: center;
  gap: var(--gre-space-stack-sm);
}

.gre-advantage-list__title {
  flex: 1 1 auto;
}

.gre-advantage-list__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.5rem;
  height: 1.5rem;
  flex: none;
  color: var(--gre-color-text-inverse);
}

/* 博客卡：S09 这类图 + 标题 + 摘要 + 文本 CTA 的文章预览卡 */
.gre-card-blog {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

@media (min-width: 640px) {
  .gre-card-blog {
    flex-direction: row;
  }
}

/* 第一张精选卡保留更强的图文对半关系 */
.gre-card-blog--featured {
  align-items: center;
}

/* 博客卡图片区只负责裁切和溢出隐藏 */
.gre-card-blog__media {
  position: relative;
  overflow: hidden;
}

.gre-card-blog__media a {
  display: block;
  width: 100%;
  height: 100%;
}

/* 博客封面图统一 hover scale，和首页其他图片卡保持同一节奏 */
.gre-card-blog__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 700ms ease;
}

.group:hover .gre-card-blog__image {
  transform: scale(1.05);
}

.gre-card-blog__body {
  position: relative;
}

.gre-card-blog__title {
  transition: color 300ms ease;
}

.group:hover .gre-card-blog__title {
  color: var(--gre-color-brand);
}

/* 标题链接用伪元素铺满点击区，但不把这个行为写死到标题类本身 */
.gre-card-blog__title-link {
  position: relative;
  display: inline-block;
}

.gre-card-blog__title-link::before {
  content: "";
  position: absolute;
  inset: 0;
}

/* 文本型 CTA 只收口排布和箭头位移，颜色仍跟着业务上下文走 */
.gre-card-blog__cta {
  display: inline-flex;
  align-items: center;
  font-size: var(--gre-fs-caption);
  font-weight: var(--gre-font-weight-semibold);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  transition: color 300ms ease;
}

.group:hover .gre-card-blog__cta {
  color: var(--gre-color-brand);
}

.gre-card-blog__cta-icon {
  width: 1rem;
  height: 1rem;
  margin-left: 0.5rem;
  transition: transform 300ms ease;
}

.group:hover .gre-card-blog__cta-icon {
  transform: translateX(0.5rem);
}

.gre-card-blog__divider {
  width: 100%;
  height: 1px;
  background: rgba(28, 49, 42, 0.1);
}

/* ===================================
    Layout - 布局样式（通用）
   =================================== */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ===================================
    Animations - 滚动显示动画（通用）
   =================================== */
/* 通用滚动显现类，供需要渐入上浮的区块复用 */
.gre-reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.gre-reveal.is-active {
  opacity: 1;
  transform: translateY(0);
}

.animate-in {
  opacity: 0;
  transform: translateY(20px);
  animation: fade-up 0.6s ease forwards;
}

.animate-right {
  opacity: 0;
  transform: translateX(20px);
  animation: fade-left 0.6s ease forwards;
}

.animate-scale {
  opacity: 0;
  transform: scale(0.95);
  animation: scale-in 0.6s ease forwards;
}

.animate-delay-1 { animation-delay: 0.1s; }
.animate-delay-2 { animation-delay: 0.2s; }
.animate-delay-3 { animation-delay: 0.3s; }
.animate-delay-4 { animation-delay: 0.4s; }
.animate-delay-5 { animation-delay: 0.5s; }

@keyframes fade-up {
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fade-left {
  to { opacity: 1; transform: translateX(0); }
}

@keyframes scale-in {
  to { opacity: 1; transform: scale(1); }
}

/* ===================================
   FAQ Accordion
   =================================== */
.gre-faq-head { margin-bottom: 0; }
.gre-faq-title { font-size: 26px; }
@media (min-width: 1024px) {
  .gre-faq-head { margin-bottom: 36px; }
  .gre-faq-title { font-size: 48px; }
}

.gre-faq-item {
  border-bottom: 1px solid var(--gre-color-border-light);
  padding: 1rem 0;
}

.gre-faq-item__answer {
  padding-top: 0;
}

.gre-faq-item__question h3 {
  margin: 0 !important;
}

.gre-faq-item__answer {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  transition: grid-template-rows 0.3s ease-out, opacity 0.3s ease-out;
}

.gre-faq-item__answer.is-open {
  grid-template-rows: 1fr;
  opacity: 1;
}

.gre-faq-item__answer .overflow-hidden {
  overflow: hidden;
}

@media (min-width: 1024px) {
  .gre-faq-item {
    padding: 1.5rem 0;
  }

  .gre-faq-item__question {
    margin-bottom: 0.75rem;
  }
  .gre-faq-item__answer-text {
    padding-left: 1.75rem;
  }
}

/* ===================================
    Buttons - 按钮样式（通用）
   =================================== */
.btn-primary {
  background: var(--gre-color-brand);
  color: var(--gre-color-text-inverse);
  padding: var(--gre-btn-padding-y) var(--gre-btn-padding-x);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: var(--gre-radius-none);
  box-shadow: var(--gre-shadow-none);
  transition: background-color var(--gre-duration-fast) var(--gre-ease-standard),
              color var(--gre-duration-fast) var(--gre-ease-standard);
  text-transform: uppercase;
  font-size: var(--gre-fs-caption);
  letter-spacing: 0.08em;
  font-weight: var(--gre-font-weight-semibold);
}

.btn-primary:hover {
  background: var(--gre-color-brand-hover);
  color: var(--gre-color-text-inverse);
}

.btn-outline {
  background: var(--gre-color-accent);
  color: var(--gre-color-text-heading);
  border: none;
  padding: var(--gre-btn-padding-y) var(--gre-btn-padding-x);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--gre-radius-none);
  box-shadow: var(--gre-shadow-none);
  transition: background-color var(--gre-duration-fast) var(--gre-ease-standard),
              color var(--gre-duration-fast) var(--gre-ease-standard);
  text-transform: uppercase;
  font-size: var(--gre-fs-caption);
  letter-spacing: 0.08em;
  font-weight: var(--gre-font-weight-semibold);
}

.btn-outline:hover {
  background: var(--gre-color-brand-hover);
  color: var(--gre-color-text-inverse);
}

/* ===================================
    Card - 卡片样式（通用）
   =================================== */
.card {
  background-color: var(--color-bg-primary);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

a:hover .card {
  transform: translateY(-5px);
  border-color: var(--color-border);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

/* ===================================
    Breadcrumb Styles 面包屑组件（通用）
   =================================== */
.wxkn-breadcrumb-wrapper {
  padding: 0.75rem 0;
  background-color: var(--color-bg-primary);
  border-bottom: 1px solid var(--color-border);
}

.wxkn-breadcrumb-wrapper--has-container {
  padding: 0.75rem 0;
}

.wxkn-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;
  margin-left: 1rem;
}

.wxkn-breadcrumb-wrapper--has-container .wxkn-breadcrumb {
  margin-left: 0;
}

.wxkn-breadcrumb a {
  color: var(--color-text-secondary);
  text-decoration: none;
  transition: color 0.3s ease;
  display: inline-flex;
  align-items: center;
}

.wxkn-breadcrumb a:hover {
  color: var(--color-primary);
}

.wxkn-breadcrumb a:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

.wxkn-breadcrumb-separator {
  color: var(--color-text-muted);
  margin: 0 0.75rem;
  user-select: none;
}

.wxkn-breadcrumb-current {
  color: var(--color-text-heading);
  font-weight: 600;
}

.wxkn-breadcrumb--light .wxkn-breadcrumb a {
  color: var(--color-text-secondary);
}

.wxkn-breadcrumb--light .wxkn-breadcrumb a:hover {
  color: var(--color-primary);
}

.wxkn-breadcrumb--light .wxkn-breadcrumb-separator {
  color: var(--color-text-muted);
}

.wxkn-breadcrumb--light .wxkn-breadcrumb-current {
  color: var(--color-text-heading);
}

.wxkn-breadcrumb--compact {
  padding: 0.5rem 0;
  margin-bottom: 0.75rem;
  border-bottom: none;
}

.wxkn-breadcrumb--compact .wxkn-breadcrumb {
  font-size: 13px;
}

.wxkn-breadcrumb--compact .wxkn-breadcrumb-separator {
  margin: 0 0.5rem;
}

.wxkn-breadcrumb--float {
  position: absolute;
  bottom: 20px;
  left: 0;
  right: 0;
  z-index: 20;
  padding: 0;
  background: none;
  border: none;
}

.wxkn-breadcrumb--float .wxkn-breadcrumb {
  font-size: 14px;
  letter-spacing: 0.05em;
  margin-left: 0;
}

.wxkn-breadcrumb--float .wxkn-breadcrumb a {
  color: var(--color-text-secondary);
}

.wxkn-breadcrumb--float .wxkn-breadcrumb a:hover {
  color: var(--color-primary);
}

/* ===================================
   Feature List - 图标圆形背景+标题描述列表
   =================================== */
.gre-feature-list {
  display: flex;
  flex-direction: column;
  gap: var(--gre-space-stack-lg);
}

.gre-feature-list__item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.gre-feature-list__icon {
  flex: none;
  width: 2.75rem;
  min-width: 2.75rem;
  height: 2.75rem;
  min-height: 2.75rem;
  border-radius: 50%;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
  font-size: 1.125rem;
  color: var(--gre-color-brand, #2d6a4f);
}

.gre-feature-list__body {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.wxkn-breadcrumb--float .wxkn-breadcrumb-separator {
  color: var(--color-text-muted);
  margin: 0 8px;
}

.wxkn-breadcrumb--float .wxkn-breadcrumb-current {
  color: var(--color-text-heading);
}

@media (max-width: 767px) {
  .wxkn-breadcrumb-wrapper {
    padding: 0.5rem 0;
  }

  .wxkn-breadcrumb {
    font-size: 13px;
    margin-left: 0;
  }

  .wxkn-breadcrumb-separator {
    margin: 0 0.5rem;
  }

  .wxkn-breadcrumb--float {
    bottom: 12px;
  }

  .wxkn-breadcrumb--float .wxkn-breadcrumb {
    font-size: 13px;
  }

  .wxkn-breadcrumb--float .wxkn-breadcrumb-separator {
    margin: 0 6px;
  }
}

/* ===================================
    Prose - 内容排版样式（通用）
   =================================== */
.prose {
  color: var(--color-text-body);
  line-height: 1.8;
}

.prose h2, .prose h3, .prose h4 {
  color: var(--color-text-heading);
  font-weight: 700;
  margin-top: 2.5rem;
  margin-bottom: 1.25rem;
}

.prose p {
  margin-bottom: 1.5rem;
}

.prose ul, .prose ol {
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
}

.prose li {
  margin-bottom: 0.5rem;
}

.prose blockquote {
  border-left: 4px solid var(--color-secondary);
  padding-left: 1.5rem;
  font-style: italic;
  color: var(--color-text-heading);
  margin: 2rem 0;
}

.prose img {
  margin: 2.5rem 0;
}

.prose a {
  color: var(--color-link);
  text-decoration: underline;
  text-underline-offset: 4px;
  transition: color 0.3s ease;
}

.prose a:hover {
  color: var(--color-link-hover);
}

/* ===================================
    Single Product Page - 产品详情页
   =================================== */
.single-product-page {

}

.single-product-page .text-body p {
  margin-bottom: 1.5rem;
  color: var(--color-text-secondary);
}

.single-product-page .text-body img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}

.single-product-page .text-body h2,
.single-product-page .text-body h3,
.single-product-page .text-body h4 {
  color: var(--color-text-heading);
  margin-top: 2.5rem;
  margin-bottom: 1.25rem;
  font-weight: 600;
  line-height: 1.4;
}

.single-product-page .text-body h2 { font-size: 1.75rem; }
.single-product-page .text-body h3 { font-size: 1.5rem; }
.single-product-page .text-body h4 { font-size: 1.25rem; }

.single-product-page .text-body ul,
.single-product-page .text-body ol {
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
  color: var(--color-text-secondary);
}

.single-product-page .text-body ul { list-style-type: disc; }
.single-product-page .text-body ol { list-style-type: decimal; }
.single-product-page .text-body li { margin-bottom: 0.5rem; }

.single-product-page .product-card-bento {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.single-product-page .product-card-title {
  font-family: var(--gre-font-body);
  color: var(--color-text-heading);
  transition: color 0.3s ease;
  font-weight: 500;
  font-size: 16px;
  line-height: 24px;
  text-align: left;
  display: -webkit-box !important;
  -webkit-line-clamp: 2 !important;
  /*! autoprefixer: off */
  -webkit-box-orient: vertical !important;
  /* autoprefixer: on */
  overflow: hidden !important;
}

.single-product-page .card-overlay {
  position: absolute;
  inset: 0;
  background: var(--color-overlay-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.single-product-page .product-card-bento:hover .card-overlay {
  opacity: 1;
}

.single-product-page .card-overlay-arrow {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--color-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  transform: translate(0, 12px);
  opacity: 0;
  transition: all 0.35s ease;
}

.single-product-page .product-card-bento:hover .card-overlay-arrow {
  transform: translate(0, 0);
  opacity: 1;
}

.single-product-page .form-card-hover {
  position: relative;
  overflow: hidden;
}

.single-product-page .form-card-hover::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 4px;
  background: var(--color-secondary);
  transition: width 0.5s ease;
}

.single-product-page .form-card-hover:hover::before {
  width: 100%;
}

.single-product-page .section-product-matrix {
  background: transparent;
}

/* ===================================
   T02 Blog Detail — S02 Body & TOC
   =================================== */

.gre-blog-main {
}

/* 博客详情页：Banner 图片比例 3:2 (移动端与桌面端通用) */
.gre-blog-main .gre-banner__media {
  min-height: 0 !important;
  aspect-ratio: 3 / 2 !important;
  height: auto !important; /* 强制覆盖可能存在的高度约束 */
  display: block !important;
}
/* 防止 absolute 导致父容器高度坍缩 */
.gre-blog-main .gre-banner__img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
@media (max-width: 1023px) {
  .gre-blog-main .gre-banner__row {
    display: flex;
    flex-direction: column;
  }
  .gre-blog-main .gre-banner__media {
    width: 100% !important;
  }
  .gre-blog-main .gre-banner__body {
    width: 100% !important;
    display: flex !important; /* 确保移动端文案可见 */
  }
}
@media (min-width: 1024px) {
  .gre-blog-main .gre-banner__media {
    align-self: center; /* 防止被右侧过长的文案拉伸高度，保持严格 3:2 */
  }
}

.gre-blog-body {
}

.gre-blog-body__layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

/* TOC Sidebar */
.gre-blog-toc {
}

.gre-blog-toc__inner {
}

.gre-blog-toc__toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0.75rem 1rem;
  font-family: var(--gre-font-body);
  font-size: 14px;
  font-weight: 600;
  color: var(--gre-color-text-heading);
  background: var(--gre-color-accent-soft);
  border: 1px solid var(--gre-color-border);
  cursor: pointer;
  text-align: left;
}

.gre-blog-toc__toggle:hover {
  background: var(--gre-color-accent);
}

.gre-blog-toc__toggle-icon {
  font-size: 12px;
  transition: transform 260ms ease;
  color: var(--gre-color-text-muted);
}

.gre-blog-toc__toggle[aria-expanded="true"] .gre-blog-toc__toggle-icon {
  transform: rotate(180deg);
}

.gre-blog-toc__nav {
  display: none;
  border: 1px solid var(--gre-color-border);
  border-top: none;
  background: #fff;
}

.gre-blog-toc__nav.is-open {
  display: block;
}

.gre-blog-toc__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.gre-blog-toc__item {
  border-bottom: 1px solid var(--gre-color-border-light);
}

.gre-blog-toc__item:last-child {
  border-bottom: none;
}

.gre-blog-toc__item--sub {
  padding-left: 1.25rem;
}

.gre-blog-toc__link {
  display: block;
  padding: 0.625rem 1rem;
  font-size: 13px;
  color: var(--gre-color-text-muted);
  text-decoration: none;
  transition: color 200ms ease;
  line-height: 1.4;
}

.gre-blog-toc__item--sub .gre-blog-toc__link {
  font-size: 12px;
}

.gre-blog-toc__link:hover {
  color: var(--gre-color-brand);
}

.gre-blog-toc__link--active {
  color: var(--gre-color-brand);
  font-weight: 600;
  background: rgba(91, 123, 51, 0.06);
}

/* Content Area */
.gre-blog-content {
  min-width: 0;
}

.gre-blog-content__body {
}

.gre-blog-content__body h2,
.gre-blog-content__body h3 {
  scroll-margin-top: 120px;
}

.gre-blog-content__tags {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--gre-color-border);
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.gre-blog-content__tags-label {
  color: var(--gre-color-text-heading);
  font-size: 14px;
  font-weight: 600;
  margin-right: 0.5rem;
}

.gre-blog-content__tag {
  color: var(--gre-color-brand);
  background: var(--gre-color-accent-soft);
  font-size: 13px;
  padding: 0.3rem 0.8rem;
  text-decoration: none;
  transition: background 200ms ease;
}

.gre-blog-content__tag:hover {
  background: var(--gre-color-accent);
}

/* Desktop: TOC 左侧 sticky + ScrollSpy */
@media (min-width: 1024px) {
  .gre-blog-body__layout {
    grid-template-columns: 240px 1fr;
    gap: 3rem;
  }

  .gre-blog-toc__toggle {
    display: none;
  }

  .gre-blog-toc__inner {
    position: sticky;
    top: 120px;
  }

  .gre-blog-toc__nav {
    display: block;
    border: none;
    background: transparent;
  }

  .gre-blog-toc__list {
    padding-left: 0;
  }

  .gre-blog-toc__item {
    border-bottom: none;
  }

  .gre-blog-toc__link {
    padding: 0.375rem 0;
    font-size: 13px;
    border-left: 2px solid transparent;
    padding-left: 0.75rem;
  }

  .gre-blog-toc__link--active {
    border-left-color: var(--gre-color-brand);
    background: transparent;
    color: var(--gre-color-brand);
    font-weight: 600;
  }

  .gre-blog-toc__item--sub .gre-blog-toc__link {
    padding-left: 1.75rem;
    font-size: 12px;
  }
}

/* Tablet */
@media (min-width: 768px) and (max-width: 1023px) {
  .gre-blog-body__layout {
    grid-template-columns: 180px 1fr;
    gap: 2rem;
  }

  .gre-blog-toc__toggle {
    display: none;
  }

  .gre-blog-toc__inner {
    position: sticky;
    top: 120px;
  }

  .gre-blog-toc__nav {
    display: block;
    border: none;
    background: transparent;
  }

  .gre-blog-toc__item {
    border-bottom: none;
  }

  .gre-blog-toc__link {
    padding: 0.375rem 0;
    font-size: 12px;
    border-left: 2px solid transparent;
    padding-left: 0.5rem;
  }

  .gre-blog-toc__link--active {
    border-left-color: var(--gre-color-brand);
    background: transparent;
    color: var(--gre-color-brand);
    font-weight: 600;
  }

  .gre-blog-toc__item--sub .gre-blog-toc__link {
    padding-left: 1.25rem;
    font-size: 11px;
  }
}

/* ===================================
   T02 Blog Detail — S03 CTA Banner
   =================================== */

.gre-blog-conversion {
}

.gre-blog-cta {
  background: var(--gre-color-brand);
  text-align: center;
  padding: 3rem 1.5rem;
}

.gre-blog-cta__inner {
  max-width: 680px;
  margin: 0 auto;
}

.gre-blog-cta__title {
  font-family: var(--gre-font-display);
  font-size: var(--gre-fs-h2);
  color: #fff;
  line-height: 1.2;
  margin-bottom: 1rem;
}

.gre-blog-cta__desc {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.7;
  margin-bottom: 1.75rem;
}

.gre-blog-cta__btn {
}

@media (min-width: 768px) {
  .gre-blog-cta {
    padding: 4rem 2rem;
  }
}

/* ===================================
   T02 Blog Detail — S03 Related Articles
   =================================== */

.gre-blog-related {
  padding: var(--gre-space-section-y) 0;
}

.gre-blog-related__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

/* 相关阅读卡片 */
.gre-blog-related__card {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  text-decoration: none;
  color: inherit;
  transition: opacity 260ms ease;
}

.gre-blog-related__card:hover {
  opacity: 0.8;
}

.gre-blog-related__thumb {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--gre-color-accent-soft);
}

.gre-blog-related__thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 500ms ease;
}

.gre-blog-related__card:hover .gre-blog-related__thumb-img {
  transform: scale(1.04);
}

.gre-blog-related__thumb-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gre-color-border);
  font-size: 2rem;
}

.gre-blog-related__title {
  font-family: var(--gre-font-display);
  font-size: 16px;
  color: var(--gre-color-text-heading);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 0;
  transition: color 0.2s ease;
}

.gre-blog-related__card:hover .gre-blog-related__title {
  color: var(--gre-color-brand);
}

.gre-blog-related__date {
  font-size: 13px;
  color: var(--gre-color-text-muted);
}

/* Mobile: 默认已是 flex-direction: column，移除这里强加的横向排版即可 */
  @media (max-width: 767px) {
    .gre-blog-related__card {
      /* flex-direction: row; (removed to keep column layout) */
      gap: 1rem;
      align-items: flex-start;
    }

    .gre-blog-related__thumb {
      width: 100%;
      aspect-ratio: 16 / 9;
      flex-shrink: 0;
    }

    .gre-blog-related__title {
      font-size: 15px;
    }
  }

@media (min-width: 768px) {
  .gre-blog-related__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .gre-blog-related__card {
    flex-direction: column;
  }

  .gre-blog-related__thumb {
    width: 100%;
  }
}

@media (min-width: 1024px) {
  .gre-blog-related__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ===================================
   Gre Modal - 通用弹窗组件（G03-A / G03-B）
   =================================== */

/* 弹窗外层：fixed 居中 + 遮罩 */
.gre-modal-dialog {
    position: relative;
    width: min(900px, 94vw);
    border-radius: 14px;
    box-shadow: 0 30px 60px -15px rgba(28, 49, 42, 0.4);
}

/* 询盘弹窗略宽 */
.gre-modal-dialog--inquiry {
    width: min(900px, 94vw);
}

/* 下载弹窗略窄 */
.gre-modal-dialog--download {
    width: min(720px, 94vw);
}

/* 关闭按钮 */
.gre-modal-close {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 5;
    width: 38px;
    height: 38px;
    border: none;
    border-radius: 50%;
    background: rgba(28, 49, 42, 0.08);
    color: #1c312a;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, transform 0.2s;
}
.gre-modal-close:hover {
    background: rgba(28, 49, 42, 0.15);
    transform: rotate(90deg);
}

/* 右侧表单区 */
.gre-modal-right {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Highlights 列表容器 */
.gre-modal-highlights {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

/* 单个 highlight 条目 */
.gre-modal-highlight {
    display: flex;
    align-items: flex-start;
    gap: 0.875rem;
}

/* Highlight 图标 */
.gre-modal-highlight__icon {
    flex-shrink: 0;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    color: #fff;
}

/* Highlight 正文区 */
.gre-modal-highlight__body {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

/* Highlight 标题 */
.gre-modal-highlight__title {
    font-family: var(--gre-font-body);
    font-size: 0.8125rem;
    font-weight: 600;
    color: #fff;
    line-height: 1.4;
}

/* Highlight 副文本 */
.gre-modal-highlight__sub {
    font-family: var(--gre-font-body);
    font-size: 0.6875rem;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.45;
}

/* 移动端：列表堆叠，左侧栏高度自适应 */
@media (max-width: 767px) {
    .gre-modal-dialog,
    .gre-modal-dialog--inquiry,
    .gre-modal-dialog--download {
        width: calc(100vw - 32px);
        max-height: 92vh;
        margin: 0 16px;
        overflow-y: auto;
    }

    .gre-modal-close {
        color: #ffffff;
        background: rgba(255, 255, 255, 0.2);
    }

    .gre-modal-close:hover {
        background: rgba(255, 255, 255, 0.3);
    }

    .gre-modal-left {
        padding: 2rem 1.5rem;
    }

    .gre-modal-right {
        padding: 2rem 1.5rem;
    }

    .gre-modal-highlights {
        gap: 1rem;
    }
}

/* ===== Exit-Intent Modal ===== */
.wxkn-modal {
  position: fixed;
  inset: 0;
  z-index: 2147483647;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
.wxkn-modal.is-open { opacity: 1; visibility: visible; }

.wxkn-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(17, 24, 39, 0.75);
  backdrop-filter: blur(4px);
}

.wxkn-modal__dialog {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 5fr 6fr;
  width: min(960px, 94vw);
  max-height: 88vh;
  background: #ffffff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 30px 60px -15px rgba(17, 24, 39, 0.5);
  transform: translateY(12px) scale(0.98);
  opacity: 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.wxkn-modal.is-open .wxkn-modal__dialog {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.wxkn-modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 5;
  width: 38px;
  height: 38px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.85);
  color: #111827;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, transform 0.2s;
}
.wxkn-modal__close:hover { background: #ffffff; transform: rotate(90deg); }

.wxkn-modal__left {
  background: linear-gradient(135deg, #111827 0%, #1f2937 100%);
  color: #ffffff;
  padding: 48px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
}
.wxkn-modal__eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fbbf24;
  margin-bottom: 16px;
}
.wxkn-modal__title {
  font-size: clamp(26px, 2.6vw, 34px);
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 18px;
}
.wxkn-modal__title em {
  color: #fbbf24;
  font-style: normal;
}
.wxkn-modal__lede {
  font-size: 15px;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.82);
  margin: 0 0 24px;
}
.wxkn-modal__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.wxkn-modal__list li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.92);
}
.wxkn-modal__list li::before {
  content: "✓";
  color: #fbbf24;
  font-weight: 700;
  flex-shrink: 0;
}

.wxkn-modal__right {
  padding: 48px 44px;
  overflow-y: auto;
  background: #ffffff;
}
.wxkn-modal__form-title {
  font-size: 22px;
  font-weight: 700;
  margin: 0 0 6px;
  color: #111827;
}
.wxkn-modal__form-sub {
  font-size: 13px;
  color: #6b7280;
  margin: 0 0 24px;
}

@media (max-width: 768px) {
  .wxkn-modal__dialog {
    grid-template-columns: 1fr;
    width: 100vw;
    max-height: 100vh;
    border-radius: 0;
  }
  .wxkn-modal__left { display: none; }
  .wxkn-modal__right { padding: 60px 22px 32px; }
}


/* Extracted from home-v3.html */

    /* Reset all margins and paddings just in case */
    * {
      margin: 0;
      padding: 0;
      box-sizing: border-box;
    }
    
    html, body {
      margin: 0 !important;
      padding: 0 !important;
    }

    /* BeFarm 2 Premium Heritage Aesthetics */
    .font-display {
      font-family: var(--gre-font-display);
    }
    .font-body {
      font-family: var(--gre-font-body);
    }
    /* Clean carousels with hidden scrollbar */
    html.lenis, html.lenis body { height: auto; }
    .lenis.lenis-smooth { scroll-behavior: auto !important; }
    .lenis.lenis-stopped { overflow: hidden; }
    .page-shell { overflow-x: clip; }
    .no-scrollbar::-webkit-scrollbar {
      display: none;
    }
    .no-scrollbar {
      -ms-overflow-style: none;
      scrollbar-width: none;
    }
    /* Strict radius.none global overrides - EXCEPTION for organic leaf shapes and approved circular icon containers */
    *:not(.leaf-shape-left):not(.leaf-shape-right):not(.circle-arrow):not(.gre-card-service__icon):not(.gre-card-scenario__arrow):not(.gre-feature-list__icon):not(.gre-meta-label) {
      border-radius: 0px !important;
    }
    
    /* Organic Leaf Shapes for S06 */
    .leaf-shape-left {
      border-top-left-radius: 0px !important;
      border-bottom-right-radius: 0px !important;
      border-top-right-radius: 32px !important;
      border-bottom-left-radius: 32px !important;
      transition: border-radius 500ms cubic-bezier(0.4, 0, 0.2, 1) !important;
    }
    
    .group:hover .leaf-shape-left {
      border-radius: 0px !important;
    }

    /* Circular arrow buttons (override global radius) */
    .circle-arrow {
      border-radius: 9999px !important;
    }
    /* Soft nature transitions */
    /* 通用按钮转场：只托管 hover / active 的时间曲线，不承载按钮配色 */
    .gre-btn-transition {
      transition: all 260ms cubic-bezier(0.25, 1, 0.5, 1);
    }
    /* Heritage-style warm ambient overlay */
    .img-overlay {
      background: linear-gradient(180deg, rgba(31, 24, 20, 0.3) 0%, rgba(31, 24, 20, 0.75) 100%);
    }

    /* G01 Global Navigation */
    #siteHeader {
      transition: background-color 260ms cubic-bezier(0.25, 1, 0.5, 1), border-color 260ms cubic-bezier(0.25, 1, 0.5, 1), box-shadow 260ms cubic-bezier(0.25, 1, 0.5, 1);
    }
    #siteHeader.is-solid {
      background: rgba(73, 104, 71, 0.94);
      backdrop-filter: blur(18px);
      -webkit-backdrop-filter: blur(18px);
      border-bottom: 1px solid rgba(255, 250, 243, 0.12);
      box-shadow: 0 14px 40px rgba(16, 26, 23, 0.18);
    }
    /* 当移动端菜单打开时（body有overflow-hidden），强行让 header 变透明并去掉毛玻璃，防止背景叠加发白，同时保留 Logo 显示 */
    body.overflow-hidden #siteHeader.is-solid {
      background: transparent !important;
      backdrop-filter: none !important;
      -webkit-backdrop-filter: none !important;
      border-bottom-color: transparent !important;
      box-shadow: none !important;
    }
    /* 导航壳层：控制整条 header 的高度切换 */
    .gre-header-shell {
      height: 72px; /* 移动端高度 */
      transition: height 260ms cubic-bezier(0.25, 1, 0.5, 1);
    }
    @media (min-width: 1024px) {
      .gre-header-shell {
        height: 104px;
      }
      #siteHeader.is-compact .gre-header-shell {
        height: 86px;
      }
    }
    /* 桌面端下拉面板：默认隐藏，只通过 is-open 控制显隐 */
    .gre-nav-flyout {
      opacity: 0;
      visibility: hidden;
      pointer-events: none;
      transform: translateY(-14px);
      z-index: 50;
      transition: opacity 260ms ease, transform 260ms cubic-bezier(0.22, 1, 0.36, 1), visibility 260ms ease;
    }
    .gre-nav-flyout.is-open {
      opacity: 1;
      visibility: visible;
      pointer-events: auto;
      transform: translateY(0);
    }
    /* 桌面端导航遮罩：打开 flyout 时提供轻微景深和点击关闭区域 */
    .gre-nav-backdrop {
      position: fixed;
      inset: 0;
      z-index: 30;
      background:
        radial-gradient(circle at 22% 12%, rgba(255, 255, 255, 0.10), transparent 22%),
        radial-gradient(circle at 80% 18%, rgba(255, 250, 243, 0.05), transparent 20%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(28, 49, 42, 0.08));
      backdrop-filter: blur(3px) saturate(104%);
      -webkit-backdrop-filter: blur(3px) saturate(104%);
      opacity: 0;
      pointer-events: none;
      transition: opacity 260ms ease, backdrop-filter 260ms ease;
    }
    .gre-nav-backdrop.is-open {
      opacity: 1;
      pointer-events: auto;
    }
    /* 移动端抽屉主体：菜单显隐只切换这个壳层 */
    .gre-mobile-nav-panel {
      transform: translateY(-12px);
      opacity: 0;
      transition: transform 240ms ease, opacity 240ms ease;
    }
    .gre-mobile-nav-panel.is-open {
      transform: translateY(0);
      opacity: 1;
    }

    /* 首页兜底：给原生 h1~h6 一个统一字号入口，避免页面局部漏挂语义类时失控 */
    .gre-page-home h1 {
      font-size: var(--gre-fs-h1);
    }
    .gre-page-home h2 {
      font-size: var(--gre-fs-h2);
    }
    .gre-page-home h3 {
      font-size: var(--gre-fs-h3);
    }
    .gre-page-home h4 {
      font-size: var(--gre-fs-h4);
    }
    .gre-page-home h5 {
      font-size: var(--gre-fs-h5);
    }
    .gre-page-home h6 {
      font-size: var(--gre-fs-h6);
    }

    /* Hero 标题是首页特例：沿用 h2 档位，但单独保留自己的行高节奏 */
    .gre-page-home .gre-home-hero-title {
      font-size: var(--gre-fs-h2);
      line-height: 1.4;
    }

    /* 标题语义类：真正给业务模块挂载的标题组件，不依赖具体页面 */
    .gre-h2-section,
    .gre-h2-display-lg,
    .gre-h2-display-xl,
    .gre-h2-display-xl-medium,
    .gre-h3-feature,
    .gre-h3-list {
      font-family: var(--gre-font-display);
    }
    
    .gre-h3-product,
    .gre-h3-card {
      font-family: var(--gre-font-body);
    }
    .gre-h2-section {
      font-size: var(--gre-fs-title-section);
      font-weight: var(--gre-font-weight-bold);
      line-height: 1.25;
    }
    .gre-h2-display-lg {
      font-size: var(--gre-fs-title-display-lg);
      font-weight: var(--gre-font-weight-bold);
      line-height: 1.25;
    }
    .gre-h2-display-xl {
      font-size: var(--gre-fs-title-display-xl);
      font-weight: var(--gre-font-weight-bold);
      line-height: 1.25;
    }
    .gre-h2-display-xl-medium {
      font-size: var(--gre-fs-title-display-xl-medium);
      font-weight: var(--gre-font-weight-medium);
      line-height: 1.25;
    }
    .gre-h3-product {
      font-size: var(--gre-fs-title-product);
      font-weight: var(--gre-font-weight-medium);
      line-height: 1.75rem;
    }
    .gre-h3-card {
      font-size: var(--gre-fs-title-card);
      font-weight: var(--gre-font-weight-medium);
      line-height: 1.75rem;
    }
    .gre-h3-feature {
      font-size: var(--gre-fs-title-feature);
      font-weight: var(--gre-font-weight-bold);
      line-height: 1.75rem;
    }
    .gre-h3-list {
      font-size: var(--gre-fs-title-list);
      font-weight: var(--gre-font-weight-bold);
      line-height: 1.75rem;
    }

    /* 这里优先改 token，不直接改具体类，方便多个标题在不同断点同步缩放 */
    @media (min-width: 640px) {
      :root {
        --gre-fs-title-section: 1.875rem;
        --gre-fs-title-display-lg: 2.25rem;
        --gre-fs-title-display-xl: 2.25rem;
        --gre-fs-title-display-xl-medium: 2.25rem;
      }
    }
    @media (min-width: 768px) {
      :root {
        --gre-fs-title-feature: 1.25rem;
        --gre-fs-title-list: 1.25rem;
      }
      .gre-h3-feature {
        line-height: 2rem;
      }
    }
    @media (min-width: 1024px) {
      :root {
        --gre-fs-title-section: 2.25rem;
        --gre-fs-title-display-xl: 3rem;
        --gre-fs-title-display-xl-medium: 3rem;
      }
    }

    /* 首页统计区仍保留页面特例：数字和标签的视觉很敏感，先单独托管 */
    .gre-page-home .gre-home-stat-number {
      font-size: var(--gre-fs-stat-number);
      line-height: 1;
    }
    .gre-page-home .gre-home-stat-label {
      font-size: var(--gre-fs-stat-label);
    }

    /* 首页 Hero 文案区：移动端上下 40px / 左右 20px；桌面端顶部补偿固定 Header */
    .gre-home-hero-copy {
      padding-left: 20px;
      padding-right: 20px;
      padding-top: 40px;
      padding-bottom: 40px;
    }
    @media (min-width: 1024px) {
      .gre-home-hero-copy {
        padding-left: clamp(1.5rem, 5vw, 6rem);
        padding-right: clamp(1.5rem, 5vw, 6rem);
        padding-top: clamp(6rem, 12vh, 10rem);
        padding-bottom: clamp(4rem, 8vh, 8rem);
      }
    }

    /* 首页数据条：移动端无分割线，桌面端卡片间白色细分隔线 */
    .gre-home-stats-strip > * {
      border-left: none;
    }
    @media (min-width: 1024px) {
      .gre-home-stats-strip > * + * {
        border-left: 1px solid rgba(255, 255, 255, 0.1);
      }
    }



    /* ===================================
       Gre Banner - 内页通用 Banner 组件
       左右双栏布局，对齐首页 Hero。
       左 50% 图片 + 右 50% 文案，
       bg-farmGreen 底、mobile 上下堆叠。
       =================================== */

    .gre-banner {
      background: var(--gre-color-brand);
      color: var(--gre-color-text-inverse);
      overflow: hidden;
    }
    
    .gre-banner__row {
      display: flex;
      flex-direction: column;
    }
    
    /* 左：图片区 */
    .gre-banner__media {
      position: relative;
      display: grid;
      /* 移除移动端 min-height: 40vh，让图片按自身比例完整显示 */
    }
    
    .gre-banner__img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      display: block;
    }
    
    /* 右：文案区 */
    .gre-banner__body {
      display: flex;
      align-items: center;
      padding: clamp(2rem, 5vw, 4rem) clamp(1.5rem, 5vw, 5rem);
    }

    .gre-banner__inner {
      display: flex;
      flex-direction: column;
      gap: var(--gre-space-stack-md);
      max-width: 48rem;
    }

    .gre-banner__accent {
      display: inline-block;
      width: 3rem;
      height: 0.125rem;
      background: var(--gre-color-accent);
    }

    .gre-banner__title {
    font-family: var(--gre-font-display);
    font-size: var(--gre-fs-h2);
    font-weight: var(--gre-font-weight-medium);
    color: var(--gre-color-text-inverse);
    line-height: 1.25;
    letter-spacing: -0.025em;
    margin: 0;
  }

  .gre-banner__subtitle {
      font-family: var(--gre-font-body);
      font-size: var(--gre-fs-body-lg);
      color: rgba(255, 255, 255, 0.72);
      line-height: 1.7;
      margin: 0;
    }

    /* 控制 banner 中按钮容器的上间距为 40px（扣除 flex gap 后的精确间距） */
    .gre-banner .gre-section-intro__cta,
    .gre-banner .gre-banner__cta {
      margin-top: calc(40px - var(--gre-space-stack-md)) !important;
      padding-top: 0 !important;
    }

    /* 面包屑 — 深色底上浅色文字 */
    .gre-banner__breadcrumb {
      margin-top: 8px; /* 移动端 8px */
    }

    @media (min-width: 1024px) {
      .gre-banner__breadcrumb {
        margin-top: 20px; /* 桌面端恢复 20px */
      }
    }

    .gre-banner__breadcrumb .wxkn-breadcrumb-wrapper {
      padding: 0;
      background: transparent;
      border-bottom: none;
    }

    .gre-banner__breadcrumb .wxkn-breadcrumb {
      margin-left: 0;
    }

    .gre-banner__breadcrumb .wxkn-breadcrumb a {
      color: #ffffff;
    }

    .gre-banner__breadcrumb .wxkn-breadcrumb a:hover {
      color: rgba(255, 255, 255, 0.7);
    }

    .gre-banner__breadcrumb .wxkn-breadcrumb-separator {
      color: rgba(255, 255, 255, 0.35);
    }

    .gre-banner__breadcrumb .wxkn-breadcrumb-current {
      color: rgba(255, 255, 255, 0.5);
      font-weight: 400;
    }

    /* 辅助对齐类：让左右双栏的内容与版心对齐 */
    @media (min-width: 1024px) {
      .gre-banner--align-container .gre-banner__body {
        padding-left: max(var(--gre-space-container-x), calc((100vw - var(--gre-container-max)) / 2));
      }
      .gre-banner--align-container-wide .gre-banner__body {
        padding-left: max(var(--gre-space-container-x), calc((100vw - var(--gre-container-max-wide)) / 2));
      }
      .gre-banner--align-container .gre-banner__media {
        padding-right: max(var(--gre-space-container-x), calc((100vw - var(--gre-container-max)) / 2));
      }
      .gre-banner--align-container-wide .gre-banner__media {
        padding-right: max(var(--gre-space-container-x), calc((100vw - var(--gre-container-max-wide)) / 2));
      }
    }

    @media (min-width: 1024px) {
      .gre-banner__row {
        flex-direction: row;
      }

      .gre-banner__media {
        width: 50%;
        min-height: 50vh;
      }

      .gre-banner__body {
        width: 50%;
        padding-top: calc(clamp(2rem, 5vw, 4rem) + 92px);
      }
    }

/* ===================================
   Text Highlight - 品牌色加粗正文
   =================================== */
.gre-text-highlight {
  color: var(--gre-color-brand);
  font-weight: var(--gre-font-weight-semibold);
}

/* ===================================
   Sticky Scroll Reveal - S03 专用
   =================================== */
.gre-sticky-reveal {
  background: var(--gre-color-surface-white);
  border-radius: 1rem;
  padding: clamp(1.5rem, 4vw, 3rem);
  box-shadow: var(--gre-shadow-soft);
  height: 35rem; /* 固定整个卡片的高度 */
  overflow-y: auto; /* 让卡片内部可以滚动 */
  /* 移除了隐藏滚动条，让用户明确知道这里可以滚动 */
}

/* 优化滚动条样式，使其更美观 */
.gre-sticky-reveal::-webkit-scrollbar {
  width: 6px;
}
.gre-sticky-reveal::-webkit-scrollbar-track {
  background: transparent;
}
.gre-sticky-reveal::-webkit-scrollbar-thumb {
  background-color: rgba(28, 49, 42, 0.1);
  border-radius: 10px;
}

/* --- Scrollbar Utilities --- */
.gre-scrollbar-x-light {
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.4) transparent;
}
.gre-scrollbar-x-light::-webkit-scrollbar {
  height: 6px;
}
.gre-scrollbar-x-light::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  margin: 0 1rem; /* 适配移动端内边距，让滚动条不要贴边 */
}
@media (min-width: 768px) {
  .gre-scrollbar-x-light::-webkit-scrollbar-track {
    margin: 0;
  }
}
.gre-scrollbar-x-light::-webkit-scrollbar-thumb {
  background-color: rgba(255, 255, 255, 0.4);
  border-radius: 4px;
}
.gre-scrollbar-x-light::-webkit-scrollbar-thumb:hover {
  background-color: rgba(255, 255, 255, 0.6);
}

.gre-sticky-reveal__inner {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  position: relative;
}

@media (min-width: 1024px) {
  .gre-sticky-reveal__inner {
    flex-direction: row;
    align-items: flex-start;
    gap: var(--gre-space-gap-layout);
  }
}

.gre-sticky-reveal__text {
  flex: 1;
}

.gre-sticky-reveal__text-item {
  margin-bottom: 8rem; /* 大幅增加文字块之间的间距，确保能滚动 */
  opacity: 0.3;
  transition: opacity 0.5s var(--gre-ease-standard);
}

.gre-sticky-reveal__text-item:last-child {
  margin-bottom: 0;
}

.gre-sticky-reveal__text-item.is-active {
  opacity: 1;
}

@media (min-width: 1024px) {
  .gre-sticky-reveal__text {
    padding-bottom: 20rem; /* 让最后一个元素能滚上来 */
  }

  .gre-sticky-reveal__sticky {
    position: sticky;
    top: 0; /* 在卡片内部吸顶 */
    width: 50%;
    height: 28rem; /* 固定图片高度，略小于容器 */
  }
}

.gre-sticky-reveal__image-wrap {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 20rem;
  overflow: hidden;
  border-radius: 0.75rem;
}

.gre-sticky-reveal__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.7s var(--gre-ease-standard);
}

.gre-sticky-reveal__image.is-visible {
  opacity: 1;
}

/* 应用场景页 S03 复刻 Polpharma API 的滚动切换节奏，但保留左文右图结构 */
.gre-app-s03 {
  width: 100%;
  align-items: flex-start;
  gap: 4rem;
}

.gre-app-s03__rail {
  flex: 0 0 40%;
  min-width: 0;
  padding-block: clamp(9rem, 18vh, 11rem);
}

.gre-app-s03__item {
  min-height: clamp(24rem, 36vh, 26.3125rem);
  display: flex;
  align-items: center;
  opacity: 0.2;
  transition: opacity 0.3s ease;
}

.gre-app-s03__item.is-active {
  opacity: 1;
}

.gre-app-s03__item-inner {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  width: 100%;
}

.gre-app-s03__icon {
  flex: 0 0 4rem;
  width: 4rem;
  height: 4rem;
  margin-top: 0.25rem;
}

.gre-app-s03__content {
  max-width: 30rem;
}

.gre-app-s03__media-column {
  flex: 1 1 auto;
  min-width: 0;
}

.gre-app-s03__media-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  align-items: center;
}

.gre-app-s03__media-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background: var(--gre-color-border-light);
}

.gre-app-s03__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.gre-app-s03__image.is-active {
  opacity: 1;
}

@media (max-width: 1279px) {
  .gre-app-s03__rail {
    flex-basis: 38%;
  }

  .gre-app-s03__item {
    min-height: clamp(18rem, 30vh, 22rem);
  }
}

/* ===================================
   Asymmetrical Solution Grid (S05)
   =================================== */
.gre-solution-item {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  height: 100%;
}

.gre-solution-item__media {
  width: 100%;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  margin-bottom: 1.5rem;
  background-color: var(--gre-color-border-light);
}

.gre-solution-item__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s cubic-bezier(0.25, 1, 0.5, 1);
}
.gre-solution-item:hover .gre-solution-item__image {
  transform: scale(1.03);
}

.gre-solution-item__title {
  margin: 0 0 0.75rem 0;
  text-wrap: balance;
  font-size: 20px;
}

@media (min-width: 768px) {
  .gre-solution-item__title {
    font-size: var(--gre-fs-title-feature);
  }
}

.gre-solution-item__desc {
  margin: 0 0 1.5rem 0;
  flex-grow: 1;
}

.gre-solution-item__link {
  margin-top: auto;
  transition: opacity var(--gre-duration-fast) var(--gre-ease-standard);
}
.gre-solution-item:hover .gre-solution-item__link {
  opacity: 0.8;
}

.gre-solution-item__arrow {
  transition: transform var(--gre-duration-fast) var(--gre-ease-standard);
}
.gre-solution-item:hover .gre-solution-item__arrow {
  transform: translateX(4px);
}

/* ============================================================
   Flip Card
   ============================================================ */
.gre-flip-card {
  perspective: 1200px;
}

.gre-flip-card__inner {
  position: relative;
  width: 100%;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  transform-style: preserve-3d;
}

.gre-flip-card:hover .gre-flip-card__inner,
.gre-flip-card-wrapper:hover .gre-flip-card__inner {
  transform: rotateY(180deg);
}

.gre-flip-card__front,
.gre-flip-card__back {
  width: 100%;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.gre-flip-card__front {
  position: relative;
  z-index: 2;
}

.gre-flip-card__back {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  transform: rotateY(180deg);
  display: flex;
  align-items: center;
  overflow: hidden;
}

/* ===================================
   T03 Case Study Detail
   =================================== */

/* ===================================
   T03 Case Study Detail
   =================================== */

/* S01 Hero Banner */
.gre-case-hero {
  position: relative;
  width: 100%;
  min-height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--gre-color-brand);
}

.gre-case-hero__bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gre-case-hero__overlay {
  position: absolute;
  inset: 0;
  background: rgba(28, 49, 42, 0.55);
  z-index: 1;
}

.gre-case-hero__inner {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 800px;
  padding: 4rem 1.5rem;
}

.gre-case-hero__breadcrumb {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.375rem;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
  margin-top: 1rem;
}

.gre-case-hero__breadcrumb a {
  color: #fff;
  text-decoration: none;
  transition: color 0.2s ease;
}

.gre-case-hero__breadcrumb a:hover {
  color: rgba(255, 255, 255, 0.7);
}

.gre-case-hero__breadcrumb-sep {
  color: rgba(255, 255, 255, 0.35);
}

.gre-case-hero__breadcrumb-current {
  color: rgba(255, 255, 255, 0.7);
}

.gre-case-hero__title {
  font-family: var(--gre-font-display);
  font-size: var(--gre-fs-h2);
  color: #fff;
  line-height: 1.15;
  margin-bottom: 1rem;
}

@media (min-width: 1024px) {
  .gre-case-hero__title {
    font-size: 40px;
  }
}

.gre-case-hero__cat {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--gre-color-fruit-beige);
  background: rgba(255, 255, 255, 0.12);
  padding: 0.35rem 1rem;
}

@media (min-width: 768px) {
  .gre-case-hero {
    min-height: 500px;
  }

  .gre-case-hero__inner {
    padding: 6rem 2rem;
  }
}

@media (min-width: 1024px) {
  .gre-case-hero {
    min-height: 600px;
  }
}

/* S03 Solutions */
.gre-case-solution-card {
  background: #fff;
  padding: 2.5rem 2rem;
  border: 1px solid var(--gre-color-border);
  transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.4s ease;
  display: flex;
  flex-direction: column;
}

.gre-case-solution-card:hover {
  transform: translateY(-4px) scale(1.01);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.04);
}

/* S04 CTA */
.gre-case-cta {
  background: var(--gre-color-brand);
  padding: 40px 0;
  text-align: center;
}

@media (min-width: 768px) {
  .gre-case-cta {
    padding: 6rem 0;
  }
}

.gre-case-cta-inner {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* 产品分类页 S04 卡片列表项上边距归零 */
.app-s04-btn-mobile:hover {
  color: #7f9a54 !important;
}
.bg-fruitBeige .gre-meta-list--body {
  gap: 0;
}
.bg-fruitBeige .gre-meta-list--body.gre-stack-sm > * + * {
  margin-top: 0;
}

/* ===================================
   作者卡片 (Author Card)
   =================================== */
.gre-author-card {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  padding: 1.5rem;
  padding-bottom: 3.5rem;
  margin-top: 2.5rem;
  background: var(--gre-color-brand);
  border-radius: 0;
  position: relative;
}

.gre-author-card__avatar {
  flex-shrink: 0;
}

.gre-author-card__avatar-img {
  border-radius: 50%;
  display: block;
}

.gre-author-card__body {
  flex: 1;
  min-width: 0;
}

.gre-author-card__name {
  font-family: var(--gre-font-display);
  font-size: 1.125rem;
  font-weight: var(--gre-font-weight-bold);
  color: #ffffff;
  margin: 0 0 0.375rem;
}

.gre-author-card__bio {
  font-family: var(--gre-font-body);
  font-size: 0.875rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.75);
  margin: 0 0 0.875rem;
}

.gre-author-card__actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.gre-author-card__social {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.gre-author-card__social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.8125rem;
  text-decoration: none;
  transition: all 0.2s ease;
}

.gre-author-card__social-link:hover {
  background: #ffffff;
  border-color: #ffffff;
  color: var(--gre-color-brand);
}

.gre-author-card__btn {
  position: absolute;
  bottom: 1.25rem;
  right: 1.5rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--gre-font-body);
  font-size: 0.8125rem;
  font-weight: var(--gre-font-weight-semibold);
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  padding: 0.5rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 0;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.gre-author-card__btn:hover {
  background: #ffffff;
  color: var(--gre-color-brand);
  border-color: #ffffff;
}

.gre-author-card__btn i {
  font-size: 0.75rem;
  transition: transform 0.2s ease;
}

.gre-author-card__btn:hover i {
  transform: translateX(3px);
}

@media (max-width: 480px) {
  .gre-author-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding-bottom: 4.5rem;
  }

  .gre-author-card__actions {
    justify-content: center;
  }

  .gre-author-card__btn {
    right: 50%;
    transform: translateX(50%);
  }
}

/* ===================================
   Gre Form Inquiry - 内嵌询盘表单
   =================================== */

.gre-form-inquiry {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.gre-form-inquiry__field {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

.gre-form-inquiry__label {
  font-family: var(--gre-font-body);
  font-size: 0.8125rem;
  font-weight: var(--gre-font-weight-semibold);
  color: var(--gre-color-text-heading);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.gre-form-inquiry__input,
.gre-form-inquiry__textarea {
  padding: 0.75rem 1rem;
  font-family: var(--gre-font-body);
  font-size: var(--gre-fs-body-sm);
  color: var(--gre-color-text-body);
  background: var(--gre-color-surface-white);
  border: 1px solid var(--gre-color-border);
  transition: border-color var(--gre-duration-fast) var(--gre-ease-standard);
  width: 100%;
  box-sizing: border-box;
}

.gre-form-inquiry__input:focus,
.gre-form-inquiry__textarea:focus {
  outline: none;
  border-color: var(--gre-color-brand);
}

.gre-form-inquiry__textarea {
  resize: vertical;
  min-height: 120px;
}

.gre-form-inquiry__file {
  font-family: var(--gre-font-body);
  font-size: 0.8125rem;
  color: var(--gre-color-text-muted);
}

/* FAQ toggle icon rotation */
.gre-faq-toggle-icon {
  transition: transform 0.3s var(--gre-ease-standard);
}

.gre-faq-toggle-icon.is-open {
  transform: rotate(45deg);
}

@media (min-width: 768px) {
  .gre-form-inquiry__input,
  .gre-form-inquiry__textarea {
    font-size: 1rem;
  }
}

/* 去除移动端菜单点击时的默认半透明高亮背景色及焦点轮廓 */
#mobileMenu,
#mobileMenu button,
#mobileMenu a {
  -webkit-tap-highlight-color: transparent;
  outline: none !important;
}

#mobileMenu button:focus,
#mobileMenu button:active,
#mobileMenu a:focus,
#mobileMenu a:active {
  background-color: transparent !important;
  outline: none !important;
}

/* 移动端产品卡片标题字号收窄到 14px（桌面端保持规范 18px） */
@media (max-width: 1023px) {
  .gre-h3-product {
    font-size: 14px;
    line-height: 1.4;
  }
}
