/* =========================================================
   盛清环保 · base.css
   设计变量 + 重置 + 工具类（v3 全新版本）
   ========================================================= */

:root {
  /* ---------- 品牌色 ---------- */
  --pri: #2c87e0;            /* 主色 */
  --pri-d: #1a6cbe;          /* 主色-深 */
  --pri-l: #5aa6ea;          /* 主色-浅 */
  --pri-a: rgba(44, 135, 224, .12);

  /* ---------- 深色体系 ---------- */
  --deep-3: #071322;         /* 最深：页脚底 */
  --deep-2: #0a1a2f;         /* 深 */
  --deep-1: #0d2440;         /* 深-浅 */
  --deep-line: rgba(255, 255, 255, .09);

  /* ---------- 顶栏（浅灰） ---------- */
  --top-bg: #eef3f9;
  --top-ink: #52657c;
  --top-line: #dde7f2;

  /* ---------- 文本 ---------- */
  --ink: #0e1b2c;
  --ink-2: #29394e;
  --muted: #6b7d92;
  --muted-2: #93a4b8;

  /* ---------- 面 ---------- */
  --bg: #fff;
  --bg-soft: #f4f7fb;
  --bg-soft-2: #eaf0f8;
  --bg-soft-3: #e8f0fa;
  --line: #e4ebf4;
  --line-2: #d3dded;

  /* ---------- 强调 ---------- */
  --gold: #c9a24a;           /* 高端点缀金（仅用于极小面积） */
  --ok: #17a06a;

  /* ---------- 圆角/阴影 ---------- */
  --r-s: 0;
  --r: 0;
  --r-l: 0;
  --sh-s: 0 2px 12px rgba(14, 27, 44, .06);
  --sh-m: 0 14px 38px rgba(14, 27, 44, .10);
  --sh-l: 0 30px 70px rgba(14, 27, 44, .16);
  --sh-pri: 0 16px 40px rgba(44, 135, 224, .30);

  /* ---------- 动效 ---------- */
  --tr: .32s cubic-bezier(.4, 0, .2, 1);
  --tr-s: .18s ease;

  /* ---------- 布局 ---------- */
  --gap: 24px;
  --hd-h: 96px;              /* 头部高度（吸顶前） */

  /* ---------- 字体 ---------- */
  --ff: "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --ff-en: "Helvetica Neue", Arial, sans-serif;
}

/* =========================================================
   重置
   ========================================================= */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--ff);
  font-size: 15px;
  line-height: 1.75;
  color: var(--ink-2);
  background: var(--bg);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6, p, figure, ul, ol, dl, dd {
  margin: 0;
}

ul, ol {
  padding: 0;
  list-style: none;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--tr);
}

img,
svg,
video {
  max-width: 100%;
  border: 0;
  vertical-align: middle;
}

img { height: auto; }

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

button {
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}

table {
  border-collapse: collapse;
  border-spacing: 0;
}

address, cite { font-style: normal; }

:focus-visible {
  outline: 2px solid var(--pri);
  outline-offset: 2px;
  border-radius: 0;
}

/* 选中文字 */
::selection {
  background: var(--pri);
  color: #fff;
}

/* 滚动条（桌面） */
@media (min-width: 1025px) {
  ::-webkit-scrollbar { width: 10px; height: 10px; }
  ::-webkit-scrollbar-track { background: var(--bg-soft); }
  ::-webkit-scrollbar-thumb {
    background: #c2d0e2;
    border: 3px solid var(--bg-soft);
    border-radius: 0;
  }
  ::-webkit-scrollbar-thumb:hover { background: var(--pri); }
}

/* =========================================================
   布局工具
   ========================================================= */
.wrap {
  width: min(1320px, calc(100% - 64px));
  margin-inline: auto;
}

.wrap-n {
  width: min(1600px, calc(100% - 64px));
  margin-inline: auto;
}

.flex-b {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.tc { text-align: center; }

/* =========================================================
   章节标题（新版统一：英文小标 + 主标题 + 描述 + 细线）
   ========================================================= */
.sec-hd {
  margin-bottom: 44px;
}

.sec-hd.tc { text-align: center; }

.sec-en {
  display: inline-block;
  margin-bottom: 10px;
  font-family: var(--ff-en);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--pri);
}

.sec-hd.tc .sec-en { display: block; }

.sec-tit {
  position: relative;
  font-size: 36px;
  font-weight: 800;
  line-height: 1.28;
  letter-spacing: -.5px;
  color: var(--ink);
}

.sec-desc {
  margin-top: 12px;
  max-width: 620px;
  font-size: 14.5px;
  color: var(--muted);
}

.sec-hd.tc .sec-desc { margin-inline: auto; }

/* 左侧竖线版（左对齐时用） */
.sec-hd.line .sec-tit { padding-left: 18px; }

.sec-hd.line .sec-tit::before {
  content: "";
  position: absolute;
  left: 0;
  top: .42em;
  width: 4px;
  height: .86em;
  border-radius: 0;
  background: linear-gradient(180deg, var(--pri), var(--pri-d));
}

/* 深色区块标题 */
.on-dark .sec-tit { color: #fff; }
.on-dark .sec-desc { color: rgba(255, 255, 255, .62); }
.on-dark .sec-en { color: var(--pri-l); }

/* =========================================================
   按钮
   ========================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 0 30px;
  height: 50px;
  border-radius: 0;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: .5px;
  white-space: nowrap;
  transition: all var(--tr);
}

.btn i { font-size: 13px; }

.btn-pri {
  color: #fff;
  background: var(--pri);
  box-shadow: var(--sh-pri);
}

.btn-pri:hover {
  background: var(--pri-d);
  transform: translateY(-2px);
}

.btn-ghost {
  color: #fff;
  border: 1px solid rgba(255, 255, 255, .34);
  background: rgba(255, 255, 255, .06);
  backdrop-filter: blur(6px);
}

.btn-ghost:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, .14);
}

.btn-line {
  color: var(--pri);
  border: 1px solid var(--pri);
  height: 46px;
  padding: 0 26px;
}

.btn-line:hover {
  color: #fff;
  background: var(--pri);
}

.btn-line-dark {
  color: var(--ink);
  border: 1px solid var(--line-2);
  height: 46px;
  padding: 0 26px;
}

.btn-line-dark:hover {
  color: #fff;
  border-color: var(--pri);
  background: var(--pri);
}

.btn-block { width: 100%; }

/* 文字链接箭头 */
.tlink {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--pri);
}

.tlink i {
  font-size: 11px;
  transition: transform var(--tr);
}

.tlink:hover i { transform: translateX(5px); }

/* =========================================================
   滚动浮现
   ========================================================= */
[data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .7s cubic-bezier(.22, .61, .36, 1), transform .7s cubic-bezier(.22, .61, .36, 1);
  will-change: opacity, transform;
}

[data-reveal].is-in {
  opacity: 1;
  transform: none;
}

/* 交错 */
[data-reveal][data-d="1"] { transition-delay: .07s; }
[data-reveal][data-d="2"] { transition-delay: .14s; }
[data-reveal][data-d="3"] { transition-delay: .21s; }
[data-reveal][data-d="4"] { transition-delay: .28s; }
[data-reveal][data-d="5"] { transition-delay: .35s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  * { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

/* =========================================================
   工具类
   ========================================================= */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.clamp-1,
.clamp-2,
.clamp-3 {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.clamp-1 { -webkit-line-clamp: 1; line-clamp: 1; }
.clamp-2 { -webkit-line-clamp: 2; line-clamp: 2; }
.clamp-3 { -webkit-line-clamp: 3; line-clamp: 3; }

/* 灰度 → 彩色（仅「案例/合作伙伴」使用；产品图、工厂图、下拉图默认全彩） */
.mono img {
  filter: grayscale(1) contrast(1.06) brightness(1.03);
  transition: filter .5s ease, transform .6s cubic-bezier(.4, 0, .2, 1);
}

.mono:hover img,
.mono:focus-visible img {
  filter: none;
}

/* 隐藏滚动条（横向滚动容器） */
.no-sb { scrollbar-width: none; -ms-overflow-style: none; }
.no-sb::-webkit-scrollbar { display: none; }

/* 图片渐变兜底（内容无图时） */
.noimg {
  background:
    linear-gradient(135deg, rgba(44, 135, 224, .16), rgba(10, 26, 47, .88)),
    var(--deep-1);
}

/* fallback：JS 未执行时也保证可见 */
.no-js [data-reveal] { opacity: 1; transform: none; }
