/* 
 * 为什么选择小红书营销区块独立样式
 * 视觉丰富版本，提供更好的用户体验和互动感
 */

/* 基础样式和容器 */
.xhs-why-section {
    padding: 80px 0;
    position: relative;
    background: #fff;
    overflow: hidden;
    font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif;
}

.xhs-why-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 2;
}

/* 标题样式 */
.xhs-why-header {
    text-align: center;
    margin-bottom: 50px;
    position: relative;
}

.xhs-why-subtitle {
    display: inline-block;
    font-size: 14px;
    background: rgba(254, 44, 85, 0.1);
    color: #fe2c55;
    padding: 5px 12px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
    font-weight: 600;
}

.xhs-why-title {
    font-size: 36px;
    margin: 0 0 15px;
    font-weight: 700;
    color: #333;
    position: relative;
    display: inline-block;
}

.xhs-why-highlight {
    color: #fe2c55;
    position: relative;
}

.xhs-why-highlight:after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 0;
    width: 100%;
    height: 8px;
    background: rgba(254, 44, 85, 0.15);
    z-index: -1;
    border-radius: 4px;
}

.xhs-why-desc {
    color: #666;
    font-size: 18px;
    max-width: 700px;
    margin: 0 auto 20px;
    line-height: 1.6;
}

.xhs-divider {
    width: 80px;
    height: 3px;
    background: #fe2c55;
    margin: 0 auto;
    position: relative;
}

.xhs-divider span {
    display: block;
    position: absolute;
    width: 8px;
    height: 8px;
    background: #fe2c55;
    border-radius: 50%;
    top: -2.5px;
    left: 50%;
    transform: translateX(-50%);
}

/* 营销服务特色区域 */
.xhs-marketing-features {
    margin-bottom: 40px;
}

.xhs-features-row {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0 auto;
    max-width: 900px;
}

.xhs-feature-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 15px 10px;
    min-width: 120px;
    border-radius: 12px;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    z-index: 1;
}

.xhs-feature-item:hover {
    background: rgba(254, 44, 85, 0.05);
}

.xhs-feature-item.active {
    background: rgba(254, 44, 85, 0.1);
}

.xhs-feature-item.active:before {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-top: 10px solid rgba(254, 44, 85, 0.1);
    z-index: -1;
}

.xhs-feature-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
    transition: transform 0.3s ease;
}

.xhs-feature-item:hover .xhs-feature-icon {
    transform: translateY(-5px);
}

.xhs-feature-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.xhs-feature-name {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    text-align: center;
    transition: color 0.3s ease;
}

.xhs-feature-item:hover .xhs-feature-name,
.xhs-feature-item.active .xhs-feature-name {
    color: #fe2c55;
}

/* 手机展示区域 */
.xhs-showcase-container {
    margin-top: 40px;
    padding: 20px 0;
    position: relative;
}

.xhs-showcase-slides {
    position: relative;
    min-height: 600px;
}

.xhs-showcase-slide {
    display: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
    position: relative;
}

.xhs-showcase-slide.active {
    display: flex;
    flex-wrap: wrap;
    opacity: 1;
    visibility: visible;
}

/* 手机设备样式 */
.xhs-phones-display {
    position: relative;
    width: 100%;
    height: 450px;
    margin-bottom: 30px;
}

.xhs-phone-device {
    position: absolute;
    width: 220px;
    height: 440px;
    background: #fff;
    border-radius: 36px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    padding: 10px;
    transition: all 0.5s ease;
    transform-origin: center center;
    overflow: hidden;
}

.xhs-phone-device:before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 20px;
    background: #333;
    border-radius: 0 0 16px 16px;
    z-index: 3;
}

.xhs-phone-screen {
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: 26px;
    position: relative;
}

.xhs-phone-screen img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* 手机设备位置 */
.phone1 {
    left: 50%;
    top: 20px;
    transform: translateX(-50%) scale(1);
    z-index: 5;
}

.phone2 {
    left: 32%;
    top: 50px;
    transform: translateX(-50%) scale(0.85) rotate(-5deg);
    z-index: 4;
}

.phone3 {
    left: 68%;
    top: 50px;
    transform: translateX(-50%) scale(0.85) rotate(5deg);
    z-index: 4;
}

.phone4 {
    left: 20%;
    top: 80px;
    transform: translateX(-50%) scale(0.7) rotate(-10deg);
    z-index: 3;
}

.phone5 {
    left: 80%;
    top: 80px;
    transform: translateX(-50%) scale(0.7) rotate(10deg);
    z-index: 3;
}

/* 手机悬停效果 */
.xhs-phone-device:hover {
    transform: translateY(-10px) translateX(-50%) scale(1.05);
    z-index: 10;
    box-shadow: 0 25px 45px rgba(0, 0, 0, 0.15);
}

.phone2:hover, .phone3:hover {
    transform: translateY(-10px) translateX(-50%) scale(0.9) rotate(0);
}

.phone4:hover, .phone5:hover {
    transform: translateY(-10px) translateX(-50%) scale(0.75) rotate(0);
}

/* 特色信息区域 */
.xhs-feature-info {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.xhs-feature-title {
    font-size: 24px;
    color: #333;
    margin: 0 0 15px;
    font-weight: 700;
    position: relative;
    display: inline-block;
}

.xhs-feature-badge {
    display: inline-block;
    font-size: 14px;
    padding: 3px 10px;
    background: #fe2c55;
    color: white;
    border-radius: 20px;
    margin-left: 8px;
    font-weight: 600;
    vertical-align: middle;
}

.xhs-feature-desc {
    font-size: 16px;
    color: #666;
    margin-bottom: 20px;
    line-height: 1.6;
}

.xhs-feature-points {
    list-style: none;
    padding: 0;
    margin: 0 0 20px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
}

.xhs-feature-points li {
    flex: 0 0 calc(50% - 15px);
    padding-left: 25px;
    position: relative;
    text-align: left;
    font-size: 15px;
    color: #555;
    margin-bottom: 10px;
}

.xhs-feature-points li:before {
    content: '';
    position: absolute;
    left: 0;
    top: 6px;
    width: 16px;
    height: 16px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23fe2c55'%3E%3Cpath d='M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
}

.xhs-feature-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 25px;
}

.xhs-feature-stat {
    text-align: center;
}

.xhs-stat-value {
    display: block;
    font-size: 32px;
    font-weight: 700;
    color: #fe2c55;
    margin-bottom: 5px;
}

.xhs-stat-label {
    font-size: 14px;
    color: #666;
}

/* 轮播控制 */
.xhs-showcase-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 30px;
    gap: 15px;
}

.xhs-control-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #fff;
    border: 1px solid #eee;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.xhs-control-btn:hover {
    background: #fe2c55;
    border-color: #fe2c55;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(254, 44, 85, 0.2);
}

.xhs-control-btn:hover .xhs-arrow {
    border-color: #fff;
}

.xhs-arrow {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-top: 2px solid #999;
    border-right: 2px solid #999;
    transition: border-color 0.3s ease;
}

.xhs-arrow.left {
    transform: rotate(-135deg);
}

.xhs-arrow.right {
    transform: rotate(45deg);
}

.xhs-progress-bar {
    flex: 1;
    max-width: 300px;
}

.xhs-progress-track {
    height: 4px;
    background: #f0f0f0;
    border-radius: 2px;
    position: relative;
    overflow: hidden;
}

.xhs-progress-fill {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 20%;
    background: #fe2c55;
    border-radius: 2px;
    transition: width 0.3s ease;
}

/* CTA区域 */
.xhs-cta-section {
    background: linear-gradient(120deg, #fe2c55, #ff6d92);
    border-radius: 12px;
    padding: 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(254, 44, 85, 0.2);
    margin-top: 60px;
}

.xhs-cta-section:before {
    content: '';
    position: absolute;
    top: -30px;
    right: -30px;
    width: 150px;
    height: 150px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

.xhs-cta-section:after {
    content: '';
    position: absolute;
    bottom: -50px;
    left: -50px;
    width: 200px;
    height: 200px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 50%;
}

.xhs-cta-title {
    color: #fff;
    font-size: 24px;
    margin: 0 0 25px;
    position: relative;
    z-index: 1;
}

.xhs-cta-button {
    display: inline-block;
    background: #fff;
    color: #fe2c55;
    font-size: 16px;
    font-weight: 700;
    padding: 14px 32px;
    border-radius: 30px;
    text-decoration: none;
    transition: all 0.3s;
    position: relative;
    z-index: 1;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.xhs-cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    background: #f8f8f8;
}

/* 动画效果 */
@keyframes phoneEntrance {
    0% {
        opacity: 0;
        transform: translateY(30px) translateX(-50%) scale(0.8);
    }
    100% {
        opacity: 1;
        transform: translateY(0) translateX(-50%) scale(1);
    }
}

.xhs-showcase-slide.active .phone1 {
    animation: phoneEntrance 0.5s ease forwards;
}

.xhs-showcase-slide.active .phone2 {
    animation: phoneEntrance 0.5s 0.1s ease forwards;
}

.xhs-showcase-slide.active .phone3 {
    animation: phoneEntrance 0.5s 0.2s ease forwards;
}

.xhs-showcase-slide.active .phone4 {
    animation: phoneEntrance 0.5s 0.3s ease forwards;
}

.xhs-showcase-slide.active .phone5 {
    animation: phoneEntrance 0.5s 0.4s ease forwards;
}

/* 响应式设计 */
@media (max-width: 992px) {
    .xhs-why-section {
        padding: 60px 0;
    }
    
    .xhs-feature-points li {
        flex: 0 0 100%;
    }

    .xhs-phones-display {
        height: 400px;
    }

    .xhs-phone-device {
        width: 180px;
        height: 360px;
    }
}

@media (max-width: 768px) {
    .xhs-why-title {
        font-size: 28px;
    }
    
    .xhs-why-desc {
        font-size: 16px;
    }

    .xhs-feature-item {
        min-width: 100px;
    }

    .xhs-feature-icon {
        width: 50px;
        height: 50px;
    }

    .xhs-feature-name {
        font-size: 14px;
    }

    .xhs-phones-display {
        height: 350px;
    }

    .phone4, .phone5 {
        display: none;
    }

    .phone2 {
        left: 25%;
    }

    .phone3 {
        left: 75%;
    }

    .xhs-cta-section {
        padding: 30px 20px;
    }
    
    .xhs-cta-title {
        font-size: 20px;
    }
}

@media (max-width: 576px) {
    .xhs-phone-device {
        width: 160px;
        height: 320px;
    }

    .phone2, .phone3 {
        top: 70px;
    }

    .xhs-feature-points {
        gap: 10px;
    }

    .xhs-feature-stats {
        gap: 20px;
    }

    .xhs-stat-value {
        font-size: 26px;
    }

    .xhs-cta-button {
        padding: 12px 25px;
        font-size: 15px;
    }
}