/* ============================================================
   About-ESG — Environmental Responsibility
   Figma: #485:13740 (1920×1080 白底)
   左侧大装饰（图片 blur + 蓝渐变 + 白色波浪曲线）
   右上 3 徽章（绿色小六边形）；右下标题 + 描述
   ============================================================ */

.aes-env {
  position: relative;
  height: 1080px;
  overflow: hidden;
  background: var(--color-white);
}

/* 面包屑 */
.aes-env__crumb {
  position: absolute;
  top: 40px;
  left: 54px;
  display: flex;
  align-items: center;
  gap: 20px;
  z-index: 3;
}

.aes-env__crumb img {
  height: clamp(16px, 1.042vw, 1.25rem);
  width: auto;
  display: block;
}

.aes-env__crumb .aes-env__crumb-arrow {
  height: clamp(12px, 0.729vw, 0.875rem);
}

.aes-env__crumb-link {
  font-size: clamp(0.875rem, 0.9375vw, 1.125rem);
  line-height: 1.6;
  letter-spacing: -0.36px;
  color: var(--color-primary);
  text-decoration: none;
  position: relative;
  transition: color var(--duration-base) var(--ease-standard);
}

.aes-env__crumb-link::before {
  content: "";
  position: absolute;
  inset: -14px;
}

.aes-env__crumb-link:hover {
  color: var(--color-primary-dark);
}

.aes-env__crumb-current {
  font-size: clamp(0.875rem, 0.9375vw, 1.125rem);
  line-height: 1.6;
  letter-spacing: -0.36px;
  color: var(--color-primary);
}

/* 左侧尖角图片 left-pic（Figma #603:42153 @ -712.14,193，2040.28×584）
   两端尖角长菱形（顶/底水平边 8.85%→91.11%，左右尖端 0.04%/99.93% @ y50%）
   图片清晰无模糊（设计稿 blur 为 backdropFilter 背景模糊，非图片本身） */
.aes-env__deco {
  position: absolute;
  left: -712px;
  top: 193px;
  width: 2040px;
  height: 584px;
  pointer-events: none;
}

.aes-env__deco-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;                /* 保持图片原始比例（不变形），裁切填充尖角 */
  clip-path: polygon(8.85% 0%, 91.11% 0%, 99.93% 50%, 91.11% 100%, 8.85% 100%, 0.04% 50%);
}

/* 右侧渐变线框 right-content（Figma #596:41612 @ 528,435，1770×615）
   斜切多边形：外层蓝渐变描边 + 内层白色斜切块（#603:42152 SVG）
   左缘 528 < left-pic 右缘 1328 → 部分叠加在左侧图上 */
.aes-env__frame {
  position: absolute;
  left: 528px;
  top: 435px;
  width: 1770px;
  height: 615px;
  pointer-events: none;
}

.aes-env__frame-shape {
  display: block;
  width: 100%;
  height: 100%;
}

/* 右上徽章 words-list（Figma #603:42154 @ 1313,232，540×144）
   3 行：Manrope Regular 24px/48px、-0.02em、var(--color-text-muted)
   正六边形 22×22 rgba(168,206,80,0.5) 行内居中，文字距左 42px */
.aes-env__badges {
  position: absolute;
  left: 70.99%;                     /* 1363/1920 */
  top: 232px;                       /* Figma @ (1313, 232) */
  display: flex;
  flex-direction: column;
  gap: 0;
  z-index: 2;
}

.aes-env__badge {
  display: flex;
  align-items: center;
  gap: 20px;                        /* 文字 x42 - 图标 22 */
  margin: 0;
  font-size: clamp(0.875rem, 0.32vw + 0.795rem, 1.375rem);
  line-height: 1.5;
  letter-spacing: -0.02em;
  color: var(--color-text-muted);
}

.aes-env__badge-dot {
  flex: 0 0 22px;
  width: 22px;
  height: calc(22px * 0.866);   /* 平顶正六边形 宽:高=2:√3，同 product-detail KV 的 pd2-kv__feature-dot */
  background: var(--color-secondary);   /* 绿色 var(--color-secondary) */
  clip-path: polygon(25% 0, 75% 0, 100% 50%, 75% 100%, 25% 100%, 0 50%);
}

/* 右下标题 + 描述 */
.aes-env__copy {
  position: absolute;
  left: calc(51.49% + 15px);        /* 1088.53/1920，PC 右移 100px */
  top: 557px;                       /* Figma #596:34281 @ (988.53, 557.14) */
  width: 43.1%;                     /* 828/1920 */
  max-width: 828px;
  z-index: 2;
}

.aes-env__title {
  font-size: clamp(1.75rem, 3.9583vw, 4.75rem);
  font-weight: 600;
  line-height: 1.18;
  letter-spacing: -0.02em;
  color: var(--color-primary);
  margin: 0 0 32px;
}

.aes-env__desc {
  font-size: clamp(1.75rem, 1.667vw, 1.875rem);
  line-height: 1.5;
  letter-spacing: -0.02em;
  color: var(--color-text-muted);
  margin: 0;
}

/* ---------- responsive ---------- */

@media (max-width: 1440px) {
  .aes-env {
    height: auto;
    padding: 120px 60px;
  }
  .aes-env__crumb {
    top: 40px;
    left: 60px;
  }
  .aes-env__deco,
  .aes-env__frame {
    display: none;
  }
  .aes-env__copy,
  .aes-env__badges {
    position: static;
    width: 100%;          /* 覆盖 PC 43.1%，避免断点下仍按 43.1% 收缩 */
    max-width: 900px;
    margin: 0 auto;
  }
  .aes-env__copy {
    text-align: center;   /* 标题/描述整体居中（项目移动端标题惯例） */
  }
  .aes-env__badges {
    margin-bottom: 48px;
  }
  .aes-env__badges,
  .aes-env__badge {
    text-align: left;               /* 六边形行文字左对齐 */
    align-items: flex-start;
  }
  .aes-env__title {
    font-size: clamp(1.5rem, 0.65vw + 1.35rem, 2.5rem);
    line-height: 1.18;
  }
  .aes-env__desc {
    font-size: clamp(1rem, 0.32vw + 0.92rem, 1.5rem);
  }
}

@media (max-width: 768px) {
  .aes-env {
    padding: 80px 24px;
    display: flex;               /* 移动端竖排，用 order 重排：copy(标题/描述)→badges(3点)→image */
    flex-direction: column;
    align-items: center;
  }
  .aes-env__crumb {
    top: 28px;
    left: 24px;
  }
  .aes-env__copy {
    order: 1;
  }
  .aes-env__badges {
    order: 2;
    align-items: flex-start;      /* 左对齐 */
    text-align: left;
    margin-top: 28px;            /* 与上方描述文字拉开间距 */
    margin-bottom: 32px;
  }
  /* 图片：恢复显示（≤1440 隐藏），呈现方式同 aes-soc 的 visual（普通圆角图） */
  .aes-env__deco {
    order: 3;
    display: block;
    position: static;
    left: auto;
    top: auto;
    width: 100%;
    max-width: 640px;
    height: auto;
    margin-top: 40px;
    pointer-events: none;
  }
  .aes-env__deco-img {
    position: static;
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: var(--radius-md);
    clip-path: none;             /* 去掉尖角菱形裁剪，改普通圆角图 */
  }
  .aes-env__badge {
    font-size: 1rem;
    line-height: 1.5;         /* 行距缩小 */
    align-items: center;      /* 六边形与文字垂直居中对齐（覆盖 1440 的 flex-start） */
  }
  .aes-env__title {
    font-size: clamp(1.5rem, 0.81vw + 1.31rem, 2.75rem);
    line-height: 1.18;
    margin: 0 0 40px;
  }
  .aes-env__desc {
    font-size: clamp(0.9375rem, 0.08vw + 0.92rem, 1.0625rem);
    line-height: 1.7;
  }
}

@media (max-width: 576px) {
  .aes-env__title {
    font-size: clamp(1.625rem, 8vw, 2.25rem);
    line-height: 1.18;
  }
}
