/* ==========================================================
   稻壳科技官网 - 华为云风格主题样式
   ----------------------------------------------------------
   本文件只放「华为云风格的设计变量 + 复用组件」，
   日常排版用 Tailwind 的原子类（class="flex items-center"）。
   想换主题色，只改下面 :root 里的几个变量即可。
   ========================================================== */

:root {
  /* ---------- 品牌主色（华为红系，可整体替换） ---------- */
  --brand: #c7000b;          /* 主色：按钮、强调数字、下划线 */
  --brand-hover: #e60012;    /* 主色 hover */
  --brand-dark: #9e0008;     /* 主色按下/深色底上的红 */
  --brand-soft: #fdeced;     /* 主色浅底：标签、提示块 */

  /* ---------- 文字色阶 ---------- */
  --ink: #252b3a;            /* 标题/正文主色 */
  --ink-2: #4e5969;          /* 次级正文 */
  --ink-3: #86909c;          /* 辅助说明、占位文字 */
  --ink-inverse: #ffffff;    /* 深色底上的文字 */

  /* ---------- 背景与线条 ---------- */
  --bg: #ffffff;
  --bg-soft: #f5f7fa;        /* 浅灰区块背景 */
  --bg-dark: #1d2129;        /* 页脚/深色区块背景 */
  --line: #e5e6eb;           /* 卡片边框、分割线 */

  /* ---------- 其他 ---------- */
  --radius: 2px;             /* 华为云风格：小圆角，偏方正 */
  --shadow-card: 0 2px 8px rgba(29, 33, 41, 0.06);
  --shadow-hover: 0 8px 24px rgba(29, 33, 41, 0.12);
  --header-h: 64px;          /* 主导航高度 */
  --topbar-h: 36px;          /* 顶部工具条高度 */

  /* 华为云原版字体栈（从 www.huaweicloud.com 的 body 计算样式逐项抄的）。
     本机没装 HuaweiSans，会落到 HarmonyOS Sans SC —— 它是同一个字族的中文名，
     观感一致；真要 100% 一致得引华为的 Web 字体。用于产品卡标题/正文。 */
  --font-hw: "HuaweiSans", "HarmonyOS Sans SC", -apple-system, "Helvetica Neue",
             Helvetica, Arial, "PingFang SC", "Hiragino Sans GB", STHeiti,
             "Microsoft YaHei", "Microsoft JhengHei", SimSun, sans-serif;
}

/* 首次加载防闪：等 Tailwind 与脚本就绪后再显示（1.5s 兜底，防止脚本异常白屏） */
html.preload body { opacity: 0; }
body { opacity: 1; transition: opacity .2s ease; }

/* ---------- 全局基础 ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "HarmonyOS Sans SC", "PingFang SC", "Microsoft YaHei",
               "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  font-size: 14px;
  line-height: 1.7;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }

/* ---------- 布局容器（全站统一宽度规则）----------
   规则直接照搬华为云：容器 = min(1600px, 89.5%)，两侧各留约 5.25%。
     视口 1920 → 容器 1600px（命中 1600 上限）
     视口 1600 → 容器 1432px
     视口 1440 → 容器 1289px
     视口 1280 → 容器 1146px
   之前 .container-hw 是 1200px 定宽，只有华为云的 3/4，套上产品卡后 4 列就挤；
   现在 .container-hw（全站）/ .container-mpk（产品中心，先改的那版）合并成同一条规则，
   首页 / 解决方案 / 客户案例 / 关于我们 / 联系我们 / 页头 / 页脚 全部对齐。
   用 % 不用 vw：百分比按父容器（body）宽度算，不含滚动条宽度，不会横向溢出。
   手机屏再单独放宽到 100%，避免小屏被 10.5% 的白边吃掉太多可用宽度。 */
.container-hw,
.container-mpk {
  box-sizing: border-box;
  width: min(1600px, 89.5%);
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 16px;
}
/* ≤768px：手机上比例留白太浪费，改为满宽 + 16px 边距 */
@media (max-width: 768px) {
  .container-hw,
  .container-mpk { width: 100%; }
}
/* .container-wide：比通用容器再宽一档，用于通栏但不铺满整屏的模块（目前无页面在用，保留备用） */
.container-wide { box-sizing: border-box; width: min(1760px, 96%); max-width: 1760px; margin: 0 auto; padding: 0 16px; }
@media (max-width: 768px) { .container-wide { width: 100%; } }

/* ---------- 区块标题 ---------- */
.section { padding: 64px 0; }
.section-soft { background: var(--bg-soft); }
.eyebrow {
  display: inline-block; font-size: 13px; font-weight: 600; letter-spacing: .08em;
  color: var(--brand); margin-bottom: 12px;
}
.sec-title { font-size: 30px; line-height: 1.4; font-weight: 700; color: var(--ink); }
.sec-sub { margin-top: 12px; font-size: 15px; color: var(--ink-2); }
@media (max-width: 768px) {
  .section { padding: 40px 0; }
  .sec-title { font-size: 22px; }
}

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 44px; padding: 0 24px; border-radius: var(--radius);
  font-size: 14px; font-weight: 500; cursor: pointer;
  transition: all .2s ease; border: 1px solid transparent; white-space: nowrap;
}
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-hover); box-shadow: 0 4px 12px rgba(199, 0, 11, .28); }
.btn-outline { background: #fff; color: var(--brand); border-color: var(--brand); }
.btn-outline:hover { background: var(--brand-soft); }
.btn-ghost { background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.6); }
.btn-ghost:hover { background: rgba(255,255,255,.22); }
/* 浅色底上的次按钮（首页 banner 用），对标华为云 banner 右侧「了解详情」 */
.btn-light { background: #fff; color: #191919; border-color: #d5dae2; }
.btn-light:hover { background: #fff; border-color: #191919; box-shadow: 0 6px 16px rgba(37,43,58,.10); }
.btn-sm { height: 34px; padding: 0 16px; font-size: 13px; }
.btn-lg { height: 50px; padding: 0 32px; font-size: 16px; }
/* —— Banner 按钮：照华为云首页 banner 的 .por-btn（大胶囊）1:1 复刻 ——
   现场量的是「三档响应式」，不是单一尺寸（之前只量到最小档 106×32，所以按钮偏小）：

   | 断点        | 华为云实测 | padding      | 圆角 | 字号/字重 |
   |-------------|-----------|--------------|------|-----------|
   | ≥1601px     | 154 × 48  | 12px 48px    | 48px | 14px/400  |
   | 1281~1600px | 122 × 40  | 8px 32px     | 40px | 14px/400  |
   | ≤1280px     | 106 × 32  | 4px 24px     | 32px | 14px/400  |

   按钮组：`.banner-text-btn-wrapper` margin-top 32px、按钮间距 16px（故 HTML 用 mt-8 + gap-4）。
   尺寸统一写在 .hero-cta .btn 上（三档），颜色由下面两个皮肤类给：
     .btn-pill-line 次按钮 = 华为云 secondary：透明底 + 1px #595959，hover → 底 rgba(0,0,0,.05)、描边转 #191919
     .btn-pill-fill 主按钮 = 华为云 primary：实心底（本站用品牌红，见下注）
   ⚠️ 华为云原版 primary 是 **#191919 黑**、hover 转 #595959；本站保留品牌红以保持全站一致，
      若要 1:1 用黑色，把 .btn-pill-fill 的 background 改成 #191919、hover 改 #595959 即可。
   ⚠️ `.btn` 基类是 44px 高 / 2px 圆角 / 500 字重，这里必须逐项覆盖，否则看着"没变"。 */
.hero-cta .btn { height: 48px; padding: 0 48px; border-radius: 48px; font-size: 14px; font-weight: 400; }
@media (max-width: 1600px) { .hero-cta .btn { height: 40px; padding: 0 32px; border-radius: 40px; } }
@media (max-width: 1280px) { .hero-cta .btn { height: 32px; padding: 0 24px; border-radius: 32px; } }
/* 移动端：高度回到 44px 保证触控区域 ≥44px（华为云移动端字号另降到 12px，本站不跟，14px 更易读） */
@media (max-width: 768px) { .hero-cta .btn { height: 44px; padding: 0 24px; border-radius: 32px; } }

.btn-pill-line { background: transparent; color: #191919; border-color: #595959; }
.btn-pill-line:hover { background: rgba(0, 0, 0, .05); border-color: #191919; color: #191919; box-shadow: none; }
.btn-pill-fill { background: var(--brand); color: #fff; border-color: var(--brand); }
.btn-pill-fill:hover { background: var(--brand-hover); border-color: var(--brand-hover); box-shadow: 0 4px 12px rgba(199, 0, 11, .28); }
@media (max-width: 768px) { .btn { height: 44px; } } /* 移动端点击区域 ≥44px */

/* 带箭头的文字链接（华为云常用） */
.link-arrow { color: var(--brand); font-size: 14px; display: inline-flex; align-items: center; gap: 4px; }
.link-arrow:hover { color: var(--brand-hover); }
.link-arrow::after { content: "›"; font-size: 16px; transition: transform .2s ease; }
.link-arrow:hover::after { transform: translateX(4px); }

/* ---------- 卡片 ---------- */
/* 通用卡片。加 min-width:0 是防止 grid 列被内容的 min-content 顶宽
   （grid 子项默认 min-width:auto，长文本/nowrap 元素会把整列撑出容器） */
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  transition: all .25s ease; height: 100%; min-width: 0;
}
.card:hover {
  border-color: transparent; box-shadow: var(--shadow-hover);
  transform: translateY(-4px);
}
.card-pad { padding: 24px; }
.card-title { font-size: 17px; font-weight: 600; color: var(--ink); }
.card-desc { margin-top: 8px; font-size: 13px; color: var(--ink-2); }

/* 首页客户案例配图（图源：公司画册 PDF 内嵌的产品界面截图）
   小卡改成「图左文右」的横卡（对标参考页）：两张叠在大卡旁边时高度接近大卡，
   被 grid 拉伸时图片跟着填满左栏，不会像竖版小卡那样在底部留出一大片空白。
   大卡图仍按自身比例自适应高度，任何视口下都不裁掉界面内容。 */
.case-img { display: block; width: 100%; object-fit: cover; height: 200px; }
.case-big .case-img-big { height: auto; }

.case-sm { display: grid; grid-template-columns: minmax(0, 42%) minmax(0, 1fr); }
.case-sm .case-img { height: 100%; min-height: 168px; }
/* 右列第 2 张小卡：图右文左，与第 1 张（图左文右）形成方向交错，
   两张并排时不再是一模一样的模板。用 order 翻转而不是 direction:rtl
   —— 后者会把中文标点和文字对齐一起翻。 */
.case-sm--flip { grid-template-columns: minmax(0, 1fr) minmax(0, 42%); }
.case-sm--flip .case-img { order: 2; }
.case-sm--flip .card-pad { order: 1; }

/* 首页案例卡底部：左终端图标 / 右「了解详情」药丸（图标与客户案例页同一套 .case-term）
   margin-top:auto + 父级 flex column：不管卡片被右列拉多高，这一行都贴着卡片底边，
   三处（大卡 / 右列小卡 / 第二行 4 张）的按钮基线因此对齐。 */
.feat-foot {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; flex-wrap: wrap;
  margin-top: auto; padding-top: 16px;
}
.case-sm .feat-foot { padding-top: 12px; }
.feat-btn {
  display: inline-flex; align-items: center; height: 32px; padding: 0 16px;
  font-size: 12.5px; line-height: 1; color: #191919;
  border: 1px solid #191919; border-radius: 999px;
  transition: background .2s, color .2s;
}
.card:hover .feat-btn { background: #191919; color: #fff; }

/* 正文块：吃掉底部栏以上的剩余高度，让眉标/标题/简介/指标整体垂直居中。
   不加这层时，.feat-foot 用 auto margin 贴底会把文字全顶到卡片上沿，中间空一大片。 */
.case-main { flex: 1; display: flex; flex-direction: column; justify-content: center; min-height: 0; }

/* 大卡：图片在上、文字在下。card-pad 撑满剩余高度（flex:1），
   底部的 .feat-foot 才能用 auto margin 贴到卡片底边。 */
.case-big { display: flex; flex-direction: column; }
.case-big .card-pad { flex: 1; display: flex; flex-direction: column; }
.case-sm .card-pad { padding: 20px 22px; display: flex; flex-direction: column; justify-content: center; }
.case-sm .card-desc { margin-top: 6px; }
.case-sm .grid-cols-3 { margin-top: 14px !important; gap: 10px !important; }
.case-sm .stat-label { font-size: 11.5px; }
@media (max-width: 768px) {
  .case-sm { grid-template-columns: minmax(0, 1fr); }
  .case-sm .case-img { height: 180px; min-height: 0; }
  /* 单列时恢复「图上文下」，否则 flip 会让文字跑到图片上面 */
  .case-sm--flip .case-img, .case-sm--flip .card-pad { order: 0; }
}

/* 首页案例「第二行」：对标华为云「一键部署的解决方案实践，助您轻松上云」——
   16:9 封面 + 眉标 + 16px 标题 + 两行简介 + 1px 描边药丸按钮。
   三张等宽并排（不再分大小卡），没有截图的案例用首字占位块补齐图位。 */
.case-hw { display: flex; flex-direction: column; padding: 0; overflow: hidden; }
.case-hw-cover { position: relative; aspect-ratio: 16 / 9; background: #F5F6F8; overflow: hidden; }
.case-hw-cover img { display: block; width: 100%; height: 100%; object-fit: cover; }
.case-hw-cover.case-img-ph { font-size: 42px; }
.case-hw-body { display: flex; flex-direction: column; flex: 1; padding: 18px 20px 20px; }
.case-hw-title { font-size: 16px; font-weight: 600; line-height: 24px; color: #191919; }
.case-hw-desc {
  margin: 8px 0 0; font-size: 13.5px; line-height: 22px; color: #595959;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.case-hw-btn {
  margin-top: 16px; align-self: flex-start;
  display: inline-flex; align-items: center; height: 36px; padding: 0 22px;
  font-size: 13px; color: #191919; border: 1px solid #191919; border-radius: 999px;
  transition: background .2s, color .2s;
}
.case-hw:hover .case-hw-btn { background: #191919; color: #fff; }

/* 首页「携手行业客户」板块统一圆角。
   全站 --radius 是 2px（华为云那种偏方正的风格），只有这块放宽到 16px：
   大卡 / 右上两张小卡 / 第二行三张卡都是 .card + overflow-hidden，
   图片会被卡片外轮廓一起裁圆，不用单独给 img 加 radius。 */
.case-showcase .card { border-radius: 16px; }

/* ================= 首页案例「融合版」（对比用，2026-10-27） =================
   上半：华为云「热门场景体验」—— 1 张大卡 + 2 张小卡，浅灰底、圆角 16、
         文字在左、截图在右、底部描边药丸按钮；
   下半：华为云「为什么选择行业AI梦工厂」—— 左侧 3 条手风琴 + 右侧大图。
   两个版块原本分开，这里合成一个；与上面的原版共存，方便对比后二选一。 */
.case-fusion { background: #fff; }

.cf-top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; margin-top: 34px; }
.cf-side { display: grid; grid-template-rows: 1fr 1fr; gap: 16px; min-width: 0; }

.cf-card {
  display: flex; min-width: 0; overflow: hidden;
  background: #F5F6F8; border: 1px solid #F0F1F3; border-radius: 16px;
  transition: background .2s var(--ease), box-shadow .2s var(--ease), transform .2s var(--ease);
}
.cf-card:hover { background: #EFF1F4; box-shadow: 0 8px 24px rgba(0, 0, 0, .06); transform: translateY(-2px); }

/* padding 右侧留 0：截图贴到卡片右边，跟华为云一致 */
.cf-hero { min-height: 316px; padding: 30px 0 30px 30px; gap: 18px; }
.cf-mini { min-height: 150px; padding: 22px 0 22px 24px; gap: 14px; }

.cf-txt { display: flex; flex-direction: column; justify-content: center; min-width: 0; }
.cf-hero .cf-txt { flex: 0 0 46%; }
.cf-mini .cf-txt { flex: 0 0 56%; }

.cf-kicker {
  margin-bottom: 6px; font-size: 12px; color: #8a8a8a;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.cf-h { font-size: 20px; font-weight: 600; line-height: 28px; color: #191919; }
.cf-mini .cf-h { font-size: 16px; line-height: 24px; }
.cf-d {
  margin: 8px 0 0; font-size: 13px; line-height: 21px; color: #666;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.cf-mini .cf-d { font-size: 12.5px; line-height: 20px; }
.cf-btn {
  display: inline-flex; align-items: center; height: 34px; padding: 0 18px;
  margin-top: 18px; width: max-content;
  font-size: 13px; color: #191919; border: 1px solid #C9CCD1; border-radius: 999px;
  transition: background .2s, color .2s, border-color .2s;
}
.cf-card:hover .cf-btn { background: #191919; color: #fff; border-color: #191919; }

.cf-media { flex: 1 1 auto; align-self: stretch; display: flex; min-width: 0; overflow: hidden; }
/* 案例截图是整页网页，容器是竖长条：cover 会裁掉两侧。
   object-position 取「center top」而不是左上 —— 截图里的项目名通常在页面中部，
   靠左裁会把标题切掉一半；靠上则保留导航与首屏标题区。 */
.cf-media img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.cf-media .cf-ph { width: 100%; height: 100%; font-size: 44px; }

/* --- 下半：左侧手风琴 + 右侧大图 --- */
.cf-why {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: 56px; align-items: center; margin-top: 64px;
}
.cf-list { display: flex; flex-direction: column; }
.cf-item {
  display: block; width: 100%; padding: 22px 0; text-align: left;
  background: none; border: 0; border-top: 1px solid #E8E9EB; cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.cf-item:last-child { border-bottom: 1px solid #E8E9EB; }
.cf-item-t {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  font-size: 15.5px; font-weight: 600; line-height: 24px; color: #191919;
}
.cf-chev { flex: 0 0 auto; color: #9AA0A6; transition: transform .2s var(--ease); }
.cf-item.on .cf-chev { transform: rotate(180deg); }
.cf-item-d { display: none; margin-top: 8px; font-size: 13px; line-height: 22px; color: #666; }
.cf-item.on .cf-item-d { display: block; }

/* 2:1 而不是 3:2：右列宽约 700，3:2 会撑到 460 高，比左侧三条列表高出一大截；
   2:1 约 350，与列表（展开一条约 260）接近，align-items:center 后上下留白均匀。 */
.cf-figs { position: relative; aspect-ratio: 2 / 1; border-radius: 16px; overflow: hidden; background: #F5F6F8; }
.cf-fig { position: absolute; inset: 0; display: none; }
.cf-fig.on { display: block; }
.cf-fig img { display: block; width: 100%; height: 100%; object-fit: cover; }
.case-img-ph.cf-ph { font-size: 64px; }

@media (max-width: 900px) {
  .cf-top { grid-template-columns: minmax(0, 1fr); }
  .cf-hero { min-height: 260px; }
  .cf-why { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .cf-figs { order: -1; }
}
@media (max-width: 640px) {
  .cf-card { flex-direction: column; padding: 20px; gap: 16px; }
  .cf-hero { min-height: 0; }
  .cf-hero .cf-txt, .cf-mini .cf-txt { flex: 0 0 auto; }
  .cf-media { width: 100%; height: 170px; }
  .cf-hero .cf-h { font-size: 18px; line-height: 26px; }
  .cf-why { margin-top: 40px; }
}

/* 后台没给「首页展示图」时的占位：首字 + 浅渐变压一块，跟品牌色同族。
   为什么不做成空白/灰块：首页是首屏下方最显眼的一条，空图比占位更难看；
   也不能退回客户 logo——logo 是方形小图，铺成 3:2 横幅会被裁得只剩一角。 */
.case-img-ph {
  display: flex; align-items: center; justify-content: center;
  font-size: 56px; font-weight: 700; color: rgba(199, 0, 11, .38);
  background: linear-gradient(135deg, #fdf1f1 0%, #f3f6fb 100%);
  letter-spacing: .04em; user-select: none;
}
.case-big .case-img-ph { height: 260px; font-size: 72px; object-fit: unset; }
.case-sm .case-img-ph { font-size: 44px; }

/* 带顶部红色细线的卡片（产品卡） */
.card-accent { position: relative; overflow: hidden; }
.card-accent::before {
  content: ""; position: absolute; left: 0; top: 0; width: 100%; height: 3px;
  background: var(--brand); transform: scaleX(0); transform-origin: left;
  transition: transform .25s ease;
}
.card-accent:hover::before { transform: scaleX(1); }

/* ---------- 顶部导航 ---------- */
/* 导航外层容器：让主导航真正吸顶。
   .header 自己写了 position:sticky/top:0，但它的父容器 #site-header 只有一屏高，
   sticky 在父容器内没有可滚动的空间 —— 结果就是滚动时整条导航跟着页面一起走掉。
   这里把容器本身也设为 sticky，并把 top 设成「负的 topbar 高度」：
   滚动时 topbar 先滚出去，主导航停在视口顶部（与华为云滚动后的表现一致）。
   窄屏 topbar 本就隐藏（.hidden.md:block），此时容器不用上移，故 top 归 0。 */
/* 这里再减 1px 是补掉 topbar 的下边框，否则主导航会停在 1px 处、
   与下方二级导航之间露出 2px 缝。 */
#site-header { position: sticky; top: calc(-1 * var(--topbar-h) - 1px); z-index: 50; }
@media (max-width: 767px) { #site-header { top: 0; } }

.topbar { background: #f2f3f5; border-bottom: 1px solid var(--line); font-size: 12px; color: var(--ink-2); }
.header { position: sticky; top: 0; z-index: 50; background: #fff; border-bottom: 1px solid var(--line); }
.header-inner { height: var(--header-h); display: flex; align-items: center; }
.nav-item { position: relative; }
.nav-link {
  display: flex; align-items: center; height: var(--header-h); padding: 0 18px;
  font-size: 15px; color: var(--ink); position: relative; transition: color .2s ease;
}
.nav-link:hover, .nav-link.active { color: var(--brand); }
.nav-link::after {
  content: ""; position: absolute; left: 18px; right: 18px; bottom: 0; height: 2px;
  background: var(--brand); transform: scaleX(0); transition: transform .2s ease;
}
.nav-link:hover::after, .nav-link.active::after { transform: scaleX(1); }

/* 搜索框 —— 对齐华为云首页头部 input.search-default（1920 实测）：
     180 × 40、圆角 20px（= 高的一半，正胶囊）、1px #c2c2c2 描边、白底、14px；
     放大镜 18×18 绝对定位在 left 20px 垂直居中，input 左侧留 44px 给图标让位。
   ⚠️ 华为云 ≤1440px 会直接隐藏头部搜索框，本站保留（导航项更多，需要常驻）。
   ⚠️ 华为云 focus 时边框实测不变色（仍 #c2c2c2）；这里保留品牌色描边，
     给装饰性搜索框一个聚焦反馈，若要严格 1:1，删掉下面 :focus-within 那条即可。 */
.hw-search {
  position: relative; display: flex; align-items: center;
  height: 40px; width: 180px; padding: 0 12px 0 0;
  border: 1px solid #c2c2c2; border-radius: 20px;
  background: #fff; transition: border-color .2s ease;
}
.hw-search svg {
  position: absolute; left: 20px; top: 50%; transform: translateY(-50%);
  width: 18px; height: 18px; color: #595959; pointer-events: none;
}
.hw-search input {
  border: 0; outline: 0; background: transparent;
  width: 100%; height: 100%; padding: 0 0 0 44px;
  font-size: 14px; color: var(--ink);
}
.hw-search input::placeholder { color: #a5a5a5; }
.hw-search:focus-within { border-color: var(--brand); }

/* 下拉大面板（产品/解决方案） */
.mega {
  position: absolute; left: 0; top: var(--header-h); width: 720px;
  background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-hover);
  padding: 24px; opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: all .2s ease; z-index: 60;
}
.nav-item:hover .mega { opacity: 1; visibility: visible; transform: translateY(0); }

/* 窄屏（<1200px）：面板宽 720px 且锚在导航项左侧，右侧会顶出视口，
   导致整页出现横向滚动条（768~1100px 段实测溢出 51~324px）。
   这里把面板改成相对视口居中定位，宽度自适应，任何宽度下都不再溢出。 */
@media (max-width: 1200px) {
  .mega {
    position: fixed;
    left: 50%;
    width: min(720px, calc(100vw - 32px));
    max-height: calc(100vh - var(--header-h) - 24px);
    overflow-y: auto;
    transform: translate(-50%, 8px);
  }
  .nav-item:hover .mega { transform: translate(-50%, 0); }
}
.mega-col-title { font-size: 13px; font-weight: 600; color: var(--ink); margin-bottom: 10px; }
.mega-link { display: block; padding: 6px 0; font-size: 13px; color: var(--ink-2); }
.mega-link:hover { color: var(--brand); }

/* 移动端抽屉 */
.drawer {
  position: fixed; inset: 0 0 0 auto; width: 84%; max-width: 340px; background: #fff;
  z-index: 100; transform: translateX(100%); transition: transform .28s ease;
  overflow-y: auto; padding: 16px;
}
.drawer.open { transform: translateX(0); }
.drawer-mask { position: fixed; inset: 0; background: rgba(0,0,0,.45); z-index: 99; opacity: 0; visibility: hidden; transition: .2s; }
.drawer-mask.open { opacity: 1; visibility: visible; }
.drawer-link { display: block; padding: 14px 4px; font-size: 16px; border-bottom: 1px solid var(--line); }

/* ---------- 首页轮播：视频 banner（对标华为云 huaweicloud.com） ----------
   尺寸体系 1:1 取自华为云线上 CSS（cpage-pep-home-page/3.0.18/pc/index.css 实测）：
     .banner .banner-container    height:600px
     @media 769~1600px            height:480px
     @media 769~1279px            height:400px
     @media ≤768px                .banner-content-bg display:none（移动端不放视频）
     .banner-content-bg video     position:absolute / 100%×100% / object-fit:cover / opacity:0
     .banner-text h5              54 / 44 / 36px，line-height 80 / 66 / 54，color:#191919
     .banner-text p               18 / 16 / 14px，line-height 28 / 24 / 22
     .carousel-indicator-wrapper  bottom:108 / 88 / 72px
     .carousel-indicator span     8×8 圆点 opacity .1；active 宽 20px、opacity .8
   本项目保留的差异：内容区沿用「通栏背景 + 中间 1200px 定宽」的既有约定；
   底部活动条保持 .events-container 毛玻璃样式（用户指定 1200 定宽）。
   ---------------------------------------------------- */
.hero { position: relative; height: 600px; overflow: hidden; background: #f7f7f7; }
.hero-slide {
  position: absolute; inset: 0; opacity: 0; transition: opacity .6s ease;
  display: flex; align-items: center;
}
.hero-slide.active { opacity: 1; }

/* —— 视频背景层（对标华为云 .banner-content-bg）—— */
.hero-media {
  position: absolute; inset: 0; z-index: 0;
  /* 兜底层 = 视频首帧 + 与视频一致的底色：视频没就绪也不会白屏、不闪灰 */
  background-color: #fdfdfd;
  background-image: url(../img/banner1-poster.jpg);
  background-repeat: no-repeat;
  background-size: cover;
  background-position: 0% 50%; /* 与下面 video 取景保持一致，替换时不跳帧 */
}
.hero-video {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  object-fit: cover;
  /* 取景贴左：素材是 2560×600 超宽幅，左侧近一半（0~45%）是纯白留白，
     右侧 45%~80% 才是「∞」图形。cover 裁剪时把取景框贴到最左（0%），
     等于把画面内容整体往右推、多余的从右侧裁掉，
     图形就稳稳落在文字区右侧（1920/1600/1440/1280/1024 实测均不压字）。
     若换成构图居中的素材，把这里和上面 background-position 都改回 50% 50%。 */
  object-position: 0% 50%;
  opacity: 0;
}
/* 视频真正开始播放后再淡入（与华为云 video opacity 0→1 的做法一致） */
.hero-media.is-ready .hero-video { opacity: 1; transition: opacity .6s ease; }

/* —— 第 2 屏的视频背景（.hero-media-b2）——
   与第 1 屏共用上面整套机制与 JS 起播逻辑，这里只覆盖两处差异：
   ① 兜底图：第 1 屏是 banner1-poster.jpg（写在 .hero-media 上），本屏换成自己的视频首帧；
   ② 取景：第 1 屏素材是 2560×600 超宽幅、主体在右，故贴左取景（object-position:0%）；
      本屏素材是 1280×720 的 16:9、主体居中，所以改 50% 50% 居中取景。
   本屏保留 .hero-mask：素材是深色底，文字必须靠白色柔化层才压得住（详见 html 里的注释）。 */
.hero-media.hero-media-b2 {
  background-image: url(../img/banner2-poster.jpg);
  background-position: 50% 50%;
}
.hero-media.hero-media-b2 .hero-video { object-position: 50% 50%; }

/* —— 静态图片屏（第 2、3 屏）——
   ⚠️ 本规则已无页面在用：原第 3 屏的 <img class="hero-bg" src="banner-3.svg"> 在 9-24
      换成了动态 Agent 背景（.hero-ai-media > .hero-ai-gif），第 1、2 屏走的是 <video>。
      banner-3.svg 与 gen-banner.py 里的 banner_knowledge() 一并保留为备用，删掉不影响渲染。 */
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 100% 50%; }
/* 白色柔化层：左侧让文字区更干净，向右渐隐露出插画（替代深色遮罩） */
.hero-mask {
  position: absolute; inset: 0;
  background: linear-gradient(90deg,
    rgba(255,255,255,.97) 0%,
    rgba(255,255,255,.93) 34%,
    rgba(255,255,255,.55) 52%,
    rgba(255,255,255,.10) 67%,
    rgba(255,255,255,0) 76%);
}

/* —— 文案（字号/行高档位对齐华为云 .banner-text）——
   · 内容区对齐华为云 .banner-content-main：max-width:1600px + padding:0 5%
     —— 原来沿用全站的 1200px 定宽，在 1920 屏上文字要到 360px 处才开始，左侧空得太多；
        改成 1600 + 5% 后文字从约 240px 起，与华为云的 236px 基本一致。
   · 文案块宽度对齐华为云 .banner-text 的百分比（60% / 55%），不再写死 620px，
     这样屏幕越宽文案块按比例变宽，不会显得缩在中间。 */
.hero-content { position: relative; z-index: 2; color: #191919; }
.hero .container-hw.hero-content { max-width: 1600px; padding-left: 5%; padding-right: 5%; }
.hero-content > * { max-width: 60%; }
/* —— 标题改单行后，整块上提半行 ——
   三屏标题现在都是 1 行，文案块比"两行标题"矮一整行；.hero-slide 是 flex 垂直居中，
   块变矮 = 标题起始位置比两行时**低半行**（1920 下 54px×1.48/2 ≈ 40px，实测也是 40）。
   所以这里把整块 translateY 上提半行，让标题起始高度与两行标题时一致。
   各断点值 = 该断点标题行高的一半：54→40 / 44→32 / 36→27 / 28→21。
   ⚠️ 用 transform 而不是 margin：只做视觉位移，不改布局，也不会和 children 的入场动画
      （它们各自 translateY 40px→0）互相干扰。 */
.hero-content { transform: translateY(-40px); }

/* —— 文案入场动画（对标华为云 .banner-*-enter）——
   原版做法：元素初始 translateY(40px) + opacity:0，切到这一屏时依次上移淡入；
   标题/副标题延迟 .1s、按钮组延迟 .3s，缓动 .6s ease-out。
   触发方式：main.js 在切换屏时给 .hero-slide 加 .enter（先移除再强制重排，保证每次都重播）。 */
.hero-slide .eyebrow,
.hero-slide .hero-title,
.hero-slide .hero-desc,
.hero-slide .hero-cta { opacity: 0; transform: translateY(40px); }
.hero-slide.enter .eyebrow,
.hero-slide.enter .hero-title,
.hero-slide.enter .hero-desc,
.hero-slide.enter .hero-cta { opacity: 1; transform: translateY(0); }
.hero-slide .eyebrow   { transition: opacity .6s ease-out,      transform .6s ease-out; }
.hero-slide .hero-title { transition: opacity .6s ease-out .05s, transform .6s ease-out .05s; }
.hero-slide .hero-desc  { transition: opacity .6s ease-out .1s,  transform .6s ease-out .1s; }
.hero-slide .hero-cta   { transition: opacity .6s ease-out .3s,  transform .6s ease-out .3s; }
/* 系统开启「减少动态效果」时直接显示，不做位移 */
@media (prefers-reduced-motion: reduce) {
  .hero-slide .eyebrow, .hero-slide .hero-title,
  .hero-slide .hero-desc, .hero-slide .hero-cta { opacity: 1; transform: none; transition: none; }
}
/* text-wrap:balance（10-21 三改文案后补）：
   新文案在窄平板/中档桌面会折成两行，默认按贪婪断行会留下「籍」「及。」这种
   只剩 1~2 个字的孤行 —— 平衡换行把两行拉匀。单行标题不受影响（不折行时无副作用）。
   Chrome 114+ / Safari 17.5+ 生效，更老的浏览器退回默认断行，不会破版。 */
.hero-title { font-size: 54px; line-height: 1.48; font-weight: 700; color: #191919; text-wrap: balance; }
.hero-desc { margin-top: 16px; font-size: 18px; line-height: 1.6; color: #4e5969; text-wrap: balance; }
/* 标题里**不要**再套 <span> 之类标签：07_首页文案 的导出/回灌正则按「>…<」取纯文本，
   带标签会被截断甚至回灌时被抹掉。要控制换行只能用纯 CSS。 */
.hero-dots { position: absolute; left: 0; right: 0; bottom: 108px; z-index: 3; display: flex; justify-content: center; gap: 10px; }
.hero-dot { width: 28px; height: 3px; background: rgba(25,25,25,.20); cursor: pointer; transition: .2s; }
.hero-dot.active { background: var(--brand); width: 44px; }

/* 1280~1600：banner 480 高，标题 44px（华为云同断点数值） */
@media (min-width: 1280px) and (max-width: 1600px) {
  .hero { height: 480px; }
  .hero-title { font-size: 44px; }
  .hero-desc { font-size: 16px; }
  .hero-dots { bottom: 88px; }
  .hero-content > * { max-width: 55%; } /* 华为云同断点 .banner-text width:55% */
  .hero-content { transform: translateY(-32px); } /* 标题 44px → 半行 ≈32px */
}
/* 769~1279：banner 400 高，标题 36px；文案整体上移，避免与底部活动条贴太近 */
@media (min-width: 769px) and (max-width: 1279px) {
  .hero { height: 400px; }
  .hero-title { font-size: 36px; }
  .hero-desc { font-size: 14px; margin-top: 12px; }
  .hero-dots { bottom: 72px; }
  .hero-content { padding-bottom: 48px; transform: translateY(-27px); } /* 标题 36px → 半行 ≈27px */
}
@media (max-width: 1200px) {
  /* 窄视口插画会与文字区重叠，遮罩改为上下方向的白色柔化 */
  .hero-mask { background: linear-gradient(180deg, rgba(255,255,255,.96) 0%, rgba(255,255,255,.86) 60%, rgba(255,255,255,.72) 100%); }
}
/* 移动端：与华为云一致 —— 不加载视频，改用静态图
   （超宽视频在小屏被 cover 放大后只剩中间一小条，且白耗流量） */
@media (max-width: 768px) {
  .hero { height: 540px; } /* 540 = 文案区(约300) + 活动条(96) + 上下留白，防止两者重叠 */
  .hero-video { display: none; }
  .hero-media { background-image: url(../img/banner-1.svg); background-position: 100% 50%; }
  /* 第 2 屏同理回落成它自己的插画（否则会错用第 1 屏的 banner-1.svg，画面与文案不符） */
  .hero-media.hero-media-b2 { background-image: url(../img/banner-2.svg); background-position: 100% 50%; }
  .hero-title { font-size: 28px; }
  .hero-desc { font-size: 14px; margin-top: 16px; }
  .hero-dots { bottom: 116px; }
  .hero-content { padding-bottom: 0; transform: translateY(-21px); } /* 标题 28px → 半行 ≈21px */
  /* 手机屏文案通栏，不再按比例收窄 */
  .hero-content > * { max-width: 100%; }
}

/* ==================================================================
   第 3 屏：AI 知识引擎 —— 动态 Agent 背景 + AI 能力块
   ------------------------------------------------------------------
   ① 背景素材：assets/img/hero-ai-agent.gif（1600×516 动图，120 帧 / 3.6 秒无缝循环），
      与华为云开发者官网首页「开放能力」板块用的是**同一张素材**（甲方提供）。
      取景沿用第 1、2 屏的 cover 思路：object-position 取 100% 50%（贴右）——
      GIF 左侧约 43% 是纯白留白、Agent 白色圆盘在 61%~80% 处，贴右取景能让圆盘尽量
      靠右，给左侧文案让位（与已删掉的 banner-3.svg 时代同一套取景）。
      本屏**不加 .hero-mask**：GIF 左侧本身接近纯白，文字直接压白底；
      但 ≤1200 窄屏文案会通栏压到圆盘/圆环上，所以用 .hero-ai-media::after 补一层
      上下方向的白色柔化（数值抄自 .hero-mask 的 ≤1200 分支）。

   ② AI 能力块：样式逐项对齐参考站「开放能力」板块的 .ability-agent span ——
        白底 / 圆角 10px / 内边距 20px / 字号 15px·字重 500·行高 20px /
        阴影 0 2px 8px rgba(0,0,0,.08) / transition box-shadow .3s, transform .3s
      hover 抬升一档（参考站同样只给了这两条 transition，未写死 hover 值，此处补全）。

   ③ 定位：每块用 left%·top% + translate(-50%,-50%) 把「块心」钉在指定点。
      百分比不是拍脑袋写的，是按「GIF 在 cover 取景下、圆盘圆心与半径的实际落点」
      换算的：圆盘在图片坐标系里的圆心 ≈ (70.4%, 48.5%)、半径 ≈ 9.06% 图宽，
      换算到各断点的横幅尺寸后，把 6 块摆在「离圆盘中心 1.0~1.4 倍半径」的弧线上
      （上左 / 上右 / 右 / 下右 / 下左），避开：左侧文案区（≤54.5% 宽）、
      底部活动条（≥528px 起）、指示点（居中一行）。
      验证数据见 README 第二十八节。

   ④ 三档响应式：
        ≥1601       6 块，弧线最疏
        1281~1600   6 块，横向收窄（圆盘在 65.5%~70.4% 之间漂移）
        ≤1280       4 块改「右侧一列」—— 此断点横幅只有 400px 高、文案通栏到 54.5%，
                    圆盘又只剩 ~100px 半径，横向摆不下弧线，改纵向排列最稳
        ≤768        改成文案下方一整行自动换行（手机上文案通栏，散点必然压字）
   ================================================================== */
.hero-slide-ai { background: #fdfdfd; }
.hero-ai-media { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.hero-ai-gif {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: 100% 50%;
}
.hero-ai-chips { position: absolute; inset: 0; z-index: 1; pointer-events: none; }

.hero-ai-chip {
  position: absolute; transform: translate(-50%, -50%);
  display: block; white-space: nowrap; text-decoration: none;
  padding: 20px; border-radius: 10px; background: #fff; color: #000;
  font-size: 15px; font-weight: 500; line-height: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .08);
  pointer-events: auto;
  /* opacity 用 --chip-delay 做错峰淡入；box-shadow/transform 留给 hover */
  transition: opacity .6s ease-out var(--chip-delay, .35s),
              box-shadow .3s ease, transform .3s ease;
}
.hero-ai-chip:hover {
  box-shadow: 0 6px 18px rgba(0, 0, 0, .14);
  transform: translate(-50%, -50%) translateY(-2px);
}
/* 与标题/副标题一起淡入：只动 opacity，不动 transform（transform 已被定位占用） */
.hero-slide .hero-ai-chip { opacity: 0; }
.hero-slide.enter .hero-ai-chip { opacity: 1; }
@media (prefers-reduced-motion: reduce) {
  .hero-slide .hero-ai-chip { opacity: 1; transition: box-shadow .3s ease, transform .3s ease; }
}

/* —— 能力块落点（≥1601：横幅 600 高、圆盘半径 ≈167px，6 块围成一圈）——
   落点 = 圆盘圆心 (70.44%, 48.4%) + 极坐标偏移，逐项见上面 ③ 的换算说明。
   ⚠️ pos-1/2 的 left 值取了 58.5% / 68%，而不是按极坐标算出的 ~54%：
      1601~1859 这一档 GIF 是「按高度铺满」（图片宽固定 1860、右侧被裁），
      圆盘会退到 calc(100% - 550px) 的位置（比 70.44% 偏左约 80px），
      按 54% 摆就会压到副标题 —— 实测 1601px 下正好重叠 11px（见 README 第二十八节）。 */
.hero-ai-chip.ai-pos-1 { left: 58.5%; top: 26.0%; --chip-delay: .32s; } /* 上左 */
.hero-ai-chip.ai-pos-2 { left: 68.0%; top: 14.0%; --chip-delay: .38s; } /* 上中 */
.hero-ai-chip.ai-pos-3 { left: 86.3%; top: 23.7%; --chip-delay: .44s; } /* 右上 */
.hero-ai-chip.ai-pos-4 { left: 92.8%; top: 48.4%; --chip-delay: .50s; } /* 右   */
.hero-ai-chip.ai-pos-5 { left: 83.3%; top: 75.1%; --chip-delay: .56s; } /* 下右 */
.hero-ai-chip.ai-pos-6 { left: 57.6%; top: 75.1%; --chip-delay: .62s; } /* 下左 */

/* —— 1280~1600：横幅 480 高、圆盘半径只剩 ~130px，且圆盘会随视口在 65.6%~70.4% 之间漂移，
       左侧留给文案的余量在 1280 时只剩 20px → 取消「左」两块的环位，改成一圈偏右的弧线 —— */
@media (min-width: 1280px) and (max-width: 1600px) {
  .hero-ai-chip { padding: 16px 20px; font-size: 14px; }
  .hero-ai-chip.ai-pos-1 { left: 60.0%; top: 13.0%; } /* 上左 */
  .hero-ai-chip.ai-pos-2 { left: 72.0%; top: 12.0%; } /* 上中 */
  .hero-ai-chip.ai-pos-3 { left: 84.0%; top: 22.0%; } /* 右上 */
  .hero-ai-chip.ai-pos-4 { left: 87.0%; top: 48.0%; } /* 右   */
  .hero-ai-chip.ai-pos-5 { left: 80.0%; top: 72.0%; } /* 下右 */
  .hero-ai-chip.ai-pos-6 { left: 66.0%; top: 74.0%; } /* 下左 */
}

/* —— 769~1279：横幅只有 400 高（bottom:72px 还是活动条），横向余量 100~450px，
       围不成圈 → 改右侧 2×2 四块（只留甲方点名的 AI 问答/知识图谱/智能体/OCR 识别） —— */
@media (min-width: 769px) and (max-width: 1279px) {
  .hero-ai-chip { padding: 14px 18px; font-size: 14px; }
  .hero-ai-chip.ai-pos-1 { left: 66%; top: 22%; }
  .hero-ai-chip.ai-pos-2 { left: 88%; top: 22%; }
  .hero-ai-chip.ai-pos-3 { left: 66%; top: 74%; }
  .hero-ai-chip.ai-pos-4 { left: 88%; top: 74%; }
  .hero-ai-chip.ai-pos-5,
  .hero-ai-chip.ai-pos-6 { display: none; }
}

/* —— ≤1200：文案通栏会压到圆盘/圆环上，补一层上下方向的白色柔化（数值同 .hero-mask 该断点） —— */
@media (max-width: 1200px) {
  .hero-ai-media::after {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(180deg,
      rgba(255, 255, 255, .96) 0%,
      rgba(255, 255, 255, .86) 60%,
      rgba(255, 255, 255, .72) 100%);
  }
}

/* —— ≤768：文案通栏占满整个横向，散点必然压字 → 改成文案下方一整行自动换行。
       同时给本屏文案加 padding-bottom，把整块文案往上顶，把底部让给能力块（只影响本屏）。 —— */
@media (max-width: 768px) {
  .hero-slide-ai .hero-content { padding-bottom: 104px; }
  .hero-ai-chips {
    top: auto; bottom: 130px; left: 5%; right: 5%;
    display: flex; flex-wrap: wrap; justify-content: center; gap: 8px;
  }
  .hero-ai-chip {
    position: static; transform: none;
    padding: 12px 14px; font-size: 13px; line-height: 18px;
    transition: none;
  }
  .hero-ai-chip:hover { transform: none; box-shadow: 0 2px 8px rgba(0, 0, 0, .08); }
}

/* 通用小图标底座（联系页等也在用） */
.quick-icon {
  width: 44px; height: 44px; border-radius: var(--radius);
  background: var(--brand-soft); display: flex; align-items: center; justify-content: center; color: var(--brand);
}

/* ---------- Banner 底部活动条：取自华为云首页 .events-container 原版样式 ----------
   华为云线上 CSS（cpage-pep-home-page/3.0.18/pc/index.css）原始值：
     .events-container { backdrop-filter:blur(20px); background:hsla(0,0%,94%,.7);
                         bottom:0; height:88px; position:absolute; width:100%; z-index:99 }
     .event-item  { padding:0 24px; transition:all .2s; align-items:center; flex:1; display:flex }
     .event-title { color:#191919; font-size:18px; font-weight:700; line-height:26px;
                    margin-bottom:4px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap }
     .event-desc  { color:#595959; font-size:14px; line-height:22px; overflow:hidden;
                    text-overflow:ellipsis; white-space:nowrap; width:100% }
     .event-item:hover { background-color:hsla(0,0%,100%,.8) }
   下面字号用的是 1280px 窗口下的实测渲染值（容器 72px / 标题 16px / 描述 12px），
   想完全对齐华为云 88px 大屏版本，把 height 改 88px、标题 18px、描述 14px 即可。
   ------------------------------------------------------------------------------ */
.events-container {
  position: absolute; left: 0; bottom: 0; width: 100%; height: 72px; z-index: 99;
  background: hsla(0, 0%, 94%, .7);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
}
/* 背景通栏 100%（见上方 .events-container），但 4 个条目限制在与页面主体同宽的容器内居中，
   宽度规则与 .container-hw 完全一致（min(1600px, 89.5%)），否则活动条会和下方内容错开 */
.events-container .events-wrapper {
  box-sizing: border-box;
  display: flex; height: 100%;
  width: min(1600px, 89.5%); max-width: 1600px; margin: 0 auto; padding: 0 16px;
}
.events-container .event-item {
  display: flex; align-items: center; justify-content: center; flex: 1;
  padding: 0 24px; min-width: 0; cursor: pointer;
  -webkit-transition: all .2s; transition: all .2s;
}
.events-container .event-item:hover { background-color: hsla(0, 0%, 100%, .8); }
.events-container .event-content { text-align: center; width: 100%; }
.events-container .event-title {
  margin: 0 0 4px; color: #191919; font-size: 16px; font-weight: 700; line-height: 24px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  -webkit-transition: all .2s; transition: all .2s;
}
.events-container .event-desc {
  margin: 0; width: 100%; color: #595959; font-size: 12px; line-height: 18px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
/* 窄屏：仍压在 banner 底部，改为 2×2 网格、隐藏描述（对齐华为云移动端的简化逻辑） */
@media (max-width: 768px) {
  .events-container { height: 96px; }
  .events-container .events-wrapper { display: grid; grid-template-columns: 1fr 1fr; padding: 0 16px; }
  .events-container .event-item { padding: 8px 10px; }
  .events-container .event-title { font-size: 13px; line-height: 20px; margin: 0 0 2px; }
  .events-container .event-desc { display: none; }
}

/* ---------- Tab 切换（产品分类，仿华为云产品区） ---------- */
.tab-bar { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 24px; }
.tab-item {
  padding: 8px 20px; border-radius: var(--radius); font-size: 15px; cursor: pointer;
  border: 1px solid var(--line); background: #fff; color: var(--ink-2); transition: all .2s ease;
}
.tab-item:hover { color: var(--brand); border-color: var(--brand); }
.tab-item.active { background: var(--brand); border-color: var(--brand); color: #fff; }
.tab-panel { display: none; }
.tab-panel.active { display: block; animation: fadeUp .3s ease; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* ---------- 数据指标（案例/实力区块大数字） ---------- */
.stat-number { font-size: 40px; font-weight: 700; color: var(--brand); line-height: 1.1; }
.stat-label { font-size: 13px; color: var(--ink-2); margin-top: 4px; }
.dark .stat-number { color: #ff7d85; }

/* 深色区块 */
.block-dark { background: linear-gradient(120deg, #1d2129 0%, #2b3140 100%); color: #fff; }
.block-brand { background: linear-gradient(120deg, var(--brand-dark) 0%, var(--brand) 100%); color: #fff; }

/* ---------- 合作客户 Logo 墙（首页「谁选择了我们的技术服务」+ 案例页「合作客户」） ----------
   Logo 图已统一去掉白底转透明（见 assets/img/customers/），图片只限最大宽高、不拉伸，
   所以长条 logo 只会等比变矮，不会被压扁，透明底也不会在白卡上露出白块。
   排布对齐华为云 cloudrobo 页「生态合作」区块（cnpm-pep-product-logo-v2）：
   白底圆角卡片 + 均匀间隙；默认无阴影，hover 浮起一层柔和阴影（移动端无阴影）。
   16 家用 4 列排满（华为云 19 家走 5 列），默认露出前 3 行，其余折叠 —— 见下方 .logo-more。
   ⚠️ 卡片间距靠 .logo-card 的左右 padding 撑开，卡片本身用 border-radius，
      所以不能再给 .logo-wall 加背景/边框（那是上一版 1px 缝隙网格的做法）。 */
.logo-wall { display: flex; flex-wrap: wrap; }
.logo-wall .logo-card { flex: 0 0 25%; max-width: 25%; padding: 0 8px; margin-bottom: 16px; }
.logo-wall .logo-card-inner {
  height: 100%; padding: 44px 28px; background: #fff; border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  transition: box-shadow .2s ease;
}
.logo-wall .logo-card-inner:hover { box-shadow: rgba(0, 0, 0, .1) 0 6px 12px; }
/* 图标区高度固定 → 同一屏内所有 logo 视觉高度一致；
   宽度受容器限制，超长条 logo 等比缩矮，而不是被压扁或撑破卡片。 */
.logo-wall .logo-card-icon { width: 100%; height: 48px; display: flex; align-items: center; justify-content: center; }
.logo-wall .logo-card-icon img { max-height: 100%; max-width: 100%; width: auto; height: auto; object-fit: contain; }
/* 默认只露前 3 行：被折叠的卡片挂 .logo-card--fold（由 main.js 按实测行号添加，
   不写死「第 13 张起隐藏」—— 列数随断点变化，固定序号在 2 列/手机端会漏出不一样的行数）。 */
.logo-wall .logo-card--fold { display: none; }

/* 「展开更多/收起」按钮：样式对齐华为 tech4all 合作伙伴页的 a.btn-showmore ——
   整行居中、16px 灰字（#666，hover 变 #333）+ 紧跟的品牌红箭头；
   展开后箭头翻转 180°、文案变「收起」。
   hidden 初始态在 CSS 里必须显式关掉 display，否则会被下面的 flex 覆盖掉。 */
.logo-more {
  display: flex; align-items: center; justify-content: center; gap: 5px;
  width: 100%; margin-top: 40px; padding: 0; border: 0; background: none;
  font-family: inherit; font-size: 16px; line-height: 36px; color: #666;
  cursor: pointer; transition: color .2s ease;
}
.logo-more[hidden] { display: none; }
.logo-more:hover { color: #333; }
/* 箭头颜色跟随文字（inherit 而非品牌红）：svg 用 stroke="currentColor"，
   所以继承 .logo-more 的 color 后，默认 #666、hover #333 都与文字同步变化。 */
.logo-more-arrow { flex: none; width: 14px; height: 14px; color: inherit; transition: transform .2s ease; }
.logo-more[aria-expanded="true"] .logo-more-arrow { transform: rotate(180deg); }

/* 各断点的高度按「最长的 logo 刚好放得下」反推：
   卡的可用内容宽 = min(1600px,89.5vw)/列数 − 间隙 16px − 卡内左右 padding，
   最长条（社会科学文献出版社 6.74:1）需要「高度 × 6.74」的宽度。
   这样每档断点下所有 logo 都是同一高度，不会出现「有的满高、有的被压扁」。 */
@media (max-width: 1600px) { .logo-wall .logo-card-inner { padding: 38px 24px; } .logo-wall .logo-card-icon { height: 42px; } }
@media (max-width: 1440px) { .logo-wall .logo-card-inner { padding: 32px 20px; } .logo-wall .logo-card-icon { height: 35px; } }
@media (max-width: 1280px) { .logo-wall .logo-card-inner { padding: 28px 18px; } .logo-wall .logo-card-icon { height: 30px; } }
/* ≤1024 改 2 列：4 列时卡的可用宽只剩约 150px，再长的 logo 会被压到 20px 出头，
   视觉上整排都在缩水；拆成 2 列反而能把 logo 放大回 40px。 */
@media (max-width: 1024px) {
  .logo-wall .logo-card { flex: 0 0 50%; max-width: 50%; padding: 0 6px; margin-bottom: 12px; }
  .logo-wall .logo-card-inner { padding: 32px 22px; }
  .logo-wall .logo-card-icon { height: 40px; }
}
@media (max-width: 768px) {
  /* 移动端：整墙合成一张白卡，卡内 2 列（对齐华为云的移动端做法），卡片自身无圆角无阴影 */
  .logo-wall { background: #fff; border-radius: 16px; padding: 14px; }
  .logo-wall .logo-card { padding: 6px; margin-bottom: 0; }
  .logo-wall .logo-card-inner { padding: 18px 10px; border-radius: 0; }
  .logo-wall .logo-card-inner:hover { box-shadow: none; }
  .logo-wall .logo-card-icon { height: 34px; }
  .logo-more { margin-top: 28px; font-size: 15px; }
}
/* 手机竖屏（≤560）：2 列时卡内只有约 136px 宽，超长条 logo（≥4.5:1）等比缩完高度只剩 20px 出头，
   和同屏其他 logo 差一大截 —— 让它们各占整行，就能恢复成统一高度。 */
@media (max-width: 560px) {
  .logo-wall .logo-card-icon { height: 30px; }
  .logo-wall .logo-card--wide { flex: 0 0 100%; max-width: 100%; }
}

/* ---------- 表单 ---------- */
.form-label { display: block; font-size: 13px; color: var(--ink-2); margin-bottom: 6px; }
.form-label span { color: var(--brand); }
.form-control {
  width: 100%; height: 44px; padding: 0 12px; font-size: 14px; font-family: inherit;
  border: 1px solid var(--line); border-radius: var(--radius); outline: 0; transition: .2s; background: #fff;
}
textarea.form-control { height: auto; padding: 10px 12px; resize: vertical; min-height: 110px; }
.form-control:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(199,0,11,.08); }
.form-tip { font-size: 12px; color: var(--ink-3); margin-top: 6px; }
.form-msg { display: none; margin-top: 12px; padding: 10px 14px; border-radius: var(--radius); font-size: 13px; }
.form-msg.ok { display: block; background: #e8f7ee; color: #1a7f37; }
.form-msg.err { display: block; background: var(--brand-soft); color: var(--brand-dark); }

/* ---------- 页脚 ---------- */
.footer { background: var(--bg-dark); color: rgba(255,255,255,.7); font-size: 13px; }
.footer a { color: rgba(255,255,255,.7); }
.footer a:hover { color: #fff; }
.footer-title { color: #fff; font-size: 14px; font-weight: 600; margin-bottom: 14px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding: 18px 0; font-size: 12px; color: rgba(255,255,255,.5); }

/* ---------- 右侧悬浮工具条 ---------- */
.fixed-bar { position: fixed; right: 16px; bottom: 80px; z-index: 40; display: flex; flex-direction: column; gap: 8px; }
.fixed-btn {
  width: 48px; height: 48px; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); display: flex; flex-direction: column; align-items: center; justify-content: center;
  font-size: 11px; color: var(--ink-2); box-shadow: var(--shadow-card); cursor: pointer; transition: .2s;
}
.fixed-btn:hover { color: var(--brand); border-color: var(--brand); }
/* 移动端：只保留「回到顶部」一个圆形按钮，避免竖条挡住正文（微信/咨询页脚已有） */
@media (max-width: 768px) {
  .fixed-bar { right: 12px; bottom: 76px; gap: 0; }
  .fixed-bar #btn-qr, .fixed-bar a.fixed-btn { display: none; }
  .fixed-bar #btn-top { width: 44px; height: 44px; border-radius: 50%; box-shadow: 0 4px 12px rgba(37,43,58,.14); }
  .fixed-bar #btn-top span { display: none; }
  #qr-pop { display: none !important; }
}

/* ---------- 滚动出现动画 ---------- */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .5s ease, transform .5s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }

/* ---------- 面包屑 ---------- */
.breadcrumb { font-size: 13px; color: var(--ink-3); padding: 16px 0; }
.breadcrumb a:hover { color: var(--brand); }

/* ---------- 页面头部（内页统一横幅） ----------
   ⚠️ 2026-09-24 起，关于我们 / 联系我们两页的头部已统一改为 .sol-banner（大图铺底），
   全站已无页面使用 .page-banner。规则保留为备用（若将来要一个轻量深色页头可直接复用），
   删除它不会影响任何现有页面。 */
.page-banner {
  background: linear-gradient(120deg, #1d2129 0%, #353c4d 100%);
  color: #fff; padding: 56px 0;
}
.page-banner h1 { font-size: 32px; font-weight: 700; margin: 0; }
.page-banner p { margin-top: 12px; color: rgba(255,255,255,.75); font-size: 15px; }
@media (max-width: 768px) { .page-banner { padding: 32px 0; } .page-banner h1 { font-size: 22px; } }

/* ---------- 时间线（关于我们-发展历程） ---------- */
.timeline { position: relative; padding-left: 28px; }
.timeline::before { content: ""; position: absolute; left: 6px; top: 6px; bottom: 6px; width: 2px; background: var(--line); }
.timeline-item { position: relative; padding-bottom: 28px; }
.timeline-item::before {
  content: ""; position: absolute; left: -28px; top: 6px; width: 14px; height: 14px;
  border-radius: 50%; background: #fff; border: 3px solid var(--brand);
}
.timeline-year { font-size: 18px; font-weight: 700; color: var(--brand); }

/* ---------- 图片占位提示（上线前可删） ---------- */
/* 所有 assets/img 下的占位图都自带文字说明，替换同名文件即可 */

/* ==========================================================================
   首页产品区「全栈知识服务产品矩阵」
   结构与样式 1:1 对齐华为云首页「技术即引擎，让创新触手可及」区块。
   线上来源：portal.hc-cdn.com / cpage-pep-home-page/3.0.18/pc/index.css
             portal.hc-cdn.com / cnpm-baseui/3.0.18/theme-token.css

   括号内为华为云 1600px 视口下的实测值（其原版为三档响应式，此处取中间档）：
     .por-section            padding:60px 0
     .por-section-head       padding-bottom:32px; text-align:center
     .por-section-title      #191919; 40px(32px)/600/60px(48px)
     .por-tab ul             居中、高 32px、overflow:hidden
     .por-tab li             inline-block; padding:0 32px
     .por-tab a              padding:0 0 8px; #595959; 下划线 ::after 高 2px / #191919
     .por-tab li.active a    #191919; 700; ::after 宽 100%
     .por-tab-text           16px/24px
     .por-tab + wrapper      padding-top:20px(16px)
     .product-card-wraper    圆角 24px(16px); padding 40px(32px); box-shadow:none
     灰底卡                  背景 #fafafa; 边框 1px solid #f0f0f0
     .card-icon              height 48px(38px); 背景左对齐、contain
     .card-title             #191919; 16px/24px; font-weight:700; margin-top:10px
     .card-desc              14px/22px; #595959; margin-top:6px
     .btn-group              margin-top:32px(28px); gap:16px
     .por-btn                14px/22px; padding:4px 24px; 圆角 32px
     .por-btn-secondary      边框 #595959、文字 #191919；hover 边框 grey
     .more-solutions         margin-top:32px; text-align:center；.por-link 16px/24px
   差异说明：华为云用 por-col-N + 负 margin 模拟栅格，这里用等价 CSS Grid 实现，
   沟槽同为 16px；卡片配色沿用华为云的灰白体系（未使用其彩色渐变描边动效）。
   ========================================================================== */

.por-section { padding: 60px 0; }

.por-section-head { padding-bottom: 32px; text-align: center; }
.por-section-title { color: #191919; font-size: 32px; font-weight: 600; line-height: 48px; }

/* ---------- Tab 导航（华为云 .por-tab 原版数值） ---------- */
.por-section .por-tab { position: relative; }
.por-section .por-tab ul { display: block; height: 32px; overflow: hidden; text-align: center; list-style: none; margin: 0; padding: 0; }
.por-section .por-tab li { display: inline-block; padding: 0 32px; }
.por-section .por-tab .por-tab-text {
  position: relative; display: inline-block;
  padding: 0 0 8px; font-size: 16px; font-weight: 400; line-height: 24px;
  color: #595959; cursor: pointer; transition: color .2s;
}
/* 华为云原版技巧：用 :before 预留「加粗态」宽度，切换时导航项不会左右跳动 */
.por-section .por-tab .por-tab-text::before {
  content: attr(data-title); display: block; height: 0; overflow: hidden;
  visibility: hidden; font-weight: 600;
}
.por-section .por-tab .por-tab-text::after {
  content: ""; position: absolute; left: 0; bottom: 0; width: 0; height: 2px;
  background: #191919; transition: width .2s;
}
.por-section .por-tab li:hover .por-tab-text { color: #191919; }
.por-section .por-tab li.active .por-tab-text { color: #191919; font-weight: 700; }
.por-section .por-tab li.active .por-tab-text::after { width: 100%; }

/* ---------- 面板 ---------- */
.por-section .por-tab-wrapper { position: relative; }
.por-section .por-tab + .por-tab-wrapper { padding-top: 16px; }
.por-section .por-tab-content { display: none; position: relative; }
.por-section .por-tab-content.active { display: block; animation: fadeUp .3s ease; }

/* ---------- 栅格（等价华为云 por-col-*，沟槽 16px） ---------- */
.por-section .por-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }

/* ---------- 卡片（华为云 .product-card-wraper 原版数值） ---------- */
.por-section .por-card {
  position: relative; z-index: 0; overflow: hidden;
  display: flex; flex-direction: column; justify-content: space-between;
  min-height: 240px; padding: 32px;
  border: 1px solid #f0f0f0; border-radius: 16px;
  background-color: #fafafa; box-shadow: none;
  background-position: 50%; background-repeat: no-repeat; background-size: cover;
  transition: border-color .3s, box-shadow .3s;
}
.por-section .por-card:hover { border-color: #d9d9d9; box-shadow: 0 3px 10px rgba(29, 33, 41, .05); }

/* ---------- 卡片 hover 彩色光晕（对标华为云 .gradient-card > canvas.gradient-canvas） ----------
   华为云的实现：每张卡内嵌一个 <canvas class="gradient-canvas">，
   用 2D 上下文画一圈「沿边缘的彩虹渐变 + 向内羽化」的光带（画布比卡片大 12px，
   被卡片自身的 overflow:hidden 裁掉外溢部分），hover 时 opacity 0 → 1，transition .5s。
   下面用纯 CSS 做出同样观感，省掉 16 个 canvas 与配套 JS：
     · 颜色 —— 横向线性渐变，色标是逐像素采样华为云 canvas 还原出来的
                （左：金黄 #ffcc33 → 橙 → 红 → 品红 → 紫 → 右：蓝 #5566ff）
     · 形状 —— 四层 linear-gradient 遮罩叠加（mask 默认相加），
                得到「贴边最实、向内 16px 线性淡出」的柔和光带
     · 强度 —— hover 时 opacity .13（当前第 3 档，比华为云实测峰值 alpha≈0.2 淡两档）。
                想换档只动下面两个值（参照隔壁 hover 规则里的 opacity 与这里的 Npx）：
                  第1档 与华为云对齐      opacity .24 + 遮罩 24px
                  第2档 略淡             opacity .18 + 遮罩 16px
                  第3档 当前             opacity .13 + 遮罩 12px
   卡片本身已有 position:relative + overflow:hidden（与华为云 .gradient-card 一致），光晕不会溢到卡外。
   华为云的产品区与解决方案区都套了这个效果，所以下面两处选择器一起生效。 */
.por-section .por-card::before,
.pep-home-solution .solutions-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(90deg,
    #ffcc33 0%, #ff9944 10%, #ff6655 22%, #ff5570 32%,
    #e85588 42%, #dd55aa 52%, #cc44cc 62%, #bb44ee 74%,
    #9b6bff 86%, #7777ff 94%, #5566ff 100%);
  -webkit-mask:
    linear-gradient(to bottom, rgba(0,0,0,.78) 0, transparent 12px),
    linear-gradient(to top, rgba(0,0,0,.78) 0, transparent 12px),
    linear-gradient(to right, rgba(0,0,0,.78) 0, transparent 12px),
    linear-gradient(to left, rgba(0,0,0,.78) 0, transparent 12px);
  mask:
    linear-gradient(to bottom, rgba(0,0,0,.78) 0, transparent 12px),
    linear-gradient(to top, rgba(0,0,0,.78) 0, transparent 12px),
    linear-gradient(to right, rgba(0,0,0,.78) 0, transparent 12px),
    linear-gradient(to left, rgba(0,0,0,.78) 0, transparent 12px);
  opacity: 0;
  transition: opacity .5s;
}
/* 只在真正支持悬停的设备上触发：触屏点一下就"粘住"高亮会很怪 */
@media (hover: hover) and (pointer: fine) {
  .por-section .por-card:hover::before,
  .pep-home-solution .solutions-card:hover::before { opacity: .13; }
}
.por-section .por-card .card-content { position: relative; z-index: 1; }
.por-section .por-card .card-icon { display: block; width: 38px; height: 38px; flex: none; }
.por-section .por-card .card-icon img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 10px; }
/* ---------- 卡片文字：1:1 对齐华为云 .product-card-wraper ----------
   现场量的规格（www.huaweicloud.com 首页产品楼层，.por-text-title-t8 / .por-text-body-t1）：
     标题 card-title → 20px / 700 / line-height 30px / #191919 / margin-top 12px
     正文 card-desc  → 16px / 400 / line-height 24px / #595959 / margin-top 8px
   ⚠️ 华为云这两个字号是**三档响应式**（不是写死 20px），断点在 1600 / 1280，见下面两条媒体查询。
   ⚠️ 领衔大卡（leade-card）与通栏卡（wide-card）用的是**同一套字号**（实测 790px 宽的大卡
      与 385px 宽的小卡都是 20/30 + 16/24），所以不要给它们单独放大。 */
.por-section .por-card .card-title {
  margin-top: 12px; font-size: 20px; font-weight: 700; line-height: 30px; color: #191919;
  font-family: var(--font-hw);
}
.por-section .por-card .card-desc {
  margin-top: 8px; font-size: 16px; font-weight: 400; line-height: 24px; color: #595959;
  font-family: var(--font-hw);
}
/* ≤1600px → 标题 16/24、正文 14/22（华为云实测同值） */
@media (max-width: 1600px) {
  .por-section .por-card .card-title { margin-top: 10px; font-size: 16px; line-height: 24px; }
  .por-section .por-card .card-desc { margin-top: 6px; font-size: 14px; line-height: 22px; }
}
/* ≤1280px → 标题 14/22、正文 12/18（华为云实测同值；≤768 的移动端规则在文件后面接着生效） */
@media (max-width: 1280px) {
  .por-section .por-card .card-title { margin-top: 8px; font-size: 14px; line-height: 22px; }
  .por-section .por-card .card-desc { margin-top: 4px; font-size: 12px; line-height: 18px; }
}
.por-section .por-card .btn-group { position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 16px; margin-top: 28px; }

/* ---------- 按钮（华为云 .por-btn / .por-btn-secondary 原版数值） ---------- */
.por-section .por-btn {
  display: inline-block; padding: 4px 24px; border: 1px solid transparent; border-radius: 32px;
  background: transparent; text-align: center; white-space: nowrap;
  font-size: 14px; font-weight: 400; line-height: 22px;
  transition: .2s; cursor: pointer;
}
.por-section .por-btn-secondary { border-color: #595959; color: #191919; }
.por-section .por-btn-secondary:hover { border-color: grey; color: #191919; }

/* ---------- 领衔大卡 / 通栏卡：右侧配图 + 左侧 60% 文字 ----------
   对应华为云 .leade-card 与 .por-col-24：.card-content { width:60% }，
   配图由华为云的整幅 background-image 改为右侧定位图片，文字区更稳。 */
.por-section .por-card.leade-card .card-figure,
.por-section .por-card.wide-card .card-figure { position: absolute; top: 0; right: 0; width: 44%; height: 100%; z-index: 0; pointer-events: none; }
.por-section .por-card.leade-card .card-figure img,
.por-section .por-card.wide-card .card-figure img { display: block; width: 100%; height: 100%; object-fit: cover; }
.por-section .por-card.leade-card .card-figure::after,
.por-section .por-card.wide-card .card-figure::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, #fafafa 0%, rgba(250, 250, 250, .85) 20%, rgba(250, 250, 250, 0) 58%);
}
/* ---------- 整幅铺底卡（.full-bleed）：配图铺满整张卡片做背景 ----------
   「古籍全文库」用它：甲方提供的《横幅-典籍名A》（浅色玻璃质感书名卡）是 1920×640（3:1）
   **不裁内容**整幅使用，而该卡 1920 下实测 776×256 ≈ 3.03:1 —— 两者几乎一致，
   cover 只裁掉约 2px 高度，画面等于完整呈现。
   其余 leade-card 仍走上面「右侧 44% 图区」的旧逻辑。
   （由 build_content.py 的 HOME_FULLBLEED 决定哪张卡带这个 class） */
.por-section .por-card.full-bleed .card-figure { width: 100%; height: 100%; }
/* 白色渐隐只需做「图片左边缘 ↔ 卡片 #fafafa 底色」的衔接。
   当前底图是**浅色**的（整体亮度约 232，左侧大片为 238 的浅灰蓝留白），
   深色正文压在上面本身就有 6:1 以上对比度，所以渐隐收得很窄 —— 画面近乎整幅可见。
   ⚠️ 换图时这条要跟着图重算：底图若换成深色满幅（如上一版深蓝横幅），
   文字区（左侧 56%）的白度必须补回 0.85 左右，否则 #595959 正文会糊在画面上。
   白度下限的算法：正文 #595959 要满足 3:1，背景混合亮度需 ≥ 约 180（255 制）≈ 白度 0.7。 */
.por-section .por-card.full-bleed .card-figure::after {
  background: linear-gradient(90deg,
    #fafafa 0%,
    rgba(250, 250, 250, .9) 8%,
    rgba(250, 250, 250, .3) 18%,
    rgba(250, 250, 250, 0) 30%);
}
/* 文字区从 60% 收窄到 56%，长文案不会压到画面主体 */
.por-section .por-card.full-bleed .card-content,
.por-section .por-card.full-bleed .btn-group { width: 56%; }
.por-section .por-card.leade-card { grid-column: span 2; }
.por-section .por-card.wide-card { grid-column: 1 / -1; }
/* 通栏卡的图区比 leade-card 再窄一点（40%）。
   必须排除 .full-bleed，否则本条会盖掉上面 .full-bleed 的 width:100%
   —— 两者特异性同为 (0,4,0)，靠源码顺序决胜负，而这条在后面。 */
.por-section .por-card.wide-card:not(.full-bleed) .card-figure { width: 40%; }
.por-section .por-card.leade-card .card-content,
.por-section .por-card.wide-card .card-content,
.por-section .por-card.leade-card .btn-group,
.por-section .por-card.wide-card .btn-group { width: 60%; }
/* ⚠️ 这里原本给 leade-card / wide-card 单独放大到 20px —— 已删除。
   华为云实测大卡（790px）与小卡（385px）标题同为 20/30（且同样随 1600/1280 断点降级），
   留着这条会因为特异性 (0,4,0) 盖掉上面两条媒体查询，导致窄屏字号降不下来。 */

/* ---------- 底部更多入口（华为云 .more-solutions + .por-link） ---------- */
.por-section .more-solutions { margin-top: 32px; text-align: center; }
.por-section .por-link {
  display: inline-flex; align-items: center; gap: 6px; text-decoration: none;
  color: #191919; font-size: 16px; line-height: 24px; transition: .2s;
}
.por-section .por-link::after { content: "›"; font-size: 18px; line-height: 1; transition: transform .2s; }
.por-section .por-link:hover { text-decoration: underline; }
.por-section .por-link:hover::after { transform: translateX(4px); }

/* 同一套入口的非 .por-section 场景复用（首页客户案例区「查看全部案例」）：
   上面几条带 .por-section 前缀，特异性 (0,2,0)，案例区没有 .por-section 祖先会整条落空，
   所以这里补一组不带前缀的等价规则 —— 数值与上面逐项一致，两处渲染结果完全相同。 */
.more-solutions { margin-top: 32px; text-align: center; }
.more-solutions .por-link {
  display: inline-flex; align-items: center; gap: 6px; text-decoration: none;
  color: #191919; font-size: 16px; line-height: 24px; transition: .2s;
}
.more-solutions .por-link::after { content: "›"; font-size: 18px; line-height: 1; transition: transform .2s; }
.more-solutions .por-link:hover { text-decoration: underline; }
.more-solutions .por-link:hover::after { transform: translateX(4px); }

/* ---------- 响应式：对齐华为云 por-col 的降列逻辑 ---------- */
@media (max-width: 1024px) {
  .por-section .por-row { grid-template-columns: repeat(2, 1fr); }
  .por-section .por-card.leade-card,
  .por-section .por-card.wide-card { grid-column: 1 / -1; }
}
@media (max-width: 768px) {
  .por-section { padding: 40px 0; }
  .por-section-head { padding-bottom: 20px; }
  .por-section-title { font-size: 22px; line-height: 34px; }
  /* Tab 改为横向滚动，保持同一套视觉语言。
     ul 的 overflow 必须显式放开：桌面版是 `height:32px;overflow:hidden`，
     不改的话 li 溢出被 ul 自己裁掉、父级 .por-tab 又因为没有溢出而滚不动，
     Tab 一多（现在 6 个）第 5、6 个在手机上就点不到了。 */
  .por-section .por-tab { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .por-section .por-tab::-webkit-scrollbar { display: none; }
  .por-section .por-tab ul { height: 30px; text-align: left; white-space: nowrap; overflow: visible; }
  .por-section .por-tab li { padding: 0 16px; }
  .por-section .por-tab li:first-child { padding-left: 0; }
  .por-section .por-tab .por-tab-text { font-size: 15px; line-height: 22px; }
  /* 卡片改为紧凑横向条目（华为云移动端同样隐藏按钮、图标缩到 32px） */
  .por-section .por-row { grid-template-columns: 1fr; gap: 8px; }
  .por-section .por-card { min-height: auto; padding: 20px; flex-direction: row; align-items: center; justify-content: flex-start; }
  .por-section .por-card .card-content { display: flex; gap: 8px; width: 100% !important; }
  .por-section .por-card .card-icon { width: 32px; height: 32px; }
  .por-section .por-card .card-title,
  .por-section .por-card.leade-card .card-title,
  .por-section .por-card.wide-card .card-title { margin-top: 0; font-size: 14px; font-weight: 700; line-height: 22px; }
  .por-section .por-card .card-desc { margin-top: 4px; font-size: 12px; line-height: 18px; }
  .por-section .por-card .btn-group { display: none; }
  .por-section .por-card .card-figure { display: none; }
  .por-section .more-solutions { margin-top: 24px; }
  .por-section .por-link { font-size: 14px; line-height: 22px; }
  /* 与上面两条同档：非 .por-section 的入口（案例区）同步降字号 */
  .more-solutions { margin-top: 24px; }
  .more-solutions .por-link { font-size: 14px; line-height: 22px; }
}

/* ==========================================================================
   首页解决方案区「成熟行业实践，释放知识数字生产力」
   结构与样式 1:1 对齐华为云首页「成熟行业实践，释放云上数字生产力」区块。
   线上来源：portal.hc-cdn.com / cpage-pep-home-page/3.0.18/pc/index.css

   对应华为云 DOM：
     .pep-home-solution > .por-section.por-section-merge-spacing
       ├ .por-container > .por-section-head > h2.por-section-title   居中标题
       └ .por-tab-container
          ├ .por-tab                   居中 Tab，激活项 2px 黑色下划线
          └ .por-tab-wrapper > .por-tab-content
             └ .por-carousel > .por-carousel-wrapper
                └ .por-carousel-slide > a.solutions-card
     .more-solutions > a.por-link      底部居中入口

   华为云线上 CSS 原文数值：
     .pep-home-solution .por-section        { background-color:#fff; padding-bottom:60px }
     .por-section-title                     { font-size:32px; font-weight:600; line-height:48px; color:#191919 }
     .pep-home-solution .por-tab+.por-tab-wrapper  { padding-top:16px; position:relative }
     .pep-home-solution .por-carousel-slide { height:540px; width:310px; margin-right:16px; flex-shrink:0 }
     .pep-home-solution .por-carousel        { display:flex; position:relative; overflow:hidden; flex-wrap:wrap }
     .pep-home-solution .solutions-card      { display:block; height:100%; overflow:hidden; position:relative;
                                               padding:32px; border-radius:16px;
                                               background:#fff no-repeat center/cover }
     .pep-home-solution .solutions-card-title{ font-size:16px; line-height:28px; color:#191919; position:relative }
     .pep-home-solution .solutions-card-desc { margin-top:8px; font-size:14px; line-height:22px; opacity:.8; position:relative }
     .pep-home-solution .carousel-ctrl       { position:absolute; left:50%; top:50%; transform:translate(-50%,-50%);
                                               width:100%; pointer-events:none }
     .pep-home-solution .por-carousel-prev/.por-carousel-next { width:52px; height:52px; border-radius:50%;
                                               background:transparent no-repeat 50%/cover; pointer-events:all;
                                               transition:all .3s; z-index:2 }
     .pep-home-solution .por-carousel-next.swiper-button-disabled  { opacity:0 }
     .pep-home-solution .more-solutions      { display:flex; justify-content:center; margin-top:32px }
     .pep-home-solution .more-solutions .por-link { font-size:16px; line-height:24px }

   响应式四档（华为云原文，逐档递减）：
     >1600 : slide 680×388 · card padding 40px · 箭头 64px
     ≤1600 : slide 540×310 · card padding 32px · 标题 16/28 · 描述 14/22 · 箭头 52px
     ≤1280 : slide 450×258 · card padding 28px · 标题 14/22 · 描述 12/18 · 箭头 44px
     ≤768  : slide 400×228 · card padding 20px · 隐藏箭头与「更多」入口 · 区块底 #f5f5f5

   两处等价处理（因素材形态与内容数量不同，已在下方对应位置注释说明）：
     1) 华为云卡片为竖构图大图铺满整卡；本站 solution-*.svg 是 800×500 横构图占位图，
        故改为「上部文字 + 下部配图」，配图顶部加同色渐变与文字区融合；
     2) 华为云每屏 5 张卡、通栏溢出裁切；本站每个 Tab 4 张，
        容器取站点主体宽 1200px（4×310 + 3×16 = 1288 > 1200），
        同样形成「右侧露出一角、可横向拖动/点箭头」的轮播形态。

   复用说明：.por-section / .por-section-head / .por-section-title / .por-tab 全套 /
   .por-tab-wrapper / .por-tab-content / .more-solutions / .por-link 沿用上方产品区已写好的
   同源基础样式（本就取自华为云同一套 UI 规范），此处仅新增解决方案区专属的轮播与卡片。
   ========================================================================== */

/* 注意：.pep-home-solution 与 .por-section 是同一个元素，必须用连写而不是后代选择器 */
.pep-home-solution.por-section { background: #fff; padding-bottom: 60px; }
.pep-home-solution .por-section-title { padding: 0 27px; }

/* ---------- 横向轮播（华为云 .por-carousel + .por-carousel-slide） ---------- */
/* 定位上下文：让 .carousel-ctrl 浮在滚动区之上而不随内容位移 */
.pep-home-solution .carousel-wrap { position: relative; }
.pep-home-solution .por-carousel {
  display: flex; position: relative; flex-wrap: nowrap;
  overflow-x: auto; overflow-y: hidden;
  scroll-snap-type: x proximity;   /* 用 proximity 而非 mandatory：本站溢出量不足一张卡，强制吸附会滑不动 */
  scroll-behavior: smooth;
  scrollbar-width: none;          /* 拖动/箭头控制，隐藏滚动条（华为云由 swiper 代管） */
  -ms-overflow-style: none;
}
.pep-home-solution .por-carousel::-webkit-scrollbar { display: none; }
.pep-home-solution .por-carousel-slide {
  flex: 0 0 auto; width: 310px; height: 540px;
  margin-right: 16px; scroll-snap-align: start;
}
.pep-home-solution .por-carousel-slide:last-child { margin-right: 0; }

/* ---------- 卡片（华为云 .solutions-card） ---------- */
.pep-home-solution .solutions-card {
  display: block; position: relative; z-index: 0;
  height: 100%; padding: 32px; overflow: hidden;
  border-radius: 16px;
  /* 华为云是「竖构图大图铺满」；本站占位图为横构图，故底色用浅色渐变、
     配图改放下半部（见 .card-figure），视觉结果同为「文字在上、画面在下」。
     每张卡的底色由其内联 background-image 指定（对应华为云每卡一张不同配图）。 */
  background-color: #fff;
  background-position: center; background-repeat: no-repeat; background-size: cover;
  background-image: linear-gradient(160deg, #f7f7f7 0%, #eef1f5 100%);
  transition: box-shadow .3s;
}
.pep-home-solution .solutions-card:hover { box-shadow: 0 3px 10px rgba(29, 33, 41, .07); }
.pep-home-solution .solutions-card-title {
  position: relative; z-index: 1;
  font-size: 16px; font-weight: 700; line-height: 28px; color: #191919;
}
.pep-home-solution .solutions-card-desc {
  position: relative; z-index: 1;
  margin: 8px 0 0; font-size: 14px; line-height: 22px; color: #595959;
}

/* ---------- 整幅铺底配图（对齐华为云 .solutions-card） ----------
   华为云的媒体层（.multimedia/img）是铺满整卡的，标题与文案直接压在画面上；
   本站现在也给每张卡配了同规格的竖构图素材，于是回到同样的做法。 */
.pep-home-solution .solutions-card .card-figure {
  position: absolute; inset: 0;
  z-index: 0; pointer-events: none; overflow: hidden;
}
/* 素材 620×1080 ≈ 0.574，与卡片 310×540（0.574）同比例：
   @1920 / @1280 / @768 三档卡片比例分别是 0.574 / 0.573 / 0.570，
   所以 cover 在各档位都不裁切画面，只会做等比缩放。
   不需要再加白色渐隐遮罩——素材本身顶部约 1/3 就是纯白留白，文案压在上面
   对比度约 18:1（华为云同样不叠遮罩，直接靠素材留白）。 */
.pep-home-solution .solutions-card .card-figure img {
  display: block; width: 100%; height: 100%;
  object-fit: cover; object-position: center;
}

/* ---------- 左右圆形箭头（华为云 .carousel-ctrl + 52px 圆形按钮） ----------
   箭头图标为自绘 SVG（等价华为云同款圆形 + 灰色箭头，未使用其原始资源文件） */
.pep-home-solution .carousel-ctrl {
  position: absolute; left: 50%; top: 50%; width: 100%; z-index: 3;
  transform: translate(-50%, -50%);
  pointer-events: none;
}
.pep-home-solution .carousel-ctrl .carousel-ctrl-inner {
  display: flex; align-items: center; justify-content: space-between;
}
.pep-home-solution .por-carousel-prev,
.pep-home-solution .por-carousel-next {
  width: 52px; height: 52px; border: 0; padding: 0;
  border-radius: 50%; cursor: pointer; pointer-events: all;
  background-color: transparent; background-repeat: no-repeat; background-position: 50%; background-size: cover;
  transition: opacity .3s, transform .3s;
  -webkit-appearance: none; appearance: none;
}
.pep-home-solution .por-carousel-prev {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'%3E%3Ccircle cx='32' cy='32' r='32' fill='%23f4f4f4' fill-opacity='0.85'/%3E%3Cpath d='M36 22L26 31.5 36 41' fill='none' stroke='%23595959' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
.pep-home-solution .por-carousel-next {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'%3E%3Ccircle cx='32' cy='32' r='32' fill='%23f4f4f4' fill-opacity='0.85'/%3E%3Cpath d='M28 22L38 31.5 28 41' fill='none' stroke='%23595959' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
.pep-home-solution .por-carousel-prev:hover {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'%3E%3Ccircle cx='32' cy='32' r='32' fill='%23f4f4f4' fill-opacity='0.95'/%3E%3Cpath d='M36 22L26 31.5 36 41' fill='none' stroke='%23191919' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
.pep-home-solution .por-carousel-next:hover {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'%3E%3Ccircle cx='32' cy='32' r='32' fill='%23f4f4f4' fill-opacity='0.95'/%3E%3Cpath d='M28 22L38 31.5 28 41' fill='none' stroke='%23191919' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
/* 到头的箭头隐藏（对应华为云 .swiper-button-disabled { opacity:0 }） */
.pep-home-solution .por-carousel-prev.is-disabled,
.pep-home-solution .por-carousel-next.is-disabled { opacity: 0; pointer-events: none; }

/* ---------- 底部入口（华为云 .more-solutions） ---------- */
.pep-home-solution .more-solutions { display: flex; justify-content: center; margin-top: 32px; }

/* ---------- 响应式：对齐华为云 ≤1600 / ≤1280 / ≤768 三档 ---------- */
@media (max-width: 1600px) {
  .pep-home-solution .por-tab + .por-tab-wrapper { padding-top: 16px; }
}
@media (max-width: 1280px) {
  .pep-home-solution .por-carousel-slide { height: 450px; width: 258px; }
  .pep-home-solution .solutions-card { padding: 28px; }
  .pep-home-solution .solutions-card-title { font-size: 14px; line-height: 22px; }
  .pep-home-solution .solutions-card-desc { margin-top: 4px; font-size: 12px; line-height: 18px; }
  .pep-home-solution .por-carousel-prev,
  .pep-home-solution .por-carousel-next { width: 44px; height: 44px; }
}
@media (max-width: 768px) {
  /* 华为云移动端：区块转浅灰底、隐藏箭头与「更多」入口、卡片缩小 */
  .pep-home-solution.por-section { background-color: #f5f5f5; padding-bottom: 40px; }
  .pep-home-solution .por-section-title { padding: 0; }
  .pep-home-solution .carousel-ctrl,
  .pep-home-solution .more-solutions { display: none; }
  .pep-home-solution .por-carousel-slide { height: 400px; width: 228px; }
  .pep-home-solution .solutions-card { padding: 20px; }
  /* 移动端箭头已隐藏，改由触摸横滑翻页 */
  .pep-home-solution .por-carousel { -webkit-overflow-scrolling: touch; }
}

/* ==========================================================
   内容矩阵组件（由 build_content.py 从项目台账生成，样式集中在此）
   ----------------------------------------------------------
   涉及页面：产品中心 / 解决方案 / 客户案例 / 首页产品矩阵
   ========================================================== */

/* ---------- 标签 chips ---------- */
.chip-row { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.chip {
  display: inline-block; padding: 2px 8px; font-size: 12px; line-height: 20px;
  color: var(--ink-2); background: #f5f7fa; border: 1px solid var(--line);
  border-radius: var(--radius);
  /* 原来是 white-space:nowrap —— 短标签没问题，但「标杆案例」里
     「汉画总录数据库（5,775 件藏品、381 座墓葬…）」这种长文案会把 grid 列顶宽，
     390px 手机上整卡被撑到 511px、全页横向溢出 137px。
     改成：默认仍单行（短标签观感不变），超长时自动折行，并用 100% 上限卡住。 */
  max-width: 100%;
  white-space: normal;
  overflow-wrap: anywhere;
}
.chip-line { color: var(--brand); background: var(--brand-soft); border-color: #f7d6d9; }
.chip-num  { color: #0a7b6b; background: #eafaf6; border-color: #cdeee6; }
.chip-more { color: var(--ink-3); background: #fafafa; border-style: dashed; }

/* ---------- 优先级标记 ---------- */
.prio {
  display: inline-block; padding: 1px 7px; font-size: 11px; line-height: 18px;
  border-radius: 10px; font-weight: 600; letter-spacing: .3px;
}
.prio-p0 { color: #fff; background: var(--brand); }
.prio-p1 { color: #8a5a00; background: #fff4e0; border: 1px solid #ffdfae; }
.prio-p2 { color: var(--ink-3); background: #f2f3f5; border: 1px solid var(--line); }

/* ---------- 产品中心：产品族子导航 ---------- */
.sub-nav {
  position: sticky; top: var(--header-h); z-index: 40;
  background: #fff; border-bottom: 1px solid var(--line);
}
.sub-nav .container-hw { padding-top: 10px; padding-bottom: 10px; }
.sub-nav-link {
  flex: none; padding: 6px 14px; font-size: 13px; color: var(--ink-2);
  border: 1px solid var(--line); border-radius: var(--radius); white-space: nowrap;
  transition: .2s;
}
.sub-nav-link:hover { color: var(--brand); border-color: var(--brand); background: var(--brand-soft); }

/* ===========================================================
   产品中心（1:1 对齐 huaweicloud.com/product/）
   骨架：450px Banner → 左侧 274 分类锚点 + 右侧产品卡（3 列 423×142 白卡）
   =========================================================== */

/* ---------- 主体：浅灰底，白卡才浮得起来（实测华为云也是 #f5f5f5） ---------- */
.prod-section { background: #f5f5f5; padding: 52px 0; }
.prod-body { display: flex; align-items: flex-start; gap: 40px; }

/* ---------- 左侧分类锚点（华为云 .anchor-point-list-pc，274 宽） ---------- */
.prod-anchor {
  flex: none; width: 274px; align-self: flex-start;
  position: sticky; top: calc(var(--header-h) + 24px);
}
.prod-anchor-title { margin-bottom: 32px; font-size: 20px; line-height: 30px; color: #191919; }
.prod-anchor-list { margin: 0; padding: 0; list-style: none; }
.prod-anchor-list li {
  position: relative; padding-left: 24px; margin-bottom: 24px;
  font-size: 16px; line-height: 24px; color: #595959;
  cursor: pointer; transition: color .2s;
}
.prod-anchor-list li:last-child { margin-bottom: 0; }
/* 8px 圆点 + 点到文字的 16px 间距（华为云 li::before） */
.prod-anchor-list li::before {
  content: ""; position: absolute; left: 0; top: 8px;
  box-sizing: border-box; width: 8px; height: 8px; border-radius: 50%;
  background: #fff; border: 1px solid #c2c2c2;
  transition: background .2s, border-color .2s;
}
.prod-anchor-list li:hover { color: #191919; }
.prod-anchor-list li:hover::before { border-color: #191919; }
.prod-anchor-list li.active { color: #191919; font-weight: 700; }
.prod-anchor-list li.active::before { background: #191919; border-color: #191919; }

/* ---------- 右侧产品目录（华为云 .product-content，1286 宽） ---------- */
.prod-content { flex: 1; min-width: 0; }
.prod-group { scroll-margin-top: calc(var(--header-h) + 24px); }
.prod-group + .prod-group { margin-top: 40px; }
/* 一级分类标题 28px/700/lh42（华为云 .first-title） */
.prod-group-title { font-size: 28px; font-weight: 700; line-height: 42px; color: #191919; }
.prod-group-n { margin-left: 8px; font-size: 14px; font-weight: 400; color: #86909c; }

/* ---------- 卡片网格：3 列、沟槽 16 ---------- */
.prod-cards {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px; margin-top: 16px;
}
/* 类别在后台建了但还没挂产品：给一行说明，别让分组标题下面空着（看着像渲染出错）。
   这一块也是 grid 的子项，要跨满整行。 */
.prod-empty {
  grid-column: 1 / -1; margin: 0; padding: 28px 24px;
  font-size: 14px; line-height: 22px; color: var(--ink-3);
  background: #fafafa; border: 1px dashed var(--line); border-radius: 12px;
}
/* 卡片：白底 / 圆角 16 / padding 32（华为云 .card 实测 423×142）。
   纵向 flex 是为了让「产品详情」按钮统一贴到卡底：链接区吃掉多余高度，
   描述一两行的卡片也不会把按钮顶上去，同行按钮落在同一水平线。 */
.prod-card {
  display: flex; flex-direction: column; overflow: hidden;
  padding: 32px; background: #fff; border-radius: 16px;
  transition: box-shadow .3s;
  scroll-margin-top: calc(var(--header-h) + 76px);
}
@media (hover: hover) and (pointer: fine) {
  .prod-card:hover { box-shadow: rgba(0, 0, 0, .08) 0 4px 12px 0; }
}
.prod-card-title { font-size: 20px; font-weight: 700; line-height: 30px; color: #191919; }
.prod-card-desc { margin-top: 8px; font-size: 16px; line-height: 24px; color: #595959; }
/* 适用客户：标题下方小标签（华为云卡片没有，本站保留，样式沿用华为云 tag）
   2026-10-21 由卡片底部上移到标题下——标题恒为一行，标签贴着标题走，
   同行卡片的描述起点才能对齐；标签最长 3 个，≥1024 档不会折行。 */
.prod-card-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.prod-card-tags + .prod-card-desc { margin-top: 12px; }
.prod-card-tags span {
  padding: 0 8px; font-size: 12px; line-height: 22px;
  color: #595959; background: #f2f3f5; border-radius: 4px;
}

/* 卡片外壳从 <a> 改成 <article>（为了放「产品详情」按钮——a 里不允许嵌 button），
   跳转热区交给内部的 .prod-card-link。外观、hover 光晕都留在 .prod-card 上，
   所以这里要让 link 把整块撑起来、并把 a 的默认样式抹掉，视觉与改结构前一致。 */
.prod-card { position: relative; }
.prod-card-link {
  display: block; flex: 1 1 auto; text-decoration: none; color: inherit;
}
/* 「产品详情」按钮：贴着内容末尾，灰字、hover 转红。
   卡片本身是跳转链接，所以只有这个按钮开抽屉，不能让整卡可点。 */
/* 产品卡上的同一个 CTA（class="btn-card-demo-cta prod-card-demo-cta"）：
   视觉完全复用，只补一个上间距，让它和描述之间透气。
   align-self 保证按钮不被 flex 列拉宽，宽度仍按内容走。 */
.prod-card-demo-cta { margin-top: 16px; align-self: flex-start; }

/* 技术能力区块也在左侧锚点列表里，跳过去时同样要扣掉吸顶高度 */
#tech { scroll-margin-top: calc(var(--header-h) + 24px); }

/* ---------- 响应式 ---------- */
@media (max-width: 1280px) {
  .prod-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1024px) {
  /* 侧栏改为顶部横向滚动条并吸顶，内容单列铺开 */
  .prod-body { display: block; }
  .prod-anchor {
    width: auto; margin: 0 -16px 24px; padding: 12px 16px;
    background: #fff; border-radius: 16px;
    /* +1px 是补 header 的下边框，否则吸顶后会露出 2px 缝隙 */
    position: sticky; top: calc(var(--header-h) + 1px); z-index: 20;
  }
  .prod-anchor-title { display: none; }
  .prod-anchor-list { display: flex; gap: 24px; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .prod-anchor-list li { flex: none; margin-bottom: 0; padding-left: 16px; white-space: nowrap; }
  .prod-anchor-list li::before { top: 10px; width: 6px; height: 6px; }
}
@media (max-width: 768px) {
  .prod-section { padding: 32px 0; }
  .prod-group-title { font-size: 22px; line-height: 32px; }
  .prod-cards { grid-template-columns: 1fr; }
  .prod-card { padding: 24px 20px; }
  .prod-card-title { font-size: 18px; line-height: 26px; }
  .prod-card-desc { font-size: 14px; line-height: 22px; }
}

/* ==================================================================
   技术能力区块（样式对齐 huaweicloud.com/ai/cloudrobo.html「产品体验中心」）
   1920px 真实浏览器实测：区块白底；标题 36px/700/行高 54 居中、下距 32；
   卡片网格 3 列 gap 20；卡片底 #fafafa、1px #f0f0f0 边、圆角 24、内距 32；
   图标 48×48 下距 32；标题 20px/600/行高 30 #191919；描述 16px/行高 24 #595959。
   ================================================================== */
.tech-section { background: #fff; padding: 64px 0 72px; }
.tech-head { padding-bottom: 32px; text-align: center; }
.tech-title {
  margin: 0; font-size: 36px; font-weight: 700; line-height: 54px; color: #191919;
}
.tech-sub { margin: 8px 0 0; font-size: 16px; line-height: 24px; color: #595959; }

.tech-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.tech-card {
  position: relative; display: flex; box-sizing: border-box;
  background: #fafafa; border: 1px solid #f0f0f0; border-radius: 24px;
  overflow: hidden; transition: box-shadow .2s ease, transform .2s ease;
}
.tech-card:hover { box-shadow: 0 4px 12px rgba(0, 0, 0, .08); }
.tech-card-inner { box-sizing: border-box; width: 100%; padding: 32px; }
.tech-icon { display: block; width: 48px; height: 48px; margin: 0 0 32px; }
.tech-card-title {
  margin: 0 0 8px; font-size: 20px; font-weight: 600; line-height: 30px; color: #191919;
}
.tech-card-desc { margin: 0; font-size: 16px; line-height: 24px; color: #595959; }

/* 能力清单：华为云卡片只有「图标 + 标题 + 描述」，这里用云商店 .tag-list 的标签补齐能力点。
   实测 marketplace 搜索页（1920px）：
     .por-label-checkbox        普通：12px/400/lh22、padding 0 4px、margin 0 4px 0 0、圆角 4、
                                字 rgb(89,89,89) 底 rgb(238,238,238)
     .por-label.autarky         重点：字 rgb(92,52,7) + 棕金渐变（to right bottom #faf4ed → #e6dcc1）
     .por-label.support-auto-deploy 特色：字 rgb(131,48,214) 底 rgb(244,224,252)
   容器 .tag-list 为 flex、margin-bottom 20px。 */
.tech-caps { display: flex; flex-wrap: wrap; margin-top: 16px; }
.tech-cap {
  display: block; padding: 0 4px; margin: 0 4px 4px 0;
  font-size: 12px; font-weight: 400; line-height: 22px; color: #595959;
  background: #eeeeee; border: 0; border-radius: 4px; white-space: nowrap;
}
.tech-cap.is-key {
  color: #5c3407;
  background: #f5ece1;
  background-image: linear-gradient(to right bottom, #faf4ed, #e6dcc1);
}
.tech-cap.is-feature { color: #8330d6; background: #f4e0fc; }

@media (max-width: 1024px) {
  .tech-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 768px) {
  .tech-section { padding: 40px 0 48px; }
  .tech-head { padding-bottom: 24px; }
  .tech-title { font-size: 24px; line-height: 36px; }
  .tech-sub { font-size: 14px; line-height: 22px; }
  .tech-grid { grid-template-columns: 1fr; }
  .tech-card-inner { padding: 24px 20px; }
  .tech-icon { width: 40px; height: 40px; margin-bottom: 20px; }
  .tech-card-title { font-size: 18px; line-height: 26px; }
  .tech-card-desc { font-size: 14px; line-height: 22px; }
}

/* ---------- 产品 / 方案卡内部 ---------- */
.prod-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }
.cap-list {
  margin-top: 12px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 2px 12px;
  font-size: 13px; color: var(--ink-2);
}
.meta-block { margin-top: 14px; }
.meta-label { font-size: 12px; color: var(--ink-3); margin-bottom: 2px; }
.prod-foot {
  margin-top: 16px; padding-top: 12px; border-top: 1px dashed var(--line);
  display: flex; align-items: center; flex-wrap: wrap; gap: 16px;
}
.sol-card { scroll-margin-top: calc(var(--header-h) + 24px); }
.pain-list { margin-top: 4px; font-size: 13px; color: var(--ink-2); }
.pain-list li { position: relative; padding-left: 16px; margin-bottom: 4px; }
.pain-list li::before { content: "·"; position: absolute; left: 4px; color: var(--brand); }
.path-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 6px; }
.path-step {
  font-size: 12px; line-height: 20px; padding: 2px 8px; color: var(--ink);
  background: #f7f8fa; border: 1px solid var(--line); border-radius: var(--radius);
}
.path-sep { color: var(--brand); font-size: 13px; }

/* ---------- 首页产品矩阵：卡片补充信息行（PL2 · 产品线 · 支撑项目 N 个）----------
   9-23 按甲方要求整行删除（build_content.py 的 pcard() 已不再输出 .card-meta），
   这里同步清掉样式，避免以后有人照着旧 CSS 又把这行加回来。 */

/* ---------- 客户案例：筛选栏 ---------- */
.filter-bar {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)) 1.4fr auto;
  gap: 8px; margin-bottom: 12px;
}
.filter-bar select,
.filter-bar input {
  height: 38px; padding: 0 10px; font-size: 13px; color: var(--ink);
  border: 1px solid var(--line); border-radius: var(--radius); background: #fff;
  outline: none; min-width: 0;
}
.filter-bar select:focus,
.filter-bar input:focus { border-color: var(--brand); }
.filter-reset {
  height: 38px; padding: 0 16px; font-size: 13px; color: var(--brand);
  background: #fff; border: 1px solid var(--brand); border-radius: var(--radius);
  cursor: pointer; transition: .2s;
}
.filter-reset:hover { background: var(--brand); color: #fff; }
.filter-count { margin-bottom: 16px; font-size: 13px; color: var(--ink-3); }
.filter-count b { color: var(--brand); font-weight: 600; }
.filter-empty { padding: 40px 0; text-align: center; color: var(--ink-3); font-size: 14px; }


/* ==========================================================
   产品中心：产品卡（样式对齐华为云云商店搜索结果页 .show-product）
   ----------------------------------------------------------
   样式采集自 https://marketplace.huaweicloud.com/search/?typeCode=9
   以下为实测值（getComputedStyle 采样，非目测）：
     li.show-product        背景 #fff / 圆角 16px / 内边距 32px 40px
                            卡间距 16px / transition .5s
                            hover 阴影 rgba(0,0,0,.08) 0 4px 12px 0
     .product-logo          64×64 / 圆角 13px
     .product-title h1      18px / 700 / #191919 / 行高 22px
     .por-label             12px / #5C3407 / 底 linear-gradient(#FAF4ED,#E6D4C1)
                            圆角 4px / 高 22px（对应「联营商品」金标）
     .por-label-checkbox    12px / #595959 / 底 #EEEEEE / 圆角 4px / 高 22px
     .description           14px / #808080 / 行高 22px / 2 行截断
     .product-price-number  24px / 600 / #191919

/* ==========================================================
   产品中心：内容宽度 + 卡片
   样式对齐华为云云商店搜索结果页
   https://marketplace.huaweicloud.com/search/?selectedListIndex=0&typeCode=9
   ----------------------------------------------------------
   以下实测值均由真实浏览器 getComputedStyle 采样（非目测）：

   【华为云的内容宽度规则】容器 = min(1600px, 89.5vw)，两侧各留约 5.25%
     视口 1920 → 内容区 1600px → 一行 4 个，卡宽 388px
     视口 1440 → 内容区 1289px → 一行 4 个，卡宽 310px
     视口 1280 → 内容区 1145px → 一行 4 个，卡宽 274px
     视口 1100 → 内容区  983px → 一行 4 个，卡宽 234px（它自己也很挤）
   华为云从头到尾都是 4 列，只靠容器变窄带动卡片变窄；
   本站容器比它窄（原 1168px），照搬 4 列就得到 280px 的窄卡 → 所以显得挤。
   现在按华为云的宽度规则做 .container-mpk，列数再按卡宽下限自动降档。

   【卡片本体】
     li.show-product        背景 #fff / 圆角 16px / 卡间距 16px / transition .5s
                            hover 阴影 rgba(0,0,0,.08) 0 4px 12px 0
     .product-logo          64×64 / 圆角 13px
     .product-title h1      18px / 700 / #191919
     .por-label-checkbox    12px / #595959 / 底 #EEEEEE / 圆角 4px / 高 22px
     .description           14px / #808080 / 行高 22px / 2 行截断
   ========================================================== */

/* ---------- 产品中心容器 ----------
   .container-mpk 的宽度规则已经在文件顶部「布局容器」处与 .container-hw 合并统一，
   这里不再重复定义。列数降级见下方 .mpk-grid。 */

/* ---------- 网格：默认 4 列，卡宽掉到 300px 以下就降列数 ----------
   为什么不用 auto-fill：容器够宽时它会排成 5 列（卡片反而更挤），
   华为云本身也恒定 4 列，这里写死列数、只用断点降档更可控。 */
.mpk-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;                     /* 华为云实测卡间距 */
}
@media (max-width: 1400px) { .mpk-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 1040px) { .mpk-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px)  { .mpk-grid { grid-template-columns: 1fr; gap: 12px; } }

/* ---------- 卡片本体 ----------
   内边距用 clamp：华为云固定 32px 40px，但那是给 388px 宽的卡用的；
   卡片变窄时照抄会把内容挤成一条。这里按卡宽等比缩放（上限回到华为云的 40px）。 */
.mpk-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 32px clamp(20px, 10.5%, 40px);
  background: #fff;
  border-radius: 16px;
  transition: box-shadow .5s;
  scroll-margin-top: calc(var(--header-h) + 76px);
}
@media (hover: hover) and (pointer: fine) {
  .mpk-card:hover { box-shadow: rgba(0, 0, 0, .08) 0 4px 12px 0; }
}

/* ---------- 图标：64×64 / 圆角 13px ---------- */
.mpk-logo {
  flex: none;
  width: 64px; height: 64px; margin-bottom: 20px;
  border-radius: 13px; overflow: hidden; background: #fff;
}
.mpk-logo img { display: block; width: 100%; height: 100%; object-fit: cover; }

/* ---------- 标题：18px / 700 ---------- */
.mpk-title {
  margin: 0 0 8px;
  font-size: 18px; font-weight: 700; line-height: 26px; color: #191919;
  overflow: hidden; white-space: nowrap; text-overflow: ellipsis;
}

/* ---------- 标签行 ---------- */
.mpk-tags { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 16px; }
.mpk-tag {
  display: inline-block; height: 22px; padding: 0 8px;
  font-size: 12px; line-height: 22px; color: #595959;
  background: #eee; border-radius: 4px; white-space: nowrap;
}
/* 产品线短码：对应华为云「联营商品」的金色渐变标签 */
.mpk-label {
  display: inline-block; height: 22px; padding: 0 8px;
  font-size: 12px; line-height: 22px; font-weight: 600;
  color: #5c3407; background: linear-gradient(to right bottom, #faf4ed, #e6d4c1);
  border-radius: 4px; white-space: nowrap;
}
/* 支撑项目数：低饱和青绿，和灰色标签区分 */
.mpk-tag-num { color: #0a7b6b; background: #eafaf6; }

/* 行前缀小字（对应华为云「商家：/ 交付方式：」） */
.mpk-k {
  display: inline-block; height: 22px; margin-right: 4px;
  font-size: 12px; line-height: 22px; color: #86909c;
}

/* 底部一行里的标签位（产品线 / 优先级 / 支撑项目数，默认都不输出） */
.mpk-tags-foot { margin-bottom: 0; }

/* ---------- 描述：14px / #808080 / 行高 22px ----------
   华为云为 2 行截断；这里放宽到 3 行，因为产品定位描述较长，
   2 行会把「做什么」截掉。想严格对齐改 -webkit-line-clamp 即可。 */
.mpk-desc {
  margin: 0 0 16px;
  font-size: 14px; line-height: 22px; color: #808080;
  display: -webkit-box; -webkit-box-orient: vertical;
  -webkit-line-clamp: 3; line-clamp: 3; overflow: hidden;
}

/* ---------- 支撑项目（实证）明细行 ----------
   默认不由脚本输出（见 build_content.py 的 SHOW_EVIDENCE 开关），
   若要恢复展示，取消该开关即可套用下面的样式。 */
.mpk-ev {
  margin: 0 0 16px; font-size: 12px; line-height: 20px; color: #86909c;
}

/* ---------- 底部入口：margin-top:auto 让卡片等高时链接贴底 ---------- */
.mpk-foot {
  margin-top: auto; padding-top: 12px;
  display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px;
}
.mpk-links { display: inline-flex; align-items: center; gap: 16px; }
.mpk-link { font-size: 13px; color: var(--brand); white-space: nowrap; }
.mpk-link:hover { color: var(--brand-hover); text-decoration: underline; }

/* ---------- 响应式：列数由上面的 auto-fill 自动决定，这里只收内边距 ---------- */
@media (max-width: 1024px) {
  .mpk-card { padding: 24px; }
}
@media (max-width: 768px) {
  .mpk-grid { gap: 12px; }
  .mpk-card { padding: 20px; border-radius: 12px; }
  .mpk-title { font-size: 16px; line-height: 24px; }
  .mpk-logo { width: 48px; height: 48px; margin-bottom: 14px; border-radius: 10px; }
}

/* ==========================================================================
   解决方案页（solutions.html）
   结构与样式参照 huaweicloud.com/solution/，括号内为 1920px 视口下的实测值：
     .por-container          1600px（本站已统一的 .container-hw 同宽）
     .pep-solution-page-navigate-v2   二级 Tab 吸顶条：高 50px、白底、li margin-right 32px
     二级 Tab 文字            14px；激活项 #191919 / 700，底部 2px 黑线
     .pep-common-banner-v2   高 450px；标题 44px/700/66px #191919；副标题 16px/24px #595959
     主按钮                   高 40px、padding 0 24px、圆角 40px、底 #191919、白字 14px
     .por-section            浅灰底 #f5f5f5、padding 60px 0
     .por-section-title      36px/700/54px #191919
     .huge-card-content-wrapper  1600×400、圆角 16px、左右各 800px
     .huge-card-content-main     白底、padding 64px 48px、内容垂直居中
     .huge-card-content-icon     72×72，下方留 28px
     .huge-card-title        20px/700/30px #191919
     .huge-card-desc         16px/400/24px #595959，与标题间距 16px
     .small-card-content-container  grid 4 列、卡 388×290、沟槽 16px、圆角 16px
     .small-card-content-main    同 huge 的 padding/圆角
     .pep-common-ad-v2       底部 CTA：浅灰底 #f5f5f5、高 392px、内容居中
   ========================================================================== */

/* ---------- 1. 二级 Tab 吸顶导航（华为云 .pep-solution-page-navigate-v2） ---------- */
.sol-nav {
  position: sticky; top: var(--header-h); z-index: 40;
  background: #fff; border-bottom: 1px solid var(--line);
}
.sol-nav ul {
  display: flex; align-items: center; margin: 0; padding: 0; list-style: none;
  height: 50px; overflow-x: auto; overflow-y: hidden;
  scrollbar-width: none;              /* Firefox 隐藏滚动条 */
}
.sol-nav ul::-webkit-scrollbar { display: none; }
.sol-nav li { flex: none; margin-right: 32px; }
.sol-nav a {
  position: relative; display: inline-block; line-height: 50px;
  font-size: 14px; color: #595959; transition: color .2s;
}
.sol-nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: #191919; transform: scaleX(0); transition: transform .2s;
}
.sol-nav li:hover a { color: #191919; }
.sol-nav li.active a { color: #191919; font-weight: 700; }
.sol-nav li.active a::after { transform: scaleX(1); }

/* ---------- 2. Banner（华为云 .pep-common-banner-v2，高 450px） ---------- */
.sol-banner {
  position: relative; height: 450px; overflow: hidden; background: #f5f7fa;
}
/* 配图贴右，左侧用渐变把图与底色融在一起，保证左栏文字可读 */
.sol-banner-media { position: absolute; top: 0; right: 0; width: 68%; height: 100%; }
.sol-banner-media img { display: block; width: 100%; height: 100%; object-fit: cover; }
/* 解决方案页的 banner 稿是 1920×344（5.6:1），而图位只有 2.2:1（1440 下 979×450）——
   cover 会把左右各切掉一大截。按中心裁正好把右侧的 AI 芯片切掉，取景往右偏到 70%，
   数据库与芯片就能同时完整入画。产品页那张是 16:9，中心裁即可，不要跟这条混用。 */
.sol-banner.solution-banner .sol-banner-media img { object-position: 70% 50%; }
/* 案例页那张是 1920×435（4.4:1），图位 2.2:1。中心裁会把最右侧的「平板」气泡切掉半个，
   取景往右偏到 55%：右侧气泡完整，左端的气泡落在渐隐区里，本来就被融掉了。 */
.sol-banner.case-banner .sol-banner-media img { object-position: 55% 50%; }
.sol-banner-media::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(90deg, #f5f7fa 0%, rgba(245,247,250,.86) 18%, rgba(245,247,250,0) 58%);
}
.sol-banner .container-hw { position: relative; z-index: 2; height: 100%; display: flex; align-items: center; }
.sol-banner-inner { max-width: 800px; }
.sol-banner h1 {
  margin: 0; font-size: 44px; font-weight: 700; line-height: 66px; color: #191919;
}
.sol-banner p {
  margin: 16px 0 0; font-size: 16px; line-height: 24px; color: #595959;
}
.sol-btn-dark,
.sol-btn-line {
  display: inline-flex; align-items: center; justify-content: center;
  height: 40px; padding: 0 24px;
  font-size: 14px; line-height: 22px; border-radius: 40px;
  transition: background .3s, border-color .3s, color .3s;
}
.sol-btn-dark { color: #fff; background: #191919; border: 1px solid #191919; }
.sol-btn-dark:hover { background: #404040; border-color: #404040; }
/* 次要按钮：沿用华为云 por-btn-secondary 的描边风格，但补足到大卡里的 40px 高度 */
.sol-btn-line { color: #191919; background: #fff; border: 1px solid #d9d9d9; }
.sol-btn-line:hover { border-color: #191919; }
.sol-banner .sol-btn-dark { margin-top: 40px; }

/* Banner 内锚点跳转要避开吸顶头部 —— 联系我们页头部主按钮跳 #message。
   实测吸顶部分总高 102px（顶部通知条 + 主导航 64px），留 112px 才不会盖住标题。 */
#message { scroll-margin-top: 112px; }

/* ---------- 3. 方案区块（浅灰底，与白色区块交替） ---------- */
.sol-section { background: #f5f5f5; }
.sol-section-white { background: #fff; }
.sol-section .por-section-title { font-size: 36px; font-weight: 700; line-height: 54px; }

/* 场景区 Tab 多于行业区（10 项放不下一行），允许折行居中。
   注意：必须用 .por-section .por-tab 开头的三级选择器，
   否则优先级低于上面的 .por-section .por-tab ul（height:32px; overflow:hidden），
   第二行会被裁掉。 */
.por-section .por-tab.sol-tab-wrap ul {
  height: auto; overflow: visible;
  display: flex; flex-wrap: wrap; justify-content: center;
}
.por-section .por-tab.sol-tab-wrap li { margin-bottom: 10px; }

/* ---------- 4. 大卡：左文右图（华为云 .huge-card-content-wrapper） ---------- */
.sol-huge {
  display: grid; grid-template-columns: 1fr 1fr;
  border-radius: 16px; overflow: hidden; background: #fff;
  min-height: 400px;
}
.sol-huge-main {
  display: flex; flex-direction: column; justify-content: center;
  padding: 64px 48px;
}
.sol-huge-icon { height: 72px; margin-bottom: 28px; }
.sol-huge-icon img { display: block; width: 72px; height: 72px; border-radius: 13px; }
.sol-huge-title { margin: 0; font-size: 20px; font-weight: 700; line-height: 30px; color: #191919; }
.sol-huge-desc { margin: 16px 0 0; font-size: 16px; line-height: 24px; color: #595959; }
.sol-huge-kicker {
  margin: 24px 0 0; font-size: 12px; line-height: 20px; color: #86909c;
}
.sol-huge-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
/* 标签：沿用华为云 tag 观感（灰底、小圆角、12px 行高 22px） */
.sol-tag {
  display: inline-block; max-width: 100%; height: 22px; padding: 0 8px;
  font-size: 12px; line-height: 22px; color: #595959;
  background: #f2f3f5; border-radius: 4px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.sol-huge-btns { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 32px; }
.sol-huge-fig { position: relative; min-height: 260px; }
.sol-huge-fig img {
  position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover;
}
/* 行业配图如果是架构图（SVG），不能 cover —— 分层图裁掉边就没法看了。
   contain 后左右露出的就是卡片白底，边界看不出来；位图仍按 cover 铺满。 */
.sol-huge-fig img[src$=".svg"] { object-fit: contain; }
/* 架构图外面套了一层 <a>（新窗口看原图），它要跟 img 一样铺满图位 */
.sol-huge-fig a.sol-fig-zoom { position: absolute; inset: 0; display: block; cursor: zoom-in; }

/* ---------- 5. 小卡网格（华为云 .small-card-content-container，4 列 388×290） ---------- */
.sol-small-grid {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px; margin-top: 16px;
}
/* 内容改为顶部对齐（原 justify-content:center）：
   同行卡片被 grid 拉成等高，而痛点文案长短不一、标题 2 行 3 行都有，
   居中时内容块高的那张整体偏上，图标就比其他卡高一截（实测差 15px）。
   顶对齐后图标永远落在 padding 之后同一位置，标题也从同一条基线起。 */
.sol-small {
  display: flex; flex-direction: column;
  min-height: 290px; padding: 64px 48px;
  background: #fff; border-radius: 16px;
  transition: box-shadow .3s;
}
.sol-small:hover { box-shadow: 0 4px 12px rgba(0, 0, 0, .08); }
.sol-small-icon { height: 72px; margin-bottom: 28px; }
.sol-small-icon img { display: block; width: 72px; height: 72px; border-radius: 13px; }
/* 痛点卡没有现成图标，用序号圆标顶上，保持与小卡同一视觉节奏 */
.sol-num {
  display: flex; align-items: center; justify-content: center;
  width: 72px; height: 72px; border-radius: 50%;
  font-size: 26px; font-weight: 700; color: var(--brand);
  background: var(--brand-soft); border: 1px solid #f7d6d8;
}
/* 标题至少占 2 行（lh30 × 2）：1 行的卡也撑到 2 行高，
   同行卡片底部留白才一致，不会一张顶天一张空半截。 */
.sol-small-title {
  margin: 0; min-height: 60px;
  font-size: 20px; font-weight: 700; line-height: 30px; color: #191919;
}
.sol-small-desc { margin: 16px 0 0; font-size: 16px; line-height: 24px; color: #595959; }

/* ---------- 6. 大卡右侧：方案路径竖向步骤（场景区用） ---------- */
.sol-steps { display: grid; gap: 12px; }
.sol-steps-title { font-size: 14px; line-height: 22px; color: #86909c; }
.sol-step { display: flex; align-items: flex-start; gap: 12px; }
.sol-step-no {
  flex: none; width: 22px; height: 22px; margin-top: 1px;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700; color: #191919;
  background: #f2f3f5; border-radius: 50%;
}
.sol-step-text { font-size: 14px; line-height: 24px; color: #191919; }
/* 场景大卡右侧无配图，改为浅底面板承载步骤列表 */
.sol-huge-fig.sol-huge-panel {
  display: flex; flex-direction: column; justify-content: center;
  padding: 48px; background: #fafafa;
}

/* ---------- 7. 区块底部「查看全部」链接（华为云 .more-container） ---------- */
.sol-more { margin-top: 32px; text-align: center; }
.sol-more a {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 16px; line-height: 24px; color: #191919;
}
.sol-more a:hover { color: var(--brand); }

/* ---------- 8. 底部 CTA（华为云 .pep-common-ad-v2，浅灰底 392px） ---------- */
.sol-cta { background: #f5f5f5; padding: 72px 0 80px; text-align: center; }
.sol-cta h2 { margin: 0; font-size: 36px; font-weight: 700; line-height: 54px; color: #191919; }
.sol-cta p { margin: 16px 0 0; font-size: 16px; line-height: 24px; color: #595959; }
.sol-cta .sol-btn-dark { margin-top: 32px; }

/* ---------- 9. 响应式 ---------- */
@media (max-width: 1280px) {
  .sol-small-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sol-huge-main { padding: 48px 32px; }
  .sol-small { min-height: 240px; padding: 40px 32px; }
  .sol-huge-fig.sol-huge-panel { padding: 40px 32px; }
}
@media (max-width: 1024px) {
  .sol-huge { grid-template-columns: 1fr; }
  .sol-huge-fig { min-height: 300px; }
  .sol-huge-fig img { position: static; height: 300px; }
  /* 单列时图位很宽，架构图若还固定 300 高会被压成中间一小块（两边大片空）。
     按宽度自适应并限个上限，字才不至于缩成蚂蚁。 */
  .sol-huge-fig img[src$=".svg"] { height: auto; width: 100%; max-width: 620px; margin: 0 auto; }
  .sol-huge-fig a.sol-fig-zoom { position: static; }
  .sol-huge.main-first .sol-huge-fig { order: 2; }
  .sol-section .por-section-title { font-size: 28px; line-height: 42px; }
  .sol-cta h2 { font-size: 28px; line-height: 42px; }
}
@media (max-width: 768px) {
  .sol-banner { height: auto; padding: 40px 0 0; }
  .sol-banner-media { position: relative; width: 100%; height: 200px; margin-top: 32px; }
  /* 案例页横幅在窄屏只剩 1.95:1 的窗口，55% 会把最右边的「U 盘」气泡切掉，
     再往右偏到 68%，六个气泡才都能进画（左端那个落在渐隐里，本来就看不清）。 */
  .sol-banner.case-banner .sol-banner-media img { object-position: 68% 50%; }
  /* 关于我们那张（1920×601，3.2:1）窄屏只剩 1.95:1 的窗口，中心裁会把楼贴死在右边缘，
     往右偏到 58% 才有呼吸；桌面窗口够宽，保持居中。 */
  .sol-banner.about-banner .sol-banner-media img { object-position: 58% 50%; }
  .sol-banner-media::before {
    background: linear-gradient(180deg, #f5f7fa 0%, rgba(245,247,250,0) 60%);
  }
  .sol-banner .container-hw { display: block; height: auto; }
  .sol-banner h1 { font-size: 28px; line-height: 40px; }
  .sol-btn-dark { margin-top: 24px; }
  .sol-nav ul { height: 44px; }
  .sol-nav a { line-height: 44px; }
  .sol-nav li { margin-right: 24px; }
  .sol-small-grid { grid-template-columns: 1fr; }
  .sol-huge-main { padding: 32px 20px; }
  .sol-small { min-height: 0; padding: 28px 20px; }
  .sol-huge-fig.sol-huge-panel { padding: 28px 20px; }
  .sol-huge-icon { height: 56px; margin-bottom: 20px; }
  .sol-huge-icon img { width: 56px; height: 56px; }
  .sol-num { width: 56px; height: 56px; font-size: 20px; }
  .sol-small-icon { height: 56px; margin-bottom: 20px; }
  .sol-small-icon img { width: 56px; height: 56px; }
  .sol-huge-title, .sol-small-title { font-size: 18px; line-height: 28px; }
  /* 单列时各卡独立成行，没有「同行对齐」的需求，标题的 2 行保底可以撤掉，
     免得短文案下面凭空空一截。 */
  .sol-small-title { min-height: 0; }
  .sol-huge-desc, .sol-small-desc { font-size: 14px; line-height: 22px; }
  .sol-section .por-section-title, .sol-cta h2 { font-size: 22px; line-height: 34px; }
  .sol-cta { padding: 48px 0 56px; }
}

/* ==========================================================================
   客户案例页（cases.html）
   结构与样式参照 huaweicloud.com/solution/industry-directory.html，
   括号内为 1920px 视口下的实测值：
     .agglomeration-section   浅灰底 #f5f5f5、padding 56px 0
     .search-content input    1600×48、白底、圆角 32px、padding 0 56px、14px
     .category-content        白底、圆角 16px、padding 36px 32px 28px、margin-top 16px
     .category-title          14px / lh32 / #595959
     筛选项                    高 32px、圆角 6px、padding 0 8px、margin 0 0 8px 8px
     .por-col-8               3 列（24/8），列宽 539、沟槽 16、卡宽 523
     .por-card                白底、圆角 16px、高 272px、padding 48px
     .card-logo               72×72、圆角 16px、border 1px #ebebeb、右侧间距 16px
     .card-caption            20px / 700 / lh30 / #191919
     客户名标签（10-21 起）      .por-label.autarky：12px/lh22、字 #5c3407、
                                底 linear-gradient(to right bottom,#faf4ed,#e6d4c1)、
                                圆角 4px、高 22px（原 .por-label-red 红字已弃用）
     .por-label               深字 #191919、底 rgba(89,89,89,.1)、圆角 4px、高 24px
     .por-text-body-t2        16px / lh24 / #595959、margin-top 12px、2 行
     .por-pagination          高 32px、14px、margin-top 20px
   ========================================================================== */

/* ---------- 1. 浅灰底内容区（华为云 .agglomeration-section） ---------- */
.case-section { background: #f5f5f5; padding: 56px 0; }
.case-section .container-hw > * + * { margin-top: 0; }

/* ---------- 1b. 头部 Banner（与华为云 industry-directory 同规格） ----------
   450px 高、左侧 800px 文案区、右侧配图用渐变融进底色；
   标题 44px/700/行高 66，副文 16px/24，底部一组 CTA。
   类名沿用 solutions.html 的 .sol-banner（同一套规则），只补案例页差异。 */
.case-banner .breadcrumb { padding: 0 0 12px; color: #595959; }
.case-banner .breadcrumb a { color: #595959; }
.case-banner .breadcrumb a:hover { color: var(--brand); }
.case-banner .sol-banner-inner { max-width: 800px; }
.sol-banner-btns { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 40px; }
.sol-banner-btns .sol-btn-dark { margin-top: 0; }

/* ---------- 2. 搜索框（华为云 .search-content / .por-text-input） ----------
   实测华为云：1600 宽 × 48 高、圆角 32、纯白底、**无边框无阴影**、
   padding 0 56px、左图标 18px（left 24 + margin 4）、占位符 #a5a5a5。
   这里 1:1 还原，只在聚焦时加一圈极淡的深色描边保证键盘可达性。 */
.case-search { position: relative; }
.case-search-icon {
  position: absolute; left: 28px; top: 15px;
  width: 18px; height: 18px; color: #595959; pointer-events: none;
}
.case-search input {
  box-sizing: border-box; width: 100%; height: 48px;
  padding: 0 56px; margin: 0;
  font-size: 14px; line-height: 48px; color: #191919;
  background: #fff; border: 0; border-radius: 32px; box-shadow: none;
  outline: none; transition: box-shadow .2s;
  -webkit-appearance: none; appearance: none;
}
.case-search input::placeholder { color: #a5a5a5; }
.case-search input:focus { box-shadow: 0 0 0 2px rgba(25, 25, 25, .10); }
/* 有输入时出现的清除按钮（华为云 .por-icon-close） */
.case-search-clear {
  position: absolute; right: 24px; top: 15px;
  display: flex; align-items: center; justify-content: center;
  width: 18px; height: 18px; padding: 0;
  color: #191919; background: none; border: 0; cursor: pointer;
}
.case-search-clear svg { width: 16px; height: 16px; }
.case-search-clear:hover { color: var(--brand); }
.case-search-clear[hidden] { display: none; }

/* ---------- 3. 筛选区（华为云 .category-content 白卡 + .por-checkbox） ----------
   白卡：圆角 16、padding 36px 32px 28px、上间距 16px。
   行：左标题 56px 宽 / 14px / #595959，右侧复选项横排（间距 24×8，与华为云一致）。
   复选项：16×16 方块（未选 1px #c2c2c2 圆角 4；选中 #191919 底 + 白色勾）+ 14px 文字。 */
/* 注意：.case-section .container-hw > * + * 会把子元素的 margin-top 清成 0，
   这里必须用三级选择器才能把搜索框与筛选卡之间的间距重新加回来。 */
.case-section .container-hw > .case-filter {
  margin-top: 24px; padding: 36px 32px 28px;
  background: #fff; border-radius: 16px;
}
.case-filter-row { display: flex; align-items: flex-start; gap: 16px; }
.case-filter-row + .case-filter-row { margin-top: 12px; }
.case-filter-label {
  flex: none; width: 56px; font-size: 14px; line-height: 22px; color: #595959;
  padding-top: 5px;   /* 与右侧复选项首行基线对齐（项高 32，标题 22） */
}
/* 列距 16 + 药丸左右各 12 内边距 = 两段文字的间距 40，与华为云云商店一致 */
.case-filter-tags { flex: 1; min-width: 0; display: flex; flex-wrap: wrap; gap: 12px 16px; }

/* 选项 = 纯文字药丸（对齐 market.huaweicloud.com/search 的 .product-option）：
   常态透明底、14px/32px 常规字重；悬停极浅灰；选中 #f7f7f7 底 + 600 字重。
   不再画复选框 —— 原生 input 只留语义与键盘可达性，视觉上完全隐藏。 */
.case-cb {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 32px; padding: 0 12px; border-radius: 6px;
  font-size: 14px; line-height: 32px; color: #191919;
  cursor: pointer; user-select: none;
  transition: background-color .16s ease, color .16s ease;
}
.case-cb:hover { background: #fafafa; }
.case-cb input {
  position: absolute; width: 1px; height: 1px; margin: -1px;
  opacity: 0; pointer-events: none;   /* 只保留语义，不再有可见方框 */
}
.case-cb .cb-box { display: none; }
.case-cb .cb-txt { white-space: nowrap; }
/* 选中态：浅灰底 + 加粗（华为云 .product-option.active） */
.case-cb:has(input:checked) { background: #f7f7f7; font-weight: 600; }
.case-cb:has(input:focus-visible) { box-shadow: 0 0 0 2px rgba(25, 25, 25, .18); }

/* 选项过多时默认收起，JS 切换 .open 后显示全部 */
.case-cb.extra { display: none; }
.case-filter-tags.open .case-cb.extra { display: inline-flex; }
.case-toggle {
  height: 32px; padding: 0 4px; margin-left: 0;
  font-size: 14px; line-height: 32px; color: #191919;
  background: none; border: 0; border-radius: 6px; cursor: pointer;
}
.case-toggle:hover { color: var(--brand); }
.case-toggle .arrow { display: inline-block; margin-left: 4px; transition: transform .2s; }
.case-toggle.open .arrow { transform: rotate(180deg); }

/* 底部「重置所有」：华为云 .solution-clear（14px #191919，左侧留 20px） */
.case-filter-foot { margin-top: 4px; text-align: right; }
.case-clear {
  padding: 0 0 0 20px; font-size: 14px; line-height: 21px; color: #191919;
  background: none; border: 0; cursor: pointer;
}
.case-clear:hover { color: var(--brand); }

/* ---------- 3b. 排序条（1:1 还原华为云云商店 #product-filter-sort） ----------
   实测 marketplace.huaweicloud.com/search（1920px）：
     #product-filter-sort    flex 行 / align-items center / justify-content space-between
                             高 21、margin 36px 0 20px、padding-right 12、14px/lh21、#575d6c
     .res-num                14px/lh21、#808080（左侧条数）
     .product-filters-left   flex 行 / align-items center / 高 18
     .product-filters-item   高 18、padding 0 15px、14px/lh18、cursor pointer、#808080；
                             除首项外 border-left 1px solid rgba(0,0,0,.08) 当分隔线
     .active                 字色 #191919
     .triangle               16×16 列向 flex（up / down 各 16×8，用 PNG 精灵）
   本站差异（有意偏离，已记档）：
     ① 三角箭头用 CSS 边框画，不引外部 PNG；宽度 10px（参考站 16px 含图片留白）。
     ② 排序项用 <button> 而非 <div>，键盘 Tab / 回车可直接操作。
     ③ 上间距用 24px（本站筛选卡到下一块的既有节奏），参考站是 36px。 */
.case-sortbar {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  margin-bottom: 20px; font-size: 14px; line-height: 21px; color: #575d6c;
}
/* ⚠️ .case-section .container-hw > * + * 会把直接子元素的 margin-top 清 0，
   必须用三级选择器才能把排序条与筛选卡之间的间距加回来（与 .case-filter 同款处理）。 */
.case-section .container-hw > .case-sortbar { margin-top: 24px; }
.case-sort-num { font-size: 14px; line-height: 21px; color: #808080; white-space: nowrap; }
.case-sort-num b { color: #191919; font-weight: 700; }
.case-sort-group { display: flex; align-items: center; }
.case-sort-item {
  display: flex; align-items: center;
  height: 18px; padding: 0 15px;
  font-family: inherit; font-size: 14px; font-weight: 400; line-height: 18px;
  color: #808080; background: none; border: 0;
  border-left: 1px solid rgba(0, 0, 0, .08);
  cursor: pointer; user-select: none; white-space: nowrap;
  transition: color .2s;
}
.case-sort-item:first-child { padding-left: 0; border-left: 0; }
.case-sort-item:hover { color: #191919; }
.case-sort-item.active { color: #191919; }
.case-sort-item:focus-visible { outline: 2px solid rgba(25, 25, 25, .35); outline-offset: 2px; }
/* 上下箭头：默认两个都淡，选中的那个方向变实（参考站靠换 PNG 实现） */
.case-sort-tri {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  width: 10px; height: 16px; margin-left: 4px;
}
.case-sort-tri b {
  width: 0; height: 0; opacity: .45;
  border-left: 5px solid transparent; border-right: 5px solid transparent;
  transition: opacity .2s;
}
.case-sort-tri .tri-up { margin-bottom: 2px; border-bottom: 5px solid currentColor; }
.case-sort-tri .tri-down { border-top: 5px solid currentColor; }
.case-sort-item[data-dir="asc"] .tri-up,
.case-sort-item[data-dir="desc"] .tri-down { opacity: 1; }
/* 非当前排序项：两个箭头都保持淡色，否则会看起来像「已按它升序排」 */
.case-sort-item:not(.active) .case-sort-tri b { opacity: .45; }

/* ---------- 4. 卡片网格（华为云 .por-col-8 → 3 列 523×272） ---------- */
.case-grid {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px; margin-top: 16px;
}
.case-card {
  display: flex; flex-direction: column; min-height: 286px; padding: 32px;
  background: #fff; border-radius: 16px;
  transition: box-shadow .3s;
  /* 右上角角标（.case-free-tag）的定位基准 */
  position: relative;
}
.case-card:hover { box-shadow: 0 4px 12px rgba(0, 0, 0, .08); }

/* 卡片右上角角标：按华为云云商店 .free-tag 的定位与形状（绝对定位贴右上角、
   右上圆角跟随卡片 16px、左下角切一个圆弧），颜色按用户要求改品牌红 + 白字。
   实测华为云原版是 72×20 @1x 的 PNG（144×40 @2x，绿底「免费试用」），
   本站卡片 523×272 更大，等比放到高 26px；文案长度不定所以用 CSS 画，不用图。
   ⚠️ 高度 26px 仍落在卡片 32px 的 padding 内，所以**不占布局、不影响卡片高度**
      （≤768 档 padding 只剩 20px，那里给 .has-badge 单独补 padding-top）。 */
.case-free-tag {
  position: absolute; top: 0; right: 0; z-index: 1;
  height: 26px; padding: 0 14px 0 20px;
  font-size: 12px; font-weight: 400; line-height: 26px; letter-spacing: .2px;
  color: #fff; background: var(--brand);
  border-radius: 0 16px 0 16px;
  white-space: nowrap; pointer-events: none;   /* 纯装饰，别抢卡片 hover */
}
/* 三档含金量，视觉权重依次递减：
     lv1 政府奖：实心红底 + 白字（最重）
     lv2 入选  ：浅红底 #ffebee + 红字 + 描边
     lv3 提名  ：白底   #fff    + 红字 + 描边（最轻）
   10-21 甲方反馈 lv2 与 lv1 同为红底不合适（看不出层级），改成浅红底。
   描边统一用 inset box-shadow 而不是 border：不占盒模型、四边均匀、自动跟随圆角，
   26px（≤768 档 24px）的高度一分不变；用 border 的话顶边/右边会贴在卡片边缘露成直线。
   字色用品牌红 var(--brand) = #C7000B 而不是字面 red(#f00)，与全站红色保持一致
   （若要纯 #FF0000，把 color 改成 red 即可）。 */
.case-free-tag.lv2 {
  color: var(--brand); background: #ffebee;
  box-shadow: inset 0 0 0 1px rgba(199, 0, 11, .45);
}
.case-free-tag.lv3 {
  color: var(--brand); background: #fff;
  box-shadow: inset 0 0 0 1px rgba(199, 0, 11, .45);
}
.case-card-top { display: flex; align-items: center; gap: 16px; }
.case-logo {
  flex: none; display: flex; align-items: center; justify-content: center;
  width: 72px; height: 72px; border-radius: 16px; border: 1px solid #ebebeb;
  font-size: 26px; font-weight: 700; letter-spacing: -1px;
}
/* 案例卡客户标识：改成客户机构的图形标记（assets/img/customers/mark/）。
   ⚠️ 高度写死 40px 是刻意的：那批图已统一内容高度到 80px（2x），这里按高度锁死
   才能让 16 张的渲染高度完全一致（实测集合为单值 40）。宽度 auto 保留原始比例，
   最宽的一张（中国摄影出版社 1.49:1）也只有 59px，仍稳在 72px 框内。
   不要改成 max-height 让它自适应 —— 那会让细长标记变矮，又回到「大小不一」。 */
.case-logo--img { overflow: hidden; }
.case-logo > img {
  display: block; width: auto; height: 40px;
  max-width: 100%; object-fit: contain;
}
/* 灰色占位（缺素材的 5 家）：底色调淡一点，和真实 logo 一眼能分开 */
.case-logo--ph { background: #fafafa; }
.case-card-head { flex: 1; min-width: 0; }
.case-card-title {
  font-size: 20px; font-weight: 700; line-height: 30px; color: #191919;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
/* align-items:center：客户标签 22px、产品标签 20px，靠居中对齐让两者同一条基线。
   gap 由 8 收到 6 —— 一个案例可能挂好几个产品，每个产品一个独立标签（华为云云商店式）。 */
.case-labels { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 4px; }
.case-label {
  max-width: 100%; height: 20px; padding: 0 6px;
  font-size: 12px; line-height: 20px; color: #5f5f5f;
  background: rgba(89, 89, 89, .08); border-radius: 4px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
/* 产品超过 2 个时折出来的「+N」：比实体标签更淡，不抢视线，悬停看完整清单 */
.case-label-more {
  padding: 0 5px; color: #8c8c8c; background: rgba(89, 89, 89, .04);
  font-variant-numeric: tabular-nums;
}
/* 客户名标签：10-21 按用户要求改用华为云云商店的 .por-label.autarky
   （实测 marketplace 搜索页：12px/400/lh22、字 rgb(92,52,7)、
     background linear-gradient(to right bottom, #faf4ed → #e6d4c1)、
     padding 0 4px、margin 0 4px 0 0、圆角 4、高 22）。
   原来是 .case-label-red（红字 #f23030 + 浅红底），现已不再输出。 */
.por-label {
  display: block; max-width: 100%; height: 22px; padding: 0 4px;
  font-size: 12px; font-weight: 400; line-height: 22px;
  border: 0; border-radius: 4px; text-align: center;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.por-label.autarky {
  color: #5c3407;
  background: #f5ece1;
  background-image: linear-gradient(to right bottom, #faf4ed, #e6d4c1);
}
/* 10-21 按用户要求：正文 16px/2 行 → 14px/4 行。
   高度预算（卡 min-height 272 − padding 32×2 = 内容区可用 208px）：
     top 72 + desc(8 + 22×4 = 96) + foot(padding-top 16 + 行高 20 = 36) = 204
   ← 余 4px。所以 margin-top 由 12 收到 8：按 12 算正好 208 卡满、没有容差。
   行高取 22px（14px 正文的常规值，与 ≤768 档原值一致）。
   4 行 @448px 内容宽 ≈ 128 字，103 条描述里绝大多数能完整显示。
   ⚠️ 再往上加行（5 行）就会撑破 272，届时必须同步改 .case-card 的 min-height。 */
.case-card-desc {
  margin: 8px 0 0; font-size: 14px; line-height: 22px; color: #595959;
  display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical;
  overflow: hidden;
}
.case-card-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin-top: auto; padding-top: 16px;
}
/* 终端图标的 sprite 容器（cases.html 顶部内联的一份 <symbol> 集合）。
   必须彻底不占布局：不给宽高的话 inline SVG 默认 300×150，会在页面顶部压出一块空白。 */
.term-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
/* 左下角终端形态图标（10-21 按用户要求：文字标签 → 图标）。
   默认灰、鼠标移上去变品牌红；图标是内联 SVG，`currentColor` 直接吃这里的 color。
   ⚠️ 高度锁 20px 是为了对齐原来的文字行高：.case-card-foot 的内容高一旦变成 22，
      卡片就会从 272 被撑到 274（高度预算见 .case-card-desc 上方的注释）。
   16px 的图形 + 2px 内边距 = 20×20 的点击区，以后要挂 click 事件也够大。 */
.case-terms { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; min-height: 20px; }
/* 默认灰取 #a8adb5 而不是更浅的 #c2c2c2：16px 的线性图标在白底上太淡会糊成一团，
   实测这个灰度既明显是「置灰态」，又不会比原来的文字标签抢眼。 */
.case-term {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center;
  width: 20px; height: 20px; border-radius: 4px;
  color: #a8adb5;                       /* 默认灰 */
  transition: color .2s, background-color .2s;
}
.case-term svg { display: block; width: 18px; height: 18px; }
.case-term:hover { color: var(--brand); background: var(--brand-soft); }
/* 终端名只给读屏 / 后续脚本取用，视觉上隐藏（不用 display:none，那样读屏也读不到） */
.case-term-txt {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
/* 台账里出现未配图标的新写法时，退回原来的文字小标签 */
.case-term--txt {
  width: auto; padding: 0 6px; font-size: 12px; line-height: 20px;
  color: #86909c; background: #f7f8fa;
}
/* ── 卡片右下角的「访问站点」 ──
   从品牌红改成中性灰：黑底胶囊才是这张卡的主动作，
   两个红色并列会互相抢；而且红色正好是胶囊的 hover 态，撞在一起分不清哪个可点。
   灰态 + hover 变红，层级和交互反馈都更清楚。 */
.case-link {
  flex: none; display: inline-flex; align-items: center; gap: 4px;
  font-size: 14px; line-height: 20px; color: #595959; white-space: nowrap;
  text-decoration: none;
  transition: color .18s ease;
}
@media (hover: hover) { .case-link:hover { color: var(--brand); } }
.case-link svg { display: block; transition: transform .18s ease; }
@media (hover: hover) { .case-link:hover svg { transform: translate(1px, -1px); } }
.case-link:hover { text-decoration: underline; }
.case-link.locked { color: #b0b5bc; cursor: default; }
.case-link.locked:hover { text-decoration: none; }

/* 「项目详情」入口：只有后台填了富文本详情的案例才有（卡片带 .has-detail）。
   刻意做得比「访问站点」弱一档（灰 → hover 变红），避免两张卡的主次关系反过来。
   ⚠️ .case-terms 让出右侧空间（margin-right:auto），否则三个元素会被 space-between
      摊成「终端图标—详情—链接」三等分，没有详情的卡片又只有两等分，两种卡对不齐。 */
.case-card.has-detail { cursor: pointer; }
.case-card.has-detail .case-terms { margin-right: auto; }
/* 卡片 CTA：形态用站内的 .sol-btn-line（白底 + 1px #d9d9d9 描边 + 全圆角 + #191919
   字，hover 边框转 #191919），这里只补按钮场景要的增量。
   之前那版是照 freefrontend 的黑底胶囊（#0a0a0a），在白色卡片上太重、像块砖，
   和站内其余的华为云式线性按钮也不是一个体系。

   尺寸比 .sol-btn-line 的默认值收一档（40 → 34）：那个 40px 是给解决方案页大卡里的
   主按钮定的，搬到 523×292 的案例卡页脚里，比卡片标题还抢眼，整张卡的重心被拽到右下角。
   34px 仍是一个明确的按钮（远大于文字链），但在卡片里退回"配角"。
   ⚠️ 高度改了就必须同步算卡片高度：72 top + 8+88 描述 + (16+34) 页脚 = 218，
      + 64 padding = 282 → .case-card 的 min-height 取 286（留 4px 余量）。
      再调按钮高度，这个数要一起改，否则卡片会被撑高或塌下去。 */
.btn-card-demo-cta {
  height: 34px; padding: 0 16px;
  gap: 5px;
  font-size: 13px; line-height: 20px;
  font-family: inherit;
  cursor: pointer;
}
.btn-card-demo-cta svg { display: block; width: 12px; height: 12px; transition: transform .2s ease; }
@media (hover: hover) {
  .btn-card-demo-cta:hover svg { transform: translateX(2px); }
}
.btn-card-demo-cta:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; }
.case-card.has-detail:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }

/* ==================== 详情弹窗：<dialog> + 居中卡片 ====================
   对齐 freefrontend.com/css-modal-windows/ 里主流的几件事：
     · 原生 <dialog>：焦点捕获、Esc 关闭、关闭后焦点回归都由浏览器给
     · 遮罩走 ::backdrop + backdrop-filter 模糊
     · 入场只用 opacity / transform（合成器属性，不掉帧）
     · 居中卡片、18px 圆角、长投影
   原来那个「从右侧滑出的抽屉」为什么换掉：560px 宽的竖条里排 15px/26px 的正文，
   每行只剩 30 来个字；遮罩又是纯黑 45%，整体像后台的侧边详情面板，
   跟官网这套白底大圆角卡片完全不是一个语言。

   内容由后台富文本框产出、服务端过白名单（p/h3/h4/strong/em/ul/ol/li/br/a），
   所以这里只负责排版，不做防御性 hidden。
   ------------------------------------------------------------------- */
/* 富文本详情的载体：<template> 本身不渲染，外层 div 只是个取用入口 */
#case-detail-src[hidden] { display: none; }

/* dialog 铺满整个视口，卡片在中间居中。
   这样点卡片外面任意位置，event.target 就是 dialog 自己 = 点了遮罩。 */
.cmodal {
  width: 100vw; max-width: 100vw;
  height: 100vh; max-height: 100vh;
  margin: 0; padding: 0; border: 0;
  background: transparent; color: inherit;
  display: grid; place-items: center;
  overflow: hidden;
}
/* 设了 display:grid 会盖掉 UA 的 dialog:not([open]){display:none}，必须写回来 */
.cmodal:not([open]) { display: none; }
/* 焦点落在 dialog 容器上时不画环（容器本身不是可操作元素，画环只会干扰） */
.cmodal:focus { outline: none; }

/* 遮罩：深蓝灰而不是纯黑（纯黑会把整页压成"关机"感），
   模糊半径压到 6px —— 再大背后就糊成一片色块，看不出是把页面压暗了 */
.cmodal::backdrop {
  background: rgba(15, 15, 20, .42);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  animation: cmodalBackdropIn 280ms cubic-bezier(.16, 1, .3, 1) both;
}
@keyframes cmodalBackdropIn {
  from { opacity: 0; -webkit-backdrop-filter: blur(0); backdrop-filter: blur(0); }
  to   { opacity: 1; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
}

/* 尺寸与入场照抄 freefrontend 的 [popover] 规则（实测 main.css）：
     width  min(96vw, 1400px)   ← 原来只有 720px，装不下长详情
     圆角   28px（--r-xl）       ← 原来 18
     边框   1px 实线             ← 原来没有
     阴影   0 24px 48px -12px rgba(15,15,20,.14)
     入场   scale(.94) translateY(8px) blur(6px) → scale(1) translateY(0) blur(0)
            320/420/320ms，cubic-bezier(.16,1,.3,1) */

.cmodal-card {
  display: flex; flex-direction: column;
  width: min(96vw, 1400px);
  /* 严格照 freefrontend 用固定 height（不是 max-height）：
     弹窗尺寸不随内容多少变化，长详情有确定的阅读高度，
     短详情底部留白 —— 这正是参考站 popover 的样子。 */
  height: min(92vh, 900px);
  background: #fff;
  border: 1px solid #e7e7ea;
  border-radius: 28px;
  box-shadow: 0 24px 48px -12px rgba(15, 15, 20, .14),
              0 8px 20px -12px rgba(15, 15, 20, .08);
  overflow: hidden;
  opacity: 0;
  transform: scale(.94) translateY(8px);
  transition: opacity 320ms cubic-bezier(.16, 1, .3, 1),
              transform 420ms cubic-bezier(.16, 1, .3, 1);
}
.cmodal.is-open .cmodal-card {
  opacity: 1; transform: scale(1) translateY(0);
}
/* 注：freefrontend 原版入场还给卡片本身加了 filter: blur(6px)→blur(0)。
   这里没跟——filter 会创建合成层且常驻，17px 的中文正文会明显发虚；
   而过渡结束再去掉 filter 又依赖 JS 定时器，实测不可靠。
   模糊改由 ::backdrop 承担（backdrop 里没有文字，不会有发虚问题），
   卡片侧只留 scale + translate，观感差别很小。 */

/* ---------- 顶部操作条 ----------
   照 freefrontend 的 popover：没有独立 head、没有 foot，只有一条顶栏 + 满幅正文。
   原来 head 110px + foot 96px 吃掉 200px，900 高的弹窗正文只剩 700。
   现在顶栏 68px（标题 + 主按钮 + 关闭），正文拿走剩下的 832。 */
.cmodal-bar {
  flex: none;
  display: flex; align-items: center; gap: 14px;
  padding: 14px 24px;
  border-bottom: 1px solid #f0f1f3;
}
.cmodal-mark { flex: none; }
.cmodal-mark:empty { display: none; }
/* 客户标识：整块复用卡片上的 .case-logo（可能是 img，也可能是首字色块），压到 40px */
.cmodal-mark .case-logo {
  width: 40px; height: 40px; border-radius: 10px;
  font-size: 15px; letter-spacing: 0;
}
.cmodal-mark .case-logo > img { height: 26px; }
.cmodal-heading { flex: 0 1 auto; min-width: 0; }
.cmodal-eyebrow {
  font-size: 12px; line-height: 16px; font-weight: 500;
  letter-spacing: .02em; color: #86909c;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.cmodal-title {
  margin: 2px 0 0;
  font-size: 18px; line-height: 26px; font-weight: 700;
  letter-spacing: -.01em; color: #191919;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.cmodal-actions {
  flex: none; margin-left: auto;
  display: flex; align-items: center; gap: 10px;
}
/* 顶栏主按钮：品牌红胶囊，与卡片上的 sol-btn-line 同高（40），只是实心 */
.cmodal-actions .btn-primary {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 40px; padding: 0 20px; border-radius: 40px;
  background: var(--brand); color: #fff;
  font-size: 14px; font-weight: 500; line-height: 1;
  text-decoration: none; white-space: nowrap;
  transition: background .24s cubic-bezier(.32, .72, 0, 1), transform .14s ease;
}
.cmodal-actions .btn-primary svg { display: block; transition: transform .2s ease; }
@media (hover: hover) {
  .cmodal-actions .btn-primary:hover { background: var(--brand-hover); transform: translateY(-1px); }
  .cmodal-actions .btn-primary:hover svg { transform: translateX(2px); }
}
.cmodal-actions .btn-primary:active { transform: translateY(0); }
.cmodal-actions .btn-primary:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; }
.cmodal-actions .locked {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; color: #86909c;
}

/* 关闭按钮：顶栏里最后一个，圆形浅灰底，hover 转深并旋转 90° */
.cmodal-x {
  flex: none;
  width: 38px; height: 38px;
  display: grid; place-items: center;
  border: 0; border-radius: 50%;
  background: #f4f5f7; color: #6b7280;
  cursor: pointer;
  transition: background .18s, color .18s, transform .18s;
}
.cmodal-x:hover { background: #eceef1; color: #191919; transform: rotate(90deg); }
.cmodal-x:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.cmodal-x svg { display: block; width: 16px; height: 16px; }

/* ---------- 正文：独享剩余高度 ---------- */
.cmodal-body {
  flex: 1 1 auto; min-height: 0;
  overflow-y: auto; overscroll-behavior: contain;
  padding: 32px max(56px, calc((100% - 1180px) / 2)) 40px;
  font-size: 17px; line-height: 32px; color: #4e5969;
  scrollbar-width: thin;
  scrollbar-color: #d6d9de transparent;
}
.cmodal-body::-webkit-scrollbar { width: 8px; }
.cmodal-body::-webkit-scrollbar-thumb {
  background: #d6d9de; border-radius: 8px; border: 2px solid #fff;
}
.cmodal-body::-webkit-scrollbar-thumb:hover { background: #c2c6cc; }
.cmodal-body > :first-child { margin-top: 0; }
.cmodal-body p { margin: 0 0 18px; }
.cmodal-body p:last-child { margin-bottom: 0; }
.cmodal-body strong { font-weight: 700; color: #191919; }
.cmodal-body h3 { margin: 34px 0 14px; font-size: 21px; line-height: 30px; font-weight: 700; color: #191919; }
.cmodal-body h4 { margin: 28px 0 12px; font-size: 18px; line-height: 28px; font-weight: 700; color: #191919; }
.cmodal-body ul, .cmodal-body ol { margin: 0 0 18px; padding-left: 26px; }
/* list-style 必须显式写回来：Tailwind preflight 把 ul/ol 的标记清成了 none */
.cmodal-body ul { list-style: disc; }
.cmodal-body ol { list-style: decimal; }
.cmodal-body li { margin: 0 0 9px; }
.cmodal-body li::marker { color: #86909c; }
.cmodal-body a { color: var(--brand); text-decoration: underline; text-underline-offset: 3px; }
/* 详情正文里的配图：模版从后台富文本原样输出，图宽由编辑者决定，
   这里统一压到内容宽以内，高度按比例走（否则 2000px 的原图会撑出横向滚动）。
   圆角与卡片一致（16），上下留白比段间距略大，读图时不会贴住上下段落。 */
.cmodal-body img {
  display: block; max-width: 100%; height: auto;
  margin: 26px 0; border-radius: 16px; background: #f5f6f8;
}

@media (max-width: 900px) {
  .cmodal-card {
    width: 100vw; max-width: 100vw;
    height: 100dvh; max-height: 100dvh;
    border: 0;
    border-radius: 0;
  }
  .cmodal-bar { padding: 12px 16px; gap: 10px; }
  .cmodal-mark .case-logo { width: 34px; height: 34px; border-radius: 9px; font-size: 13px; }
  .cmodal-mark .case-logo > img { height: 22px; }
  .cmodal-eyebrow { font-size: 11px; line-height: 15px; }
  .cmodal-title { font-size: 15px; line-height: 22px; }
  /* 窄屏保留文字，只把按钮压小。之前试过「只留箭头图标」——
     结果是一个没有语义的红圆，用户根本不知道点了会跳走。 */
  .cmodal-actions .btn-primary { height: 34px; padding: 0 13px; font-size: 12.5px; gap: 4px; }
  .cmodal-actions .btn-primary svg { width: 13px; height: 13px; }
  .cmodal-x { width: 34px; height: 34px; }
  .cmodal-body {
    padding: 20px 18px calc(24px + env(safe-area-inset-bottom));
    font-size: 15.5px; line-height: 29px;
  }
  .cmodal-body h3 { margin: 26px 0 10px; font-size: 18px; line-height: 27px; }
  .cmodal-body h4 { margin: 22px 0 9px; font-size: 16.5px; line-height: 25px; }
}

body.is-modal-open { overflow: hidden; }

/* 移动端：freefrontend 在窄屏直接把 popover 铺成 100vw×100vh、圆角归零。
   大弹窗在 375px 宽上留 12px 边距反而更挤，全屏才装得下长详情。 */

@media (prefers-reduced-motion: reduce) {
  .cmodal-card { transition: none; }
  .cmodal-x { transition: background .18s, color .18s; }
}

/* 空状态 */
.case-empty {
  margin-top: 24px; padding: 64px 0; text-align: center;
  font-size: 16px; color: #595959; background: #fff; border-radius: 16px;
}
.case-empty[hidden] { display: none; }

/* ---------- 5. 分页（1:1 还原华为云 .por-pagination） ----------
   总条数：14px #191919 行高 32、右边距 16px；
   页码按钮：32×32、padding 0 8px、圆角 20px、默认无底色、hover/当前页 rgba(0,0,0,.05)
   且当前页加粗 700；禁用箭头 #c2c2c2；
   跳转：输入框 40×32 圆角「左 6」，按钮 40×32 圆角「右 6」、-1px 贴合。 */
/* ⚠️ margin-top 同样会被 .case-section .container-hw > * + * 清 0，
   分页与上方卡片网格的间距必须用三级选择器写（10-21 加：网格 gap 16，这里给 28）。 */
.case-pager { display: flex; align-items: center; flex-wrap: wrap; margin-top: 28px; }
.case-section .container-hw > .case-pager { margin-top: 28px; }
.case-pager-total { margin-right: 16px; font-size: 14px; line-height: 32px; color: #191919; }
.case-pager-list { display: flex; align-items: center; margin: 0; padding: 0; list-style: none; }
.case-pager-item + .case-pager-item { margin-left: 4px; }
.case-pager-list button {
  display: block; box-sizing: border-box;
  min-width: 32px; height: 32px; padding: 0 8px; margin: 0;
  font-size: 14px; line-height: 32px; color: #191919; text-align: center;
  background: transparent; border: 0; border-radius: 20px;
  cursor: pointer; transition: background .2s, color .2s;
}
.case-pager-list button:hover:not(:disabled) { background: rgba(0, 0, 0, .05); }
.case-pager-item.active button { font-weight: 700; background: rgba(0, 0, 0, .05); }
.case-pager-item.disabled button { color: #c2c2c2; cursor: default; background: transparent; }
/* 箭头按钮只放图标 */
.case-pager-item button svg { display: block; width: 16px; height: 16px; margin: 8px auto; }
.case-pager-gap { min-width: 32px; height: 32px; line-height: 32px; text-align: center; color: #595959; }

.case-pager-jump { display: flex; align-items: center; margin-left: 12px; }
.case-pager-jump input {
  box-sizing: border-box; width: 40px; height: 32px; padding: 1px 2px;
  font-size: 14px; line-height: 30px; text-align: center; color: #191919;
  background: #fff; border: 1px solid #c2c2c2;
  border-radius: 6px 0 0 6px; outline: none;
  -webkit-appearance: none; appearance: none;
}
.case-pager-jump input::-webkit-outer-spin-button,
.case-pager-jump input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.case-pager-jump button {
  box-sizing: border-box; width: 40px; height: 32px; padding: 0 4px;
  font-size: 14px; line-height: 30px; color: #191919;
  background: #fff; border: 1px solid #c2c2c2;
  border-radius: 0 6px 6px 0; margin-left: -1px; cursor: pointer;
}
.case-pager-jump button:hover { color: var(--brand); border-color: var(--brand); }

/* ---------- 6. 响应式 ---------- */
@media (max-width: 1280px) {
  .case-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .case-card { padding: 28px; }
}
@media (max-width: 768px) {
  .case-section { padding: 32px 0; }
  .case-filter { padding: 20px 16px 16px; }
  .case-filter-row { flex-direction: column; gap: 4px; }
  .case-filter-label { width: auto; line-height: 24px; padding-top: 0; }
  .case-filter-tags { gap: 8px 16px; }
  .case-cb { min-height: 40px; }   /* 移动端点击区域放大到 40px */
  .case-filter-foot { text-align: left; }
  .case-clear { padding-left: 0; }
  .sol-banner-btns { margin-top: 24px; }
  /* ⚠️ 必须写 minmax(0, 1fr)：单列时用裸 1fr（= minmax(auto, 1fr)）列宽会被内容的
     min-content 撑开。10-21 把获奖项目置顶后，首屏出现了「thatsbooks-تلك الكتب」这类
     不可断行的阿文/英文长串标题，min-content 达 386px > 容器 358px，390 档横向溢出 12px。
     写成 minmax(0, 1fr) 后列宽锁死为容器宽，标题由 .case-card-head{min-width:0}
     + 标题 ellipsis 正常截断。 */
  .case-grid { grid-template-columns: minmax(0, 1fr); }
  .case-card { min-height: 0; min-width: 0; padding: 20px 16px; }
  /* 手机端 padding-top 只剩 20px，26px 的角标会压住标题第一行 → 带角标的卡单独让出位置
     （min-height:0，所以只影响这一张卡的高度，不会牵连整行） */
  .case-card.has-badge { padding-top: 36px; }
  .case-free-tag { height: 24px; padding: 0 12px 0 16px; font-size: 11px; line-height: 24px; }
  .case-logo { width: 56px; height: 56px; font-size: 20px; }
  .case-card-title { font-size: 18px; line-height: 26px; }
  /* .case-card-desc 不再在这里覆盖：基础值就是 14px/22px/4 行。
     原先这条 clamp:3 会在手机端把行数压回 3 行，与「显示 4 行」的要求冲突。 */
  .case-pager-total { margin-right: 8px; }
  /* 排序条在窄屏要换行：整条 358px 装不下「条数 + 3 个排序项（约 245px）」，
     390 档实测溢出 17px。允许换行 + 收窄项内边距即可装下。 */
  .case-sortbar { flex-wrap: wrap; gap: 8px 12px; margin-bottom: 16px; }
  .case-section .container-hw > .case-sortbar { margin-top: 20px; }
  .case-sort-group { flex-wrap: wrap; }
  .case-sort-item { padding: 0 10px; }
  .case-sort-item:first-child { padding-left: 0; }
}

/* ---------- 7. 品牌 logo 与联系方式（接入公司官网 logo + 真实联系方式） ---------- */

/* 页头 logo：甲方官网原图 190×25（透明底），按 32px 高显示 ≈ 243px 宽。
   原站只有这一张 1x 图（logo@2x.png / logo.svg 均 404），32px 是 1.28 倍上采样，
   实测边缘仍清晰；不要再放大到 36px 以上，否则笔画会发虚、并把导航往外挤。 */
.site-logo { display: flex; align-items: center; flex-shrink: 0; }
.site-logo img { display: block; height: 32px; width: auto; max-width: 100%; }

/* 页脚 logo：同一张图。深色底（#1d2129）上「橙色 DOC + 深灰中文」里中文几乎不可见，
   用 brightness(0) invert(1) 压成纯白剪影 —— 形状保留、对比度足够（华为云等站也这么做）。 */
.footer-logo { display: block; height: 28px; width: auto; filter: brightness(0) invert(1); opacity: .9; }

/* 页脚联系方式：图标 + 文字逐行排列。
   svg 必须 flex:0 0 auto —— 长地址换行时若不锁宽，图标会被压成细条。 */
.footer-contact { margin-top: 16px; display: flex; flex-direction: column; gap: 8px; font-size: 13px; }
.footer-contact li,
.footer-contact a { display: flex; align-items: flex-start; gap: 8px; line-height: 22px; color: inherit; }
.footer-contact svg { flex: 0 0 auto; width: 15px; height: 15px; margin-top: 3.5px; opacity: .7; }
.footer-contact a:hover { color: #fff; }
.footer-contact a:hover svg { opacity: 1; }

/* 顶部工具条里的 QQ / 电话（可点击：QQ 拉起会话、电话唤起拨号） */
.topbar-contact { display: inline-flex; align-items: center; gap: 6px; }
.topbar-contact svg { flex: 0 0 auto; width: 15px; height: 15px; }
.topbar-contact:hover { color: var(--brand); }

/* 联系页「5 个渠道」卡片：≥1440 五列；其余断点见下方媒体查询。
   不用 Tailwind 的 grid-cols-5 —— 本地 tailwind.js 是裁剪过的构建，没有这个类。 */
/* auto-fit 而不是固定 5 列：联系卡片的后台可以「隐藏」（visible=0），
   固定 5 列时藏掉一张，右侧会空出一整列、四张卡挤在左边。
   auto-fit 会按实际张数铺满，加回第 5 张也自动变回五列。 */
.contact-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.contact-link { color: inherit; transition: color .2s; }
.contact-link:hover { color: var(--brand); }

/* 窄一档就把 logo 收小：页头右侧还有导航 + 搜索 + 按钮，logo 占宽 243px 会挤 */
@media (max-width: 1440px) { .site-logo img { height: 30px; } }
@media (max-width: 1280px) { .site-logo img { height: 28px; } }
/* ≤1200 先砍搜索框（约 190px）：6 个导航项 × 96px = 576px，留搜索框时 1024 档每项只剩 62px，
   「产品中心」会被挤成竖排三行。华为云在 ≤1440 就直接隐藏了搜索框，这里按本站导航长度取 1200。 */
@media (max-width: 1200px) { .hw-search { display: none; } }
/* ≤1024 再把 logo 收到 24px、导航左右内边距 18→12、字号 15→14：
   实测 1024 档导航可用宽 586px、6 项各 80px，正好一行放得下（不再折行）。 */
@media (max-width: 1024px) {
  .site-logo img { height: 24px; }
  .nav-link { padding: 0 12px; font-size: 14px; }
}
/* 1439 以下同样用 auto-fit：1280 这类笔电能塞下 4 列，就不必退回 3 列留一个孤儿卡 */
@media (max-width: 1439px) { .contact-grid { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); } }
@media (max-width: 767px) {
  .contact-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .site-logo img { height: 26px; }
}
@media (max-width: 479px) { .contact-grid { grid-template-columns: 1fr; } }
.footer-legal { display: flex; flex-wrap: wrap; gap: 0 12px; }

/* ==================== 联系页：公司位置地图 ====================
   容器高度沿用原来那张占位图的 360px，改版前后卡片高度不变。
   占位图是「兜底层」：断网 / key 域名未加白名单 / SDK 被拦时保留它，
   不给用户一块空白。地图瓦片出来后才撤（见 main.js 的 initContactMap）。
   ---------------------------------------------------------------- */
.contact-map {
  position: relative;
  width: 100%;
  height: 360px;
  margin-top: 12px;
  border-radius: 12px;
  overflow: hidden;
  background: #eef0f3;
  /* 高德会把 .amap-container 插进来并绝对定位，这里给它一个层叠上下文起点 */
  isolation: isolate;
}
.contact-map-fallback {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.contact-map-fallback img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
/* 容器类名跟版本走：v1.3 是 .amap-maps，v2.x 才是 .amap-container。
   两个都写上，将来升到 2.0 不用回来改这一行。 */
.contact-map .amap-container,
.contact-map .amap-maps { position: relative; z-index: 1; }
/* 失败态：占位图压一层灰，让「这是降级状态」看得出来 */
.contact-map.is-failed .contact-map-fallback::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, .35);
}
.contact-map-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  color: var(--ink-3);
}
.contact-map-status:empty { display: none; }
.contact-map-foot a { color: var(--brand); text-decoration: none; }
.contact-map-foot a:hover { text-decoration: underline; }

/* 自定义定位针：内联 SVG，不依赖高德那张老雪碧图。
   针尖落在坐标点上（Marker 的 offset 是 -16/-44），所以这里不能再加位移。 */
.contact-map-pin {
  width: 32px;
  height: 44px;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, .28));
  transition: transform .2s;
  transform-origin: 50% 100%;
  cursor: pointer;
}
.contact-map-pin:hover { transform: scale(1.06); }

/* 信息窗内容（高德默认 InfoWindow 外壳，里面这层归我们） */
/* 限宽是必须的：高德 InfoWindow 绝对定位，宽度不跟容器走。
   不限的话在 1024 档（容器 285px）信息窗会横出卡片被裁。 */
.contact-map-info { min-width: 170px; max-width: 210px; padding: 2px 2px 4px; }
.contact-map-info h5 {
  margin: 0;
  font-size: 14px; font-weight: 700; line-height: 22px; color: #191919;
}
.contact-map-info p {
  margin: 6px 0 0;
  font-size: 13px; line-height: 20px; color: #6f6f6f;
}

@media (max-width: 767px) {
  .contact-map { height: 300px; }
}
