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

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

      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;
}
  .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/grain_trader/banner.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 750px;
    padding-top: clamp(4rem, 6vw, 8rem);
  }

  @media (max-width: 768px) {
    .hero-bg {
      min-height: 420px;
    }
  }

  /* 表单背景 */
  .form-bg {
    background-image: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3)),
      url("/static/images/grain_trader/form.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;
  }
  /* docx 案例图：固定高度 + contain 保持图形完整 */
  .case-img {
    height: 240px;
    width: 100%;
    object-fit: contain;
    background: #ffffff;
  }

  /* 信任条（Hero 下方） */
  .trust-bar {
    background: linear-gradient(135deg, #003366 0%, #0a2540 100%);
    padding: 2rem 0;
  }
  .trust-item {
    text-align: center;
    color: #ffffff;
    padding: 0.5rem 1rem;
  }
  @media (min-width: 768px) {
    .trust-bar .col-md-3:not(:last-child) .trust-item {
      border-right: 1px solid rgba(255, 255, 255, 0.15);
    }
  }
  .trust-icon {
    font-size: 1.35rem;
    color: #fbbf24;
    margin-bottom: 0.5rem;
  }
  .trust-num {
    font-size: 1.4rem;
    font-weight: 800;
    letter-spacing: 0.5px;
  }
  .trust-lbl {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    opacity: 0.7;
    margin-top: 0.2rem;
  }

  /* 场景互链卡片图（统一圆角+等高） */
  .scene-img {
    display: block;
    width: calc(100% - 24px);
    height: 220px !important;
    max-height: 220px;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 12px;
    margin: 12px 12px 0;
  }
  @media (max-width: 575.98px) {
    .scene-img {
      height: 180px !important;
      max-height: 180px;
    }
  }

  /* 容重参考卡片 */
  .density-card {
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
  }
  .density-head {
    background: linear-gradient(135deg, #003366, #0a2540);
    color: #ffffff;
    padding: 1.25rem 1.5rem;
    text-align: center;
  }
  .density-head h2 {
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
  }
  .density-head p {
    font-size: 0.85rem;
    opacity: 0.75;
    margin-bottom: 0;
  }
  .density-body {
    padding: 1.5rem;
  }
  .density-table {
    width: 100%;
    margin-bottom: 0;
  }
  .density-table td {
    padding: 0.55rem 0.75rem;
    border-bottom: 1px solid #f0f0f0;
    font-size: 0.95rem;
  }
  .density-table tr:last-child td {
    border-bottom: none;
  }
  .density-val {
    display: inline-block;
    background: #eef4fb;
    color: #003366;
    font-weight: 600;
    border-radius: 20px;
    padding: 0.15rem 0.75rem;
    font-size: 0.85rem;
    white-space: nowrap;
  }

  /* 信任条升级版：图标+渐变+分隔线 */
  .trust-bar {
    background: linear-gradient(135deg, #001a33 0%, #003366 50%, #0a2540 100%);
    padding: 2rem 0;
    position: relative;
    overflow: hidden;
  }
  .trust-bar::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(circle at 20% 50%, rgba(251,191,36,0.08) 0%, transparent 50%);
    pointer-events: none;
  }
  .trust-item {
    text-align: center;
    color: #ffffff;
    padding: 0.75rem 0.5rem;
    position: relative;
  }
  .trust-item::after {
    content: "";
    position: absolute;
    right: 0;
    top: 20%;
    height: 60%;
    width: 1px;
    background: linear-gradient(to bottom, transparent, rgba(255,255,255,0.2), transparent);
  }
  .trust-item:last-child::after { display: none; }
  .trust-icon {
    font-size: 1.5rem;
    color: #fbbf24;
    margin-bottom: 0.5rem;
  }
  .trust-num {
    font-size: 1.6rem;
    font-weight: 800;
    color: #fbbf24;
    letter-spacing: -0.5px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
  }
  .trust-lbl {
    font-size: 0.8rem;
    opacity: 0.9;
    margin-top: 0.25rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
  }
  @media (max-width: 768px) {
    .trust-item::after { display: none; }
    .trust-item { padding: 0.5rem 0.25rem; }
    .trust-num { font-size: 1.2rem; }
  }
