@font-face {
  font-family: "Company Sans SC";
  src: url("../fonts/company-sans-sc.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Company Sans SC";
  src: url("../fonts/company-sans-sc-bold.woff2") format("woff2");
  font-style: normal;
  font-weight: 700 900;
  font-display: swap;
}

:root {
  --catalog-blue: #000000;
  --catalog-ink: #000000;
  --catalog-muted: #6c7b91;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  color: var(--catalog-ink);
  background: #fcfdff;
  font-family: "Company Sans SC", "Microsoft YaHei", "PingFang SC", sans-serif;
  -webkit-font-smoothing: antialiased;
}
button, input { font: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
[hidden] { display: none !important; }
.site-header { font-family: "Microsoft YaHei", "PingFang SC", "Noto Sans SC", Arial, sans-serif; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
:focus-visible { outline: 2px solid var(--catalog-blue); outline-offset: 3px; }

.products-page-main {
  padding-top: var(--header-height);
  /* 全站深色主题把 main 强制设成灰底白字；产品卡片使用浅色排版。 */
  color: var(--catalog-ink) !important;
  background: #fcfdff !important;
}

.catalog-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  align-items: center;
  min-height: 168px;
  background: #f2f2f2;
}
.catalog-hero::before,
.catalog-hero::after {
  position: absolute;
  content: "";
  pointer-events: none;
}
.catalog-hero::before {
  z-index: -2;
  inset: -28px;
  background: var(--catalog-hero-bg, url("../imga/4e10a700-38f9-4862-88f0-285cf9714d1f.png")) center / cover no-repeat;
  filter: blur(18px);
  opacity: .34;
  transform: scale(1.05);
}
.catalog-hero::after {
  z-index: -1;
  inset: 0;
  background:
    linear-gradient(90deg, rgb(255 255 255 / 96%) 0%, rgb(255 255 255 / 72%) 31%, rgb(255 255 255 / 8%) 78%),
    var(--catalog-hero-bg, url("../imga/4e10a700-38f9-4862-88f0-285cf9714d1f.png")) center / cover no-repeat;
}
.catalog-hero-content {
  position: relative;
  z-index: 1;
  width: min(1440px, calc(100% - 140px));
  margin: 0 auto;
}
.catalog-kicker {
  margin: 0 0 4px;
  color: #7c8ba0;
  font: 700 16px/1.1 Arial, sans-serif;
}
.catalog-hero h1 {
  margin: 0;
  font-size: clamp(34px, 4vw, 43px);
  font-weight: 900;
  line-height: 1.25;
  letter-spacing: 1px;
}
.catalog-hero h1 span { color: var(--catalog-blue); }
.catalog-hero-content > p:last-child {
  margin: 7px 0 0;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.6;
}

.catalog-layout {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
  gap: 26px;
  width: min(1440px, calc(100% - 80px));
  margin: 0 auto;
  padding: 6px 0 52px;
}
.catalog-sidebar {
  align-self: start;
  min-width: 0;
}
.category-list {
  overflow: hidden;
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 5px 16px rgb(29 70 129 / 9%);
}
.category-button {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 37px;
  padding: 6px 14px;
  border: 0;
  border-bottom: 1px solid #f1f3f7;
  color: #56657c;
  background: #fff;
  text-align: left;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  transition: background .2s, color .2s;
}
.category-button:last-child { border-bottom: 0; }
.category-button:hover { color: var(--catalog-blue); background: #f1f6ff; }
.category-button.is-active,
.category-button.is-active:hover { color: #fff; background: var(--catalog-blue); }
.category-button svg {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}
.category-button img {
  display: block;
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  object-fit: contain;
}
.category-arrow {
  margin-left: auto;
  color: #91a1bb;
  font: 20px/1 Arial, sans-serif;
}
.is-active .category-arrow { color: #fff; }
.catalog-help {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 54px;
  margin-top: 36px;
  padding: 7px 8px;
  border-radius: 5px;
  background: #eaf3ff;
  transition: background .2s;
}
.catalog-help:hover { background: #d9eaff; }
.catalog-help img {
  width: 36px;
  height: 40px;
  flex: 0 0 36px;
  object-fit: cover;
  object-position: top;
  border-radius: 3px;
  background: #fff;
}
.catalog-help span:nth-child(2) { min-width: 0; }
.catalog-help strong { display: block; font-size: 11px; white-space: nowrap; }
.catalog-help small { display: block; margin-top: 3px; color: #687991; font-size: 9px; white-space: nowrap; }
.catalog-help-arrow { margin-left: auto; color: var(--catalog-blue); font: 18px/1 Arial, sans-serif; }

.catalog-content {
  min-width: 0;
  scroll-margin-top: calc(var(--header-height) + 16px);
}
.catalog-content-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 68px;
  margin-bottom: 1px;
}
.catalog-heading-copy h2 {
  margin: 0 0 5px;
  padding-left: 10px;
  border-left: 4px solid var(--catalog-blue);
  color: #14223b;
  font-size: 19px;
  line-height: 1;
}
.catalog-heading-copy p {
  margin: 0;
  color: #66758b;
  font-size: 12px;
  line-height: 1.5;
}
.catalog-search {
  display: flex;
  align-items: center;
  width: 254px;
  height: 31px;
  flex: 0 0 254px;
  border: 1px solid #e0e8f3;
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 2px 8px rgb(44 77 119 / 8%);
}
.catalog-search svg {
  width: 15px;
  height: 15px;
  flex: 0 0 15px;
  margin-left: 10px;
  fill: none;
  stroke: #8292aa;
  stroke-width: 2;
}
.catalog-search input {
  min-width: 0;
  height: 100%;
  flex: 1;
  padding: 0 7px;
  border: 0;
  outline: 0;
  color: var(--catalog-ink);
  background: transparent;
  font-size: 11px;
}
.catalog-search input::placeholder { color: #8491a4; }
.catalog-search button {
  height: 31px;
  min-width: 62px;
  margin: -1px -1px -1px 0;
  border: 0;
  border-radius: 5px;
  color: #fff;
  background: var(--catalog-blue);
  font-size: 11px;
  font-weight: 700;
}
.catalog-search button:hover { background: #0053c9; }
.catalog-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.catalog-card {
  display: flex;
  min-width: 0;
  min-height: 194px;
  flex-direction: column;
  padding: 8px 13px 11px;
  border: 1px solid #f0f3f8;
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 5px 13px rgb(30 73 130 / 7%);
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.catalog-card:hover {
  transform: translateY(-4px);
  border-color: #c8ddff;
  box-shadow: 0 12px 25px rgb(30 73 130 / 15%);
}
.catalog-photo {
  display: flex;
  align-items: center;
  justify-content: center;
  height: clamp(115px, 12.4vw, 170px);
  margin: 0 -6px 4px;
  overflow: hidden;
}
.catalog-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.catalog-photo img[src$=".jpg"] { transform: scale(1.24); }
.catalog-card-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 5px;
  margin-top: auto;
}
.catalog-card-bottom > div { min-width: 0; }
.catalog-card h3 {
  margin: 0 0 3px;
  color: var(--catalog-ink);
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}
.catalog-card p {
  overflow: hidden;
  margin: 0;
  color: #77849a;
  font-size: 10px;
  line-height: 1.5;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.catalog-empty {
  padding: 45px 20px;
  border-radius: 8px;
  color: var(--catalog-muted);
  background: #f1f6fc;
  text-align: center;
}
.catalog-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 28px;
  padding: 12px 0;
}
.pagination-summary {
  margin: 0;
  color: var(--catalog-muted);
  font-size: 12px;
  white-space: nowrap;
}
.pagination-controls,
.pagination-pages {
  display: flex;
  align-items: center;
  gap: 8px;
}
.catalog-pagination button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 34px;
  padding: 0 10px;
  border: 1px solid #dce6f5;
  border-radius: 5px;
  color: #52647f;
  background: #fff;
  font-size: 12px;
  font-weight: 700;
  box-shadow: 0 2px 8px rgb(29 70 129 / 5%);
  transition: border-color .2s, background .2s, color .2s;
}
.catalog-pagination button:hover:not(:disabled) {
  border-color: var(--catalog-blue);
  color: var(--catalog-blue);
}
.catalog-pagination button[aria-current="page"] {
  border-color: var(--catalog-blue);
  color: #fff;
  background: var(--catalog-blue);
}
.catalog-pagination button:disabled {
  opacity: .45;
  cursor: not-allowed;
}
.catalog-pagination .pagination-step {
  gap: 5px;
}
@media (max-width: 950px) {
  .catalog-layout { width: calc(100% - 40px); }
  .catalog-hero-content { width: calc(100% - 80px); }
  .catalog-layout { grid-template-columns: 150px minmax(0, 1fr); gap: 18px; }
  .catalog-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .catalog-content-heading { align-items: flex-start; flex-direction: column; padding: 10px 0 14px; }
}

@media (max-width: 650px) {
  .catalog-hero { min-height: 176px; }
  .catalog-hero::after {
    background:
      linear-gradient(90deg, rgb(255 255 255 / 94%) 0%, rgb(255 255 255 / 62%) 45%, rgb(255 255 255 / 8%) 100%),
      var(--catalog-hero-bg, url("../imga/4e10a700-38f9-4862-88f0-285cf9714d1f.png")) center / cover no-repeat;
  }
  .catalog-hero-content { width: calc(100% - 40px); }
  .catalog-kicker { font-size: 13px; }
  .catalog-hero h1 { font-size: 34px; }
  .catalog-hero-content > p:last-child { max-width: 310px; font-size: 11px; }
  .catalog-layout { display: block; width: calc(100% - 30px); padding-top: 14px; }
  .category-list {
    display: flex;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scrollbar-width: thin;
    box-shadow: none;
    background: transparent;
    gap: 7px;
  }
  .category-button {
    width: auto;
    min-width: max-content;
    min-height: 37px;
    padding: 7px 11px;
    border: 1px solid #e7edf5;
    border-radius: 5px;
    box-shadow: 0 2px 7px rgb(30 73 130 / 6%);
  }
  .category-arrow { display: none; }
  .catalog-help { display: none; }
  .catalog-content-heading { gap: 15px; padding: 23px 0 16px; }
  .catalog-heading-copy h2 { font-size: 20px; }
  .catalog-heading-copy p { font-size: 11px; }
  .catalog-search { width: 100%; height: 38px; flex-basis: 38px; }
  .catalog-search button { height: 38px; min-width: 70px; }
  .catalog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .catalog-card { min-height: 180px; padding: 7px 8px 10px; }
  .catalog-photo { height: clamp(105px, 29vw, 150px); margin: 0 -3px 6px; }
  .catalog-card h3 { font-size: 13px; }
  .catalog-card p { font-size: 9px; }
  .catalog-card-bottom > span { width: 19px; height: 19px; flex-basis: 19px; }
  .catalog-pagination {
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
  }
  .pagination-summary { width: 100%; text-align: center; }
}

/* ==========================================================================
   产品中心页：整体改为深色（黑底）
   本文件原是一套浅色排版：白底 #fcfdff、白卡片、深色文字，强调色 --catalog-blue
   为纯黑。这里统一翻成深色版：
   - 三个变量只在 .products-page-main 作用域内重定义，其它页面不受影响；
     --catalog-blue 由纯黑改为品牌橙，作为深色底上的强调色
     （标题高亮字、选中的分类、搜索按钮、当前页码等都自动跟着变）
   - 其余写死的白底 / 浅色边框逐个覆盖
   覆盖规则放在文件末尾，因此对上面 max-width 媒体查询里的同名规则同样生效。
   ========================================================================== */

.products-page-main {
  --catalog-blue: #ff6a00;
  --catalog-ink: #ffffff;
  --catalog-muted: rgba(255, 255, 255, 0.6);
  padding-top: 0;
  color: var(--catalog-ink) !important;
  background: #000 !important;
}

/* 首屏横幅：上移到导航栏背后，白色渐变改成深色渐变，标题让出导航栏高度 */
.products-page-main > .catalog-hero {
  margin-top: 0;
  padding-top: var(--header-height);
  height: 100vh;
  height: 100svh;
  min-height: 0;
  background: #000;
}

.catalog-hero::after {
  background:
    linear-gradient(
      90deg,
      rgba(0, 0, 0, 0.88) 0%,
      rgba(0, 0, 0, 0.7) 31%,
      rgba(0, 0, 0, 0.36) 78%,
      rgba(0, 0, 0, 0.52) 100%
    ),
    var(--catalog-hero-bg, url("../imga/4e10a700-38f9-4862-88f0-285cf9714d1f.png")) center / cover no-repeat;
}

.catalog-kicker {
  color: rgba(255, 255, 255, 0.62);
}

.catalog-hero-content > p:last-child {
  color: rgba(255, 255, 255, 0.78);
}

@media (max-width: 700px) {
  .products-page-main > .catalog-hero {
    align-items: flex-end;
    height: auto;
    min-height: calc(var(--header-height) + clamp(170px, 45vw, 260px));
    padding-top: var(--header-height);
  }

  .catalog-hero::before {
    display: none;
  }

  .catalog-hero::after {
    background:
      linear-gradient(180deg, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.24) var(--header-height), transparent calc(var(--header-height) + 50px)),
      linear-gradient(0deg, rgba(0, 0, 0, 0.78), transparent 65%),
      var(--catalog-hero-bg, url("../imga/4e10a700-38f9-4862-88f0-285cf9714d1f.png")) center / cover no-repeat;
  }

  .catalog-hero-content {
    width: 100%;
    margin: 0;
    padding: 16px 18px 12px;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.7);
  }

  .catalog-kicker {
    margin-bottom: 4px;
    color: #ff6a00;
    font: 700 11px/1.2 Arial, sans-serif;
  }

  .catalog-hero h1 {
    font-size: 28px;
    line-height: 1.2;
    letter-spacing: 0;
  }

  .catalog-hero-content > p:last-child {
    max-width: none;
    margin-top: 6px;
    color: #fff;
    font-size: 12px;
    line-height: 1.4;
  }
}

@media (max-width: 360px) {
  .catalog-hero-content {
    padding: 12px 14px 10px;
  }

  .catalog-hero h1 {
    font-size: 26px;
  }

  .catalog-hero-content > p:last-child {
    font-size: 11px;
  }
}

/* 左侧分类栏 */
.category-list {
  background: #141414;
  box-shadow: none;
}

.category-button {
  border-color: rgba(255, 255, 255, 0.12);
  border-bottom-color: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.78);
  background: #141414;
  box-shadow: none;
}

.category-button:hover {
  color: #fff;
  background: #242424;
}

.category-button.is-active,
.category-button.is-active:hover {
  color: #fff;
  background: var(--catalog-blue);
}

.category-arrow {
  color: rgba(255, 255, 255, 0.45);
}

.catalog-help {
  background: #1b1b1b;
}

.catalog-help:hover {
  background: #262626;
}

.catalog-help small {
  color: rgba(255, 255, 255, 0.55);
}

/* 右侧标题与搜索框 */
.catalog-heading-copy h2 {
  color: #fff;
}

.catalog-heading-copy p {
  color: rgba(255, 255, 255, 0.62);
}

.catalog-search {
  border-color: rgba(255, 255, 255, 0.16);
  background: #141414;
  box-shadow: none;
}

.catalog-search svg {
  stroke: rgba(255, 255, 255, 0.55);
}

.catalog-search input {
  color: #fff;
}

.catalog-search input::placeholder {
  color: rgba(255, 255, 255, 0.45);
}

.catalog-search button:hover {
  background: #ff8226;
}

/* 产品卡片 */
.catalog-card {
  border-color: rgba(255, 255, 255, 0.1);
  background: #141414;
  box-shadow: none;
}

.catalog-card:hover {
  border-color: var(--catalog-blue);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.55);
}

.catalog-card h3 {
  color: #fff;
}

.catalog-card p {
  color: rgba(255, 255, 255, 0.6);
}

.catalog-empty {
  color: rgba(255, 255, 255, 0.6);
  background: #141414;
}

/* 分页 */
.pagination-summary {
  color: rgba(255, 255, 255, 0.6);
}

.catalog-pagination button {
  border-color: rgba(255, 255, 255, 0.16);
  color: rgba(255, 255, 255, 0.8);
  background: #141414;
  box-shadow: none;
}

.catalog-pagination button:hover:not(:disabled) {
  border-color: var(--catalog-blue);
  color: var(--catalog-blue);
}

.catalog-pagination button[aria-current="page"] {
  border-color: var(--catalog-blue);
  color: #fff;
  background: var(--catalog-blue);
}

/* ==========================================================================
   产品中心页：背景图 02-2.jpg 铺在「全部产品」这一行，左右通栏不留黑边
   范围 = .catalog-layout 所在这一行（左侧分类栏 + 右侧全部产品），
   不含顶部「产品中心」横幅 —— 横幅保留它自己那张压暗的矿山图与深色渐变。

   原来的 .catalog-layout 是 min(1440px, 100%-80px) 居中，左右会各留 40px 黑边。
   这里把容器本身改成铺满整行（width:auto + margin 0），再用左右内边距把内容
   推回原来的位置：
     padding-inline = max(40px, (容器宽 - 1440px) / 2)
   这样内容宽度、位置与原来完全一致，背景却能一直铺到屏幕两侧。

   黑色蒙版用 85%，与首页「产品中心」模块一致：图片只作底纹、若隐若现，
   整个区块仍读作深色，白字与深色卡片都能压得住。
   ========================================================================== */

.products-page-main .catalog-layout {
  width: auto;
  margin-inline: 0;
  padding: 22px max(40px, calc((100% - 1440px) / 2)) 52px;
  background:
    linear-gradient(rgba(0, 0, 0, 0.85), rgba(0, 0, 0, 0.85)),
    url("../imga/02-2.jpg") center / cover no-repeat;
}

/* 窄屏沿用原来的左右 20px 内边距 */
@media (max-width: 950px) {
  .products-page-main .catalog-layout {
    padding-inline: 20px;
  }
}

/* ==========================================================================
   「全部产品」模块整体放大一档（只作用于 951px 以上，窄屏保持原紧凑布局）
   内容最大宽度 1440 -> 1700、左侧分类栏 160 -> 190、卡片与图片同步加高，
   标题字号也跟着放大，避免"模块看起来太小、留白偏多"。
   ========================================================================== */

@media (min-width: 951px) {
  .products-page-main .catalog-layout {
    grid-template-columns: 190px minmax(0, 1fr);
    gap: 30px;
    padding-inline: max(24px, calc((100% - 1700px) / 2));
  }

  .products-page-main .catalog-grid {
    gap: 16px;
  }

  .products-page-main .catalog-card {
    min-height: 236px;
    padding: 10px 16px 14px;
  }

  .products-page-main .catalog-photo {
    height: clamp(132px, 13.4vw, 200px);
  }

  .products-page-main .catalog-card h3 {
    font-size: 15px;
  }

  .products-page-main .catalog-card p {
    font-size: 11px;
  }

  .products-page-main .catalog-content-heading {
    min-height: 78px;
    margin-bottom: 4px;
  }

  .products-page-main .catalog-heading-copy h2 {
    font-size: 22px;
  }

  .products-page-main .catalog-heading-copy p {
    font-size: 13px;
  }

  .products-page-main .category-button {
    min-height: 42px;
    padding: 7px 16px;
    font-size: 13px;
  }

  .products-page-main .category-button svg,
  .products-page-main .category-button img {
    width: 18px;
    height: 18px;
    flex-basis: 18px;
  }

  .products-page-main .catalog-search {
    width: 290px;
    height: 36px;
    flex-basis: 290px;
  }

  .products-page-main .catalog-search button {
    height: 36px;
    min-width: 72px;
    font-size: 12px;
  }

  .products-page-main .catalog-search input {
    font-size: 12px;
  }
}
