/* 快手营销优势区块 - 全新设计样式 */
.ks-advantage-section {
    position: relative;
    padding: 120px 0;
    background: linear-gradient(135deg, #f8f9fc 0%, #f1f2f8 100%);
    overflow: hidden;
}

/* 动态背景元素 */
.ks-dynamic-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
}

.ks-circle-1,
.ks-circle-2,
.ks-circle-3 {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
}

.ks-circle-1 {
    top: -150px;
    right: -100px;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(255, 46, 77, 0.08) 0%, rgba(255, 46, 77, 0) 70%);
    animation: float-slow 15s ease-in-out infinite alternate;
}

.ks-circle-2 {
    bottom: -200px;
    left: -150px;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255, 220, 0, 0.06) 0%, rgba(255, 220, 0, 0) 70%);
    animation: float-slow 20s ease-in-out infinite alternate-reverse;
}

.ks-circle-3 {
    top: 40%;
    right: 25%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(255, 46, 77, 0.05) 0%, rgba(255, 46, 77, 0) 70%);
    animation: float-slow 12s ease-in-out infinite alternate;
}

.ks-particle-group {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.ks-particle {
    position: absolute;
    width: 8px;
    height: 8px;
    background-color: #FF2E4D;
    border-radius: 50%;
    opacity: 0.2;
}

.ks-particle:nth-child(1) { top: 10%; left: 15%; animation: float 25s infinite alternate; }
.ks-particle:nth-child(2) { top: 20%; right: 20%; animation: float 20s infinite alternate-reverse; }
.ks-particle:nth-child(3) { top: 50%; left: 5%; animation: float 22s infinite alternate; }
.ks-particle:nth-child(4) { top: 70%; right: 10%; animation: float 18s infinite alternate-reverse; }
.ks-particle:nth-child(5) { top: 30%; left: 50%; animation: float 23s infinite alternate; }
.ks-particle:nth-child(6) { top: 80%; left: 30%; animation: float 19s infinite alternate-reverse; }
.ks-particle:nth-child(7) { top: 15%; right: 35%; animation: float 21s infinite alternate; }
.ks-particle:nth-child(8) { top: 40%; right: 70%; animation: float 24s infinite alternate-reverse; }
.ks-particle:nth-child(9) { top: 60%; right: 40%; animation: float 26s infinite alternate; }
.ks-particle:nth-child(10) { top: 75%; left: 60%; animation: float 17s infinite alternate-reverse; }

.ks-particle:nth-child(even) {
    background-color: #FFDC00;
    width: 6px;
    height: 6px;
}

.ks-particle:nth-child(3n) {
    background-color: #FF6232;
    width: 4px;
    height: 4px;
}

@keyframes float-slow {
    0% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-30px) scale(1.05); }
    100% { transform: translateY(0) scale(1); }
}

@keyframes float {
    0% { transform: translate(0, 0); }
    25% { transform: translate(10px, 10px); }
    50% { transform: translate(0, 20px); }
    75% { transform: translate(-10px, 10px); }
    100% { transform: translate(0, 0); }
}

/* 标题区域 */
.ks-section-header {
    position: relative;
    z-index: 5;
    text-align: center;
    margin-bottom: 70px;
}

.ks-badge {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(255, 46, 77, 0.1);
    color: #FF2E4D;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 25px;
    position: relative;
}

.ks-badge-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    background-color: #FF2E4D;
    border-radius: 50%;
    margin-left: 6px;
    position: relative;
    top: -1px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(0.95); opacity: 1; }
    50% { transform: scale(1.2); opacity: 0.7; }
    100% { transform: scale(0.95); opacity: 1; }
}

.ks-title {
    font-size: 48px;
    font-weight: 800;
    color: #202124;
    margin-bottom: 20px;
    letter-spacing: -0.5px;
}

.ks-highlight {
    color: #FF2E4D;
    position: relative;
}

.ks-highlight:after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 5px;
    width: 100%;
    height: 8px;
    background-color: rgba(255, 46, 77, 0.2);
    z-index: -1;
    border-radius: 4px;
}

.ks-desc {
    font-size: 18px;
    color: #5f6368;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
}

/* 标签导航区域 */
.ks-tab-container {
    position: relative;
    z-index: 5;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.ks-tab-nav-wrapper {
    margin-bottom: 60px;
}

.ks-tab-nav {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    position: relative;
}

.ks-tab-btn {
    display: flex;
    align-items: center;
    background: none;
    border: none;
    padding: 15px 25px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    background-color: white;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.ks-tab-btn:before {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, #FF2E4D, #FF6232);
    transition: width 0.3s ease;
}

.ks-tab-btn.active {
    background-color: #fff;
    box-shadow: 0 8px 25px rgba(255, 46, 77, 0.15);
    border-color: rgba(255, 46, 77, 0.1);
    transform: translateY(-5px);
}

.ks-tab-btn.active:before {
    width: 100%;
}

.ks-tab-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: linear-gradient(135deg, #FF2E4D, #FF6232);
    color: white;
    margin-right: 12px;
    font-size: 18px;
    transition: all 0.3s ease;
}

.ks-tab-btn:hover .ks-tab-icon, 
.ks-tab-btn.active .ks-tab-icon {
    transform: scale(1.1);
}

.ks-tab-text {
    font-size: 16px;
    font-weight: 600;
    color: #202124;
}

.ks-tab-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

/* 内容区域 */
.ks-tab-content {
    display: none;
    animation: fadeIn 0.5s ease forwards;
}

.ks-tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.ks-content-wrapper {
    display: flex;
    flex-direction: column;
    gap: 50px;
}

/* 概览区域 */
.ks-feature-overview {
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.05);
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.ks-feature-overview:hover {
    box-shadow: 0 20px 50px rgba(255, 46, 77, 0.15);
    transform: translateY(-5px);
}

.ks-feature-overview:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, #FF2E4D, #FF6232);
}

.ks-overview-title {
    font-size: 28px;
    font-weight: 700;
    color: #202124;
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.ks-title-marker {
    position: absolute;
    right: -30px;
    top: 0;
    width: 24px;
    height: 24px;
    background-image: url("data:image/svg+xml,%3Csvg width='24' height='24' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M12 2L15.09 8.26L22 9.27L17 14.14L18.18 21.02L12 17.77L5.82 21.02L7 14.14L2 9.27L8.91 8.26L12 2Z' fill='%23FF2E4D'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
}

.ks-overview-desc {
    font-size: 16px;
    color: #5f6368;
    max-width: 800px;
    margin: 0 auto 30px;
    line-height: 1.6;
}

.ks-key-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.ks-stat-item {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    background-color: #f8f9fc;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.ks-stat-item:hover {
    background-color: #fff;
    box-shadow: 0 10px 30px rgba(255, 46, 77, 0.1);
    transform: translateY(-5px);
}

.ks-stat-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    background: linear-gradient(135deg, #FF2E4D, #FF6232);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    margin-right: 15px;
}

.ks-stat-info {
    text-align: left;
}

.ks-stat-value {
    font-size: 32px;
    font-weight: 800;
    color: #FF2E4D;
    line-height: 1;
    margin-bottom: 5px;
}

.ks-stat-label {
    font-size: 14px;
    color: #5f6368;
}

/* 卡片区域 */
.ks-feature-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

.ks-feature-card {
    position: relative;
    width: 100%;
    height: 320px;
    perspective: 1500px;
    cursor: pointer;
}

.ks-feature-card.flipped .ks-card-front {
    transform: rotateY(180deg);
}

.ks-feature-card.flipped .ks-card-back {
    transform: rotateY(0);
}

.ks-card-front,
.ks-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 20px;
    backface-visibility: hidden;
    transition: transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    overflow: hidden;
}

.ks-card-front {
    background: white;
    padding: 30px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.05);
    transform: rotateY(0);
    z-index: 2;
}

.ks-card-back {
    background: white;
    padding: 30px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.05);
    transform: rotateY(-180deg);
    z-index: 1;
}

.ks-card-front:before,
.ks-card-back:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background: linear-gradient(180deg, #FF2E4D, #FF6232);
}

.ks-card-icon {
    width: 70px;
    height: 70px;
    border-radius: 15px;
    background: linear-gradient(135deg, #FF2E4D, #FF6232);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin-bottom: 25px;
    box-shadow: 0 8px 20px rgba(255, 46, 77, 0.2);
}

.ks-card-title {
    font-size: 22px;
    font-weight: 700;
    color: #202124;
    margin-bottom: 15px;
}

.ks-card-desc {
    font-size: 15px;
    color: #5f6368;
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1;
}

.ks-card-more {
    display: flex;
    align-items: center;
    color: #FF2E4D;
    font-size: 14px;
    font-weight: 600;
    margin-top: auto;
}

.ks-card-more i {
    margin-left: 8px;
    transition: transform 0.3s ease;
}

.ks-feature-card:hover .ks-card-more i {
    transform: translateX(5px);
}

.ks-card-data {
    margin-top: 25px;
}

.ks-data-row {
    margin-bottom: 15px;
}

.ks-data-label {
    font-size: 14px;
    color: #5f6368;
    margin-bottom: 8px;
}

.ks-data-bar {
    height: 8px;
    background-color: #f1f3f4;
    border-radius: 4px;
    overflow: hidden;
}

.ks-data-progress {
    height: 100%;
    background: linear-gradient(90deg, #FF2E4D, #FF6232);
    border-radius: 4px;
    position: relative;
    width: 0;
    animation: progressBar 1.5s ease-out forwards 0.5s;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.ks-data-progress span {
    position: absolute;
    right: 0;
    top: -25px;
    font-size: 14px;
    font-weight: 600;
    color: #FF2E4D;
}

@keyframes progressBar {
    from { width: 0; }
    to { width: var(--width, 0%); }
}

/* 行动按钮区域 */
.ks-action-area {
    margin-top: 80px;
    text-align: center;
    position: relative;
    z-index: 5;
}

.ks-btn {
    display: inline-flex;
    align-items: center;
    padding: 16px 30px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 0 10px 10px;
    border: none;
    outline: none;
}

.ks-btn-primary {
    background: linear-gradient(90deg, #FF2E4D, #FF6232);
    color: white;
    box-shadow: 0 10px 25px rgba(255, 46, 77, 0.3);
}

.ks-btn-outline {
    background: transparent;
    color: #FF2E4D;
    border: 2px solid rgba(255, 46, 77, 0.3);
}

.ks-btn:hover {
    transform: translateY(-5px);
}

.ks-btn-primary:hover {
    box-shadow: 0 15px 30px rgba(255, 46, 77, 0.4);
}

.ks-btn-outline:hover {
    background: rgba(255, 46, 77, 0.05);
    border-color: #FF2E4D;
}

.ks-btn-icon {
    margin-right: 10px;
}

.ks-btn.pulse {
    animation: btnPulse 1s;
}

@keyframes btnPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* 动画类 */
.ks-feature-card, .ks-feature-overview, .ks-action-area {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.ks-feature-card.animate, .ks-feature-overview.animate, .ks-action-area.animate {
    opacity: 1;
    transform: translateY(0);
}

/* 响应式样式 */
@media (max-width: 1200px) {
    .ks-title {
        font-size: 40px;
    }
    
    .ks-overview-title {
        font-size: 24px;
    }
    
    .ks-feature-cards {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
}

@media (max-width: 768px) {
    .ks-advantage-section {
        padding: 80px 0;
    }
    
    .ks-title {
        font-size: 32px;
    }
    
    .ks-desc {
        font-size: 16px;
    }
    
    .ks-tab-btn {
        padding: 12px 20px;
    }
    
    .ks-tab-icon {
        width: 36px;
        height: 36px;
        font-size: 16px;
    }
    
    .ks-tab-text {
        font-size: 14px;
    }
    
    .ks-feature-overview {
        padding: 30px 20px;
    }
    
    .ks-key-stats {
        gap: 20px;
    }
    
    .ks-stat-item {
        width: 100%;
    }
    
    .ks-stat-value {
        font-size: 28px;
    }
    
    .ks-feature-cards {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .ks-title {
        font-size: 28px;
    }
    
    .ks-tab-nav {
        flex-direction: column;
        gap: 10px;
    }
    
    .ks-tab-btn {
        width: 100%;
        justify-content: center;
    }
    
    .ks-feature-card {
        height: 350px;
    }
    
    .ks-btn {
        width: 100%;
        margin: 0 0 15px;
        justify-content: center;
    }
} 