
  :root {
    --vx-site-width: 1280px;
    --vx-gap-pc: 60px;
    --vx-gap-mb: 40px;
    --vx-black: #333333;
    --vx-accent: #000000;
    --vx-gray-light: #f7f7f7;
  }

  /* 基础容器 */
  .vx-section-container {
    max-width: var(--vx-site-width);
    margin: 0 auto var(--vx-gap-pc);
    padding: 0 10px;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
    clear: both;
  }

  /* 添加模块间距样式 */
  #vx-module-banner {
    margin-bottom: var(--vx-gap-pc);
  }

  /* 手机端间距调整 */
  @media (max-width: 768px) {
    #vx-module-banner {
      margin-bottom: var(--vx-gap-mb);
    }
  }

  /* 确保轮播图容器不会溢出影响布局 */
  .vx-full-width-section {
    position: relative;
    width: 100%;
  }

  /* --- 补全：PC端全屏滑动溢出逻辑 --- */
  @media (min-width: 769px) {
    .vx-full-bleed-limit {
      width: 100vw;
      margin-left: calc(50% - 50vw);
      margin-right: calc(50% - 50vw);
      padding: 0 20px;

      /* 核心修改在这里 */
      overflow-x: clip;
      /* 或者使用 overflow: hidden */
      max-width: 100vw;
    }
  }

  /* 标题组件 */
  .vx-mod-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 30px;
    margin-top: 120px;
  }

  .vx-mod-title {
    margin: 0;
    font-size: 24px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--vx-black);
  }

  .vx-mod-divider {
    width: 50px;
    height: 3px;
    background: var(--vx-accent);
    margin-top: 8px;
  }

  /* --- 补全：滑动视口样式 (含禁止选中) --- */
  .vx-drag-viewport {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    cursor: grab;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    -webkit-user-select: none;
    /* 补全：防止拖拽时意外选中文字 */
    user-select: none;
    padding-top: 6px;
    /* ⭐ 关键：给 hover 上移留空间 */
    padding-bottom: 10px;
    /* 原有 */
    margin-top: -6px;
    /* ⭐ 抵消布局高度变化 */
  }

  .vx-drag-viewport::-webkit-scrollbar {
    display: none;
  }

  .vx-drag-viewport:active {
    cursor: grabbing;
  }

  /* --- 1. 卡片外层：保持不变 --- */
  .vx-card-item {
    flex: 0 0 22% !important;
    max-width: 360px !important;
    min-width: 200px !important;
    scroll-snap-align: start;
    background-color: #ffffff;
    border-radius: 12px;
    border: 1px solid #f0f0f0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
    transition:
      transform 0.3s ease,
      box-shadow 0.3s ease;
  }

  .vx-card-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
  }

  /* --- 2. 图片容器：关键修改 --- */
  .vx-card-img-box {
    width: 100%;
    aspect-ratio: 4/5;
    background: var(--vx-gray-light);
    border-radius: 12px;
    /* 你的四个角圆角 */
    overflow: hidden;
    /* 必须保留以限制图片圆角 */

    /* 核心优化：确保容器在动画时不会产生像素偏差 */
    backface-visibility: hidden;
    transform: translateZ(0);
  }

  /* --- 3. 图片本身：动效优化 --- */
  .vx-card-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;

    /* 这里的 transition 时间要和父级 item 严格一致 */
    transition: transform 0.3s ease;
    backface-visibility: hidden;
    /* 初始状态也给一个微小的 translateZ，防止悬停瞬间闪烁 */
    transform: translateZ(0) scale(1);
  }

  /* --- 4. 悬停效果：防止裁切的逻辑 --- */
  .vx-card-item:hover .vx-card-img-box img {
    /* 如果你觉得 scale(1.02) 会裁切，
           建议改为 scale(1.05) 并给 img-box 加一点 padding 
           或者干脆直接保持 scale(1.0)，只靠外层上移 */
    transform: translateZ(0) scale(1.03);
  }

  /* 解决裁切的终极补丁：
       强制让图片在变换时以中心缩放，且不触发容器的边缘像素计算 */
  .vx-card-img-box,
  .vx-card-img-box img {
    will-change: transform;
  }

  /* 卡片文本容器 */
  .vx-card-text {
    padding: 12px 5px 0;
    text-align: center;
  }

  /* 标题 */
  .vx-card-title {
    margin: 0 0 4px;
    font-size: 15px;
    font-weight: 700;
    color: #333;
  }

  /* 副标题 / 描述 */
  .vx-card-desc {
    font-size: 12px;
    color: #888;
    margin-bottom: 10px;
  }

  /* 进度条 */
  .vx-progress-track {
    position: relative;
    width: 100%;
    height: 2px;
    background: rgba(0, 0, 0, 0.1);
    margin-top: 50px;
    border-radius: 2px;
    overflow: hidden;
  }

  .vx-progress-fill {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: var(--vx-accent);
    transform-origin: left center;
    transform: scaleX(0.1);
    transition: transform 300ms ease-out;
    /* 补全：平滑减速效果 */
  }

  @media (max-width: 768px) {
    .vx-section-container {
      margin-bottom: var(--vx-gap-mb);
    }

    .vx-card-item {
      flex: 0 0 75%;
    }

    /* 移动端露出一部分 */
    .vx-progress-track {
      display: none;
    }

    .vx-mod-header {
      margin-top: 50px;
    }
  }
