/* ==========================================
   index首页专用样式（home.css）
   仅作用于 index.html，不影响其他页面
   ========================================== */

/* ✅ 主容器：强制 2:1 比例（1920×960） */
#mainBanner .carousel-item {
    aspect-ratio: 2 / 1;        /* ✅ 和 1920×960 对应 */
    min-height: 420px;
    max-height: 800px;
    overflow: hidden;
    background: #333;
    position: relative;         /* ✅ 关键 */
}

#mainBanner .carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;          /* ✅ 配合 ResizeToFill */  /* 保证图片铺满不变形 */
    object-position: center;    /* ✅ 现在 center 就真的居中了 */
}

/* ✅ 蒙版（可选，提升文字可读性） */
#mainBanner .carousel-item::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(0,0,0,0.75) 0%, rgba(0,0,0,0.2) 45%, transparent 70%);
    z-index: 1;
}


/* ✅ 文字层确保在蒙版之上 */
/* --- 文字与按钮层级 --- */
.carousel-caption {
    position: absolute;
    left: 6%;                /* 文字距离左侧6% */
    bottom: 8%;              /* ✅ 关键：距离底部 8% */
    right: auto;
    top: auto;                /* ✅ 取消 top */
    transform: none;          /* ✅ 取消垂直居中 */
    width: auto;
    max-width: 50%;               /* 比之前窄一点，更精致 */
    z-index: 2;
    text-align: left;
    padding: 0;
}

/* 标题样式（参考对手：大字号、加粗、白色） */
.carousel-caption h2 {
    font-size: 3rem;
    font-weight: 700;
    text-shadow: 0 2px 8px rgba(0,0,0,0.5);
    margin-bottom: 1rem;
    line-height: 1.2;
}

/* 描述文字样式 */
.carousel-caption p {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

/* 按钮样式（参考对手：黑色/深色背景 + 白色文字，圆角适中） */
.carousel-caption .btn-read-more {
    background-color: #c00000;  /* 采用类似对手的醒目红色，或改为 #000 */
    color: #fff;
    padding: 0.8rem 2rem;
    font-weight: 600;
    border-radius: 4px;
    border: none;
    transition: all 0.3s ease;
}

.carousel-caption .btn-read-more:hover {
    background-color: #900000;
    transform: translateY(-2px);
}

/* ✅ 左右箭头：确保在最上层 */
#mainBanner .carousel-control-prev,
#mainBanner .carousel-control-next {
    z-index: 10;
    width: 52px;
    height: 52px;
    top: 50%;
    transform: translateY(-50%);
    background: #0d6efd;          /* ✅ 品牌蓝 */
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.85);
    transition: background 0.3s ease, transform 0.2s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.25);
}

/* ✅ hover 更深一点 */
#mainBanner .carousel-control-prev:hover,
#mainBanner .carousel-control-next:hover {
    background: #0b5ed7;
    transform: translateY(-50%) scale(1.08);
}

/* ✅ 左箭头位置 */
#mainBanner .carousel-control-prev {
    left: 20px;
}

/* ✅ 右箭头位置 */
#mainBanner .carousel-control-next {
    right: 20px;
}

/* ✅ 箭头图标：白色 + 清晰 */
#mainBanner .carousel-control-prev-icon,
#mainBanner .carousel-control-next-icon {
    width: 22px;
    height: 22px;
    filter: invert(1);            /* ✅ 白色箭头 */
    opacity: 1;
    position: relative;
    z-index: 11;
    pointer-events: auto;
}

/* ✅ focus 无障碍 */
#mainBanner .carousel-control-prev:focus,
#mainBanner .carousel-control-next:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(13,110,253,0.4);
}

/* =========================
   移动端 Banner 铺满首屏（关键）
   ========================= */
@media (max-width: 768px) {
/* 1. Banner 容器：减小高度至 45vh，去掉 flex 布局防止 Bootstrap JS 冲突 */
    #mainBanner .carousel-item {
        position: relative;          /* 改用相对定位，修复轮播切换闪回问题 */
        height: 45vh;                /* 固定高度，比之前的 50vh 更紧凑 */
        min-height: 300px;           /* 防止过小屏幕看不清 */
        max-height: 450px;
        overflow: hidden;
        background: transparent !important; /* 🔴 关键：彻底去掉黑背景 */
    }

    /* 2. 图片适配：绝对定位铺满容器，确保居中无黑边 */
    #mainBanner .carousel-item img {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
        /*opacity: 1;*/
        z-index: 1;
    }

    /* 3. 蒙版：保持在图片之上 */
    #mainBanner .carousel-item::before {
        content: "";
        position: absolute;
        inset: 0;
        /*background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.1) 60%, transparent 100%);*/
        background: linear-gradient(to top, rgba(0,0,0,0.8), transparent 60%);
        z-index: 2;
    }

    /* 4. 文字区域：绝对定位，确保在蒙版之上 */
    .carousel-caption {
        position: absolute;
        top: auto;
        left: 50%;
        bottom: 10%;
        transform: translate(-50%, 0);
        width: 90%;
        text-align: center;
        max-width: 90%;
        z-index: 3;                  /* 确保在蒙版和图片最上层 */
        padding: 1rem;
    }

    .carousel-caption h2 {
        font-size: 1.6rem;
        margin-bottom: 0.5rem;
    }

    .carousel-caption p {
        font-size: 0.85rem;
        margin-bottom: 1rem;
    }

    .carousel-caption .btn-read-more {
        padding: 0.6rem 1.5rem;
        font-size: 0.9rem;
    }

    /* ✅ 箭头：缩小一点 */
    #mainBanner .carousel-control-prev,
    #mainBanner .carousel-control-next {
        width: 40px;
        height: 40px;
    }

    #mainBanner .carousel-control-prev-icon,
    #mainBanner .carousel-control-next-icon {
        width: 20px;
        height: 20px;
    }

/*!* 4. 下方缩略图区域：占剩余 35% 视口高度（100vh - 45vh = 55vh） *!*/
/*    height: calc(100vh - 45vh);  !* 剩余高度 *!*/
/*    overflow-y: auto;*/
}


/* ==========================================
   Banner 整块可点击超链接跳转（关键）
   ========================================== */
.banner-caption-clickable {
    position: absolute;
    left: 6%;
    bottom: 8%;
    max-width: 50%;
    padding: 16px 20px;
    text-align: left;
    color: #fff;
    z-index: 3;
    cursor: pointer;
    border-radius: 8px;
    transition: background-color 0.25s ease;
}

.banner-caption-clickable:hover {
    background-color: rgba(13, 110, 253, 0.12);
}

/* 移动端 */
@media (max-width: 768px) {
    .banner-caption-clickable {
        left: 50%;
        bottom: 10%;
        transform: translateX(-50%);
        width: 90%;
        max-width: 90%;
        text-align: center;
    }
}

.banner-caption-link {
    position: absolute;
    left: 6%;
    bottom: 8%;
    top: auto;
    right: auto;
    transform: none;

    /* ✅ 只包住文字区域 */
    max-width: 50%;
    padding: 16px 20px;

    text-align: left;
    text-decoration: none;
    color: #fff;

    z-index: 2;
    border-radius: 8px;

    /* ✅ 点击区域变大 */
    cursor: pointer;

    /* ✅ hover 轻微高亮 */
    transition: background-color 0.25s ease;
}

/* ✅ hover 效果（可选但推荐） */
.banner-caption-link:hover {
    background-color: rgba(13, 110, 253, 0.12); /* 品牌蓝半透明 */
    color: #fff;
    text-decoration: none;
}

/* ✅ 标题 / 描述 hover 不变色 */
.banner-caption-link h2,
.banner-caption-link p {
    transition: none;
}

/* ✅ 按钮 hover 仍然有效 */
.banner-caption-link .btn {
    pointer-events: auto;
}

/* ✅ 移动端 */
@media (max-width: 768px) {
    .banner-caption-link {
        left: 50%;
        bottom: 10%;
        transform: translateX(-50%);
        width: 90%;
        max-width: 90%;
        text-align: center;
        padding: 12px 16px;
        pointer-events: auto;   /* ✅ 关键 */
        z-index: 3;              /* ✅ 高于 carousel 内部层 */
    }
}


/* ==========================================
   首页产品缩略图 + 详情区（终局·跨端一致版）
   ========================================== */
/* ==========================================
   首页产品缩略图 + 详情区（终局·跨端一致版）
   ========================================== */

/* ---------- 缩略图 ---------- */
.product-thumb {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border-radius: 6px;
    padding: 4px;
    box-sizing: border-box;
    cursor: pointer;
    border: 1px solid transparent;
    transition: background-color .25s ease,
                box-shadow .25s ease,
                transform .2s ease;
}

.product-thumb:hover,
.product-thumb.active {
    background-color: #eef5ff;
    border-color: #0d6efd;
    box-shadow: 0 4px 12px rgba(13, 110, 253, .25);
    transform: translateY(-2px);
}

.product-thumb img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    pointer-events: none;
}

/* ---------- 缩略图箭头 ---------- */
.thumb-arrow {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #fff;
    border: 1px solid #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all .2s ease;
}

.thumb-arrow:hover {
    background: #0d6efd;
    color: #fff;
    border-color: #0d6efd;
}

/* ---------- 缩略图滚动区 ---------- */
.thumb-scroll {
    scroll-behavior: smooth;
    overflow-x: auto;
    overflow-y: hidden;
    white-space: nowrap;
    max-width: 480px;
    margin: 0 auto;
    padding: 0 10px;
}

/* ==========================================
   PC 端专属样式 (≥992px)
   核心：恢复等高布局，保证左右高度一致
   ========================================== */
@media (min-width: 992px) {
    /* ✅ 恢复 Bootstrap 等高布局 */
    .row.align-items-stretch {
        align-items: stretch !important;
    }

    /* 左侧卡片撑满高度 */
    #detail-info-card-link {
        height: 100%;
        display: flex;
        align-items: center;
    }

    .detail-card {
        height: 100%;
        display: flex;
        flex-direction: column;
        justify-content: center;
        background: #fff;
        border-radius: 12px;
        box-shadow: 0 8px 24px rgba(0, 0, 0, .06);
        padding: 32px;
        position: relative;
        z-index: 10;
        box-sizing: border-box;
        transition: transform .3s ease,
                    box-shadow .3s ease;
    }

    #detail-info-card-link:hover .detail-card {
        transform: translateY(-4px);
        box-shadow: 0 12px 32px rgba(0, 0, 0, .1);
    }

    /* 右侧大图容器 */
    #detail-image-container {
        width: 100%;
        aspect-ratio: 4 / 3;
        max-height: 620px;
        background: #f0f0f0;
        border-radius: 12px;
        box-shadow: 0 8px 24px rgba(0, 0, 0, .06);
        overflow: hidden;
        box-sizing: border-box;
        cursor: zoom-in;
        position: relative;
    }

    #detail-picture {
        position: absolute;
        top: 0;
        left: 0;
        width: 100% !important;
        height: 100% !important;
        display: block;
        line-height: 0;
    }

    #detail-image {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
        object-position: center 40%;
        display: block !important;
        min-width: 0;
        min-height: 0;
        transition: transform .6s cubic-bezier(.25, .46, .45, .94),
                    filter .4s ease;
    }

    #detail-image-container:hover #detail-image {
        transform: scale(1.1);
        filter: brightness(1.05);
    }
}

/* ==========================================
   移动端专属样式 (≤991px)
   核心：强制上图下文，彻底解决钻图问题
   ========================================== */
@media (max-width: 991px) {
    /* ✅ 取消等高，防止左侧撑高 */
    .row.align-items-stretch {
        align-items: flex-start !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    /* ✅ 列清零 padding，避免极限宽度挤压 */
    .row.align-items-stretch > [class^="col-"] {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }


    /* ✅ 大图在上 */
    .order-1.order-lg-2 {
        order: 1 !important;
    }

    /* ✅ 文字在下 */
    .order-2.order-lg-1 {
        order: 2 !important;
    }
}

    /* 移动端文字卡片 */
    .detail-card {
        background: #fff;
        border-radius: 12px;
        box-shadow: 0 8px 24px rgba(0, 0, 0, .06);
        padding: 20px;
        position: relative;
        z-index: 10;
    }

    /* 移动端大图容器 */
    #detail-image-container {
        width: 100%;
        aspect-ratio: 4 / 3;
        max-height: 350px;
        background: #f0f0f0;
        border-radius: 12px;
        box-shadow: 0 8px 24px rgba(0, 0, 0, .06);
        overflow: hidden;
        position: relative;
    }

    #detail-picture {
        position: absolute;
        top: 0;
        left: 0;
        width: 100% !important;
        height: 100% !important;
        display: block;
        line-height: 0;
    }

    #detail-image {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
        object-position: center;
        display: block !important;
    }

    /* 移动端取消悬浮效果 */
    #detail-image-container:hover #detail-image {
        transform: none;
        filter: none;
    }

    /* 移动端标题防溢出 */
    #detail-title {
        font-size: 1.2rem;
        padding-left: .5rem;
        margin-right: 0;
    }
}

/* ==========================================
   全局文字与图片基础样式（不区分断点）
   ========================================== */
#detail-title {
    font-weight: 800;
    color: #111;
    line-height: 1.3;
    margin-bottom: 1.5rem;
    border-left: 4px solid #e63946;
    word-break: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

#detail-desc {
    color: #444;
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

#detail-specs .list-group-item {
    background: transparent;
    border-bottom: 1px solid #f0f0f0;
    padding: 10px 0;
    font-size: .95rem;
    color: #333;
}

/* ==========================================
   核心产品 · 终局版
   ========================================== */

/* ---------- 卡片整体 ---------- */
.core-products .card {
    border: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

/* ---------- 图片外层（锁死 4:3） ---------- */
.product-img-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
    background: #f0f0f0;
}

/* ---------- 图片铺满 ---------- */
.product-img-wrapper img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center;
    display: block;
    transition: transform 0.45s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                filter 0.3s ease;
}

/* ---------- 悬浮放大（PC） ---------- */
@media (hover: hover) and (pointer: fine) {
    .product-img-wrapper:hover img {
        transform: scale(1.08);
        filter: brightness(1.05);
    }

    .core-products .card:hover {
        transform: translateY(-6px);
        box-shadow: 0 16px 32px rgba(0, 0, 0, 0.12);
    }
}

/* ---------- 卡片内容区 ---------- */
.core-products .card-body {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.core-products .card-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
}

.core-products .card-title a {
    color: #212529;
    text-decoration: none;
}

.core-products .card-text {
    font-size: 14px;
    color: #6c757d;
    margin-bottom: 16px;
    flex-grow: 1;
}

.core-products .btn {
    font-size: 14px;
    padding: 6px 16px;
    border-radius: 4px;
    align-self: flex-start;
}


/* ==========================================
   行业解决方案 · 终局版
   ========================================== */

/* ---------- 卡片整体 ---------- */
.solutions .card {
    border: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

/* ---------- 图片外层（锁死 4:3） ---------- */
.solution-img-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
    background: #f0f0f0;
}

/* ---------- 图片铺满 ---------- */
.solution-img-wrapper picture,
.solution-img-wrapper img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center;
    display: block;
    transition: transform 0.45s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                filter 0.3s ease;
}

/* ---------- 悬浮放大（PC） ---------- */
@media (hover: hover) and (pointer: fine) {
    .solution-img-wrapper:hover picture,
    .solution-img-wrapper:hover img {
        transform: scale(1.08);
        filter: brightness(1.05);
    }

    .solutions .card:hover {
        transform: translateY(-6px);
        box-shadow: 0 16px 32px rgba(0, 0, 0, 0.12);
    }
}

/* ---------- 卡片内容区 ---------- */
.solutions .card-body {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.solutions .card-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
}

.solutions .card-title a {
    color: #212529;
    text-decoration: none;
}

.solutions .card-text {
    font-size: 14px;
    color: #6c757d;
    margin-bottom: 16px;
    flex-grow: 1;
}

.solutions .btn {
    font-size: 14px;
    padding: 6px 16px;
    border-radius: 4px;
    align-self: flex-start;
}

/* ⚠️ 清理旧样式：删除 .solutions .card-img-top 的固定高度声明，避免冲突 */


/* ==========================================
   新闻资讯 · 终局版
   ========================================== */

/* ---------- 卡片整体 ---------- */
.news-section .card {
    border: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

/* ---------- 图片外层（锁死 4:3） ---------- */
.news-img-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
    background: #f0f0f0;
}

/* ---------- 图片铺满 ---------- */
.news-img-wrapper picture,
.news-img-wrapper img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center;
    display: block;
    transition: transform 0.45s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                filter 0.3s ease;
}

/* ---------- 悬浮放大（PC） ---------- */
@media (hover: hover) and (pointer: fine) {
    .news-img-wrapper:hover picture,
    .news-img-wrapper:hover img {
        transform: scale(1.08);
        filter: brightness(1.05);
    }

    .news-section .card:hover {
        transform: translateY(-6px);
        box-shadow: 0 16px 32px rgba(0, 0, 0, 0.12);
    }
}

/* ---------- 卡片内容区 ---------- */
.news-section .card-body {
    padding: 16px 20px 20px;
    display: flex;
    flex-direction: column;
}

.news-section .card-title {
    font-size: 15px;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 8px;
}

.news-section .card-title a {
    color: #212529;
    text-decoration: none;
}

.news-section .card-title a:hover {
    color: #0d6efd;
}

.news-section .text-muted {
    font-size: 13px;
    margin-top: auto;
}

/* ==========================================
   公司实力 · 终局版
   ========================================== */
/* ---------- 图片外层（锁死 4:3，与全站统一） ---------- */
.strength-img-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: 0.375rem;
    background: #f0f0f0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.strength-img-wrapper img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center;
    display: block;
    transition: transform 0.45s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ---------- 悬浮效果 ---------- */
.strength-img-wrapper:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.strength-img-wrapper:hover img {
    transform: scale(1.05);
}

/* ---------- 滑动容器 ---------- */
.strength-slider-wrapper {
    position: relative;
    padding: 0 3rem;
}

.strength-slider {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.strength-slider::-webkit-scrollbar {
    display: none;
}

.strength-card {
    flex: 0 0 calc(25% - 0.75rem);
    scroll-snap-align: start;
    text-align: center;
}

.strength-card p {
    font-size: 0.875rem;
    color: #6c757d;
}

/* ---------- 左右按钮（白底黑标，清晰可读） ---------- */
.strength-prev,
.strength-next {
    position: absolute;
    top: calc(4 / 3 * 50% - 20px);
    transform: translateY(-50%);
    z-index: 10;
    background: #ffffff;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    transition: background 0.2s, box-shadow 0.2s;
}

.strength-prev {
    left: 0;
}

.strength-next {
    right: 0;
}

.strength-prev:hover,
.strength-next:hover {
    background: #f8f9fa;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.strength-prev .carousel-control-prev-icon,
.strength-next .carousel-control-next-icon {
    width: 20px;
    height: 20px;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23000'%3e%3cpath d='M11.354 1.646a.5.5 0 0 1 0 .708L5.707 8l5.647 5.646a.5.5 0 0 1-.708.708l-6-6a.5.5 0 0 1 0-.708l6-6a.5.5 0 0 1 .708 0z'/%3e%3c/svg%3e");
}

.strength-next .carousel-control-next-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23000'%3e%3cpath d='M4.646 1.646a.5.5 0 0 1 .708 0l6 6a.5.5 0 0 1 0 .708l-6 6a.5.5 0 0 1-.708-.708L10.293 8 4.646 2.354a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}

/* ---------- 响应式断点 ---------- */
@media (max-width: 991.98px) {
    .strength-card {
        flex: 0 0 calc(33.333% - 0.75rem);
    }
}

@media (max-width: 767.98px) {
    .strength-card {
        flex: 0 0 calc(50% - 0.5rem);
    }

    .strength-slider-wrapper {
        padding: 0 2.5rem;
    }
}

@media (max-width: 575.98px) {
    .strength-card {
        flex: 0 0 100%;
    }

    .strength-slider-wrapper {
        padding: 0 2rem;
    }
}


/* =========================
   7. 客户评价
   ========================= */
.client-reviews .list-group-item {
    border: none;
    padding: 16px 0;
    border-bottom: 1px solid #e9ecef;
}

.client-reviews .list-group-item:last-child {
    border-bottom: none;
}

.client-reviews .text-warning {
    margin-bottom: 8px;
}

.client-reviews .fw-medium {
    color: #212529;
    margin-bottom: 8px;
    line-height: 1.6;
}

.client-reviews .text-muted {
    font-size: 13px;
    color: #6c757d !important;
}

/* =========================
   8. 核心优势
   ========================= */
/* =========================
   核心优势 - 高端金属卡片风格
   ========================= */
.advantage-card {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    /*border: 2px solid transparent;*/
    border-radius: 12px;
    padding: 30px 20px;
    margin: 15px 0;
    position: relative;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    /* 关键：金色边框效果 */
    background-clip: padding-box;
    /*border-image: linear-gradient(135deg, #c9a227, #f0d57a, #c9a227) 1;*/
    border: 2px solid #D4AF37; /* 使用实线边框代替渐变边框，避免渲染缝隙 */
}

.advantage-card::before {
    content: '';
    position: absolute;
    top: -2px; left: -2px; right: -2px; bottom: -2px;
    background: linear-gradient(135deg, #c9a227, #f0d57a, #c9a227);
    border-radius: 14px;
    z-index: -1;
    opacity: 0.6;
    transition: opacity 0.3s ease;
}

.advantage-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.advantage-card:hover::before {
    opacity: 1;
}

/* 图标徽章容器 */
.advantage-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto;
    background: linear-gradient(135deg, #ffffff, #f8f9fa);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #c9a227;
    box-shadow: 0 4px 10px rgba(201, 162, 39, 0.2);
    position: relative;
    overflow: hidden;
}

.advantage-icon::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.8), transparent 50%);
    border-radius: 50%;
    z-index: 1;
}

.advantage-icon i {
    font-size: 32px;
    color: #0d6efd; /* 蓝色图标，和你原风格一致 */
    z-index: 2;
    position: relative;
}

/* 响应式：小屏时缩小间距 */
@media (max-width: 768px) {
    .advantage-card {
        padding: 20px 15px;
        margin: 10px 0;
    }
    .advantage-icon {
        width: 60px;
        height: 60px;
    }
    .advantage-icon i {
        font-size: 24px;
    }
}

/* =========================
   9. 联系我们 CTA
   ========================= */
.cta-section {
    background: linear-gradient(135deg, #198754 0%, #0d6efd 100%);
    padding: 60px 0;
    text-align: center;
    color: #fff;
}

.cta-section h3 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 16px;
}

.cta-section p {
    font-size: 18px;
    margin-bottom: 24px;
    opacity: 0.9;
}

.cta-section .btn {
    background-color: #fff;
    color: #0d6efd;
    font-size: 18px;
    padding: 12px 32px;
    border-radius: 30px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.cta-section .btn:hover {
    background-color: #f8f9fa;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* =========================
   10. 底部
   ========================= */

.site-footer {
    background: linear-gradient(135deg, #198754 0%, #0d6efd 100%);
    color: #fff;
    padding: 40px 0 20px;
}

.site-footer h5 {
    font-weight: 700;
    margin-bottom: 20px;
    font-size: 18px;
}

.site-footer ul {
    padding-left: 0;
    list-style: none;
}

.site-footer li {
    margin-bottom: 8px;
}

.site-footer a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    transition: color 0.2s ease;
}

.site-footer a:hover {
    color: #fff;
    text-decoration: underline;
}

.site-footer .text-center {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 14px;
    color: rgba(255,255,255,0.7);
}


/* =========================
   12. 响应式调整
   ========================= */

@media (max-width: 991.98px) {
    #detail-info-card,
    #detail-image-container {
        min-height: auto;
        max-height: 420px;
        padding: 20px;
    }
}

@media (max-width: 767.98px) {
    .thumb-arrow {
        width: 28px;
        height: 28px;
    }

    .thumb-arrow span {
        font-size: 16px;
    }

    .thumb-arrow-left {
        left: -14px;
    }

    .thumb-arrow-right {
        right: -14px;
    }

    .product-item-wrapper {
        width: 90px;
    }
}
