/* 观知铭培训服务卡片样式文件 - 轮播版本 */

/* 博客卡片轮播布局 */
.blog-featured-section {
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.blog-featured-section .container {
    width: 100%;
    max-width: 1000px;
    height: 500px;
    margin: 0 auto;
    position: relative;
}

/* 卡片样式 */
.blog-card {
    display: flex;
    align-items: center;
    width: 100%;
    height: 500px;
    padding: 40px;
    position: absolute;
    top: 0;
    left: 0;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 25px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    opacity: 0;
    transition: opacity 0.8s ease;
    pointer-events: none; /* 默认不可点击 */
}

.blog-card.active {
    opacity: 1;
    pointer-events: auto; /* 只有活动卡片可点击 */
}

.blog-img-area {
    width: 550px;
    height: 380px;
    border-radius: 0;
    overflow: visible;
    flex-shrink: 0;
    box-shadow: none;
    background: transparent;
    margin-right: 40px;
}

.blog-img-area img {
    width: 140%;
    height: 120%;
    object-fit: contain;
    object-position: center;
    margin: 0 auto;
    margin-top: -40px;
    display: block;
    transition: transform 0.8s ease;
}

.blog-card.active .blog-img-area img {
    transform: scale(1.05);
}

.blog-content-area {
    flex: 1;
    padding: 0;
    position: relative;
    transform: translateX(30px);
    opacity: 0;
    transition: all 0.8s ease;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    max-width: calc(100% - 120px);
    margin-right: 60px;
    padding-right: 20px;
}

.blog-card.active .blog-content-area {
    opacity: 1;
    transform: translateX(0);
}

.blog-title {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--rr-color-common-white);
    text-align: center;
}

.blog-text {
    font-size: 16px;
    color: var(--rr-color-common-white);
    text-align: center;
    margin-bottom: 30px;
    line-height: 1.7;
}

.blog-button {
    display: inline-block;
    padding: 12px 30px;
    background: #3f5af3;
    color: #fff;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 500;
    transition: all 0.3s ease;
    align-self: center;
    position: relative;
    z-index: 20;
    cursor: pointer;
}

.blog-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    color: #fff;
}

/* 指示器样式 */
.blog-slider {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 10;
}

.blog-slide {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    position: relative;
}

.blog-slide:hover {
    background: rgba(255, 255, 255, 0.5);
}

.blog-slide.active {
    background: var(--rr-color-theme-primary);
    border-color: var(--rr-color-theme-secondary);
    transform: scale(1.2);
}

.blog-slide::before {
    content: '';
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    border-radius: 50%;
    border: 2px solid transparent;
}

.blog-slide.active::before {
    border-color: var(--rr-color-theme-secondary);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .blog-featured-section {
        padding: 60px 0;
    }
    
    .blog-featured-section .container {
        height: 400px;
    }
    
    .blog-card {
        height: 400px;
        padding: 20px;
        flex-direction: column;
    }
    
    .blog-img-area {
        width: 320px;
        height: 220px;
        margin-right: 0;
        margin-bottom: 20px;
        background: transparent;
    }
    
    .blog-content-area {
        text-align: center;
        transform: translateY(20px);
        margin-right: 0;
        padding-right: 0;
        max-width: 100%;
    }
    
    .blog-title {
        font-size: 24px;
    }
    
    .blog-text {
        font-size: 14px;
    }
    
    .blog-button {
        font-size: 14px;
        padding: 10px 25px;
    }
    
    .blog-slider {
        position: absolute;
        bottom: 20px;
        right: 50%;
        transform: translateX(50%);
        flex-direction: row;
        top: auto;
    }
}