  /* 自定义字体 */
  body {
    font-family: "Inter", sans-serif;
  }

  a {
    text-decoration: none;
    -ms-transition: all 0.5s;
    -webkit-transition: all 0.5s;
    transition: all 0.5s;
  }
  dl,
  ol,
  ul {
    margin-top: 0;
    margin-bottom: 0;
  }
  dd {
    margin-bottom: 0;
    margin-left: 0;
  }

  /* 自定义品牌颜色 - Bootstrap 默认颜色不够匹配 */
  :root {
    --primary-yellow: #fbbf24;
    --primary-orange: #f59e0b;
    --brand-blue: #003366;
    --footer-blue: #0a2540;
  }

  .text-brand-blue {
    color: var(--brand-blue);
  }
  .bg-brand-blue {
    background-color: var(--brand-blue);
  }
  .bg-footer-blue {
    background-color: var(--footer-blue);
  }

  .btn-primary-yellow {
    background-color: var(--primary-yellow);
    color: white;
    border: none;
    font-weight: bold;
  }
  .btn-primary-yellow:hover {
    background-color: var(--primary-orange);
    color: white;
  }

  .btn-brand-blue {
    background-color: var(--brand-blue);
    color: white;
    font-weight: 500;
  }
  .btn-brand-blue:hover {
    background-color: #002244; /* Darker shade */
    color: white;
  }

  /* Hero 背景 */
  .hero-bg {
    background-image: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3)),
      url("/static/images/flat_bottom/banner.jpg");
    background-size: 100% 100%;
    background-repeat: no-repeat;
    min-height: 750px;
  }

  /* 表单背景 */
  .form-bg {
    background-image: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3)),
      url("/static/images/flat_bottom/form.jpg");
    background-size: 100% 100%;
    background-repeat: no-repeat;
  }

  .para-bg {
    background-image: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3)),
      url("/static/images/flat_bottom/para-bg.jpg");
    background-size: 100% 100%;
    background-repeat: no-repeat;
  }

  /* 图片 Hover 放大效果 */
  .hover-scale img {
    transition: transform 0.3s ease;
  }
  .hover-scale:hover img {
    transform: scale(1.05);
  }

  /* 链接 Hover 效果 */
  .nav-link:hover,
  .footer-link:hover {
    color: var(--primary-orange) !important;
  }

  /* 复杂网格布局 CSS (Bootstrap Grid 难以直接实现跨行跨列) */
  .custom-grid-cases {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.3rem;
  }
  @media (min-width: 768px) {
    .custom-grid-cases {
      grid-template-columns: repeat(3, 1fr);
    }
  }
  .row-span-2 {
    grid-row: span 2;
  }
  .col-span-full {
    grid-column: 1 / -1;
  }

  /* 图片填充辅助类 */
  .img-cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  /* 1. 强制修改表头 (thead) 下的所有 th 背景为蓝色，文字为白色 */
  .params-table thead th {
    background-color: var(--brand-blue); /* Bootstrap 的 Primary 蓝 */
    color: white !important;
    border-color: var(--brand-blue); /* 可选：让边框也变成蓝色，看起来更平滑 */
  }

  /* 2. 强制修改表格主体 (tbody) 下每一行的第一个 td 背景为灰色 */
  .params-table tbody tr td:first-child {
    background-color: #f8f9fa !important; /* Bootstrap 的 light 灰 */
    color: #212529; /* 深黑色文字 */
    font-weight: bold; /* 加粗 */
  }

  /* 1. 处理 Factory Display 的容器高度 */
  .factory-grid-container {
    height: auto; /* 手机端：高度自动撑开，防止内容溢出 */
  }

  /* 2. 处理手机端图片的高度 */
  /* 因为父容器高度变为 auto，内部的 h-50/h-100 会失效，我们需要给图片一个基础高度 */
  @media (max-width: 767.98px) {
    .factory-grid-container .img-cover {
      height: 200px; /* 手机上每张图的高度，可根据需要调整 */
      width: 100%;
      object-fit: cover;
    }
    /* 修正手机端的间距 */
    .factory-grid-container .col-6,
    .factory-grid-container .col-12 {
      margin-bottom: 0.25rem;
    }
  }

  /* 3. 桌面端 (md及以上)：恢复 500px 的马赛克布局 */
  @media (min-width: 768px) {
    .factory-grid-container {
      height: 500px; /* 只有在大屏时才锁定高度 */
    }
    .factory-grid-container .img-cover {
      height: 100%; /* 桌面端图片跟随父容器高度 */
    }
  }
/* Fix Bootstrap 5 table color overrides */
.table thead th { color: inherit !important; }
.dark-table td, .dark-table th { color: #e0e8f0 !important; }
.dark-table thead th { color: #fff !important; }
