@charset "utf-8";

/* =========================
手册页专属变量开始
========================= */
:root {
  --se-shouce-toutu-wen: #d0d1cd;   /* 头图正文灰 */
  --se-shouce-kuang: #deded9;       /* 手册卡描边 */
  --se-shouce-tudi: #080808;        /* 手册卡图区底色 */
  --se-shouce-biaoti: #17181a;      /* 手册卡标题黑 */
  --se-shouce-miaoshu: #6e7074;     /* 手册卡描述灰 */
}

/* 内容区已填满，取消 main.css 的占位最小高度；底部留白由手册列表自带 */
.zhuti-neirong { min-height: 0; }
.zhuti-buju { padding-bottom: 0; }
/* =========================
手册页专属变量结束
========================= */


/* =========================
手册页头图 Hero 开始
设计稿：容器 1555×359.19（内容 354.19 + 5px 黄色下沿），
       图 1180×434 右对齐、顶部上移 25px
========================= */
.shouce-toutu {
  position: relative;
  min-height: 354px;
  overflow: hidden;
  background: var(--se-hei);
  border-bottom: 5px solid var(--se-huang);
}

.shouce-toutu-tu {
  position: absolute;
    right: 0;
    top: 0;
    width: 100%;
    height: auto;
    min-height: calc(100% + 25px);
    aspect-ratio: 1180 / 330;
    object-fit: cover;
	object-position: right center;
  transform: scale(1.03);
  transition: transform 1.2s cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* 载入后缓慢回正的推镜动效 */
.shouce-toutu-tu.shouce-toutu-tu--jiuwei { transform: scale(1); }

/* 左侧压暗，保证文字在图片上的可读性 */
.shouce-toutu::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    var(--se-hei) 0%,
    rgba(20, 21, 23, 0.92) 30%,
    rgba(20, 21, 23, 0) 62%
  );
  pointer-events: none;
}

.shouce-toutu-wenzi {
  position: relative;
  z-index: 1;
  max-width: 54%;             /* 839.7 / 1555 */
  padding: 64px 58px;
}

.shouce-toutu-biaoqian {
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 1.4px;
  color: var(--se-huang);
}

.shouce-toutu-biaoti {
  padding-top: 18px;
  font-size: 58px;
  font-weight: 700;
  line-height: 55.1px;
  letter-spacing: -3.19px;
  color: var(--se-bai);
}

.shouce-toutu-biaoti-qiangdiao {
  font-style: normal;
  color: var(--se-huang);
}

.shouce-toutu-miaoshu {
  max-width: 580px;
  padding-top: 18px;
  font-size: 15px;
  line-height: 25.5px;
  color: var(--se-shouce-toutu-wen);
}
/* =========================
手册页头图 Hero 结束
========================= */


/* =========================
手册列表标题行开始
========================= */
.shouce-liebiao { padding-bottom: 88px; }

.shouce-liebiao-toubu {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-top: 43px;
  padding-bottom: 13px;
  border-bottom: 3px solid var(--se-hei);
}

.shouce-liebiao-biaoti {
  font-size: 30px;
  /* 30px 标题继承 body 的 1.5 会多占 10px，设计稿为 leading-normal */
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -1.2px;
  color: var(--se-hei);
}
/* =========================
手册列表标题行结束
========================= */


/* =========================
手册卡网格开始
设计稿：4 列，列间距 22px、行间距 20px，距标题行 22px
========================= */
.shouce-liebiao-wangge {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  column-gap: 22px;
  row-gap: 20px;
  margin-top: 22px;
}
/* =========================
手册卡网格结束
========================= */


/* =========================
手册卡 Article 开始
设计稿：372.25×433，图区 251px + 24px 内容区
========================= */
.shouce-ka {
  display: flex;
  flex-direction: column;
  background: var(--se-bai);
  border: 1px solid var(--se-shouce-kuang);
  transition: transform var(--guodu), box-shadow var(--guodu), border-color var(--guodu);
}

/* --juejiao 为键盘聚焦态，由 catalogs.js 添加，与鼠标悬停表现一致 */
.shouce-ka:hover,
.shouce-ka.shouce-ka--juejiao {
  transform: translateY(-6px);
  border-color: var(--se-hei);
  box-shadow: 0 14px 28px rgba(20, 21, 23, 0.12);
}

/* --- 封面图区 --- */
.shouce-ka-tu {
  display: block;
  height: 251px;
  overflow: hidden;
  background: var(--se-shouce-tudi);
}

.shouce-ka-tu img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.shouce-ka:hover .shouce-ka-tu img,
.shouce-ka--juejiao .shouce-ka-tu img { transform: scale(1.06); }

/* --- 卡片文字区 --- */
.shouce-ka-neirong {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  flex: 1 1 auto;             /* 文案长短不一时，按钮仍与其他卡片底部对齐 */
  padding: 24px;
}

.shouce-ka-biaoti {
  font-size: 22px;
  /* 22px 标题必须显式写行高，继承 body 的 1.5 会撑高卡片 7px */
  line-height: 1.2;
  font-weight: 700;
  color: var(--se-shouce-biaoti);
  transition: color var(--guodu);
}

.shouce-ka:hover .shouce-ka-biaoti,
.shouce-ka--juejiao .shouce-ka-biaoti { color: var(--se-hei); }

.shouce-ka-miaoshu {
  max-width: 307px;
  margin: 12px 0;
  font-size: 12px;
  line-height: 19.2px;
  color: var(--se-shouce-miaoshu);
}

/* --- REQUEST PDF 按钮 --- */
.shouce-ka-anniu {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
  height: 44px;
  padding: 0 19px;
  background: var(--se-hei);
  color: var(--se-bai);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 1.1px;
  text-transform: uppercase;
  white-space: nowrap;
  transition: background var(--guodu), color var(--guodu);
}

/* 设计稿第 1 行第 2 张卡的按钮为黄底黑字，判断为 hover 态示意 */
.shouce-ka-anniu:hover,
.shouce-ka-anniu:focus-visible {
  background: var(--se-huang);
  color: var(--se-hei);
}

.shouce-ka-anniu-jiantou { transition: transform var(--guodu); }

.shouce-ka-anniu:hover .shouce-ka-anniu-jiantou,
.shouce-ka-anniu:focus-visible .shouce-ka-anniu-jiantou { transform: translateX(4px); }
/* =========================
手册卡 Article 结束
========================= */


/* =========================
手册页响应式开始
========================= */

/* 头图标题在 1440 以下收一档，避免单行标题贴住图片主体 */
@media (max-width: 1440px) {
  .shouce-toutu-biaoti {
    font-size: 50px;
    line-height: 48px;
    letter-spacing: -2.6px;
  }
}

/* 1201–1280：侧栏仍是 280px，4 列会把卡片压到 220px 以下，标题换行且封面失真 */
@media (max-width: 1280px) {
  .shouce-liebiao-wangge { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 1200px) {
  .shouce-toutu { min-height: 320px; }

  .shouce-toutu-wenzi {
    max-width: 62%;
    padding: 52px 44px;
  }

  .shouce-toutu-biaoti {
    font-size: 44px;
    line-height: 44px;
    letter-spacing: -2px;
  }

  .shouce-liebiao-biaoti { font-size: 26px; letter-spacing: -1px; }

  .shouce-ka-tu { height: 226px; }
}

/* 侧栏已移到内容上方，头图图片改为满幅铺底，遮罩加强保证文字可读 */
@media (max-width: 992px) {
  .shouce-toutu-tu {
    width: 100%;
    min-height: calc(100% + 25px);
  }

  .shouce-toutu-wenzi { max-width: 100%; }

  .shouce-toutu::after {
    background: linear-gradient(
      90deg,
      var(--se-hei) 0%,
      rgba(20, 21, 23, 0.9) 45%,
      rgba(20, 21, 23, 0.45) 100%
    );
  }
}

@media (max-width: 768px) {
  .shouce-toutu { min-height: 280px; }

  .shouce-toutu-wenzi { padding: 40px 24px; }

  .shouce-toutu-biaoti {
    font-size: 34px;
    line-height: 36px;
    letter-spacing: -1.4px;
  }

  .shouce-toutu-miaoshu { font-size: 14px; line-height: 23px; }

  .shouce-liebiao { padding-bottom: 56px; }

  .shouce-liebiao-toubu { margin-top: 32px; }

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

  .shouce-ka-neirong { padding: 18px; }

  .shouce-ka-biaoti { font-size: 19px; }
}

@media (max-width: 560px) {
  .shouce-toutu-biaoti { font-size: 28px; line-height: 30px; }

  .shouce-liebiao-biaoti { font-size: 22px; }

  .shouce-liebiao-wangge { grid-template-columns: minmax(0, 1fr); }

  /* 单列时卡片变宽，封面改用设计稿比例，避免固定高度把封面裁得只剩中段 */
  .shouce-ka-tu {
    height: auto;
    aspect-ratio: 3 / 2;
  }
}
/* =========================
手册页响应式结束
========================= */
