/*
    =======================================================================================================

    Name          : 推荐图

    =======================================================================================================
*/
/* =======================================================================================================
    Carousel Featured - 融合滑动逻辑与黑红质感
    =======================================================================================================
*/

/* 1. 容器：保持简洁 */
.carousel-container {
    position: relative;
    overflow: hidden;
    width: 100%;
    height: 280px; 
    margin: 30px 0 0 0;
}

/* 2. 基础项：移除所有 3D 变换 */
.carousel-item {
    display: flex;
    position: absolute;
    top: 0;
    width: 100%;
    height: 100%;
    align-items: center;
    
    /* 核心修改：使用 left 而不是 transform */
    left: 100%; 
    opacity: 0;
    visibility: hidden;
    
    /* 移除 will-change，让文字保持原生渲染 */
    transition: left 0.6s ease, opacity 0.6s ease, visibility 0.6s;
}

/* 3. 状态控制：平滑滚动 */
.carousel-item.active {
    left: 0;
    opacity: 1;
    visibility: visible;
    z-index: 2;
}

.carousel-item.prev {
    left: -100%;
    opacity: 0;
    z-index: 1;
}

.carousel-item.next {
    left: 100%;
    opacity: 0;
    z-index: 1;
}

/* 解决 Chrome 的渲染 bug，确保文字抗锯齿 */
.carousel-item * {
    -webkit-font-smoothing: subpixel-antialiased;
    backface-visibility: none;
}

/* 4. 文字与排版 */
.carousel-item .span6 {
    width: 50%;
    padding-right: 15px;
    box-sizing: border-box;
}

.featured-title {
    font-size: 28px !important;
    font-weight: 800 !important;
    color: #2c2c2e !important;
    margin: 0 0 15px 0 !important;
    border-left: 5px solid #ff4b2b;
    padding-left: 15px;
    line-height: 1.2;
}

.carousel-item p {
    font-size: 14px;
    line-height: 1.6;
    color: #666;
    margin-bottom: 20px;
}

/* 5. 按钮与控制 */
.carousel-item .btn-large {
    display: inline-block !important;
    background: linear-gradient(135deg, #2c2c2e 0%, #000 100%) !important;
    color: #fff !important;
    padding: 10px 30px !important;
    border-radius: 8px !important;
    font-weight: bold !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2) !important;
    transition: all 0.3s ease !important;
    text-decoration: none !important;
}

.carousel-item .btn-large:hover {
    background: linear-gradient(135deg, #d32f2f 0%, #ff4b2b 100%) !important;
    box-shadow: 0 6px 18px rgba(255, 75, 43, 0.4) !important;
    transform: translateY(-2px);
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.2);
    color: white;
    border: none;
    cursor: pointer;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.carousel-btn:hover {
    background: #ff4b2b;
    box-shadow: 0 0 15px rgba(255, 75, 43, 0.5);
}

.carousel-btn.left { left: 15px; }
.carousel-btn.right { right: 15px; }
