/* =====================================================
   飞利信 Philisense - 软件服务页面样式（Hero固定高度优化完整版）
   包含：Tab导航、服务面板、产品对齐、Hero、图片网格、表格等
   修复：图片自适应原始比例、Hero固定高度不再被文字/图片撑高
   ===================================================== */
:root {
  --hero-h-desk: 480px;    /* 桌面Hero固定高度 */
  --hero-h-tab: 380px;     /* 平板Hero固定高度 */
  --hero-h-mob: 320px;     /* 手机Hero固定高度 */
  --hero-inner-gap: 44px;
  --hero-padding-x: 24px;
  --hero-img-max-h: 360px; /* Hero图片最大高度，杜绝撑高容器 */
}
/* ===== 全局基础 ===== */
body {
  background: #f6f8fb;
  color: #111827;
  font-family: "Space Grotesk", "Microsoft YaHei", sans-serif;
}
/* ===== 页面独立Tab页Hero（短版顶部横幅，不参与固定高度逻辑） ===== */
.page-hero {
  background: linear-gradient(128deg, #102033 0%, #165dff 52%, #f3f7ff 100%);
  color: #fff;
  padding: 60px 24px;
  text-align: center;
}
.page-hero h1 {
  font-size: clamp(32px, 5vw, 48px);
  margin-bottom: 16px;
  letter-spacing: 0;
}
.page-hero p {
  max-width: 800px;
  margin: 0 auto;
  color: #e5efff;
  font-size: 17px;
  line-height: 1.8;
}
/* ===== 主容器 ===== */
.main-container {
  max-width: 1440px;
  margin: 0 auto;
  padding: 40px 24px 80px;
}
/* ===== Tab 导航 ===== */
.tab-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 32px;
  justify-content: center;
  border-bottom: 1px solid #e5e7eb;
  padding-bottom: 20px;
}
.tab-btn {
  padding: 12px 28px;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
  background: #fff;
  color: #374151;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(15, 23, 42, .04);
}
.tab-btn:hover {
  border-color: #165dff;
  color: #165dff;
}
.tab-btn.active {
  background: #165dff;
  color: #fff;
  border-color: #165dff;
  box-shadow: 0 8px 20px rgba(22, 93, 255, .25);
}
.tab-pane {
  display: none;
  animation: fadeIn 0.4s ease;
}
.tab-pane.active {
  display: block;
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
/* ===== 服务面板（通用） ===== */
.service-panel {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  margin-bottom: 26px;
  box-shadow: 0 10px 28px rgba(15, 23, 42, .05);
  padding: 34px;
}
/* ===== 区块标题 ===== */
.section-heading {
  margin-bottom: 20px;
}
.section-heading span {
  display: block;
  color: #165dff;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 8px;
}
.section-heading h2 {
  font-size: 26px;
  line-height: 1.3;
  color: #111827;
  position: relative;
  padding-left: 16px;
}
.section-heading h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  bottom: 4px;
  width: 4px;
  background: #165dff;
  border-radius: 2px;
}
.floor-title {
  font-family: "Space Grotesk", "Microsoft YaHei", sans-serif;
  font-size: 26px;
  margin-bottom: 20px;
  color: #111827;
}
/* ===== 内容块 ===== */
.content-block {
  color: #374151;
  font-size: 16px;
  line-height: 1.9;
  margin-bottom: 16px;
}
.content-block strong {
  color: #165dff;
  font-weight: 700;
}
/* ===== 特征列表 ===== */
.feature-list {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}
.feature-item {
  background: #f8fafc;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 20px 24px;
  position: relative;
  padding-left: 40px;
}
.feature-item::before {
  content: attr(data-num);
  position: absolute;
  left: 16px;
  top: 20px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #165dff;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
.feature-title {
  font-weight: 700;
  color: #111827;
  margin-bottom: 6px;
  display: block;
}
.feature-desc {
  font-size: 14px;
  color: #4b5563;
  line-height: 1.7;
}
/* ===== 用户网格 ===== */
.user-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 16px;
}
.user-card {
  background: #f8fafc;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 24px;
}
.user-card h3 {
  font-size: 18px;
  color: #165dff;
  margin-bottom: 10px;
}
.user-card p {
  font-size: 14px;
  color: #4b5563;
  line-height: 1.8;
}
/* ===== 产品对齐布局（缩小居中三列） ===== */
.product-aligned-row {
  display: flex;
  justify-content: center;
  align-items: stretch;
  gap: 24px;
  margin-top: 16px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}
.product-card {
  flex: 1;
  max-width: 280px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.img-frame {
  width: 100%;
  height: 200px;
  background: #f8fafc;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  box-sizing: border-box;
}
.img-frame img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
}
.card-label {
  margin-top: 10px;
  font-size: 13px;
  color: #4b5563;
  text-align: center;
  line-height: 1.4;
}
/* =========================================================
   Hero 区域（service-hero / intelli-hero 统一固定高度优化核心）
   ========================================================= */
.service-hero,
.intelli-hero {
  background: linear-gradient(128deg, #102033 0%, #165dff 52%, #f3f7ff 100%);
  color: #fff;
  overflow: hidden;
  /* 核心：固定高度，不再依靠上下padding撑开容器 */
  height: var(--hero-h-desk);
  display: flex;
  align-items: center;
  position: relative;
}
/* 装饰渐变光斑修复：固定像素定位，容器高度变化不会错位 */
.service-hero::after,
.intelli-hero::after {
  content: "";
  position: absolute;
  right: -12%;
  bottom: -120px;
  left: 44%;
  width: 70%;
  height: 70%;
  background: rgba(255,255,255,.16);
  border-radius: 999px;
  transform: rotate(-8deg);
  pointer-events: none;
}
.service-hero-inner,
.intelli-hero-inner {
  max-width: 1440px;
  width: 100%;
  margin: 0 auto;
  /* 仅保留左右内边距，上下由外层flex垂直居中 */
  padding: 0 var(--hero-padding-x);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 520px);
  gap: var(--hero-inner-gap);
  align-items: center;
  position: relative;
  z-index: 1;
  /* 内部内容最大高度限制，超长内容隐藏不撑高Hero */
  max-height: calc(var(--hero-h-desk) - 40px);
  overflow: hidden;
}
.eyebrow {
  display: inline-flex;
  width: fit-content;
  padding: 6px 10px;
  border: 1px solid rgba(255,255,255,.26);
  border-radius: 6px;
  color: #dbeafe;
  font-size: 13px;
  margin-bottom: 18px;
}
.service-hero h1,
.intelli-hero h1 {
  font-family: "Space Grotesk", "Microsoft YaHei", sans-serif;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.08;
  letter-spacing: 0;
  margin-bottom: 20px;
  /* 标题最多3行，超出省略 */
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}
.service-hero p,
.intelli-hero p {
  max-width: 760px;
  color: #e5efff;
  font-size: 17px;
  line-height: 1.8;
  /* 描述最多4行，超出省略 */
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}
.hero-media {
  border-radius: 8px;
  padding: 12px;
  background: rgba(255,255,255,.13);
  border: 1px solid rgba(255,255,255,.22);
  box-shadow: 0 24px 70px rgba(15,23,42,.24);
  min-height: 300px;
  max-height: var(--hero-img-max-h);
  display: grid;
  place-items: center;
  overflow: hidden;
}
.hero-media img {
  width: 100%;
  max-height: var(--hero-img-max-h);
  object-fit: contain;
  display: block;
  border-radius: 6px;
  background: #fff;
}
.hero-placeholder {
  width: 100%;
  min-height: 300px;
  max-height: var(--hero-img-max-h);
  display: grid;
  place-items: center;
  border-radius: 6px;
  background: rgba(255,255,255,.14);
  font-size: 44px;
  font-weight: 700;
}
/* ===== 主内容容器（服务 / 智能） ===== */
.service-main,
.intelli-main {
  max-width: 1440px;
  margin: 0 auto;
  padding: 54px 24px 82px;
}
/* ===== 板块卡片（服务 / 智能） ===== */
.service-section,
.intelli-section,
.service-panel,
.intelli-panel {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  margin-bottom: 26px;
  box-shadow: 0 10px 28px rgba(15,23,42,.05);
}
/* 双栏布局（文字+图片并排） */
.service-section,
.intelli-section {
  padding: 30px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  gap: 28px;
  align-items: center;
}
/* 纯面板（纯文字/纯图片单栏） */
.service-panel,
.intelli-panel {
  padding: 34px;
}
/* ===== 富文本通用样式 ===== */
.rich-copy {
  color: #374151;
  font-size: 16px;
  line-height: 1.85;
}
.rich-copy p {
  margin-bottom: 13px;
}
.rich-copy ul {
  display: grid;
  gap: 9px;
  margin: 12px 0 4px;
}
.rich-copy li {
  position: relative;
  padding-left: 18px;
}
.rich-copy li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .78em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #165dff;
}
.asset-note {
  color: #6b7280;
  font-size: 14px;
  border-left: 3px solid #c7d2fe;
  padding-left: 12px;
}
.block-media {
  background: #f8fafc;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 10px;
}
.block-media img {
  width: 100%;
  max-height: 310px;
  object-fit: contain;
  display: block;
  background: #fff;
  border-radius: 6px;
}
/* =========================================================
   图片网格（修复：高度自适应，不强制裁剪）
   ========================================================= */
.image-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
}
.image-card {
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  overflow: hidden;
  background: #f8fafc;
}
.image-card img {
  width: 100%;
  height: auto;
  max-height: 600px;
  object-fit: contain;
  display: block;
  background: #f8fafc;
  border-radius: 6px;
}
.image-card figcaption {
  padding: 10px 12px;
  color: #6b7280;
  font-size: 13px;
}
/* 智能板块专用大图网格 */
.intelli-section .image-grid {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 28px;
}
.intelli-section .image-card {
  border-radius: 12px;
  padding: 10px;
  box-shadow: 0 8px 24px rgba(15,23,42,.06);
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}
.intelli-section .image-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(15,23,42,.12);
}
.intelli-section .image-card img {
  aspect-ratio: auto;
  height: auto;
  max-height: 600px;
  object-fit: contain;
  border-radius: 6px;
  background: #f8fafc;
}
.intelli-section .image-card figcaption {
  padding: 14px 8px 6px;
  font-size: 14px;
  text-align: center;
}
/* ===== Meta 卡片网格 ===== */
.meta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}
.meta-card {
  background: #f8fafc;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 18px;
}
.meta-card h3 {
  font-size: 17px;
  margin-bottom: 10px;
}
.meta-card p {
  color: #4b5563;
  font-size: 14px;
  line-height: 1.7;
  margin-bottom: 6px;
}
/* ===== 表格通用样式 ===== */
.table-scroll {
  overflow-x: auto;
}
.source-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 760px;
  table-layout: fixed;
}
.source-table td:nth-child(1) { width: 28%; }
.source-table td:nth-child(2),
.source-table td:nth-child(3),
.source-table td:nth-child(4) { width: 24%; }
.source-table td {
  border: 1px solid #e5e7eb;
  padding: 14px 12px;
  vertical-align: middle;
  color: #374151;
  line-height: 1.7;
  text-align: center;
}
.source-table td:first-child { text-align: left; }
.source-table thead tr td {
  background: #f1f5f9;
  font-weight: 600;
  color: #111827;
  text-align: center;
}
.source-table tr:nth-child(even) td { background: #f8fafc; }
.source-table thead tr td:first-child { text-align: center; }
.source-table tbody tr td:first-child { text-align: left; }
.source-details {
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  margin-bottom: 14px;
  overflow: hidden;
}
.source-details summary {
  cursor: pointer;
  padding: 16px 18px;
  background: #f8fafc;
  font-weight: 600;
}
.source-details .table-scroll {
  padding: 0 14px 14px;
}
.cell-coord {
  display: inline-flex;
  margin: 0 8px 8px 0;
  padding: 2px 7px;
  border-radius: 6px;
  background: #e0edff;
  color: #165dff;
  font-size: 12px;
  font-weight: 600;
}
.raw-cell {
  white-space: pre-wrap;
  margin: 0;
  color: #374151;
  font: inherit;
  line-height: 1.7;
}
/* ===== 表格内图片容器 ===== */
.table-img-wrap {
  width: 100%;
  height: 100%;
  min-height: 110px;
  border-radius: 6px;
  background: #f8fafc;
  border: 1px solid #e5e7eb;
  padding: 3px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.table-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  border-radius: 4px;
}
.table-img-wrap-sm {
  width: 80%;
  aspect-ratio: 16 / 9;
  min-height: 90px;
  margin: 0 auto;
  border-radius: 6px;
  background: #f8fafc;
  border: 1px solid #e5e7eb;
  padding: 3px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
/* ===== 案例居中大图 ===== */
.case-img-wrap {
  width: 100%;
  margin: 20px 0 0;
  text-align: center;
}
.case-img-wrap img {
  width: 100%;
  max-width: 720px;
  aspect-ratio: 16 / 9;
  object-fit: contain;
  border-radius: 8px;
  background: #f8fafc;
  display: block;
  margin: 0 auto;
}
/* =========================================================
   响应式适配（分层切换Hero固定高度）
   ========================================================= */
@media (max-width: 900px) {
  .service-hero,
  .intelli-hero {
    height: var(--hero-h-tab);
  }
  .service-hero-inner,
  .intelli-hero-inner {
    grid-template-columns: 1fr;
    max-height: calc(var(--hero-h-tab) - 30px);
  }
  .hero-media {
    min-height: 220px;
    max-height: 260px;
  }
  .service-section,
  .intelli-section {
    grid-template-columns: 1fr;
  }
  .service-section,
  .intelli-section,
  .service-panel,
  .intelli-panel {
    padding: 24px;
  }
  .table-img-wrap {
    min-height: 90px;
  }
  .table-img-wrap-sm {
    width: 85%;
    min-height: 75px;
  }
  .case-img-wrap img {
    max-width: 600px;
  }
}
@media (max-width: 768px) {
  .tab-nav {
    gap: 8px;
  }
  .tab-btn {
    padding: 10px 16px;
    font-size: 14px;
    flex: 1 1 calc(50% - 8px);
    text-align: center;
  }
  .service-panel {
    padding: 24px 18px;
  }
  .feature-item {
    padding-left: 36px;
  }
  .product-aligned-row {
    flex-wrap: wrap;
    gap: 16px;
  }
  .product-card {
    max-width: 100%;
    flex: 1 1 calc(50% - 16px);
  }
  .img-frame {
    height: 180px;
  }
}
@media (max-width: 520px) {
  .service-hero,
  .intelli-hero {
    height: var(--hero-h-mob);
  }
  .service-hero-inner,
  .intelli-hero-inner {
    padding: 0 16px;
    max-height: calc(var(--hero-h-mob) - 20px);
  }
  .service-main,
  .intelli-main {
    padding: 34px 16px 56px;
  }
  .section-heading h2 {
    font-size: 23px;
  }
  .rich-copy {
    font-size: 15px;
  }
  .table-img-wrap {
    min-height: 70px;
  }
  .table-img-wrap-sm {
    width: 90%;
    min-height: 60px;
  }
  .case-img-wrap img {
    max-width: 100%;
  }
  .product-card {
    flex: 1 1 100%;
  }
  .image-grid {
    grid-template-columns: 1fr;
  }
  .intelli-section .image-grid {
    grid-template-columns: 1fr;
  }
}
/* 合作板块专用布局 */
.cooperation-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  grid-template-rows: repeat(2, auto);
  align-items: center;
}
.cooperation-section .block-media {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 220px;
}
.cooperation-section .block-media img {
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 310px;
  margin: 0 auto;
}
.cooperation-table {
  min-width: 0;
}
.cooperation-table td {
  width: 50% !important;
  text-align: center !important;
  vertical-align: top;
}
.cooperation-table tbody td {
  padding: 16px;
  color: #374151;
}
.cooperation-table .table-img-wrap {
  width: 100%;
  max-width: 560px;
  height: clamp(220px, 24vw, 340px);
  margin: 10px auto 0;
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cooperation-table .table-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}
.application-scene-section .case-img-wrap {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 6px;
}
.application-scene-section .case-img-wrap img {
  width: min(100%, 720px);
  max-width: 100%;
  height: auto;
  max-height: none;
  aspect-ratio: auto;
  object-fit: contain;
  object-position: center;
}
    /* 针对本次优化的局部样式补充 */
    .feature-split {
        display: flex;
        align-items: center;
        gap: 3rem;
        margin-top: 1.5rem;
    }
    .feature-split.reverse {
        flex-direction: row-reverse;
    }
    .feature-text {
        flex: 1;
        font-size: 1rem;
        line-height: 1.8;
        color: #333;
    }
    .feature-text h3 {
        font-size: 1.25rem;
        margin-bottom: 1rem;
        color: #1a1a1a;
        border-left: 4px solid #0056b3;
        padding-left: 0.75rem;
    }
    .feature-text p {
        margin-bottom: 0.8rem;
    }
    .feature-text strong {
        color: #0056b3;
    }
    .feature-media {
        flex: 1;
        min-width: 0;
    }
    .feature-media img {
        width: 100%;
        height: auto;
        border-radius: 8px;
        display: block;
    }
    @media (max-width: 768px) {
        .feature-split, .feature-split.reverse {
            flex-direction: column;
            gap: 1.5rem;
        }
    }
