/* ===========================================
   卡片滚动展示组件样式文件
   Card Scroll Display Component Styles
   =========================================== */

/* 主容器样式 - 卡片滚动的外层容器 */
.card-scroll-container {
    position: relative;                    /* 相对定位，为子元素提供定位参考 */
    overflow: hidden;                     /* 隐藏溢出内容，确保滚动效果 */
    padding: 60px 20px;                   /* 上下60px，左右20px的内边距 */
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%); /* 渐变背景色 */
    min-height: 600px;                    /* 最小高度600px，确保有足够空间 */
    margin: 0 auto;                       /* 水平居中 */
    max-width: 1400px;                    /* 最大宽度1400px，防止在大屏幕上过宽 */
    width: 100%;                          /* 明确设置宽度为100% */
    box-sizing: border-box;               /* 包含边框和内边距在内的盒模型 */
}

/* 滚动包装器 - 控制滚动区域的容器 */
.card-scroll-wrapper {
    position: relative;                   /* 相对定位 */
    width: 100%;                         /* 占满父容器宽度 */
    overflow: hidden;                    /* 隐藏溢出内容 */
}

/* 滚动轨道 - 承载所有卡片的容器 */
.card-scroll-track {
    display: flex;                       /* 弹性布局，卡片横向排列 */
    transition: transform 0.6s cubic-bezier(0.4, 0.0, 0.2, 1); /* 平滑的滚动过渡动画 */
    will-change: transform;              /* 优化性能，告知浏览器此元素会变化 */
}

/* 单个卡片样式 - 每个产品/案例的卡片 */
.card-scroll-item {
    flex: 0 0 auto;                      /* 不伸缩，保持固定尺寸 */
    width: 450px;                        /* 卡片宽度450px */
    margin-right: 40px;                  /* 右侧间距40px */
    background: #fff;                    /* 白色背景 */
    border-radius: 20px;                 /* 圆角20px，现代化外观 */
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.15); /* 阴影效果，增加立体感 */
    overflow: hidden;                    /* 隐藏溢出内容 */
    transition: all 0.4s cubic-bezier(0.4, 0.0, 0.2, 1); /* 所有属性的过渡动画 */
    position: relative;                  /* 相对定位 */
}

/* 卡片悬停效果 - 鼠标悬停时的动画 */
.card-scroll-item:hover {
    transform: translateY(-12px);        /* 向上移动12px */
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.2); /* 增强阴影效果 */
}

/* 最后一个卡片 - 移除右边距 */
.card-scroll-item:last-child {
    margin-right: 0;                     /* 最后一个卡片不需要右边距 */
}

/* 卡片图片区域 - 产品/案例图片的容器 */
.card-image {
    position: relative;                  /* 相对定位 */
    width: 100%;                        /* 占满卡片宽度 */
    height: 320px;                      /* 固定高度320px */
    overflow: hidden;                   /* 隐藏溢出内容 */
}

/* 卡片图片样式 - 产品/案例图片 */
.card-image img {
    width: 100%;                        /* 占满容器宽度 */
    height: 100%;                       /* 占满容器高度 */
    object-fit: contain;                /* 保持比例完整显示，不裁剪 */
    object-position: center;           /* 图片居中显示 */
    background: #f8f9fa;                /* 背景色，填充空白区域 */
    transition: transform 0.3s ease;   /* 图片缩放过渡动画 */
}

/* 卡片悬停时图片效果 - 鼠标悬停时图片轻微放大 */
.card-scroll-item:hover .card-image img {
    transform: scale(1.05);             /* 放大1.05倍 */
}

/* 产品图片特殊优化 - 针对不同比例的产品图片 */
.card-scroll-item.product-card .card-image img,
.product-grid-item.product-card .card-image img {
    object-fit: contain;                /* 完整显示产品 */
    object-position: center;           /* 图片居中显示 */
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%); /* 渐变背景 */
    padding: 15px;                     /* 增加内边距，给产品留出更多呼吸空间 */
    box-sizing: border-box;            /* 包含内边距 */
    width: 100%;                       /* 确保占满容器宽度 */
    height: 100%;                      /* 确保占满容器高度 */
}

/* 成功案例图片 - 保持cover模式以展示完整场景 */
.card-scroll-item.case-card .card-image img {
    object-fit: cover;                  /* 案例图片使用裁剪模式 */
    object-position: center top;        /* 从顶部开始显示 */
}

/* 视频缩略图 - 保持cover模式 */
.card-scroll-item.video-card .card-image img {
    object-fit: cover;                  /* 视频缩略图使用裁剪模式 */
    object-position: center;            /* 居中显示 */
}

/* 图片加载状态 */
.card-image img[src=""] {
    background: linear-gradient(45deg, #f0f0f0 25%, transparent 25%), 
                linear-gradient(-45deg, #f0f0f0 25%, transparent 25%), 
                linear-gradient(45deg, transparent 75%, #f0f0f0 75%), 
                linear-gradient(-45deg, transparent 75%, #f0f0f0 75%);
    background-size: 20px 20px;
    background-position: 0 0, 0 10px, 10px -10px, -10px 0px;
}

/* 图片加载失败时的占位符 */
.card-image img:not([src]),
.card-image img[src=""],
.card-image img[src*="placeholder"] {
    background: #f8f9fa;
    position: relative;
}

.card-image img:not([src])::after,
.card-image img[src=""]::after,
.card-image img[src*="placeholder"]::after {
    content: '📷';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 3em;
    color: #dee2e6;
    opacity: 0.5;
}

/* 图片加载动画 */
.card-image img {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.card-image img.loaded {
    opacity: 1;
}

/* 图片加载失败样式 */
.card-image img.error {
    background: #f8f9fa !important;
    position: relative;
}

.card-image img.error::after {
    content: '⚠️';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 2em;
    color: #dc3545;
    opacity: 0.7;
    z-index: 10;
}

/* 确保占位符图片正确显示 */
.card-image img[src*="data:image/svg"] {
    background: #f8f9fa !important;
    opacity: 1 !important;
}

/* 图片加载状态优化 */
.card-image img {
    opacity: 0;
    transition: opacity 0.3s ease;
    background: #f8f9fa;
}

.card-image img.loaded {
    opacity: 1;
}

.card-image img.error {
    opacity: 1;
}

/* 高分辨率图片优化 */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .card-image img {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* ===========================================
   产品选项卡样式
   Product Tabs Styles
   =========================================== */

/* 产品选项卡容器 */
.product-tabs-container {
    margin: 30px 0;
    text-align: center;
}

.product-tabs {
    display: inline-flex;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    padding: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
}

/* 单个选项卡按钮 */
.product-tab {
    background: transparent;
    border: none;
    padding: 16px 32px;
    margin: 0 4px;
    border-radius: 40px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0.0, 0.2, 1);
    position: relative;
    overflow: hidden; /* 保持hidden用于动画效果 */
    min-height: 60px; /* 增加选项卡高度 */
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-tab span {
    font-size: 16px;
    font-weight: 600;
    color: #5a6c7d;
    transition: color 0.3s ease;
    position: relative;
    z-index: 10; /* 大幅提高z-index确保文字在最上层 */
}

/* 选项卡悬停效果 */
.product-tab:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.product-tab:hover span {
    color: #2c3e50;
}

/* 激活状态的选项卡 */
.product-tab.active {
    background: linear-gradient(135deg, var(--color, #3498db), #2980b9);
    box-shadow: 0 6px 20px rgba(52, 152, 219, 0.4);
    transform: translateY(-3px);
    z-index: 2; /* 确保激活标签在其他标签上方 */
}

/* 激活标签的文字样式 - 确保文字在最上层 */
.product-tab.active span {
    color: rgb(9, 9, 9) !important;
    font-weight: 700 !important;
    position: relative !important;
    z-index: 9999 !important; /* 使用极高的z-index确保文字绝对在最上层 */
    pointer-events: none !important; /* 文字不拦截点击事件 */
    display: block !important; /* 确保span是块级元素 */
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3) !important; /* 添加文字阴影增强可见性 */
}

/* 选项卡激活动画 - 暂时禁用避免遮挡文字 */
.product-tab.active::before {
    content: none; /* 禁用伪元素，避免遮挡文字 */
}

.product-tab.active:hover::before {
    content: none; /* 禁用伪元素，避免遮挡文字 */
}

/* ===========================================
   产品网格布局样式
   Product Grid Layout Styles
   =========================================== */

/* 产品网格容器 */
.product-grid-container {
    position: relative;
    min-height: 800px; /* 确保有足够空间显示3*3网格 */
    margin-top: 40px;
}

/* 单个产品网格 */
.product-grid {
    display: none;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.product-grid.active {
    display: block;
    opacity: 1;
}

/* 产品网格包装器 - 3*3布局 */
.product-grid-wrapper {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(3, 1fr);
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* 产品网格项 */
.product-grid-item {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0.0, 0.2, 1);
    position: relative;
    min-height: 420px; /* 增加卡片高度以容纳更多内容 */
    display: flex;
    flex-direction: column;
}

.product-grid-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

/* 网格项图片区域 */
.product-grid-item .card-image {
    height: 250px; /* 增加图片高度 */
    position: relative;
    overflow: hidden;
    flex-shrink: 0; /* 防止图片区域被压缩 */
}

/* 网格项内容区域 */
.product-grid-item .card-content {
    padding: 24px;
    flex-grow: 1; /* 让内容区域占据剩余空间 */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* 网格项标题 */
.product-grid-item .card-title {
    font-size: 18px;
    font-weight: 700;
    color: #2c3e50;
    margin: 0 0 12px 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-clamp: 2;
}

/* 网格项副标题 */
.product-grid-item .card-subtitle {
    font-size: 14px;
    color: #7f8c8d;
    margin: 0 0 16px 0;
    font-weight: 500;
}

/* 网格项描述 */
.product-grid-item .card-description {
    font-size: 14px;
    color: #5a6c7d;
    line-height: 1.6;
    margin: 0 0 20px 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-clamp: 3;
    flex-grow: 1;
}

/* 网格项底部 - 始终显示 */
.product-grid-item .card-footer {
    display: flex !important;
    justify-content: space-between;
    align-items: center;
    padding-top: 16px;
    border-top: 1px solid #ecf0f1;
    margin-top: auto;
    opacity: 1 !important;
    visibility: visible !important;
    position: relative !important;
    z-index: 10 !important;
}

/* 网格项链接按钮 - 始终显示 */
.product-grid-item .card-link {
    padding: 12px 20px;
    font-size: 14px;
    display: inline-flex !important;
    opacity: 1 !important;
    visibility: visible !important;
    border-radius: 8px;
    position: relative !important;
    z-index: 10 !important;
    background: linear-gradient(135deg, var(--color, #3498db), #2980b9) !important;
    color: rgb(0, 0, 0) !important;
    text-decoration: none !important;
}

/* 网格项分类标签 */
.product-grid-item .card-category {
    font-size: 12px;
    padding: 4px 8px;
    border-radius: 4px;
    position: relative !important;
    z-index: 10 !important;
    opacity: 1 !important;
    visibility: visible !important;
    background: rgba(52, 152, 219, 0.1) !important;
    color: var(--color, #3498db) !important;
}

/* ===========================================
   成功案例网格布局样式
   Case Grid Layout Styles
   =========================================== */

/* 成功案例网格容器 */
.case-grid-container {
    position: relative;
    width: 100%;
    margin: 0 auto;
    padding: 20px;
}

/* 案例网格 - 默认隐藏 */
.case-grid {
    display: none;
}

/* 激活的案例网格 - 显示 */
.case-grid.active {
    display: block;
}

/* 成功案例网格包装器 - 调试对齐 */
.case-grid-wrapper {
    display: grid !important;
    grid-template-columns: 1fr 1fr 1fr !important;
    grid-template-rows: 1fr 1fr !important;
    gap: 30px !important;
    max-width: 1200px;
    margin: 0 auto;
    margin-bottom: 40px;
    min-height: 600px;
    justify-items: stretch !important;
    align-items: stretch !important;
    box-sizing: border-box !important;
    width: 100% !important;
    /* 调试：确保网格对齐 */
    grid-auto-flow: row !important;
    place-items: stretch !important;
}

/* 成功案例网格项 - 与产品卡片风格一致 */
.case-grid-item {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0.0, 0.2, 1);
    position: relative;
    min-height: 420px; /* 与产品卡片一致的高度 */
    display: flex;
    flex-direction: column;
}

/* 隐藏的案例项 */
.case-grid-item[style*="display: none"] {
    display: none !important;
}

.case-grid-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

/* 成功案例图片区域 - 与产品卡片一致 */
.case-grid-item .card-image {
    height: 250px; /* 与产品卡片一致的图片高度 */
    position: relative;
    overflow: hidden;
    flex-shrink: 0; /* 防止图片区域被压缩 */
}

/* 成功案例图片样式 - 与产品卡片一致 */
.case-grid-item .card-image img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* 与产品卡片一致，完整显示图片 */
    object-position: center;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 15px; /* 与产品卡片一致的内边距 */
    box-sizing: border-box;
    transition: transform 0.3s ease;
}


.case-grid-item:hover .card-image img {
    transform: scale(1.05);
}

/* 成功案例内容区域 - 与产品卡片一致 */
.case-grid-item .card-content {
    padding: 24px; /* 与产品卡片一致的内边距 */
    flex-grow: 1; /* 让内容区域占据剩余空间 */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.case-grid-item .card-title {
    font-size: 18px;
    font-weight: 700;
    color: #2c3e50;
    margin: 0 0 12px 0; /* 与产品卡片一致的边距 */
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-clamp: 2;
}

.case-grid-item .card-subtitle {
    font-size: 14px;
    color: #7f8c8d; /* 与产品卡片一致的颜色 */
    margin: 0 0 16px 0; /* 与产品卡片一致的边距 */
    font-weight: 500; /* 与产品卡片一致的字重 */
}

.case-grid-item .card-description {
    font-size: 14px;
    color: #5a6c7d; /* 与产品卡片一致的颜色 */
    line-height: 1.6;
    margin: 0 0 20px 0; /* 与产品卡片一致的边距 */
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-clamp: 3;
    flex-grow: 1;
}

/* 成功案例底部 - 与产品卡片一致 */
.case-grid-item .card-footer {
    display: flex !important;
    justify-content: space-between;
    align-items: center;
    padding-top: 16px; /* 与产品卡片一致的顶部内边距 */
    border-top: 1px solid #ecf0f1; /* 与产品卡片一致的边框 */
    margin-top: auto;
    opacity: 1 !important;
    visibility: visible !important;
    position: relative !important;
    z-index: 10 !important;
}

.case-grid-item .card-link {
    padding: 12px 20px; /* 与产品卡片一致的内边距 */
    font-size: 14px; /* 与产品卡片一致的字体大小 */
    display: inline-flex !important;
    opacity: 1 !important;
    visibility: visible !important;
    border-radius: 8px; /* 与产品卡片一致的圆角 */
    position: relative !important;
    z-index: 10 !important;
    background: linear-gradient(135deg, var(--color, #3498db), #2980b9) !important;
    color: rgb(0, 0, 0) !important; /* 与产品卡片一致的黑色文字 */
    text-decoration: none !important;
}

.case-grid-item .card-link:hover {
    background: linear-gradient(135deg, #2980b9, #1f5f8b);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.4);
}

.case-grid-item .card-category {
    font-size: 12px; /* 与产品卡片一致的字体大小 */
    padding: 4px 8px; /* 与产品卡片一致的内边距 */
    border-radius: 4px; /* 与产品卡片一致的圆角 */
    position: relative !important;
    z-index: 10 !important;
    opacity: 1 !important;
    visibility: visible !important;
    background: rgba(52, 152, 219, 0.1) !important;
    color: var(--color, #3498db) !important;
}

/* 成功案例翻页控件 */
.case-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 40px;
    padding: 20px 0;
    gap: 20px;
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .case-grid-wrapper {
        grid-template-columns: repeat(3, 1fr);
        grid-template-rows: repeat(2, 1fr);
        gap: 25px;
    }
}

@media (max-width: 768px) {
    .case-grid-wrapper {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(3, 1fr);
        gap: 20px;
    }
    
    .case-grid-item .card-content {
        padding: 20px;
    }
    
    .case-grid-item .card-title {
        font-size: 16px;
    }
    
    .case-grid-item .card-description {
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .case-grid-wrapper {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        gap: 15px;
    }
    
    .case-grid-item .card-image {
        height: 180px;
    }
}

/* ===========================================
   翻页控件样式
   Pagination Controls Styles
   =========================================== */

/* 翻页控件容器 */
.product-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 40px;
    padding: 20px 0;
    gap: 20px;
}

/* 翻页按钮 */
.pagination-btn {
    background: linear-gradient(135deg, var(--color, #3498db), #2980b9);
    color: rgb(1, 1, 1);
    border: none;
    padding: 12px 24px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
}

.pagination-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, #2980b9, #1f5f8b);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(52, 152, 219, 0.4);
}

.pagination-btn:disabled {
    background: #bdc3c7;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
    opacity: 0.6;
}

/* 翻页信息 */
.pagination-info {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    font-weight: 600;
    color: #2c3e50;
    background: rgba(255, 255, 255, 0.9);
    padding: 12px 20px;
    border-radius: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.current-page {
    color: var(--color, #3498db);
    font-weight: 700;
}

.page-separator {
    color: #7f8c8d;
}

.total-pages {
    color: #5a6c7d;
}

/* 图片遮罩层 - 悬停时显示的半透明遮罩 */
.card-overlay {
    position: absolute;                  /* 绝对定位，覆盖在图片上 */
    top: 0;                             /* 顶部对齐 */
    left: 0;                            /* 左侧对齐 */
    right: 0;                           /* 右侧对齐 */
    bottom: 0;                          /* 底部对齐 */
    background: linear-gradient(45deg, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.3)); /* 渐变遮罩 */
    opacity: 0;                         /* 默认透明 */
    transition: opacity 0.3s ease;      /* 透明度过渡动画 */
}

/* 悬停时显示遮罩层 */
.card-scroll-item:hover .card-overlay {
    opacity: 1;                         /* 完全不透明 */
}

/* 卡片内容区域 - 文字内容的容器 */
.card-content {
    padding: 40px;                      /* 内边距40px */
}

/* 卡片标题样式 - 产品/案例名称 */
.card-title {
    font-size: 24px;                    /* 字体大小24px */
    font-weight: 700;                   /* 粗体字重 */
    color: #2c3e50;                     /* 深灰色文字 */
    margin: 0 0 16px 0;                 /* 下边距16px */
    line-height: 1.3;                  /* 行高1.3倍 */
    display: -webkit-box;               /* WebKit弹性盒子 */
    -webkit-line-clamp: 2;             /* 限制显示2行 */
    -webkit-box-orient: vertical;       /* 垂直方向 */
    overflow: hidden;                   /* 隐藏溢出内容 */
    line-clamp: 2;                      /* 标准属性：限制显示2行 */
}

/* 卡片副标题样式 - 产品分类/案例类型 */
.card-subtitle {
    font-size: 18px;                    /* 字体大小18px */
    color: #7f8c8d;                     /* 中灰色文字 */
    margin: 0 0 20px 0;                 /* 下边距20px */
    font-weight: 500;                   /* 中等字重 */
}

/* 卡片描述样式 - 产品/案例详细描述 */
.card-description {
    font-size: 18px;                    /* 字体大小18px */
    color: #5a6c7d;                     /* 深灰色文字 */
    line-height: 1.7;                  /* 行高1.7倍，提高可读性 */
    margin: 0 0 28px 0;                 /* 下边距28px */
    display: -webkit-box;               /* WebKit弹性盒子 */
    -webkit-line-clamp: 4;             /* 限制显示4行 */
    -webkit-box-orient: vertical;       /* 垂直方向 */
    overflow: hidden;                   /* 隐藏溢出内容 */
    line-clamp: 4;                      /* 标准属性：限制显示4行 */
}

/* 卡片底部区域 - 按钮和标签的容器 */
.card-footer {
    display: flex !important;           /* 弹性布局，始终显示 */
    justify-content: space-between;     /* 两端对齐 */
    align-items: center;                /* 垂直居中 */
    padding-top: 24px;                  /* 顶部内边距24px */
    border-top: 2px solid #ecf0f1;      /* 顶部边框，分隔线 */
    opacity: 1 !important;              /* 始终完全可见 */
    visibility: visible !important;     /* 始终可见 */
}

/* 卡片链接按钮样式 - 查看详情按钮 - 始终显示 */
.card-link {
    display: inline-flex !important;    /* 内联弹性布局，始终显示 */
    align-items: center;                /* 垂直居中 */
    padding: 16px 28px;                 /* 内边距：上下16px，左右28px */
    background: linear-gradient(135deg, var(--color, #3498db), #2980b9); /* 渐变背景 */
    color: white;                       /* 白色文字 */
    text-decoration: none;              /* 移除下划线 */
    border-radius: 12px;                /* 圆角12px */
    font-size: 18px;                    /* 字体大小18px */
    font-weight: 600;                   /* 半粗体字重 */
    transition: all 0.3s ease;         /* 所有属性过渡动画 */
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3); /* 按钮阴影 */
    opacity: 1 !important;              /* 始终完全可见 */
    visibility: visible !important;     /* 始终可见 */
}

/* 按钮悬停效果 */
.card-link:hover {
    background: linear-gradient(135deg, #2980b9, #1f5f8b); /* 悬停时渐变背景 */
    transform: translateY(-3px);        /* 向上移动3px */
    box-shadow: 0 8px 25px rgba(52, 152, 219, 0.4); /* 增强阴影 */
}

/* 按钮图标样式 - 箭头图标 */
.card-link i {
    margin-left: 8px;                   /* 左侧间距8px */
    font-size: 14px;                    /* 图标大小14px */
}

/* 卡片分类标签样式 - 产品分类标签 */
.card-category {
    font-size: 14px;                    /* 字体大小14px */
    color: #95a5a6;                     /* 浅灰色文字 */
    background: #ecf0f1;                /* 浅灰色背景 */
    padding: 6px 12px;                  /* 内边距：上下6px，左右12px */
    border-radius: 6px;                  /* 圆角6px */
    font-weight: 500;                   /* 中等字重 */
}

/* ===========================================
   滚动控制按钮样式
   Scroll Control Buttons Styles
   =========================================== */

/* 滚动控制按钮基础样式 */
.card-scroll-controls {
    position: absolute;                  /* 绝对定位 */
    top: 50%;                           /* 垂直居中 */
    transform: translateY(-50%);         /* 垂直居中偏移 */
    width: 56px;                        /* 宽度56px */
    height: 56px;                       /* 高度56px */
    background: rgba(255, 255, 255, 0.95); /* 半透明白色背景 */
    border: none;                       /* 无边框 */
    border-radius: 50%;                 /* 圆形按钮 */
    cursor: pointer;                    /* 鼠标指针样式 */
    display: flex;                      /* 弹性布局 */
    align-items: center;                /* 垂直居中 */
    justify-content: center;            /* 水平居中 */
    font-size: 20px;                    /* 图标大小20px */
    color: #2c3e50;                     /* 深灰色图标 */
    transition: all 0.3s ease;         /* 过渡动画 */
    z-index: 10;                        /* 层级10，确保在最上层 */
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15); /* 按钮阴影 */
}

/* 控制按钮悬停效果 */
.card-scroll-controls:hover {
    background: white;                  /* 悬停时纯白背景 */
    transform: translateY(-50%) scale(1.15); /* 垂直居中并放大1.15倍 */
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2); /* 增强阴影 */
}

/* 上一个按钮位置 */
.card-scroll-prev {
    left: 30px;                         /* 距离左边30px */
}

/* 下一个按钮位置 */
.card-scroll-next {
    right: 30px;                        /* 距离右边30px */
}

/* 禁用状态的按钮样式 */
.card-scroll-controls:disabled {
    opacity: 0.5;                       /* 半透明 */
    cursor: not-allowed;                /* 禁用鼠标指针 */
    transform: translateY(-50%);        /* 保持垂直居中，不放大 */
}

/* ===========================================
   滚动指示器样式
   Scroll Indicators Styles
   =========================================== */

/* 指示器容器 */
.card-scroll-indicators {
    display: flex;                      /* 弹性布局 */
    justify-content: center;            /* 水平居中 */
    margin-top: 24px;                   /* 顶部间距24px */
    gap: 8px;                           /* 指示器间距8px */
}

/* 单个指示器样式 */
.card-scroll-indicator {
    width: 8px;                         /* 宽度8px */
    height: 8px;                        /* 高度8px */
    border-radius: 50%;                 /* 圆形 */
    background: #bdc3c7;                /* 浅灰色背景 */
    cursor: pointer;                    /* 鼠标指针样式 */
    transition: all 0.3s ease;         /* 过渡动画 */
}

/* 激活状态的指示器 */
.card-scroll-indicator.active {
    background: var(--color, #3498db);  /* 主题色背景 */
    transform: scale(1.2);              /* 放大1.2倍 */
}

/* ===========================================
   响应式设计 - 移动端适配
   Responsive Design - Mobile Adaptation
   =========================================== */

/* 平板端样式 (768px以下) */
@media (max-width: 768px) {
    .card-scroll-container {
        padding: 20px 0;                /* 减少内边距 */
        max-width: 100%;                /* 确保容器占满可用宽度 */
        width: 100%;                    /* 明确设置宽度 */
    }
    
    .card-scroll-item {
        width: 280px;                   /* 减小卡片宽度 */
        margin-right: 16px;             /* 减小间距 */
    }
    
    .card-image {
        height: 160px;                  /* 减小图片高度 */
    }
    
    .card-content {
        padding: 20px;                  /* 减小内容内边距 */
    }
    
    .card-title {
        font-size: 16px;                /* 减小标题字体 */
    }
    
    .card-scroll-controls {
        width: 40px;                    /* 减小按钮尺寸 */
        height: 40px;
        font-size: 16px;                /* 减小图标大小 */
    }
    
    .card-scroll-prev {
        left: 10px;                     /* 调整按钮位置 */
    }
    
    .card-scroll-next {
        right: 10px;
    }
    
    /* 平板端图片优化 */
    .card-scroll-item.product-card .card-image img {
        padding: 8px;                   /* 减少产品图片内边距 */
    }
    
    /* 平板端产品网格布局 - 2*4布局 */
    .product-grid-wrapper {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(4, 1fr);
        gap: 20px;
        padding: 15px;
    }
    
    .product-grid-item {
        min-height: 300px;
    }
    
    .product-grid-item .card-image {
        height: 160px;
    }
    
    .product-grid-item .card-content {
        padding: 20px;
        height: calc(100% - 160px);
    }
    
    .product-grid-item .card-title {
        font-size: 16px;
    }
    
    .product-grid-item .card-description {
        font-size: 13px;
        -webkit-line-clamp: 2;
        line-clamp: 2;
    }
    
    /* 平板端选项卡优化 */
    .product-tab {
        padding: 12px 24px;
        min-height: 50px;
    }
    
    .product-tab span {
        font-size: 14px;
    }
    
    /* 平板端翻页控件优化 */
    .product-pagination {
        margin-top: 30px;
        padding: 15px 0;
        gap: 15px;
    }
    
    .pagination-btn {
        padding: 10px 20px;
        font-size: 13px;
    }
    
    .pagination-info {
        padding: 10px 16px;
        font-size: 14px;
    }
}

/* 手机端样式 (480px以下) */
@media (max-width: 480px) {
    .card-scroll-item {
        width: 260px;                   /* 进一步减小卡片宽度 */
        margin-right: 12px;             /* 进一步减小间距 */
    }
    
    .card-image {
        height: 140px;                  /* 进一步减小图片高度 */
    }
    
    .card-content {
        padding: 16px;                  /* 进一步减小内容内边距 */
    }
    
    .card-title {
        font-size: 15px;                /* 进一步减小标题字体 */
    }
    
    .card-description {
        font-size: 13px;                /* 减小描述字体 */
    }
    
    /* 手机端图片优化 */
    .card-scroll-item.product-card .card-image img {
        padding: 6px;                   /* 进一步减少产品图片内边距 */
    }
    
    .card-scroll-item.case-card .card-image img {
        object-position: center;        /* 案例图片居中显示 */
    }
    
    /* 手机端产品网格布局 - 1*9布局 */
    .product-grid-wrapper {
        grid-template-columns: 1fr;
        grid-template-rows: repeat(9, 1fr);
        gap: 15px;
        padding: 10px;
    }
    
    .product-grid-item {
        min-height: 250px;
    }
    
    .product-grid-item .card-image {
        height: 140px;
    }
    
    .product-grid-item .card-content {
        padding: 16px;
        height: calc(100% - 140px);
    }
    
    .product-grid-item .card-title {
        font-size: 15px;
    }
    
    .product-grid-item .card-description {
        font-size: 12px;
        -webkit-line-clamp: 2;
        line-clamp: 2;
    }
    
    /* 手机端选项卡优化 */
    .product-tabs {
        flex-wrap: wrap;
        justify-content: center;
        padding: 6px;
    }
    
    .product-tab {
        padding: 10px 16px;
        min-height: 44px;
        margin: 2px;
    }
    
    .product-tab span {
        font-size: 13px;
    }
    
    /* 手机端翻页控件优化 */
    .product-pagination {
        margin-top: 25px;
        padding: 10px 0;
        gap: 10px;
        flex-direction: column;
    }
    
    .pagination-btn {
        padding: 8px 16px;
        font-size: 12px;
        width: 120px;
    }
    
    .pagination-info {
        padding: 8px 12px;
        font-size: 13px;
        order: -1;
    }
}

/* ===========================================
   动画效果
   Animation Effects
   =========================================== */

/* 自动滚动动画关键帧 */
@keyframes autoScroll {
    0% {
        transform: translateX(0);        /* 起始位置：不偏移 */
    }
    100% {
        transform: translateX(-100%);   /* 结束位置：向左偏移100% */
    }
}

/* 自动滚动轨道样式 */
.card-scroll-track.auto-scroll {
    animation: autoScroll 30s linear infinite; /* 30秒线性无限循环 */
}

/* 悬停时暂停自动滚动 */
.card-scroll-track.auto-scroll:hover {
    animation-play-state: paused;       /* 暂停动画 */
}

/* 卡片淡入动画 - 页面加载时的渐入效果 */
.card-scroll-item {
    opacity: 0;                         /* 初始透明 */
    transform: translateY(30px);         /* 初始向下偏移30px */
    animation: fadeInUp 0.6s ease forwards; /* 淡入向上动画 */
}

/* 卡片动画延迟 - 错开显示时间 */
/* 支持更多证书的动画效果，使用通用规则 */
.card-scroll-item {
    animation-delay: calc(var(--item-index, 0) * 0.1s);
}
/* 为前20个卡片设置具体延迟（向后兼容） */
.card-scroll-item:nth-child(1) { animation-delay: 0.1s; }
.card-scroll-item:nth-child(2) { animation-delay: 0.2s; }
.card-scroll-item:nth-child(3) { animation-delay: 0.3s; }
.card-scroll-item:nth-child(4) { animation-delay: 0.4s; }
.card-scroll-item:nth-child(5) { animation-delay: 0.5s; }
.card-scroll-item:nth-child(6) { animation-delay: 0.6s; }
.card-scroll-item:nth-child(7) { animation-delay: 0.7s; }
.card-scroll-item:nth-child(8) { animation-delay: 0.8s; }
.card-scroll-item:nth-child(9) { animation-delay: 0.9s; }
.card-scroll-item:nth-child(10) { animation-delay: 1.0s; }
.card-scroll-item:nth-child(11) { animation-delay: 1.1s; }
.card-scroll-item:nth-child(12) { animation-delay: 1.2s; }
.card-scroll-item:nth-child(13) { animation-delay: 1.3s; }
.card-scroll-item:nth-child(14) { animation-delay: 1.4s; }
.card-scroll-item:nth-child(15) { animation-delay: 1.5s; }
.card-scroll-item:nth-child(16) { animation-delay: 1.6s; }
.card-scroll-item:nth-child(17) { animation-delay: 1.7s; }
.card-scroll-item:nth-child(18) { animation-delay: 1.8s; }
.card-scroll-item:nth-child(19) { animation-delay: 1.9s; }
.card-scroll-item:nth-child(20) { animation-delay: 2.0s; }
/* 超过20个的卡片使用通用延迟 */
.card-scroll-item:nth-child(n+21) { animation-delay: 2.0s; }

/* 淡入向上动画关键帧 */
@keyframes fadeInUp {
    to {
        opacity: 1;                      /* 完全不透明 */
        transform: translateY(0);        /* 回到原位置 */
    }
}

/* ===========================================
   加载和空状态样式
   Loading and Empty State Styles
   =========================================== */

/* 加载状态样式 */
.card-scroll-loading {
    display: flex;                      /* 弹性布局 */
    justify-content: center;            /* 水平居中 */
    align-items: center;                /* 垂直居中 */
    height: 200px;                      /* 高度200px */
    color: #7f8c8d;                     /* 中灰色文字 */
}

/* 加载动画 - 旋转的圆环 */
.card-scroll-loading::after {
    content: '';                        /* 伪元素内容 */
    width: 20px;                        /* 宽度20px */
    height: 20px;                       /* 高度20px */
    border: 2px solid #ecf0f1;          /* 浅灰色边框 */
    border-top: 2px solid var(--color, #3498db); /* 顶部主题色边框 */
    border-radius: 50%;                 /* 圆形 */
    animation: spin 1s linear infinite;  /* 1秒线性无限旋转 */
    margin-left: 10px;                  /* 左侧间距10px */
}

/* 旋转动画关键帧 */
@keyframes spin {
    0% { transform: rotate(0deg); }     /* 起始角度：0度 */
    100% { transform: rotate(360deg); } /* 结束角度：360度 */
}

/* 空状态样式 - 没有内容时显示 */
.card-scroll-empty {
    text-align: center;                  /* 文字居中 */
    padding: 60px 20px;                 /* 内边距：上下60px，左右20px */
    color: #7f8c8d;                     /* 中灰色文字 */
}

/* 空状态图标 */
.card-scroll-empty i {
    font-size: 48px;                    /* 图标大小48px */
    margin-bottom: 16px;                /* 下边距16px */
    opacity: 0.5;                       /* 半透明 */
}

/* 空状态标题 */
.card-scroll-empty h3 {
    margin: 0 0 8px 0;                  /* 下边距8px */
    font-size: 18px;                    /* 字体大小18px */
    color: #5a6c7d;                     /* 深灰色文字 */
}

/* 空状态描述 */
.card-scroll-empty p {
    margin: 0;                          /* 无外边距 */
    font-size: 14px;                    /* 字体大小14px */
}

/* ===========================================
   额外优化样式
   Additional Optimization Styles
   =========================================== */

/* 容器顶部装饰线 */
.card-scroll-container::before {
    content: '';                        /* 伪元素内容 */
    position: absolute;                 /* 绝对定位 */
    top: 0;                            /* 顶部对齐 */
    left: 0;                           /* 左侧对齐 */
    right: 0;                          /* 右侧对齐 */
    height: 1px;                       /* 高度1px */
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.8), transparent); /* 渐变装饰线 */
}

/* 容器底部装饰线 */
.card-scroll-container::after {
    content: '';                        /* 伪元素内容 */
    position: absolute;                 /* 绝对定位 */
    bottom: 0;                         /* 底部对齐 */
    left: 0;                           /* 左侧对齐 */
    right: 0;                          /* 右侧对齐 */
    height: 1px;                       /* 高度1px */
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.8), transparent); /* 渐变装饰线 */
}

/* 卡片内容区域优化 */
.card-scroll-item .card-content {
    position: relative;                 /* 相对定位 */
}

/* 内容区域顶部装饰线 */
.card-scroll-item .card-content::before {
    content: '';                        /* 伪元素内容 */
    position: absolute;                 /* 绝对定位 */
    top: 0;                            /* 顶部对齐 */
    left: 0;                           /* 左侧对齐 */
    right: 0;                          /* 右侧对齐 */
    height: 1px;                       /* 高度1px */
    background: linear-gradient(90deg, transparent, rgba(236,240,241,0.5), transparent); /* 渐变装饰线 */
}

/* 增强的悬停效果 */
.card-scroll-item:hover .card-content {
    transform: translateY(-2px);        /* 内容区域向上移动2px */
}

/* 悬停时标题变色 */
.card-scroll-item:hover .card-title {
    color: var(--color, #3498db);       /* 标题变为主题色 */
}

/* ===========================================
   大屏幕响应式设计
   Large Screen Responsive Design
   =========================================== */

/* 超大屏幕样式 (1200px以下) */
@media (max-width: 1200px) {
    .card-scroll-container {
        max-width: 1200px;              /* 最大宽度1200px */
        padding: 50px 15px;             /* 调整内边距 */
    }
    
    .card-scroll-item {
        width: 420px;                   /* 卡片宽度420px */
        margin-right: 35px;             /* 右边距35px */
    }
}

/* 大屏幕样式 (992px以下) */
@media (max-width: 992px) {
    .card-scroll-container {
        max-width: 100%;               /* 最大宽度100% */
        padding: 40px 10px;            /* 调整内边距 */
    }
    
    .card-scroll-item {
        width: 380px;                  /* 卡片宽度380px */
        margin-right: 30px;            /* 右边距30px */
    }
    
    .card-image {
        height: 280px;                 /* 图片高度280px */
    }
    
    .card-content {
        padding: 32px;                  /* 内容内边距32px */
    }
}

/* ===========================================
   调试样式 - 帮助诊断宽度问题
   Debug Styles - Help Diagnose Width Issues
   =========================================== */

/* 调试模式：显示容器边界 */
.card-scroll-container.debug {
    border: 2px solid red !important;
    background: rgba(255, 0, 0, 0.1) !important;
}

.card-scroll-wrapper.debug {
    border: 2px solid blue !important;
    background: rgba(0, 0, 255, 0.1) !important;
}

.card-scroll-track.debug {
    border: 2px solid green !important;
    background: rgba(0, 255, 0, 0.1) !important;
}

.card-scroll-item.debug {
    border: 2px solid orange !important;
    background: rgba(255, 165, 0, 0.1) !important;
}

/* 强制重置样式 - 确保没有其他CSS干扰 */
.card-scroll-container {
    /* 重置可能影响宽度的属性 */
    float: none !important;
    clear: both !important;
    display: block !important;
}

/* 确保在所有屏幕尺寸下都有正确的宽度 */
@media (min-width: 1201px) {
    .card-scroll-container {
        max-width: 1400px;
        width: 100%;
    }
}

@media (max-width: 1200px) and (min-width: 993px) {
    .card-scroll-container {
        max-width: 1200px;
        width: 100%;
    }
}

@media (max-width: 992px) and (min-width: 769px) {
    .card-scroll-container {
        max-width: 100%;
        width: 100%;
    }
}

/* ===========================================
   视频卡片特殊样式
   Video Card Special Styles
   =========================================== */

/* 视频播放按钮样式 */
.video-play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 4em;
    opacity: 0.9;
    transition: all 0.3s ease;
    z-index: 5;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

/* 视频卡片悬停时播放按钮效果 */
.video-card:hover .video-play-button {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.1);
    color: var(--color, #3498db);
}

/* 视频卡片悬停时遮罩层效果 */
.video-card:hover .card-overlay {
    background: linear-gradient(45deg, rgba(0, 0, 0, 0.3), rgba(52, 152, 219, 0.3));
}

/* 视频播放链接样式 */
.video-play-link {
    background: linear-gradient(135deg, #e74c3c, #c0392b) !important;
    box-shadow: 0 4px 15px rgba(231, 76, 60, 0.3) !important;
}

.video-play-link:hover {
    background: linear-gradient(135deg, #c0392b, #a93226) !important;
    box-shadow: 0 8px 25px rgba(231, 76, 60, 0.4) !important;
}

/* 视频卡片特殊动画 */
.video-card {
    position: relative;
    overflow: hidden;
}

.video-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
    z-index: 3;
}

.video-card:hover::before {
    left: 100%;
}

/* 视频卡片响应式调整 */
@media (max-width: 768px) {
    .video-play-button {
        font-size: 3em;
    }
}

@media (max-width: 480px) {
    .video-play-button {
        font-size: 2.5em;
    }
}
