/* ===== CSS 变量与基础重置 ===== */
:root {
  --primary: #165dff;
  --primary-dark: #0e4ad6;
  --primary-light: #e8f4ff;
  --brand-red: #c41e1e;
  --brand-red-dark: #a01818;
  --brand-navy: #1c2a3a;
  --brand-navy-mid: #243447;
  --accent: #f5a623;
  --accent-light: #fff8e7;
  --text-primary: #1d2129;
  --text-secondary: #4e5969;
  --text-tertiary: #86909c;
  --border: #e5e6eb;
  --bg-gray: #f7f8fa;
  --bg-white: #ffffff;
  --shadow: rgba(22, 93, 255, 0.08);
  --header-h: 96px;
  --header-h-mobile: 72px;
  --logo-w: 300px;
  --logo-h: 94px;
  --logo-w-mobile: 188px;
  --logo-h-mobile: 58px;
  --container: 1200px;
  --radius-card: 8px;
  --radius-btn: 6px;
  --radius-input: 4px;
  --section-pad-d: 100px;
  --section-pad-t: 60px;
  --section-pad-m: 40px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "PingFang SC",
    "Microsoft YaHei", sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-secondary);
  background: var(--bg-white);
}

img {
  max-width: 100%;
  height: auto;
  vertical-align: middle;
  /* 按 EXIF 方向显示手机/相机拍摄的竖图、倒置图（与下方脚本烤方向互为补充） */
  image-orientation: from-image;
}

a {
  color: inherit;
  text-decoration: none;
}

h1,
h2,
h3,
h4 {
  color: var(--text-primary);
  font-weight: 600;
  line-height: 1.3;
}

p {
  margin: 0 0 1em;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

/* ===== 导航栏 ===== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--header-h);
  display: flex;
  align-items: center;
  transition: background 0.35s ease, box-shadow 0.35s ease;
}

.page-sub .site-header,
.site-header.site-header--solid {
  background: var(--bg-white);
  box-shadow: 0 4px 24px var(--shadow);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

.logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.logo img,
.logo-img {
  width: var(--logo-w);
  height: var(--logo-h);
  max-width: min(var(--logo-w), 58vw);
  object-fit: contain;
  object-position: left center;
  display: block;
}

/* 首页透明导航：保留彩色 LOGO，用阴影压暗底上保证可见（避免 invert 滤镜导致不显示） */
.page-home .site-header:not(.site-header--solid) .logo-img {
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.35))
    drop-shadow(0 4px 14px rgba(0, 0, 0, 0.25));
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: none;
  background: transparent;
  cursor: pointer;
  padding: 0;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 6px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: currentColor;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.page-home .site-header:not(.site-header--solid) .nav-toggle {
  color: var(--bg-white);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.site-nav__list {
  display: flex;
  align-items: center;
  gap: 4px;
}

.site-nav__link {
  position: relative;
  display: block;
  padding: 10px 14px;
  font-size: 15px;
  color: var(--text-primary);
  transition: color 0.25s ease;
}

.page-home .site-header:not(.site-header--solid) .site-nav__link {
  color: rgba(255, 255, 255, 0.95);
}

.site-nav__link:hover,
.site-nav__link[aria-current="page"] {
  color: var(--primary);
}

.page-home .site-header:not(.site-header--solid) .site-nav__link:hover,
.page-home .site-header:not(.site-header--solid) .site-nav__link[aria-current="page"] {
  color: var(--bg-white);
}

.site-nav__link::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 6px;
  height: 2px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.site-nav__link:hover::after,
.site-nav__link[aria-current="page"]::after {
  transform: scaleX(1);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 22px;
  font-size: 15px;
  font-weight: 600;
  border-radius: var(--radius-btn);
  border: none;
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease, transform 0.2s ease;
}

.btn--accent {
  background: var(--accent);
  color: var(--bg-white);
}

.btn--accent:hover {
  filter: brightness(1.05);
}

.btn--primary {
  background: var(--primary);
  color: var(--bg-white);
}

.btn--primary:hover {
  background: var(--primary-dark);
}

.btn--outline-light {
  background: transparent;
  color: var(--bg-white);
  border: 2px solid rgba(255, 255, 255, 0.85);
}

.btn--outline-light:hover {
  background: rgba(255, 255, 255, 0.12);
}

.btn--white {
  background: var(--bg-white);
  color: var(--primary);
}

.btn--white:hover {
  background: var(--primary-light);
}

.btn--block {
  width: 100%;
}

.site-header__cta {
  margin-left: 16px;
}

/* 移动端侧滑菜单 */
@media (max-width: 767px) {
  .site-header {
    height: var(--header-h-mobile);
  }

  .logo img,
  .logo-img {
    width: var(--logo-w-mobile);
    height: var(--logo-h-mobile);
    max-width: min(var(--logo-w-mobile), 48vw);
  }

  .nav-toggle {
    display: flex;
  }

  .site-nav {
    position: fixed;
    top: var(--header-h-mobile);
    right: 0;
    bottom: 0;
    width: min(300px, 86vw);
    background: var(--bg-white);
    flex-direction: column;
    align-items: stretch;
    padding: 24px 20px 40px;
    box-shadow: -8px 0 32px rgba(0, 0, 0, 0.12);
    transform: translateX(100%);
    transition: transform 0.35s ease;
    overflow-y: auto;
  }

  body.nav-open .site-nav {
    transform: translateX(0);
  }

  body.nav-open::after {
    content: "";
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 999;
  }

  .site-nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .site-nav__link {
    padding: 14px 0;
    color: var(--text-primary);
    border-bottom: 1px solid var(--border);
  }

  .site-nav__link::after {
    display: none;
  }

  .site-header__cta {
    margin: 20px 0 0;
  }

  .site-header__cta .btn {
    width: 100%;
  }
}

/* ===== 首页 Hero 轮播 ===== */
.hero-carousel {
  position: relative;
  min-height: 100vh;
  background: linear-gradient(135deg, #165dff 0%, #0e4ad6 100%);
}

.hero-slides {
  position: relative;
  min-height: 100vh;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.7s ease, visibility 0.7s ease;
  background-size: cover;
  background-position: center;
}

.hero-slide.is-active {
  opacity: 1;
  visibility: visible;
  z-index: 1;
}

.hero-slide--1 {
  background-image: linear-gradient(
      135deg,
      rgba(22, 93, 255, 0.88) 0%,
      rgba(14, 74, 214, 0.82) 100%
    ),
    url("../images/hero-1.jpg");
}

.hero-slide--2 {
  background-image: linear-gradient(
      135deg,
      rgba(22, 93, 255, 0.88) 0%,
      rgba(14, 74, 214, 0.82) 100%
    ),
    url("../images/hero-2.jpg");
}

.hero-slide--3 {
  background-image: linear-gradient(
      135deg,
      rgba(22, 93, 255, 0.88) 0%,
      rgba(14, 74, 214, 0.82) 100%
    ),
    url("../images/hero-3.jpg");
}

.hero-slide--4 {
  background-image: linear-gradient(
      135deg,
      rgba(28, 42, 58, 0.92) 0%,
      rgba(196, 30, 30, 0.78) 100%
    ),
    url("../images/hero-3.jpg");
}

.hero-slide__content {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: var(--container);
  margin: 0 auto;
  padding: calc(var(--header-h) + 40px) 20px 80px;
  color: var(--bg-white);
}

.hero-slide__content h1 {
  font-size: clamp(28px, 5vw, 44px);
  font-weight: 700;
  color: var(--bg-white);
  margin: 0 0 16px;
  max-width: 18ch;
}

.hero-slide__content p {
  font-size: clamp(16px, 2.2vw, 20px);
  color: rgba(255, 255, 255, 0.92);
  margin-bottom: 32px;
  max-width: 36ch;
}

.hero-slide__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.hero-carousel__controls {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 16px;
}

.hero-carousel__btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.12);
  color: var(--bg-white);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.25s ease;
}

.hero-carousel__btn:hover {
  background: rgba(255, 255, 255, 0.25);
}

.hero-carousel__btn svg {
  width: 20px;
  height: 20px;
}

.hero-carousel__dots {
  display: flex;
  gap: 10px;
}

.hero-carousel__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: none;
  padding: 0;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: transform 0.25s ease, background 0.25s ease;
}

.hero-carousel__dot.is-active {
  background: var(--bg-white);
  transform: scale(1.15);
}

.hero-carousel.is-paused .hero-slide__content {
  pointer-events: auto;
}

/* ===== 通用区块标题 ===== */
.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 40px;
}

.section-head h2 {
  margin: 0;
  font-size: clamp(24px, 3vw, 32px);
}

.section-head__link {
  font-size: 15px;
  font-weight: 600;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.section-head__link:hover {
  text-decoration: underline;
}

/* ===== 核心优势 ===== */
.section--gray {
  background: var(--bg-gray);
  padding: var(--section-pad-d) 0;
}

.section--white {
  background: var(--bg-white);
  padding: var(--section-pad-d) 0;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.feature-card {
  background: var(--bg-white);
  padding: 28px 24px;
  border-radius: var(--radius-card);
  box-shadow: 0 8px 32px var(--shadow);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(22, 93, 255, 0.12);
}

.feature-card__icon {
  font-size: 32px;
  line-height: 1;
  margin-bottom: 12px;
}

.feature-card h3 {
  margin: 0 0 12px;
  font-size: 18px;
}

.feature-card p {
  margin: 0;
  font-size: 15px;
  color: var(--text-secondary);
}

/* ===== 业务卡片网格 ===== */
.biz-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.biz-card {
  background: var(--bg-white);
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: 0 8px 28px var(--shadow);
  transition: box-shadow 0.35s ease;
}

.biz-card:hover {
  box-shadow: 0 16px 48px rgba(22, 93, 255, 0.14);
}

.biz-card__media {
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.biz-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.biz-card:hover .biz-card__media img {
  transform: scale(1.06);
}

.biz-card__body {
  padding: 20px;
}

.biz-card__body h3 {
  margin: 0 0 10px;
  font-size: 18px;
}

.biz-card__body p {
  margin: 0;
  font-size: 15px;
}

.biz-grid--single {
  grid-template-columns: 1fr;
  max-width: 720px;
  margin: 0 auto;
}

/* ===== 品牌传承 ===== */
.heritage {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.heritage__media {
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: 0 12px 48px var(--shadow);
}

.heritage__media img {
  width: 100%;
  display: block;
  object-fit: cover;
}

.heritage__label {
  font-size: 14px;
  font-weight: 600;
  color: var(--primary);
  letter-spacing: 0.06em;
  margin-bottom: 8px;
}

.heritage h2 {
  margin: 0 0 20px;
  font-size: clamp(22px, 3vw, 30px);
}

/* ===== 案例卡片 ===== */
.cases-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.case-card {
  position: relative;
  border-radius: var(--radius-card);
  overflow: hidden;
  background: var(--bg-gray);
  cursor: pointer;
}

a.case-card {
  display: block;
  color: inherit;
  cursor: pointer;
}

.case-card__media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.case-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.case-card:hover .case-card__media img {
  transform: scale(1.05);
}

.case-card__overlay {
  position: absolute;
  inset: 0;
  background: rgba(22, 93, 255, 0.88);
  color: var(--bg-white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 13px;
  line-height: 1.45;
  text-align: center;
  padding: 12px 14px;
  opacity: 0;
  transition: opacity 0.35s ease;
}

.case-card:hover .case-card__overlay {
  opacity: 1;
}

.case-card__body {
  padding: 16px;
  background: var(--bg-white);
}

.case-card__body h3 {
  margin: 0 0 8px;
  font-size: 16px;
}

.tag {
  display: inline-block;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 600;
  border-radius: 4px;
  background: var(--primary-light);
  color: var(--primary);
}

/* ===== CTA 条 ===== */
.cta-strip {
  background: var(--primary);
  padding: 64px 0;
  text-align: center;
  color: var(--bg-white);
}

.cta-strip h2 {
  color: var(--bg-white);
  margin: 0 0 12px;
  font-size: clamp(22px, 3vw, 30px);
}

.cta-strip p {
  margin: 0 0 28px;
  color: rgba(255, 255, 255, 0.92);
}

/* ===== Footer ===== */
.site-footer {
  background: #1d2129;
  color: rgba(255, 255, 255, 0.75);
  padding: 56px 0 0;
  font-size: 14px;
}

.site-footer a:hover {
  color: var(--bg-white);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 1.2fr;
  gap: 32px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* 页脚彩色 LOGO：不用白底块（易被看成左下角白方块），用阴影衬托深色背景 */
.site-footer .logo {
  align-self: start;
}

.site-footer .logo img {
  margin-bottom: 12px;
  max-width: min(200px, 70vw);
  width: auto;
  height: auto;
  max-height: 56px;
  object-fit: contain;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.45));
  display: block;
}

.site-footer h4 {
  color: var(--bg-white);
  font-size: 15px;
  margin: 0 0 16px;
}

.site-footer ul li {
  margin-bottom: 10px;
}

.footer-bottom {
  padding: 20px 0;
  text-align: center;
  font-size: 13px;
  color: var(--text-tertiary);
}

.footer-bottom a {
  color: rgba(255, 255, 255, 0.55);
  margin: 0 8px;
}

/* ===== 内页通用标题区 ===== */
.page-hero {
  background: var(--bg-gray);
  padding: calc(var(--header-h) + 48px) 0 40px;
  text-align: center;
}

.page-hero h1 {
  margin: 0 0 12px;
  font-size: clamp(28px, 4vw, 38px);
}

.page-hero p {
  margin: 0;
  color: var(--text-secondary);
}

.breadcrumb {
  font-size: 14px;
  color: var(--text-tertiary);
  margin-bottom: 16px;
}

.breadcrumb a {
  color: var(--primary);
}

/* ===== 关于我们：子导航 ===== */
.sub-nav-wrap {
  position: sticky;
  top: var(--header-h);
  z-index: 50;
  background: var(--bg-white);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.sub-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  padding: 12px 20px;
}

.sub-nav a {
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: 4px;
}

.sub-nav a:hover,
.sub-nav a.is-active {
  color: var(--primary);
  background: var(--primary-light);
}

.about-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
  padding: var(--section-pad-d) 0;
}

.about-intro__media {
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: 0 12px 40px var(--shadow);
}

.about-lead {
  font-size: 17px;
  color: var(--text-tertiary);
  margin-bottom: 1em;
}

#about-intro,
#about-strength,
#about-timeline {
  scroll-margin-top: 140px;
}

.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 32px;
}

.stat-item {
  text-align: center;
  padding: 24px 16px;
  background: var(--primary-light);
  border-radius: var(--radius-card);
}

.stat-item strong {
  display: block;
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  color: var(--primary);
  line-height: 1.2;
}

.stat-item span {
  font-size: 14px;
  color: var(--text-secondary);
}

.strength-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.strength-card {
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  background: var(--bg-white);
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.strength-card:hover {
  border-color: rgba(22, 93, 255, 0.35);
  box-shadow: 0 8px 32px var(--shadow);
}

.strength-card h3 {
  margin: 0 0 12px;
  font-size: 18px;
}

.timeline {
  display: flex;
  gap: 0;
  padding: var(--section-pad-d) 0;
  overflow-x: auto;
}

.timeline__item {
  flex: 1;
  min-width: 180px;
  padding: 0 16px;
  border-left: 3px solid var(--primary);
  position: relative;
}

.timeline__item time {
  display: block;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 8px;
}

.timeline__item p {
  font-size: 14px;
  margin: 0;
}

.timeline__photo {
  margin-top: 12px;
  border-radius: 6px;
  overflow: hidden;
  max-height: 100px;
}

.timeline__photo img {
  width: 100%;
  height: 100px;
  object-fit: cover;
}

/* ===== 业务范围：交替图文 ===== */
.service-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  padding: 72px 0;
  border-bottom: 1px solid var(--border);
}

.service-block:last-child {
  border-bottom: none;
}

.service-block--reverse .service-block__text {
  order: 1;
}

.service-block--reverse .service-block__media {
  order: 2;
}

.service-block__media {
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: 0 12px 40px var(--shadow);
}

.service-block__media img {
  width: 100%;
  display: block;
}

.service-block__label {
  font-size: 13px;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 8px;
}

.service-block h2 {
  margin: 0 0 8px;
}

.service-block .sub {
  font-size: 15px;
  color: var(--text-tertiary);
  margin-bottom: 20px;
}

.service-list {
  margin: 0 0 24px;
  padding-left: 1.2em;
  list-style: disc;
}

.service-list li {
  margin-bottom: 8px;
  color: var(--text-secondary);
}

/* ===== 成功案例：筛选与网格 ===== */
.filter-bar {
  display: flex;
  flex-wrap: nowrap;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 8px;
  margin-bottom: 32px;
  -webkit-overflow-scrolling: touch;
}

.filter-btn {
  flex-shrink: 0;
  padding: 8px 16px;
  font-size: 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--bg-white);
  cursor: pointer;
  color: var(--text-secondary);
  transition: background 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}

.filter-btn:hover,
.filter-btn.is-active {
  background: var(--primary-light);
  border-color: var(--primary);
  color: var(--primary);
}

.cases-page-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.section-cases {
  padding-top: 0;
  padding-bottom: 80px;
}

.contact-main {
  padding-top: 48px;
  padding-bottom: 80px;
}

.case-card.is-hidden {
  display: none;
}

.case-card__desc-short {
  font-size: 14px;
  color: var(--text-secondary);
  margin-top: 8px;
}

/* ===== 模态框 ===== */
.modal-root {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}

.modal-root.is-open {
  opacity: 1;
  visibility: visible;
}

.modal-root__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  cursor: pointer;
}

.modal-root__dialog {
  position: relative;
  z-index: 1;
  width: min(920px, 100%);
  max-height: 90vh;
  overflow-y: auto;
  background: var(--bg-white);
  border-radius: var(--radius-card);
  padding: 28px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.25);
}

.modal-root__close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  border: none;
  background: var(--bg-gray);
  border-radius: 50%;
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
  color: var(--text-secondary);
}

.modal-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 10px;
  max-height: 420px;
  overflow-y: auto;
  margin-bottom: 20px;
  padding: 4px;
}

.modal-gallery img {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 6px;
  object-fit: cover;
}

.modal-root h3 {
  margin: 0 0 12px;
}

/* ===== 案例图片点击放大（灯箱） ===== */
.image-lightbox {
  position: fixed;
  inset: 0;
  z-index: 4000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 20px;
  background: rgba(0, 0, 0, 0.88);
  cursor: zoom-out;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.image-lightbox.is-open {
  opacity: 1;
  visibility: visible;
}

.image-lightbox__close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 2;
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  color: var(--bg-white);
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.25s ease;
}

.image-lightbox__close:hover {
  background: rgba(255, 255, 255, 0.28);
}

.image-lightbox__img {
  max-width: min(96vw, 1600px);
  max-height: min(88vh, 1200px);
  width: auto;
  height: auto;
  object-fit: contain;
  cursor: default;
  border-radius: 4px;
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.5);
}

/* 关闭时勿占位/勿露出空图，避免个别环境下出现角落白块 */
.image-lightbox:not(.is-open) .image-lightbox__img {
  display: none;
}

.modal-gallery img {
  cursor: zoom-in;
}

/* ===== 联系页 ===== */
.contact-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 40px;
}

.contact-card {
  background: var(--bg-white);
  padding: 24px;
  border-radius: var(--radius-card);
  border: 1px solid var(--border);
  text-align: center;
  box-shadow: 0 4px 20px var(--shadow);
}

.contact-card__icon {
  font-size: 28px;
  margin-bottom: 8px;
}

.contact-card h3 {
  margin: 0 0 8px;
  font-size: 16px;
}

.contact-card--link {
  display: block;
  color: inherit;
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.contact-card--link:hover {
  border-color: var(--primary);
  box-shadow: 0 8px 28px var(--shadow);
}

.contact-card--link h3 {
  margin: 0;
}

.map-placeholder {
  height: 360px;
  background: var(--bg-gray);
  border-radius: var(--radius-card);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 40px;
  border: 1px dashed var(--border);
  color: var(--text-tertiary);
}

.map-placeholder a {
  color: var(--primary);
  font-weight: 600;
}

.form-card {
  max-width: 640px;
  margin: 0 auto 48px;
  padding: 32px;
  background: var(--bg-white);
  border-radius: var(--radius-card);
  box-shadow: 0 12px 48px var(--shadow);
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 14px;
  font-size: 16px;
  font-family: inherit;
  border: 1px solid var(--border);
  border-radius: var(--radius-input);
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(22, 93, 255, 0.2);
}

.form-group.has-error input,
.form-group.has-error select,
.form-group.has-error textarea {
  border-color: #f53f3f;
}

.form-error {
  font-size: 13px;
  color: #f53f3f;
  margin-top: 6px;
  display: none;
}

.form-group.has-error .form-error {
  display: block;
}

.form-success {
  display: none;
  padding: 14px;
  background: #e8ffea;
  color: #0f7b3a;
  border-radius: var(--radius-input);
  margin-bottom: 20px;
  font-weight: 500;
}

.form-success.is-visible {
  display: block;
}

.notice-box {
  max-width: 640px;
  margin: 0 auto;
  padding: 24px;
  background: var(--accent-light);
  border-radius: var(--radius-card);
  font-size: 15px;
}

.notice-box ul {
  padding-left: 1.2em;
  list-style: disc;
}

.notice-box li {
  margin-bottom: 8px;
}

.legal-block {
  max-width: var(--container);
  margin: 0 auto;
  padding: 40px 20px 80px;
  font-size: 14px;
  color: var(--text-secondary);
}

.legal-block h2 {
  font-size: 20px;
  margin-bottom: 12px;
}

/* ===== 滚动显现 ===== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== 返回顶部 ===== */
.back-top {
  position: fixed;
  right: 20px;
  bottom: 24px;
  z-index: 1500;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: none;
  background: var(--primary);
  color: var(--bg-white);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(22, 93, 255, 0.35);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
}

.back-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-top svg {
  width: 22px;
  height: 22px;
}

/* ===== 平板 ===== */
@media (min-width: 768px) and (max-width: 1024px) {
  .section--gray,
  .section--white {
    padding: var(--section-pad-t) 0;
  }

  .features-grid,
  .biz-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .cases-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .cases-page-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .contact-cards {
    grid-template-columns: repeat(2, 1fr);
  }

  .heritage,
  .about-intro,
  .service-block {
    grid-template-columns: 1fr;
  }

  .service-block--reverse .service-block__text,
  .service-block--reverse .service-block__media {
    order: unset;
  }

  .stats-row {
    grid-template-columns: repeat(2, 1fr);
  }

  .strength-grid {
    grid-template-columns: 1fr;
  }

  .timeline {
    flex-direction: column;
  }

  .timeline__item {
    border-left: none;
    border-top: 3px solid var(--primary);
    padding-top: 12px;
    margin-bottom: 24px;
  }
}

/* ===== 手机 ===== */
@media (max-width: 767px) {
  .section--gray,
  .section--white {
    padding: var(--section-pad-m) 0;
  }

  .hero-slide__content {
    padding-top: calc(var(--header-h-mobile) + 32px);
  }

  .features-grid,
  .biz-grid,
  .cases-grid,
  .cases-page-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .contact-cards {
    grid-template-columns: 1fr;
  }

  .heritage,
  .about-intro,
  .service-block {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .stats-row {
    grid-template-columns: 1fr 1fr;
  }

  .timeline {
    flex-direction: column;
  }

  .timeline__item {
    border-left: none;
    border-top: 3px solid var(--primary);
    padding-top: 12px;
    margin-bottom: 20px;
    min-width: 0;
  }

  .sub-nav-wrap {
    top: var(--header-h-mobile);
  }

  .page-hero {
    padding-top: calc(var(--header-h-mobile) + 36px);
  }
}

/* ===== 卓越红点 · 数字化服务 ===== */
.btn--brand {
  background: var(--brand-red);
  color: #fff;
  border: none;
}

.btn--brand:hover {
  background: var(--brand-red-dark);
  color: #fff;
}

.btn--outline-dark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  border-radius: var(--radius-btn);
  border: 2px solid var(--brand-navy);
  color: var(--brand-navy);
  font-weight: 600;
  transition: background 0.2s ease, color 0.2s ease;
}

.btn--outline-dark:hover {
  background: var(--brand-navy);
  color: #fff;
}

.page-hero--digital {
  background: linear-gradient(160deg, var(--brand-navy) 0%, var(--brand-navy-mid) 55%, #3d2a2a 100%);
  color: #fff;
  padding-bottom: 72px;
}

.page-hero--digital h1,
.page-hero--digital .page-hero__lead {
  color: #fff;
}

.page-hero__lead {
  max-width: 640px;
  font-size: 1.125rem;
  opacity: 0.92;
}

.digital-tag {
  display: inline-block;
  margin: 0 0 12px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(196, 30, 30, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.25);
  font-size: 0.875rem;
  letter-spacing: 0.04em;
  color: #fff;
}

.section--gray .digital-tag,
.section--white .digital-tag {
  background: rgba(196, 30, 30, 0.08);
  border-color: rgba(196, 30, 30, 0.25);
  color: var(--brand-red);
}

.digital-dual-brand {
  margin: 24px 0 0;
  font-size: 0.875rem;
  opacity: 0.75;
}

.digital-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.digital-hero__actions--center {
  justify-content: center;
}

.section-head__desc {
  max-width: 720px;
  margin: 12px auto 0;
  color: var(--text-secondary);
  text-align: center;
}

.digital-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 40px;
}

.digital-stat {
  text-align: center;
  padding: 28px 16px;
  background: var(--bg-gray);
  border-radius: var(--radius-card);
  border: 1px solid var(--border);
}

.digital-stat__num {
  display: block;
  font-size: 2rem;
  font-weight: 700;
  color: var(--brand-red);
  line-height: 1.2;
}

.digital-stat__label {
  display: block;
  margin-top: 8px;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.digital-note {
  margin-top: 16px;
  text-align: center;
  font-size: 0.8125rem;
  color: var(--text-tertiary);
}

.digital-layers {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 8px;
}

.digital-layer {
  padding: 28px 24px;
  background: var(--bg-white);
  border-radius: var(--radius-card);
  border: 1px solid var(--border);
  box-shadow: 0 8px 32px rgba(28, 42, 58, 0.06);
}

.digital-layer__tag {
  display: inline-block;
  margin-bottom: 12px;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.digital-layer__tag--l1 {
  background: #dcfce7;
  color: #166534;
}

.digital-layer__tag--l2 {
  background: #dbeafe;
  color: #1e40af;
}

.digital-layer__tag--l3 {
  background: #ede9fe;
  color: #5b21b6;
}

.digital-layer__for {
  margin-bottom: 0;
  font-size: 0.9rem;
  color: var(--text-tertiary);
}

.digital-cats {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}

.digital-cat {
  padding: 20px 16px;
  background: var(--bg-gray);
  border-radius: var(--radius-card);
  border: 1px solid var(--border);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.digital-cat:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(28, 42, 58, 0.08);
}

.digital-cat__icon {
  font-size: 1.75rem;
  line-height: 1;
}

.digital-cat h3 {
  margin: 10px 0 8px;
  font-size: 1rem;
}

.digital-cat p {
  margin: 0;
  font-size: 0.8125rem;
  line-height: 1.5;
  color: var(--text-tertiary);
}

.digital-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.digital-steps li {
  display: flex;
  gap: 16px;
  padding: 24px;
  background: var(--bg-white);
  border-radius: var(--radius-card);
  border: 1px solid var(--border);
}

.digital-steps__num {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--brand-red);
  color: #fff;
  font-weight: 700;
}

.digital-steps h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
}

.digital-steps p {
  margin: 0;
  font-size: 0.9rem;
}

.digital-live {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.digital-live__card {
  display: block;
  padding: 28px 24px;
  background: linear-gradient(145deg, var(--bg-gray) 0%, #fff 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.digital-live__card:hover {
  border-color: var(--brand-red);
  box-shadow: 0 12px 36px rgba(196, 30, 30, 0.1);
}

.digital-live__card h3 {
  margin: 0 0 10px;
  color: var(--brand-navy);
}

.digital-live__card p {
  margin: 0 0 16px;
  font-size: 0.9rem;
}

.digital-live__cta {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--brand-red);
}

.cta-strip--digital {
  background: linear-gradient(135deg, var(--brand-navy) 0%, var(--brand-red) 100%);
}

.footer-dual-brand {
  margin-top: 12px;
  font-size: 0.8125rem;
  color: var(--text-tertiary);
}

/* 首页 · 数字化推广条 */
.section--digital-promo {
  background: linear-gradient(120deg, var(--brand-navy) 0%, #2a3d52 50%, rgba(196, 30, 30, 0.85) 100%);
  color: #fff;
  padding: var(--section-pad-d) 0;
}

.digital-promo {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}

.digital-promo__text h2 {
  color: #fff;
  margin: 0 0 16px;
}

.digital-promo__text p {
  color: rgba(255, 255, 255, 0.88);
  margin: 0 0 24px;
}

.digital-promo__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

.digital-promo__tags span {
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  font-size: 0.8125rem;
}

.digital-promo__panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.digital-promo__tile {
  padding: 20px 16px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-card);
  backdrop-filter: blur(6px);
}

.digital-promo__tile strong {
  display: block;
  color: #fff;
  margin-bottom: 6px;
}

.digital-promo__tile span {
  font-size: 0.8125rem;
  opacity: 0.85;
}

@media (max-width: 1023px) {
  .digital-stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .digital-layers {
    grid-template-columns: 1fr;
  }

  .digital-cats {
    grid-template-columns: repeat(2, 1fr);
  }

  .digital-live {
    grid-template-columns: 1fr;
  }

  .digital-promo {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

@media (max-width: 767px) {
  .digital-stats {
    grid-template-columns: 1fr 1fr;
  }

  .digital-cats {
    grid-template-columns: 1fr;
  }

  .digital-steps {
    grid-template-columns: 1fr;
  }

  .digital-promo__panel {
    grid-template-columns: 1fr;
  }
}

/* 名片深链：仅显示对应成功案例分类 */
html.case-url-filter #case-filters .filter-btn[data-filter="all"] {
  display: none !important;
}
.cases-page-grid .case-card.is-hidden {
  display: none !important;
}
