@charset "utf-8";
/* ==========================================================================
   南京马鼎防水材料有限公司 — 官网首页样式
   主色：深蓝 #0a2647 / 深灰 #1e2329 / 白 #ffffff   辅助色：浅蓝 #38a3e0
   ========================================================================== */

/* ---------- 1. 变量 ---------- */
:root {
  --navy-900: #061c33;
  --navy-800: #0a2647;
  --navy-700: #123a63;
  --navy-600: #1b4a7a;

  --gray-900: #1e2329;
  --gray-800: #2b3037;
  --gray-700: #3d444d;
  --gray-600: #5c6570;
  --gray-500: #7b8693;
  --gray-300: #d5dce4;
  --gray-200: #e8ecf1;
  --gray-100: #f4f6f9;

  --accent: #38a3e0;
  --accent-deep: #1d7db8;
  --accent-soft: #e2f1fb;

  --white: #ffffff;

  --radius: 4px;
  --shadow-sm: 0 2px 10px rgba(10, 38, 71, 0.06);
  --shadow-md: 0 14px 34px rgba(10, 38, 71, 0.10);
  --shadow-lg: 0 26px 60px rgba(10, 38, 71, 0.18);

  --container: 1200px;
  --header-h: 78px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ---------- 2. 基础重置 ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 8px);
}

body {
  margin: 0;
  font-family: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", "Source Han Sans SC",
    -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-size: 15px;
  line-height: 1.7;
  color: var(--gray-700);
  background: var(--white);
  overflow-x: hidden;
}

body.is-locked {
  overflow: hidden;
}

h1, h2, h3, h4, p, figure, ul, ol {
  margin: 0;
  padding: 0;
}

ul, ol {
  list-style: none;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s var(--ease);
}

img {
  display: block;
  max-width: 100%;
  height: auto;
  border: 0;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

svg {
  display: block;
  width: 100%;
  height: 100%;
  fill: currentColor;
}

::selection {
  background: var(--navy-800);
  color: var(--white);
}

/* ---------- 3. 通用布局与组件 ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 96px 0;
}

.section--gray {
  background: var(--gray-100);
}

.section__foot {
  margin-top: 52px;
  text-align: center;
}

/* 标题组 */
.sec-head {
  margin-bottom: 48px;
}

.sec-head__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 2.6px;
  text-transform: uppercase;
  color: var(--accent-deep);
}

.sec-head__eyebrow::before {
  content: "";
  width: 24px;
  height: 2px;
  background: var(--accent);
}

.sec-head__title {
  font-size: 32px;
  line-height: 1.3;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--navy-800);
}

.sec-head__desc {
  margin-top: 14px;
  font-size: 15px;
  color: var(--gray-600);
}

.sec-head--center {
  text-align: center;
}

.sec-head--center .sec-head__eyebrow::after {
  content: "";
  width: 24px;
  height: 2px;
  background: var(--accent);
}

.sec-head--center .sec-head__desc {
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

.sec-head--between {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}

.sec-head__more {
  position: relative;
  flex: none;
  padding-bottom: 4px;
  font-size: 14px;
  color: var(--gray-600);
}

.sec-head__more span {
  display: inline-block;
  margin-left: 6px;
  transition: transform 0.3s var(--ease);
}

.sec-head__more::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width 0.35s var(--ease);
}

.sec-head__more:hover {
  color: var(--navy-800);
}

.sec-head__more:hover span {
  transform: translateX(4px);
}

.sec-head__more:hover::after {
  width: 100%;
}

/* 按钮 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 48px;
  padding: 0 30px;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.6px;
  text-align: center;
  white-space: nowrap;
  transition: background-color 0.3s var(--ease), color 0.3s var(--ease),
    border-color 0.3s var(--ease), transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.btn--primary {
  background: var(--navy-800);
  color: var(--white);
}

.btn--primary:hover {
  background: var(--navy-600);
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(10, 38, 71, 0.24);
}

.btn--accent {
  background: var(--accent);
  color: var(--white);
}

.btn--accent:hover {
  background: var(--accent-deep);
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(56, 163, 224, 0.34);
}

.btn--ghost {
  border: 1px solid rgba(255, 255, 255, 0.5);
  color: var(--white);
}

.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.9);
  transform: translateY(-2px);
}

.btn--outline {
  border: 1px solid var(--gray-300);
  color: var(--navy-800);
  background: var(--white);
}

.btn--outline:hover {
  border-color: var(--navy-800);
  background: var(--navy-800);
  color: var(--white);
  transform: translateY(-2px);
}

.btn--sm {
  height: 40px;
  padding: 0 22px;
  font-size: 14px;
}

/* ---------- 4. 顶部信息条 ---------- */
.topbar {
  background: var(--navy-900);
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
}

.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 38px;
}

.topbar__slogan {
  letter-spacing: 0.4px;
}

.topbar__meta {
  display: flex;
  align-items: center;
  gap: 28px;
}

.topbar__item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.topbar__item svg {
  width: 14px;
  height: 14px;
  color: var(--accent);
}

/* ---------- 5. 页头导航 ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--gray-200);
  transition: box-shadow 0.35s var(--ease);
}

.header.is-scrolled {
  box-shadow: 0 8px 24px rgba(10, 38, 71, 0.08);
  border-bottom-color: transparent;
}

.header__inner {
  display: flex;
  align-items: center;
  height: var(--header-h);
  gap: 24px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: none;
}

/* 顶部 logo 图片（替换原来的 MD 方块 + 文字组合） */
.logo__img {
  display: block;
  width: auto;
  height: 46px;
}

/* 页脚 logo：深色底专用白色版（保留红印章） */
.logo__img--footer {
  height: 44px;
}

.nav {
  margin-left: auto;
}

.nav__list {
  display: flex;
  align-items: center;
  gap: 3px;
}

.nav__link {
  position: relative;
  display: block;
  padding: 10px 12px;
  font-size: 15px;
  color: var(--gray-700);
  letter-spacing: 0.5px;
}

.nav__link::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 2px;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.35s var(--ease);
}

.nav__link:hover {
  color: var(--navy-800);
}

.nav__link:hover::after,
.nav__link.is-active::after {
  transform: scaleX(1);
}

.nav__link.is-active {
  color: var(--navy-800);
  font-weight: 600;
}

.header__cta {
  flex: none;
}

/* 汉堡按钮 */
.nav-toggle {
  display: none;
  position: relative;
  width: 42px;
  height: 42px;
  flex: none;
  border: 1px solid var(--gray-200);
  border-radius: 3px;
}

.nav-toggle span {
  position: absolute;
  left: 50%;
  width: 20px;
  height: 2px;
  background: var(--navy-800);
  transform: translateX(-50%);
  transition: transform 0.35s var(--ease), opacity 0.25s var(--ease);
}

.nav-toggle span:nth-child(1) { top: 14px; }
.nav-toggle span:nth-child(2) { top: 20px; }
.nav-toggle span:nth-child(3) { top: 26px; }

.nav-toggle.is-open span:nth-child(1) {
  top: 20px;
  transform: translateX(-50%) rotate(45deg);
}

.nav-toggle.is-open span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.is-open span:nth-child(3) {
  top: 20px;
  transform: translateX(-50%) rotate(-45deg);
}

/* ---------- 6. 首屏 ---------- */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: clamp(540px, 74vh, 720px);
  padding: 96px 0 150px;
  background: var(--navy-800);
  color: var(--white);
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

/* 滑动轨道：整条轨道平移，实现 3 图无缝轮播 */
.hero__track {
  display: flex;
  height: 100%;
  width: 300%;
  transition: transform 0.9s var(--ease);
  will-change: transform;
}

.hero__slide {
  position: relative;
  flex: 0 0 33.3333%;
  height: 100%;
  overflow: hidden;
}

.hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.55;
  /* 缓慢推近，给静态图一点动态呼吸感 */
  transform: scale(1.06);
  transition: transform 7s linear;
}

/* 非激活图瞬间复位（已滑出视野，避免可见的缓慢回缩） */
.hero__slide:not(.is-active) img {
  transition: none;
}

.hero__slide.is-active img {
  transform: scale(1.13);
}

.hero__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    linear-gradient(94deg, rgba(6, 28, 51, 0.94) 0%, rgba(8, 32, 58, 0.86) 46%, rgba(10, 38, 71, 0.5) 100%),
    linear-gradient(180deg, rgba(6, 28, 51, 0.2) 0%, rgba(6, 28, 51, 0) 40%, rgba(6, 28, 51, 0.55) 100%);
}

.hero__inner {
  position: relative;
  z-index: 2;
}

.hero__eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 22px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 3.2px;
  color: var(--accent);
}

.hero__eyebrow::before {
  content: "";
  width: 34px;
  height: 2px;
  background: currentColor;
}

.hero__title {
  font-size: clamp(32px, 4.3vw, 56px);
  line-height: 1.24;
  font-weight: 700;
  letter-spacing: 1.5px;
  max-width: 16em;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.2);
}

.hero__desc {
  max-width: 600px;
  margin-top: 24px;
  font-size: 16px;
  line-height: 1.85;
  color: rgba(255, 255, 255, 0.82);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 38px;
}

.hero__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 44px;
}

.hero__tags li {
  padding: 6px 16px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 100px;
}

/* ---------- 6.1 轮播控件 ---------- */
.hero__nav {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 96px;
  z-index: 4;
}

.hero__nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.hero__caption {
  display: flex;
  align-items: baseline;
  gap: 12px;
  min-width: 0;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.62);
  letter-spacing: 0.4px;
}

.hero__caption-idx {
  font-size: 24px;
  font-weight: 700;
  line-height: 1;
  color: var(--accent);
  letter-spacing: 0;
  font-variant-numeric: tabular-nums;
}

.hero__caption-text {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hero__controls {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-shrink: 0;
}

.hero__dots {
  display: flex;
  align-items: center;
  gap: 10px;
}

.hero__dot {
  width: 34px;
  height: 22px;
  padding: 0;
  display: flex;
  align-items: center;
  background: none;
  border: 0;
  cursor: pointer;
}

.hero__dot span {
  display: block;
  width: 100%;
  height: 3px;
  background: rgba(255, 255, 255, 0.28);
  border-radius: 2px;
  transition: background-color 0.3s var(--ease), height 0.3s var(--ease);
}

.hero__dot:hover span {
  background: rgba(255, 255, 255, 0.6);
}

.hero__dot.is-active span {
  background: var(--accent);
  height: 5px;
}

.hero__dot:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.hero__arrows {
  display: flex;
  align-items: center;
  gap: 8px;
}

.hero__arrow {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  color: rgba(255, 255, 255, 0.8);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 50%;
  cursor: pointer;
  transition: background-color 0.3s var(--ease), color 0.3s var(--ease),
    border-color 0.3s var(--ease), transform 0.3s var(--ease);
}

.hero__arrow svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.hero__arrow:hover {
  color: var(--white);
  background: var(--accent);
  border-color: var(--accent);
  transform: translateY(-2px);
}

.hero__arrow:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* ---------- 7. 核心优势条 ---------- */
.highlights {
  position: relative;
  z-index: 5;
  margin-top: -76px;
}

.highlights__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

.highlight {
  padding: 34px 28px;
  border-right: 1px solid var(--gray-200);
  transition: background-color 0.35s var(--ease), transform 0.35s var(--ease);
}

.highlight:last-child {
  border-right: 0;
}

.highlight:hover {
  background: var(--gray-100);
}

.highlight__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-bottom: 18px;
  padding: 10px;
  color: var(--accent-deep);
  background: var(--accent-soft);
  border-radius: 3px;
}

.highlight__title {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0.6px;
  color: var(--navy-800);
}

.highlight__desc {
  margin-top: 8px;
  font-size: 13.5px;
  line-height: 1.75;
  color: var(--gray-600);
}

/* ---------- 8. 关于我们 ---------- */
.about {
  position: relative;
}

.about__inner {
  display: grid;
  grid-template-columns: 1fr 1.08fr;
  align-items: center;
  gap: 64px;
}

/* 首页「关于我们」区块的右侧文字列 */
.about__body {
  min-width: 0;
}

.about__media {
  position: relative;
}

.about__media img {
  width: 100%;
  aspect-ratio: 5 / 4;
  object-fit: cover;
  border-radius: var(--radius);
}

.about__media::before {
  content: "";
  position: absolute;
  left: -18px;
  top: 28px;
  width: 120px;
  height: 120px;
  border-left: 2px solid var(--accent);
  border-top: 2px solid var(--accent);
  opacity: 0.5;
}

.about__badge {
  position: absolute;
  right: -16px;
  bottom: -22px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 20px 26px;
  background: var(--navy-800);
  color: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}

.about__badge strong {
  font-size: 34px;
  line-height: 1;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.about__badge strong span {
  font-size: 20px;
  color: var(--accent);
}

.about__badge em {
  margin-top: 8px;
  font-style: normal;
  font-size: 12px;
  letter-spacing: 1.4px;
  color: rgba(255, 255, 255, 0.7);
}

.about__lead {
  font-size: 18px;
  line-height: 1.85;
  font-weight: 500;
  color: var(--navy-800);
}

.about__text {
  margin-top: 18px;
  font-size: 15px;
  line-height: 1.95;
  color: var(--gray-600);
}

.about__list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 24px;
  margin-top: 30px;
  padding-top: 30px;
  border-top: 1px solid var(--gray-200);
}

.about__list li {
  position: relative;
  padding-left: 26px;
  font-size: 14.5px;
  color: var(--gray-700);
}

.about__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 12px;
  height: 7px;
  border-left: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(-45deg);
}

.about__btn {
  margin-top: 34px;
}

/* ---------- 9. 产品展示 ---------- */
.products {
  display: grid;
  /* 8 个产品 → 4 列 × 2 行，排版完整不留空位 */
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}

.product {
  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);
}

.product__link {
  display: block;
  height: 100%;
}

.product__media {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, #ffffff 0%, var(--gray-100) 100%);
}

.product__media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  /* 产品图为竖版包装照，用 contain 完整呈现，避免裁掉桶身 */
  object-fit: contain;
  padding: 14px 14px 0;
  transition: transform 0.7s var(--ease);
}

.product__no {
  position: absolute;
  top: 14px;
  left: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 26px;
  padding: 0 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: var(--navy-800);
  background: rgba(255, 255, 255, 0.92);
  border-radius: 2px;
}

.product__body {
  padding: 24px 24px 26px;
}

.product__cat {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.6px;
  color: var(--accent-deep);
}

.product__title {
  margin-top: 8px;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.4px;
  color: var(--navy-800);
}

.product__desc {
  margin-top: 10px;
  font-size: 14px;
  line-height: 1.8;
  color: var(--gray-600);
}

.product__more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 18px;
  font-size: 13.5px;
  color: var(--gray-500);
  transition: color 0.3s var(--ease);
}

.product__more span {
  transition: transform 0.3s var(--ease);
}

.product:hover {
  transform: translateY(-5px);
  border-color: transparent;
  box-shadow: var(--shadow-md);
}

.product:hover .product__media img {
  transform: scale(1.06);
}

.product:hover .product__title {
  color: var(--navy-600);
}

.product:hover .product__more {
  color: var(--accent-deep);
}

.product:hover .product__more span {
  transform: translateX(5px);
}

/* ---------- 10. 工程案例 ---------- */
.cases {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 26px;
}

.case {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--navy-900);
}

.case__link {
  display: block;
  position: relative;
}

.case img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 0.8s var(--ease), opacity 0.4s var(--ease);
}

.case__mask {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(6, 28, 51, 0) 34%, rgba(6, 28, 51, 0.86) 100%);
  transition: background-color 0.4s var(--ease);
}

.case__body {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 26px 26px 24px;
  color: var(--white);
}

.case__meta {
  font-size: 12px;
  letter-spacing: 1.4px;
  color: var(--accent);
}

.case__title {
  margin-top: 8px;
  font-size: 19px;
  font-weight: 600;
  letter-spacing: 0.6px;
}

.case__desc {
  margin-top: 6px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.72);
}

.case__link:hover img {
  transform: scale(1.07);
  opacity: 0.9;
}

/* ---------- 11. 信息中心 ---------- */
.news {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 26px;
}

.news__item {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

.news__link {
  display: block;
  height: 100%;
}

.news__media {
  overflow: hidden;
}

.news__media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 0.7s var(--ease);
}

.news__body {
  padding: 22px 24px 26px;
}

.news__meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12.5px;
  color: var(--gray-500);
}

.news__tag {
  padding: 3px 10px;
  font-size: 12px;
  color: var(--accent-deep);
  background: var(--accent-soft);
  border-radius: 2px;
  letter-spacing: 0.5px;
}

.news__title {
  margin-top: 12px;
  font-size: 17px;
  line-height: 1.6;
  font-weight: 600;
  color: var(--navy-800);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news__desc {
  margin-top: 10px;
  font-size: 13.5px;
  line-height: 1.8;
  color: var(--gray-600);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news__item:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.news__item:hover .news__media img {
  transform: scale(1.06);
}

.news__item:hover .news__title {
  color: var(--navy-600);
}

/* ---------- 12. 联系我们 ---------- */
.contact {
  position: relative;
  padding: 92px 0;
  background:
    radial-gradient(900px 420px at 82% 8%, rgba(56, 163, 224, 0.22) 0%, rgba(56, 163, 224, 0) 62%),
    linear-gradient(120deg, var(--navy-900) 0%, var(--navy-800) 48%, #0d3055 100%);
  color: var(--white);
  overflow: hidden;
}

.contact::after {
  content: "";
  position: absolute;
  right: -120px;
  bottom: -160px;
  width: 420px;
  height: 420px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 50%;
}

.contact__inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  align-items: center;
  gap: 64px;
}

.contact__title {
  margin-top: 6px;
  font-size: clamp(26px, 3vw, 36px);
  line-height: 1.45;
  font-weight: 700;
  letter-spacing: 1px;
}

.contact__desc {
  max-width: 480px;
  margin-top: 18px;
  font-size: 15px;
  line-height: 1.9;
  color: rgba(255, 255, 255, 0.72);
}

.contact__text .btn {
  margin-top: 32px;
}

.contact__info {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 26px 24px;
  padding: 34px 30px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  backdrop-filter: blur(6px);
}

.contact__info li {
  display: flex;
  gap: 14px;
}

.contact__icon {
  flex: none;
  width: 36px;
  height: 36px;
  padding: 8px;
  color: var(--accent);
  background: rgba(56, 163, 224, 0.14);
  border-radius: 3px;
}

.contact__label {
  font-size: 12.5px;
  letter-spacing: 1px;
  color: rgba(255, 255, 255, 0.55);
}

.contact__value {
  margin-top: 4px;
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--white);
  word-break: normal;
  overflow-wrap: break-word;
}

/* ---------- 13. 页脚 ---------- */
.footer {
  background: var(--navy-900);
  color: rgba(255, 255, 255, 0.62);
}

.footer__inner {
  display: grid;
  grid-template-columns: 1.7fr 0.8fr 0.8fr 1.2fr;
  gap: 48px;
  padding-top: 70px;
  padding-bottom: 56px;
}

.footer__desc {
  max-width: 330px;
  margin-top: 22px;
  font-size: 13.5px;
  line-height: 1.9;
}

/* 页脚品牌区 */
.footer__brand {
  min-width: 0;
}

/* 页脚分栏 */
.footer__col {
  min-width: 0;
}

.footer__title {
  margin-bottom: 20px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 1px;
  color: var(--white);
}

.footer__list li {
  margin-bottom: 12px;
  font-size: 13.5px;
  line-height: 1.7;
}

.footer__list a {
  position: relative;
  display: inline-block;
}

.footer__list a:hover {
  color: var(--accent);
}

.footer__list--plain li {
  color: rgba(255, 255, 255, 0.55);
}

.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer__bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 64px;
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.42);
}

/* ---------- 14. 返回顶部 ---------- */
.backtop {
  position: fixed;
  right: 24px;
  bottom: 28px;
  z-index: 90;
  width: 44px;
  height: 44px;
  padding: 11px;
  color: var(--white);
  background: var(--navy-800);
  border-radius: 3px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  box-shadow: var(--shadow-md);
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease),
    visibility 0.35s var(--ease), background-color 0.3s var(--ease);
}

.backtop.is-visible {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.backtop:hover {
  background: var(--accent);
}

/* ---------- 15. 滚动入场 ---------- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
  will-change: opacity, transform;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}

/* ==========================================================================
   响应式
   ========================================================================== */

/* --- 笔记本 / 小桌面 --- */
@media (max-width: 1280px) {
  /* 4 列在此宽度下过窄，降为 3 列 */
  .products {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 1100px) {
  .about__inner {
    gap: 44px;
  }

  .case__title {
    font-size: 17px;
  }
}

/* --- 平板横屏 --- */
@media (max-width: 960px) {
  :root {
    --header-h: 68px;
  }

  .section {
    padding: 76px 0;
  }

  .sec-head__title {
    font-size: 28px;
  }

  .nav-toggle {
    display: block;
    margin-left: auto;
  }

  .header__cta {
    display: none;
  }

  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin-left: 0;
    padding: 8px 0;
    background: var(--white);
    border-top: 1px solid var(--gray-200);
    box-shadow: 0 18px 32px rgba(10, 38, 71, 0.14);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    pointer-events: none;
    transition: opacity 0.32s var(--ease), transform 0.32s var(--ease), visibility 0.32s var(--ease);
  }

  .nav.is-open {
    opacity: 1;
    visibility: visible;
    transform: none;
    pointer-events: auto;
  }

  .nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .nav__link {
    padding: 14px 24px;
    font-size: 15.5px;
    border-bottom: 1px solid var(--gray-100);
  }

  .nav__list li:last-child .nav__link {
    border-bottom: 0;
  }

  .nav__link::after {
    display: none;
  }

  .nav__link.is-active {
    color: var(--accent-deep);
    background: var(--gray-100);
  }

  .highlights {
    margin-top: -60px;
  }

  .highlights__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .highlight:nth-child(2) {
    border-right: 0;
  }

  .highlight:nth-child(1),
  .highlight:nth-child(2) {
    border-bottom: 1px solid var(--gray-200);
  }

  .about__inner {
    grid-template-columns: 1fr;
    gap: 56px;
  }

  .about__media {
    max-width: 560px;
  }

  .about__media img {
    aspect-ratio: 16 / 10;
  }

  .about__media::before {
    display: none;
  }

  .about__badge {
    right: 16px;
    bottom: -20px;
    padding: 16px 22px;
  }

  .products,
  .cases,
  .news {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
  }

  .contact__inner {
    grid-template-columns: 1fr;
    gap: 44px;
  }

  .contact__desc {
    max-width: none;
  }

  .footer__inner {
    grid-template-columns: 1fr 1fr;
    gap: 40px 32px;
  }
}

/* --- 手机横屏 / 小平板 --- */
@media (max-width: 760px) {
  .container {
    padding: 0 18px;
  }

  .topbar__slogan {
    display: none;
  }

  .topbar__inner {
    justify-content: center;
    height: 34px;
  }

  .topbar__meta {
    gap: 18px;
    font-size: 12px;
  }

  .hero {
    min-height: 0;
    padding: 68px 0 84px;
    /* 移动端改为纵向流式，轮播控件紧跟文案，不再绝对定位 */
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
  }

  .hero__bg::after {
    background:
      linear-gradient(180deg, rgba(6, 28, 51, 0.86) 0%, rgba(8, 32, 58, 0.8) 55%, rgba(6, 28, 51, 0.9) 100%);
  }

  .hero__title {
    font-size: 30px;
    letter-spacing: 1px;
  }

  .hero__desc {
    font-size: 14.5px;
    margin-top: 18px;
  }

  .hero__actions {
    margin-top: 28px;
    gap: 12px;
  }

  .hero__actions .btn {
    flex: 1 1 0;
    min-width: 0;
    padding: 0 18px;
  }

  .hero__tags {
    margin-top: 30px;
    gap: 8px;
  }

  .hero__tags li {
    padding: 5px 12px;
    font-size: 12px;
  }

  .hero__nav {
    position: static;
    margin-top: 34px;
  }

  .hero__nav-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }

  .hero__caption {
    font-size: 12px;
    gap: 9px;
  }

  .hero__caption-idx {
    font-size: 19px;
  }

  .hero__controls {
    width: 100%;
    justify-content: space-between;
    gap: 14px;
  }

  .hero__dot {
    width: 28px;
  }

  .hero__arrow {
    width: 36px;
    height: 36px;
  }

  .hero__arrow svg {
    width: 16px;
    height: 16px;
  }

  .highlights {
    margin-top: -48px;
  }

  .section {
    padding: 60px 0;
  }

  .sec-head {
    margin-bottom: 34px;
  }

  .sec-head__title {
    font-size: 24px;
    letter-spacing: 0.5px;
  }

  .sec-head__desc {
    font-size: 14px;
    margin-top: 10px;
  }

  .sec-head--between {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .section__foot {
    margin-top: 36px;
  }

  .products,
  .cases,
  .news {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .about__list {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .about__lead {
    font-size: 16px;
  }

  .contact {
    padding: 64px 0;
  }

  .contact__info {
    grid-template-columns: 1fr;
    gap: 22px;
    padding: 26px 22px;
  }

  .contact__text .btn {
    width: 100%;
  }

  .footer__inner {
    grid-template-columns: 1fr;
    gap: 34px;
    padding-top: 52px;
    padding-bottom: 40px;
  }

  .footer__desc {
    max-width: none;
    margin-top: 18px;
  }

  .footer__bottom-inner {
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 4px;
    height: auto;
    padding-top: 18px;
    padding-bottom: 18px;
  }

  .backtop {
    right: 16px;
    bottom: 18px;
    width: 40px;
    height: 40px;
    padding: 10px;
  }
}

/* --- 小屏手机 --- */
@media (max-width: 420px) {
  .logo__img {
    height: 40px;
  }

  .logo__img--footer {
    height: 34px;
  }

  .highlights__grid {
    grid-template-columns: 1fr;
  }

  .highlight {
    border-right: 0;
    border-bottom: 1px solid var(--gray-200);
    padding: 26px 22px;
  }

  .highlight:last-child {
    border-bottom: 0;
  }

  .hero__eyebrow {
    font-size: 10.5px;
    letter-spacing: 1.8px;
    gap: 8px;
    margin-bottom: 16px;
  }

  .hero__eyebrow::before {
    width: 22px;
  }

  .hero__title {
    font-size: 26px;
  }

  .btn {
    height: 46px;
    padding: 0 22px;
    font-size: 14.5px;
  }
}

/* ==========================================================================
   首屏 Banner 文案：三组静态文案由 CSS 依据当前 slide 切换（无 JS 写文本）
   ========================================================================== */
.hero__cap {
  display: none;
}

/* 后台轮播图数量任意：由 JS 切换 .is-active */
.hero__cap.is-active {
  display: inline-flex;
  align-items: baseline;
  gap: 12px;
}

.hero:has(.hero__slide:nth-child(1).is-active) .hero__cap[data-i="0"],
.hero:has(.hero__slide:nth-child(2).is-active) .hero__cap[data-i="1"],
.hero:has(.hero__slide:nth-child(3).is-active) .hero__cap[data-i="2"],
.hero:has(.hero__slide:nth-child(4).is-active) .hero__cap[data-i="3"],
.hero:has(.hero__slide:nth-child(5).is-active) .hero__cap[data-i="4"] {
  display: inline-flex;
  align-items: baseline;
  gap: 12px;
}

@media (max-width: 760px) {
  .hero__cap {
    gap: 9px;
  }
}
