@charset "utf-8";
/* ==========================================================================
   南京马鼎防水材料有限公司 — 子页面样式
   覆盖：关于我们（左右单页）/ 产品列表与详情 / 工程案例 / 新闻列表与详情 / 联系我们与留言
   依赖：css/style.css 中的 CSS 变量与基础组件
   ========================================================================== */

/* ---------- 1. 子页面横幅 ---------- */
/*
  背景图说明：
  各子页面横幅采用「深蓝渐变遮罩 + 网络背景图」双层叠加，
  遮罩保证白色标题文字对比度达标，背景图仅作氛围衬托。
  背景地址直接引用网络图片（picsum.photos 固定 ID，图片内容固定不变）。
*/
.page-hero {
  position: relative;
  padding: 88px 0 82px;
  color: var(--white);
  overflow: hidden;
  background-color: var(--navy-900);
  background-image:
    radial-gradient(760px 360px at 86% 6%, rgba(56, 163, 224, 0.22) 0%, rgba(56, 163, 224, 0) 62%),
    linear-gradient(120deg, rgba(6, 28, 51, 0.93) 0%, rgba(10, 38, 71, 0.84) 52%, rgba(13, 48, 85, 0.90) 100%),
    var(--hero-bg, none);
  background-size: auto, auto, cover;
  background-position: center, center, center;
  background-repeat: no-repeat, no-repeat, no-repeat;
}

/* 各子页面横幅背景图（固定 ID，主题与对应栏目一致） */

/* 关于我们：生产基地与厂区 */
.page-hero--about {
  --hero-bg: url("https://picsum.photos/id/269/1600/600");
}

/* 产品展示：工业厂房与材料堆场 */
.page-hero--products {
  --hero-bg: url("https://picsum.photos/id/296/1600/600");
}

/* 产品详情：混凝土基面与结构 */
.page-hero--detail {
  --hero-bg: url("https://picsum.photos/id/240/1600/600");
}

/* 工程案例：住宅小区与园区 */
.page-hero--cases {
  --hero-bg: url("https://picsum.photos/id/297/1600/600");
}

/* 信息中心：企业办公与会议 */
.page-hero--news {
  --hero-bg: url("https://picsum.photos/id/314/1600/600");
}

/* 资讯详情：现场纪实 */
.page-hero--article {
  --hero-bg: url("https://picsum.photos/id/221/1600/600");
}

/* 联系我们：厂区与园区道路 */
.page-hero--contact {
  --hero-bg: url("https://picsum.photos/id/261/1600/600");
}

.page-hero::after {
  content: "";
  position: absolute;
  right: -110px;
  bottom: -190px;
  width: 400px;
  height: 400px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 50%;
}

.page-hero__inner {
  position: relative;
  z-index: 2;
}

.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
}

.breadcrumb a:hover {
  color: var(--accent);
}

.breadcrumb__sep {
  opacity: 0.5;
}

.breadcrumb__cur {
  color: var(--white);
}

.page-hero__eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 26px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 3px;
  color: var(--accent);
}

.page-hero__eyebrow::before {
  content: "";
  width: 30px;
  height: 2px;
  background: currentColor;
}

.page-hero__title {
  margin-top: 14px;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.28;
  font-weight: 700;
  letter-spacing: 1.5px;
}

.page-hero__desc {
  max-width: 660px;
  margin-top: 16px;
  font-size: 15.5px;
  line-height: 1.9;
  color: rgba(255, 255, 255, 0.74);
}

/* ---------- 2. 子页面通用区块 ---------- */
.subpage {
  padding: 88px 0;
}

.subpage--gray {
  background: var(--gray-100);
}

.subpage--tight {
  padding: 64px 0;
}

.block {
  scroll-margin-top: calc(var(--header-h) + 24px);
}

.block + .block {
  margin-top: 86px;
}

.block__head {
  margin-bottom: 40px;
}

.block__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 2.4px;
  color: var(--accent-deep);
}

.block__eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--accent);
}

.block__title {
  margin-top: 12px;
  font-size: clamp(24px, 2.8vw, 30px);
  line-height: 1.35;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--navy-800);
}

.block__desc {
  margin-top: 12px;
  font-size: 14.5px;
  line-height: 1.9;
  color: var(--gray-600);
}

/* ---------- 3. 关于我们：左右单页结构 ---------- */
.about-layout {
  display: grid;
  grid-template-columns: 248px minmax(0, 1fr);
  align-items: start;
  gap: 60px;
}

.side-nav {
  position: sticky;
  top: calc(var(--header-h) + 24px);
  padding: 26px 24px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
}

.side-nav__title {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 1.2px;
  color: var(--navy-800);
  padding-bottom: 16px;
  border-bottom: 1px solid var(--gray-200);
}

.side-nav__list {
  margin-top: 8px;
}

.side-nav__item {
  position: relative;
  display: block;
  margin-left: -24px;
  padding: 13px 0 13px 24px;
  border-left: 2px solid transparent;
  font-size: 14.5px;
  color: var(--gray-600);
  transition: color 0.3s var(--ease), border-color 0.3s var(--ease);
}

.side-nav__item:hover {
  color: var(--navy-800);
}

.side-nav__item.is-active {
  border-left-color: var(--accent);
  color: var(--navy-800);
  font-weight: 600;
}

.side-nav__num {
  display: block;
  font-size: 11.5px;
  letter-spacing: 1.6px;
  color: var(--gray-500);
  font-weight: 400;
}

.side-nav__item.is-active .side-nav__num {
  color: var(--accent-deep);
}

/* 侧栏联系方式 */
.side-nav__contact {
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid var(--gray-200);
}

.side-nav__contact p {
  font-size: 13px;
  line-height: 1.85;
  color: var(--gray-600);
}

.side-nav__contact strong {
  display: block;
  margin-bottom: 6px;
  font-size: 16px;
  color: var(--navy-800);
}

/* 公司简介段落 */
.about-body {
  min-width: 0;
}

.prose p {
  font-size: 15px;
  line-height: 2;
  color: var(--gray-600);
}

.prose p + p {
  margin-top: 14px;
}

.prose strong {
  color: var(--navy-800);
}

/* 企业宣传片（关于我们） */
.block__head--sub {
  margin-top: 44px;
  margin-bottom: 18px;
}

.block__title--sm {
  font-size: 22px;
}

.about-video {
  margin: 0;
}

.about-video__frame {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  background: var(--navy-900);
  box-shadow: 0 16px 38px rgba(10, 38, 71, 0.1);
}

/* 源片为 720x576（5:4，方形像素），容器比例保持一致 */
.about-video__player {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 5 / 4;
  object-fit: contain;
  background: #000;
}

.about-video__play {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--white);
  cursor: pointer;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.about-video__play svg {
  box-sizing: border-box;
  width: 66px;
  height: 66px;
  padding: 20px;
  fill: currentColor;
  border-radius: 50%;
  background: rgba(10, 38, 71, 0.82);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.28);
  transition: transform 0.25s ease, background 0.25s ease;
}

.about-video__play span {
  font-size: 13px;
  letter-spacing: 1px;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.65);
}

.about-video__play:hover svg {
  transform: scale(1.08);
  background: var(--accent);
}

.about-video__play:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 6px;
  border-radius: 4px;
}

.about-video__frame.is-playing .about-video__play {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.about-video figcaption {
  padding: 12px 16px;
  font-size: 13px;
  color: var(--gray-500);
}

/* 数据统计 */
.stat-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
}

.stat {
  padding: 26px 22px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
}

.stat__num {
  font-size: 34px;
  line-height: 1;
  font-weight: 700;
  color: var(--navy-800);
  font-variant-numeric: tabular-nums;
}

.stat__num span {
  font-size: 18px;
  color: var(--accent);
}

.stat__label {
  margin-top: 12px;
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--gray-600);
}

/* 发展历程时间轴 */
.timeline {
  position: relative;
  padding-left: 30px;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 10px;
  bottom: 10px;
  width: 1px;
  background: var(--gray-300);
}

.tl-item {
  position: relative;
  padding-bottom: 30px;
}

.tl-item:last-child {
  padding-bottom: 0;
}

.tl-item::before {
  content: "";
  position: absolute;
  left: -30px;
  top: 8px;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--white);
  border: 2px solid var(--accent);
}

.tl-year {
  font-size: 19px;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: var(--navy-800);
}

.tl-text {
  margin-top: 6px;
  font-size: 14.5px;
  line-height: 1.9;
  color: var(--gray-600);
}

/* 企业荣誉 */
.honor-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.honor-card {
  padding: 26px 24px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s var(--ease);
}

.honor-card:hover {
  transform: translateY(-4px);
  border-color: transparent;
  box-shadow: var(--shadow-md);
}

.honor-card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 10px;
  color: var(--accent-deep);
  background: var(--accent-soft);
  border-radius: 3px;
}

.honor-card__title {
  margin-top: 16px;
  font-size: 16.5px;
  font-weight: 600;
  letter-spacing: 0.4px;
  color: var(--navy-800);
}

.honor-card__desc {
  margin-top: 8px;
  font-size: 13.5px;
  line-height: 1.85;
  color: var(--gray-600);
}

.honor-media {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--gray-200);
  background: var(--white);
}

.honor-media img {
  width: 100%;
  display: block;
}

.honor-media figcaption {
  padding: 14px 18px;
  font-size: 13px;
  color: var(--gray-500);
  border-top: 1px solid var(--gray-200);
}

/* 企业文化 */
.culture-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.culture-card {
  padding: 30px 28px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.culture-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.culture-card__en {
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 2.4px;
  color: var(--accent-deep);
}

.culture-card__title {
  margin-top: 10px;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.8px;
  color: var(--navy-800);
}

.culture-card__desc {
  margin-top: 12px;
  font-size: 14.5px;
  line-height: 1.95;
  color: var(--gray-600);
}

/* 企业文化图片组 */
.culture-media {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 22px;
}

.culture-media figure {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
}

.culture-media img {
  width: 100%;
  height: 100%;
  min-height: 260px;
  object-fit: cover;
  display: block;
  transition: transform 0.9s var(--ease);
}

.culture-media figure:hover img {
  transform: scale(1.05);
}

.culture-media figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 22px 22px 18px;
  font-size: 14px;
  color: var(--white);
  background: linear-gradient(180deg, rgba(6, 28, 51, 0) 0%, rgba(6, 28, 51, 0.88) 100%);
}

/* ---------- 4. 分类筛选标签 ---------- */
/*
  分类筛选采用纯 CSS 实现：
  每个分类对应一个隐藏的 radio 输入框，label 与之绑定，
  通过 :checked ~ 兄弟选择器控制对应分类下的卡片显示/隐藏，
  不需要任何 JavaScript 参与。
*/
.cat-filter {
  position: relative;
}

.cat-radio {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.cat-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.cat-tabs--left {
  justify-content: flex-start;
}

.cat-tab {
  display: inline-flex;
  align-items: center;
  padding: 10px 22px;
  font-size: 14.5px;
  color: var(--gray-600);
  background: var(--white);
  border: 1px solid var(--gray-300);
  border-radius: 100px;
  cursor: pointer;
  user-select: none;
  transition: color 0.3s var(--ease), border-color 0.3s var(--ease), background-color 0.3s var(--ease);
}

.cat-tab:hover {
  color: var(--navy-800);
  border-color: var(--navy-600);
}

/* 选中态：由 radio 的 :checked 状态驱动（radio 与 label 相邻，+ 选择器精确命中） */
.cat-radio:checked + .cat-tab {
  color: var(--white);
  font-weight: 600;
  background: var(--navy-800);
  border-color: var(--navy-800);
}

/* 键盘可达性：radio 聚焦时高亮对应标签 */
.cat-radio:focus-visible + .cat-tab {
  box-shadow: 0 0 0 3px rgba(56, 163, 224, 0.35);
}

.cat-tab__count {
  margin-left: 6px;
  font-size: 12.5px;
  opacity: 0.62;
}

/* 分类标签为链接时的选中态（服务端栏目切换） */
a.cat-tab {
  text-decoration: none;
}

a.cat-tab.is-active {
  color: var(--white);
  font-weight: 600;
  background: var(--navy-800);
  border-color: var(--navy-800);
}

.result-tip {
  margin-top: 22px;
  text-align: center;
  font-size: 13.5px;
  color: var(--gray-500);
}

.result-tip--left {
  text-align: left;
}

/* ---------- 4.1 三个列表页的纯 CSS 筛选规则 ---------- */
/*
  实现方式：radio 位于 .cat-filter 容器内，列表容器紧随其后。
  利用 :has() 从列表容器向上匹配「祖先中是否存在已选中的分类 radio」，
  再用 :not([data-cat=...]) 隐藏不属于该分类的卡片。
  全过程无需任何 JavaScript。
*/

/* ---- 产品列表 ---- */
/*
  产品分类已改为服务端栏目切换（/product/、/xxfs/、/tcpd/ …），
  每个系列各自分页，故此处不再需要 radio 驱动的卡片隐藏规则。
*/

/* ---- 资讯列表 ---- */
/*
  资讯分类同样改为服务端栏目切换（/article/、/company/、/industry/），
  与后台栏目「公司动态 / 行业动态」一一对应，分页由 CMS 接管，
  故不再需要 radio 驱动的隐藏与假分页规则。
*/


/* ---- 案例列表 ---- */
.cat-filter:has(#case-residential:checked) ~ .case-grid .case-card:not([data-cat="住宅建筑"]),
.cat-filter:has(#case-public:checked) ~ .case-grid .case-card:not([data-cat="公共建筑"]),
.cat-filter:has(#case-commercial:checked) ~ .case-grid .case-card:not([data-cat="商业地产"]),
.cat-filter:has(#case-industrial:checked) ~ .case-grid .case-card:not([data-cat="工业厂房"]),
.cat-filter:has(#case-municipal:checked) ~ .case-grid .case-card:not([data-cat="市政工程"]),
.cat-filter:has(#case-rail:checked) ~ .case-grid .case-card:not([data-cat="轨道交通"]) {
  display: none;
}

/* ---------- 5. 产品列表 ---------- */
.prod-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  margin-top: 44px;
}

.pcard {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.4s var(--ease);
}

.pcard:hover {
  transform: translateY(-5px);
  border-color: transparent;
  box-shadow: var(--shadow-md);
}

.pcard__link {
  display: flex;
  flex-direction: column;
  flex: 1;
  height: 100%;
}

.pcard__media {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, #ffffff 0%, var(--gray-100) 100%);
}

.pcard__media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  /* 产品图为竖版包装照，contain 完整呈现不裁切桶身 */
  object-fit: contain;
  padding: 16px 16px 0;
  transition: transform 0.7s var(--ease);
}

.pcard:hover .pcard__media img {
  transform: scale(1.06);
}

.pcard__cat {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 4px 10px;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.6px;
  color: var(--accent-deep);
  background: rgba(255, 255, 255, 0.94);
  border-radius: 2px;
}

.pcard__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 20px 20px 22px;
}

.pcard__title {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.3px;
  color: var(--navy-800);
}

.pcard:hover .pcard__title {
  color: var(--navy-600);
}

.pcard__desc {
  margin-top: 8px;
  font-size: 13.5px;
  line-height: 1.8;
  color: var(--gray-600);
  flex: 1;
}

.pcard__more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 14px;
  font-size: 13px;
  color: var(--gray-500);
}

.pcard__more span {
  transition: transform 0.3s var(--ease);
}

.pcard:hover .pcard__more {
  color: var(--accent-deep);
}

.pcard:hover .pcard__more span {
  transform: translateX(5px);
}

/* ---------- 6. 产品详情 ---------- */
.pd {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr);
  align-items: start;
  gap: 56px;
}

.pd-gallery {
  min-width: 0;
}

.pd-gallery__main {
  padding: 24px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
}

.pd-gallery__main img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: contain;
}

.pd-info {
  min-width: 0;
}

.pd-thumbs {
  display: flex;
  gap: 12px;
  margin-top: 14px;
}

.pd-thumb {
  flex: 1;
  padding: 6px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 3px;
  cursor: pointer;
  transition: border-color 0.3s var(--ease);
}

.pd-thumb img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
}

.pd-thumb.is-active {
  border-color: var(--accent);
}

.pd-info__cat {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.6px;
  color: var(--accent-deep);
}

.pd-info__title {
  margin-top: 10px;
  font-size: clamp(24px, 2.8vw, 32px);
  line-height: 1.35;
  font-weight: 700;
  color: var(--navy-800);
}

.pd-info__summary {
  margin-top: 16px;
  font-size: 15px;
  line-height: 1.95;
  color: var(--gray-600);
}

.pd-spec {
  width: 100%;
  margin-top: 26px;
  border-collapse: collapse;
}

.pd-spec th,
.pd-spec td {
  padding: 12px 14px;
  font-size: 14px;
  line-height: 1.7;
  text-align: left;
  border: 1px solid var(--gray-200);
}

.pd-spec th {
  width: 116px;
  font-weight: 600;
  color: var(--navy-800);
  background: var(--gray-100);
  white-space: nowrap;
}

.pd-spec td {
  color: var(--gray-600);
}

.pd-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.pd-sections {
  margin-top: 84px;
}

.pd-feature {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 30px;
  margin-top: 20px;
}

.pd-feature li {
  position: relative;
  padding-left: 26px;
  font-size: 14.5px;
  line-height: 1.85;
  color: var(--gray-700);
}

.pd-feature li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 12px;
  height: 7px;
  border-left: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(-45deg);
}

.pd-para {
  margin-top: 16px;
  font-size: 15px;
  line-height: 2;
  color: var(--gray-600);
}

.pd-related {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
  margin-top: 40px;
}


/* ---------- 联系页公司外景 ---------- */
.contact-cover {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--gray-100, #f3f4f6);
}

.contact-cover img {
  display: block;
  width: 100%;
  height: clamp(220px, 32vw, 420px);
  object-fit: cover;
}

/* ---------- 后台富文本正文（产品/案例详情） ---------- */
.product-detail h3,
.rich-body h3 {
  margin: 28px 0 10px;
  font-size: 17px;
  font-weight: 600;
  color: var(--gray-800, #1f2937);
}

.product-detail h3:first-child,
.rich-body h3:first-child {
  margin-top: 0;
}

.product-detail p,
.rich-body p {
  margin-top: 10px;
  font-size: 15px;
  line-height: 2;
  color: var(--gray-600);
}

.product-detail ul,
.rich-body ul {
  margin-top: 12px;
  padding-left: 20px;
  list-style: disc;
}

.product-detail ul li,
.rich-body ul li {
  font-size: 15px;
  line-height: 2;
  color: var(--gray-600);
}

/* ---------- 7. 工程案例 ---------- */
.case-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 26px;
  margin-top: 44px;
}

.case-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--navy-900);
}

.case-card__link {
  display: block;
  position: relative;
}

.case-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 0.8s var(--ease), opacity 0.4s var(--ease);
}

.case-card__mask {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(6, 28, 51, 0) 32%, rgba(6, 28, 51, 0.9) 100%);
}

.case-card__body {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 26px 24px 22px;
  color: var(--white);
}

.case-card__meta {
  font-size: 12px;
  letter-spacing: 1.4px;
  color: var(--accent);
}

.case-card__title {
  margin-top: 8px;
  font-size: 18.5px;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.case-card__desc {
  margin-top: 6px;
  font-size: 13px;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.74);
}

.case-card__area {
  position: absolute;
  top: 16px;
  right: 16px;
  padding: 4px 11px;
  font-size: 12px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 2px;
  backdrop-filter: blur(4px);
}

.case-card__link:hover img {
  transform: scale(1.07);
  opacity: 0.9;
}

/* ---------- 8. 新闻列表 ---------- */
.news-list {
  display: grid;
  gap: 24px;
  margin-top: 44px;
}

.news-row {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 28px;
  padding: 22px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.4s var(--ease);
}

.news-row:hover {
  transform: translateY(-4px);
  border-color: transparent;
  box-shadow: var(--shadow-md);
}

.news-row__media {
  display: block;
  overflow: hidden;
  border-radius: 3px;
}

.news-row__media img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  transition: transform 0.7s var(--ease);
}

.news-row:hover .news-row__media img {
  transform: scale(1.06);
}

.news-row__meta {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 12.5px;
  color: var(--gray-500);
}

.news-row__tag {
  padding: 3px 10px;
  font-size: 12px;
  letter-spacing: 0.5px;
  color: var(--accent-deep);
  background: var(--accent-soft);
  border-radius: 2px;
}

.news-row__title {
  margin-top: 12px;
  font-size: 19px;
  line-height: 1.5;
  font-weight: 600;
  color: var(--navy-800);
}

.news-row:hover .news-row__title {
  color: var(--navy-600);
}

.news-row__desc {
  margin-top: 10px;
  font-size: 14px;
  line-height: 1.85;
  color: var(--gray-600);
}

.news-row__more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
  font-size: 13.5px;
  color: var(--gray-500);
}

.news-row__more span {
  transition: transform 0.3s var(--ease);
}

.news-row:hover .news-row__more {
  color: var(--accent-deep);
}

.news-row:hover .news-row__more span {
  transform: translateX(5px);
}

/* 分页 */
.pager {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 50px;
}

.pager__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 14px;
  font-size: 14px;
  color: var(--gray-600);
  background: var(--white);
  border: 1px solid var(--gray-300);
  border-radius: 3px;
  cursor: pointer;
  transition: color 0.3s var(--ease), border-color 0.3s var(--ease), background-color 0.3s var(--ease);
}

.pager__btn:hover:not(:disabled) {
  color: var(--navy-800);
  border-color: var(--navy-800);
}

.pager__btn.is-active {
  color: var(--white);
  font-weight: 600;
  background: var(--navy-800);
  border-color: var(--navy-800);
}

.pager__btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* 分页按钮现在是 label（纯 CSS 分页），需要可点击语义 */
label.pager__btn {
  cursor: pointer;
  user-select: none;
}

label.pager__btn:hover {
  color: var(--navy-800);
  border-color: var(--navy-800);
}

/* 后台分页条（{page:bar} 输出结构） */
.pager--cms {
  align-items: center;
  row-gap: 10px;
}

.pager--cms .page-status {
  flex: 0 0 100%;
  margin-bottom: 4px;
  text-align: center;
  font-size: 13.5px;
  color: var(--gray-500);
}

.pager--cms .page-index,
.pager--cms .page-pre,
.pager--cms .page-next,
.pager--cms .page-last,
.pager--cms .page-numbar {
  display: inline-flex;
  gap: 8px;
}

.pager--cms a,
.pager--cms .page-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 14px;
  font-size: 14px;
  color: var(--gray-600);
  text-decoration: none;
  background: var(--white);
  border: 1px solid var(--gray-300);
  border-radius: 3px;
  transition: color 0.3s var(--ease), border-color 0.3s var(--ease), background-color 0.3s var(--ease);
}

.pager--cms a:hover {
  color: var(--navy-800);
  border-color: var(--navy-800);
}

/* 当前页 */
.pager--cms a.page-num-current {
  color: var(--white);
  font-weight: 600;
  background: var(--navy-800);
  border-color: var(--navy-800);
}

/* 首/尾页时的失效箭头 */
.pager--cms a[href="javascript:;"] {
  opacity: 0.4;
  cursor: not-allowed;
}

/* 省略号 */
.pager--cms .page-num:not(a) {
  border-color: transparent;
  background: transparent;
  pointer-events: none;
}

/* 分页条后紧跟的底部按钮，避免与分页上边距叠加过多 */
.pager--cms + .section__foot {
  margin-top: 34px;
}

/* ---------- 9. 新闻详情 ---------- */
.article {
  max-width: 900px;
  margin: 0 auto;
}

.article__head {
  padding-bottom: 28px;
  text-align: center;
  border-bottom: 1px solid var(--gray-200);
}

.article__title {
  font-size: clamp(25px, 3.2vw, 34px);
  line-height: 1.42;
  font-weight: 700;
  letter-spacing: 0.6px;
  color: var(--navy-800);
}

.article__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-top: 18px;
  font-size: 13px;
  color: var(--gray-500);
}

.article__meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.article__cover {
  margin-top: 32px;
  overflow: hidden;
  border-radius: var(--radius);
}

.article__cover img {
  width: 100%;
  display: block;
}

.article__body {
  margin-top: 36px;
  font-size: 15.5px;
  line-height: 2.05;
  color: var(--gray-700);
}

.article__body h3 {
  margin: 36px 0 14px;
  font-size: 19px;
  font-weight: 700;
  color: var(--navy-800);
}

.article__body p {
  margin-bottom: 16px;
}

.article__body figure {
  margin: 28px 0;
}

.article__body figure img {
  width: 100%;
  display: block;
  border-radius: var(--radius);
}

.article__body figcaption {
  margin-top: 10px;
  font-size: 13px;
  text-align: center;
  color: var(--gray-500);
}

.article__body ul {
  margin: 0 0 18px;
}

.article__body li {
  position: relative;
  margin-bottom: 10px;
  padding-left: 24px;
}

.article__body li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 12px;
  width: 10px;
  height: 6px;
  border-left: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(-45deg);
}

.article__body .quote {
  margin: 26px 0;
  padding: 20px 24px;
  font-size: 14.5px;
  line-height: 1.95;
  color: var(--navy-800);
  background: var(--accent-soft);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
}

.article__nav {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 50px;
  padding-top: 26px;
  border-top: 1px solid var(--gray-200);
}

.article__nav a {
  font-size: 14px;
  color: var(--gray-600);
  transition: color 0.3s var(--ease);
}

.article__nav a:hover {
  color: var(--navy-800);
}

.article__nav a span {
  color: var(--gray-500);
  margin-right: 6px;
}

.article__nav .is-next {
  text-align: right;
}

/* ---------- 10. 联系我们 / 留言表单 ---------- */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.12fr;
  align-items: start;
  gap: 52px;
}

.info-cards {
  display: grid;
  gap: 16px;
}

.info-card {
  display: flex;
  gap: 16px;
  padding: 22px 24px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
}

.info-card__icon {
  flex: none;
  width: 42px;
  height: 42px;
  padding: 10px;
  color: var(--accent-deep);
  background: var(--accent-soft);
  border-radius: 3px;
}

.info-card__label {
  font-size: 12.5px;
  letter-spacing: 1px;
  color: var(--gray-500);
}

.info-card__value {
  margin-top: 5px;
  font-size: 15px;
  font-weight: 500;
  color: var(--navy-800);
  word-break: normal;
  overflow-wrap: break-word;
}

.info-card__value small {
  display: block;
  margin-top: 3px;
  font-size: 13px;
  font-weight: 400;
  color: var(--gray-500);
}

.form {
  padding: 38px 36px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  scroll-margin-top: calc(var(--header-h) + 24px);
}

.form__title {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.8px;
  color: var(--navy-800);
}

.form__desc {
  margin-top: 10px;
  font-size: 14px;
  line-height: 1.85;
  color: var(--gray-600);
}

.form__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 20px;
  margin-top: 26px;
}

.field--full {
  grid-column: 1 / -1;
}

.field__label {
  display: block;
  margin-bottom: 8px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--navy-800);
}

.field__label .req {
  margin-left: 3px;
  color: #d0483a;
}

.field__input,
.field__select,
.field__textarea {
  width: 100%;
  padding: 12px 14px;
  font: inherit;
  font-size: 14.5px;
  color: var(--gray-700);
  background: var(--gray-100);
  border: 1px solid var(--gray-200);
  border-radius: 3px;
  transition: border-color 0.3s var(--ease), background-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.field__select {
  appearance: none;
  padding-right: 38px;
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237b8693' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px;
}

.field__textarea {
  min-height: 134px;
  resize: vertical;
}

.field__input:focus,
.field__select:focus,
.field__textarea:focus {
  outline: none;
  background: var(--white);
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(56, 163, 224, 0.16);
}

.field.has-error .field__input,
.field.has-error .field__select,
.field.has-error .field__textarea {
  border-color: #d0483a;
  background: #fdf3f2;
}

/* 验证码行：输入框 + 图片 */
.field__code {
  display: flex;
  gap: 10px;
  align-items: stretch;
}

.field__code .field__input {
  flex: 1 1 auto;
  min-width: 0;
}

.field__code img {
  display: block;
  width: 112px;
  height: auto;
  object-fit: cover;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 3px;
  cursor: pointer;
}

.field__error {
  display: none;
  margin-top: 6px;
  font-size: 12.5px;
  color: #d0483a;
}

.field.has-error .field__error {
  display: block;
}

.form__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
  margin-top: 26px;
}

.form__tip {
  font-size: 12.5px;
  color: var(--gray-500);
}

.form__success {
  display: none;
  margin-top: 20px;
  padding: 14px 18px;
  font-size: 13.5px;
  line-height: 1.8;
  color: #1f7a45;
  background: #eaf7ee;
  border: 1px solid #bfe3cb;
  border-radius: 3px;
}

.form__success.is-show {
  display: block;
}

/* 地图 / 厂区图片 */
.contact-map {
  overflow: hidden;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  background: var(--white);
}

.contact-map img {
  width: 100%;
  display: block;
}

.contact-map figcaption {
  padding: 14px 18px;
  font-size: 13px;
  color: var(--gray-500);
  border-top: 1px solid var(--gray-200);
}

/* ---------- 10.1 通栏在线地图横栏（纯地图，无文字侧栏） ---------- */
.map-band {
  width: 100%;
  background: var(--gray-100);
  border-top: 1px solid var(--gray-200);
  border-bottom: 1px solid var(--gray-200);
}

.map-band__inner,
.map-band__frame {
  width: 100%;
}

.map-band__frame {
  position: relative;
  overflow: hidden;
  background: var(--gray-100);
}

/* 地图容器必须有确定高度，否则地图无法渲染 */
.map-canvas {
  width: 100%;
  height: 420px;
}

.map-band__fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 420px;
  padding: 30px;
  text-align: center;
  font-size: 14px;
  line-height: 1.9;
  color: var(--gray-600);
}

/* 无 JS / SDK 未就绪时隐藏空地图容器，避免留下空白块 */
.map-band__fallback + .map-canvas {
  display: none;
}

/* ---------- 11. 行动号召条 ---------- */
.cta-band {
  padding: 62px 0;
  color: var(--white);
  background:
    radial-gradient(700px 320px at 82% 10%, rgba(56, 163, 224, 0.22) 0%, rgba(56, 163, 224, 0) 62%),
    linear-gradient(120deg, var(--navy-900) 0%, var(--navy-800) 52%, #0d3055 100%);
}

.cta-band__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

.cta-band__title {
  font-size: clamp(21px, 2.6vw, 30px);
  font-weight: 700;
  letter-spacing: 1px;
}

.cta-band__desc {
  margin-top: 10px;
  font-size: 14.5px;
  line-height: 1.85;
  color: rgba(255, 255, 255, 0.72);
}

.cta-band__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

/* ---------- 12. 空状态 ---------- */
.empty-tip {
  padding: 60px 0;
  text-align: center;
  font-size: 14.5px;
  color: var(--gray-500);
}

/* ==========================================================================
   响应式
   ========================================================================== */

/* --- 笔记本 / 小桌面 --- */
@media (max-width: 1280px) {
  .prod-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .pd-related {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* --- 平板横屏 --- */
@media (max-width: 1024px) {
  .about-layout {
    grid-template-columns: 214px minmax(0, 1fr);
    gap: 40px;
  }

  .stat-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .honor-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pd {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .contact-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .map-canvas {
    height: 380px;
  }

  .map-band__fallback {
    min-height: 380px;
  }
}

/* --- 手机横屏 / 小平板 --- */
@media (max-width: 960px) {
  .subpage {
    padding: 72px 0;
  }

  .block + .block {
    margin-top: 66px;
  }

  .page-hero {
    padding: 72px 0 66px;
  }

  /* 关于我们：左右结构转为上下结构，侧栏变横向标签 */
  .about-layout {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .side-nav {
    position: static;
    padding: 20px;
  }

  .side-nav__list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
  }

  .side-nav__item {
    margin-left: 0;
    padding: 9px 18px;
    border-left: 0;
    border: 1px solid var(--gray-200);
    border-radius: 100px;
    font-size: 14px;
  }

  .side-nav__item.is-active {
    border-color: var(--navy-800);
    color: var(--white);
    background: var(--navy-800);
  }

  .side-nav__item.is-active .side-nav__num {
    color: rgba(255, 255, 255, 0.66);
  }

  .side-nav__num {
    display: inline;
    margin-right: 6px;
  }

  .side-nav__contact {
    display: none;
  }

  .case-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .news-row {
    grid-template-columns: 240px minmax(0, 1fr);
    gap: 22px;
  }

  .prod-grid,
  .pd-related {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* --- 手机 --- */
@media (max-width: 760px) {
  .subpage {
    padding: 58px 0;
  }

  .block + .block {
    margin-top: 54px;
  }

  .block__head {
    margin-bottom: 30px;
  }

  .page-hero {
    padding: 58px 0 54px;
  }

  .page-hero__desc {
    font-size: 14.5px;
  }

  .breadcrumb {
    font-size: 12.5px;
  }

  .stat-row {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .block__head--sub {
    margin-top: 36px;
    margin-bottom: 16px;
  }

  .about-video__play svg {
    width: 56px;
    height: 56px;
    padding: 17px;
  }

  .about-video__play span {
    font-size: 12px;
  }

  .honor-grid,
  .culture-grid {
    grid-template-columns: 1fr;
  }

  .culture-media {
    grid-template-columns: 1fr;
  }

  .culture-media img {
    min-height: 200px;
  }

  .prod-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 32px;
  }

  .pd-related {
    grid-template-columns: 1fr;
  }

  .pd-feature {
    grid-template-columns: 1fr;
  }

  .pd-sections {
    margin-top: 60px;
  }

  .case-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 32px;
  }

  .news-list {
    gap: 20px;
    margin-top: 32px;
  }

  .news-row {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 18px;
  }

  .news-row__title {
    font-size: 17px;
  }

  .article__nav {
    flex-direction: column;
    gap: 12px;
  }

  .article__nav .is-next {
    text-align: left;
  }

  .form {
    padding: 28px 22px;
  }

  .form__grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .cat-tab {
    padding: 9px 18px;
    font-size: 13.5px;
  }

  .pager {
    margin-top: 34px;
  }

  .pager--cms {
    gap: 6px;
  }

  .pager--cms a,
  .pager--cms .page-num {
    min-width: 34px;
    height: 34px;
    padding: 0 10px;
    font-size: 13px;
  }

  .pager--cms .page-index,
  .pager--cms .page-last {
    display: none;
  }

  .cta-band {
    padding: 48px 0;
  }

  .cta-band__actions {
    width: 100%;
  }

  .cta-band__actions .btn {
    flex: 1 1 0;
    min-width: 0;
  }
}

/* --- 小屏手机 --- */
@media (max-width: 420px) {
  .pd-gallery__main {
    padding: 16px;
  }

  .pd-spec th {
    width: 96px;
  }

  .info-card {
    padding: 18px;
  }

  .map-canvas {
    height: 320px;
  }

  .map-band__fallback {
    min-height: 320px;
  }
}

/* ==========================================================================
   纯 CSS 内容切换（整站内容静态化，零 JavaScript 渲染）
   ========================================================================== */

/* ---- 产品详情 / 资讯详情：:target 切换静态内容块 ---- */
.pd-entry,
.article-entry {
  display: none;
  scroll-margin-top: calc(var(--header-h) + 16px);
}

.pd-page:not(:has(.pd-entry:target)) .pd-entry--default,
.article-page:not(:has(.article-entry:target)) .article-entry--default,
.pd-entry:target,
.article-entry:target {
  display: block;
}

.article-entry {
  max-width: 900px;
  margin: 0 auto;
}

/* ---- 产品图集：radio + label 纯 CSS 切换（无 per-id 规则） ---- */
.pd-gal-radio {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.pd-gallery__main > img,
.pd-gallery__main > .pd-gallery__cap {
  display: none;
}

.pd-gallery__cap {
  margin-top: 12px;
  font-size: 13px;
  color: var(--gray-500);
}

.pd-gallery:not(:has(.pd-gal-radio:checked)) .pd-gallery__main > img:nth-of-type(1),
.pd-gallery:not(:has(.pd-gal-radio:checked)) .pd-gallery__main > .pd-gallery__cap:nth-of-type(1),
.pd-gallery:has(.pd-gal-radio:nth-of-type(1):checked) .pd-gallery__main > img:nth-of-type(1),
.pd-gallery:has(.pd-gal-radio:nth-of-type(1):checked) .pd-gallery__main > .pd-gallery__cap:nth-of-type(1),
.pd-gallery:has(.pd-gal-radio:nth-of-type(2):checked) .pd-gallery__main > img:nth-of-type(2),
.pd-gallery:has(.pd-gal-radio:nth-of-type(2):checked) .pd-gallery__main > .pd-gallery__cap:nth-of-type(2),
.pd-gallery:has(.pd-gal-radio:nth-of-type(3):checked) .pd-gallery__main > img:nth-of-type(3),
.pd-gallery:has(.pd-gal-radio:nth-of-type(3):checked) .pd-gallery__main > .pd-gallery__cap:nth-of-type(3),
.pd-gallery:has(.pd-gal-radio:nth-of-type(4):checked) .pd-gallery__main > img:nth-of-type(4),
.pd-gallery:has(.pd-gal-radio:nth-of-type(4):checked) .pd-gallery__main > .pd-gallery__cap:nth-of-type(4) {
  display: block;
}

.pd-thumbs > label {
  flex: 1;
  padding: 6px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 3px;
  cursor: pointer;
  transition: border-color 0.3s var(--ease);
}

.pd-thumbs > label img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
}

.pd-thumbs > label:hover,
.pd-gallery:not(:has(.pd-gal-radio:checked)) .pd-thumbs > label:nth-child(1),
.pd-gallery:has(.pd-gal-radio:nth-of-type(1):checked) .pd-thumbs > label:nth-child(1),
.pd-gallery:has(.pd-gal-radio:nth-of-type(2):checked) .pd-thumbs > label:nth-child(2),
.pd-gallery:has(.pd-gal-radio:nth-of-type(3):checked) .pd-thumbs > label:nth-child(3),
.pd-gallery:has(.pd-gal-radio:nth-of-type(4):checked) .pd-thumbs > label:nth-child(4) {
  border-color: var(--accent);
}

/* ---- 在线地图降级：提示文案静态写在 HTML，JS 只切 class ---- */
#mapFallback {
  display: none;
}

#mapFallback.is-show {
  display: flex;
}

.map-band__frame:has(#mapFallback.is-show) .map-canvas {
  display: none;
}
