/**
 * 快手营销页 - Banner样式
 * 符合快手品牌风格的设计 - 背景通屏但内容宽屏
 */

/* Banner容器 - 强制完全通屏设计的背景 */
.ks-banner {
    position: relative;
    height: 700px; /* 固定高度在600px-800px之间 */
    width: 100vw !important; /* 强制使用视口宽度 */
    max-width: 100vw !important;
    margin-left: calc(-50vw + 50%) !important; /* 强制负边距技术 */
    margin-right: calc(-50vw + 50%) !important;
    left: 0 !important;
    right: 0 !important;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    color: white;
    background: radial-gradient(ellipse at center, #151515 0%, #000000 100%);
    padding: 0 !important; /* 移除所有内边距 */
    box-sizing: border-box;
    z-index: 1; /* 确保层叠顺序正确 */
}

/* 重置任何可能的外部容器限制 */
.ks-banner,
.ks-banner * {
    box-sizing: border-box;
}

.container .ks-banner,
.main-container .ks-banner,
.row .ks-banner,
.col .ks-banner,
div[class*="container"] .ks-banner {
    width: 100vw !important;
    max-width: 100vw !important;
    margin-left: calc(-50vw + 50%) !important;
    margin-right: calc(-50vw + 50%) !important;
    padding: 0 !important;
}

/* Banner内容容器 - 宽屏内容布局 */
.ks-banner-content {
    position: relative;
    display: flex;
    width: 100%; /* 撑满宽度 */
    max-width: 1600px; /* 宽屏内容布局 */
    padding: 0 60px; /* 使用适当内边距 */
    margin: 0 auto;
    z-index: 10;
    box-sizing: border-box;
}

/* 左侧内容区域 */
.ks-banner-left {
    flex: 1;
    padding-right: 80px;
    max-width: 750px;
}

/* 右侧内容区域 */
.ks-banner-right {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 标题样式 */
.ks-banner-title {
    font-size: 60px;
    font-weight: 800;
    margin-bottom: 25px;
    line-height: 1.1;
}

.ks-title-line {
    display: block;
    color: white;
    margin-bottom: 5px;
}

.ks-title-highlight {
    display: block;
    background: linear-gradient(90deg, #FF2E4D, #FFDC00);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 900;
}

/* 副标题样式 */
.ks-banner-subtitle {
    font-size: 20px;
    line-height: 1.6;
    margin-bottom: 30px;
    color: rgba(255, 255, 255, 0.9);
}

/* 按钮容器 */
.ks-banner-btns {
    display: flex;
    gap: 20px;
    margin-top: 40px;
}

/* 按钮基础样式 */
.ks-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 180px;
    height: 56px;
    padding: 0 36px;
    border-radius: 28px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s ease;
    outline: none;
    border: none;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

/* 主按钮样式 */
.ks-btn-primary {
    background: linear-gradient(45deg, #FF2E4D, #FF6232);
    color: white;
    box-shadow: 0 5px 20px rgba(255, 46, 77, 0.4);
}

.ks-btn-primary:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: linear-gradient(45deg, #FF6232, #FF2E4D);
    transition: all 0.5s ease;
    z-index: -1;
}

.ks-btn-primary:hover {
    box-shadow: 0 8px 25px rgba(255, 46, 77, 0.6);
    transform: translateY(-3px);
}

.ks-btn-primary:hover:before {
    width: 100%;
}

/* 次级按钮样式 */
.ks-btn-outline {
    background: transparent;
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.ks-btn-outline:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    transition: all 0.5s ease;
    z-index: -1;
}

.ks-btn-outline:hover {
    border-color: rgba(255, 255, 255, 0.6);
    transform: translateY(-3px);
}

.ks-btn-outline:hover:before {
    width: 100%;
}

/* 数据图表卡片 */
.ks-3d-card-container {
    position: relative;
    width: 100%;
    max-width: 500px;
    height: 420px;
    perspective: 1000px;
    margin: 0 auto;
}

.ks-3d-card {
    position: relative;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
    padding: 40px;
    transform-style: preserve-3d;
    transition: all 0.5s ease;
    overflow: hidden;
}

.ks-3d-card:before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 46, 77, 0.1), transparent 70%);
    transform: rotate(25deg);
    z-index: -1;
}

/* 波浪底部 */
.ks-banner-wave {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50px;
    z-index: 5;
}

/* 自定义波浪样式 */
.ks-wave-svg {
    width: 100%;
    height: 120px;
    position: absolute;
    bottom: -1px;
    left: 0;
}

/* 视频背景 - 通屏设计 */
.ks-banner-video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
}

.ks-banner-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translateX(-50%) translateY(-50%);
    object-fit: cover;
}

.ks-banner-video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.85) 100%);
    z-index: 2;
}

/* 粒子容器 */
.ks-particles-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 3;
    overflow: hidden;
    pointer-events: none;
}

/* 装饰元素 */
.ks-decorative-elements {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

/* 装饰圆形 */
.ks-decorative-circle {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 46, 77, 0.1);
    z-index: 2;
}

.ks-circle-1 {
    width: 300px;
    height: 300px;
    top: -100px;
    right: -100px;
    animation: pulse 8s infinite alternate;
}

.ks-circle-2 {
    width: 200px;
    height: 200px;
    bottom: 100px;
    left: -50px;
    animation: pulse 12s infinite alternate;
    background: rgba(255, 220, 0, 0.1);
}

.ks-circle-3 {
    width: 150px;
    height: 150px;
    top: 30%;
    right: 20%;
    animation: pulse 10s infinite alternate;
    background: rgba(255, 255, 255, 0.05);
}

/* 装饰线条 */
.ks-decorative-line {
    position: absolute;
    background: linear-gradient(90deg, transparent, rgba(255, 46, 77, 0.2), transparent);
    height: 1px;
    width: 50%;
    z-index: 2;
}

.ks-line-1 {
    top: 25%;
    left: 0;
    animation: slideLine 15s infinite;
}

.ks-line-2 {
    bottom: 40%;
    right: 0;
    animation: slideLine 20s infinite reverse;
}

/* 滚动提示 */
.ks-scroll-hint {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 10;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.ks-scroll-hint:hover {
    opacity: 1;
}

.ks-scroll-icon {
    width: 30px;
    height: 50px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 25px;
    display: flex;
    justify-content: center;
    margin-bottom: 10px;
    position: relative;
}

.ks-scroll-icon i {
    color: white;
    animation: scrollDown 2s infinite;
    position: absolute;
    top: 8px;
}

.ks-scroll-hint span {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
}

/* 动画关键帧 */
@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 0.1;
    }
    50% {
        transform: scale(1.05);
        opacity: 0.15;
    }
    100% {
        transform: scale(1);
        opacity: 0.1;
    }
}

@keyframes slideLine {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(200%);
    }
}

@keyframes scrollDown {
    0% {
        opacity: 0;
        transform: translateY(0);
    }
    50% {
        opacity: 1;
    }
    100% {
        opacity: 0;
        transform: translateY(20px);
    }
}

/* 浮动快手图标元素 */
.ks-floating-elements {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 3;
}

.ks-float-item {
    position: absolute;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.ks-float-item i {
    color: #FF2E4D;
    font-size: 16px;
}

.ks-icon-1 {
    top: 20%;
    right: 15%;
}

.ks-icon-2 {
    bottom: 30%;
    right: 25%;
}

.ks-icon-3 {
    top: 50%;
    right: 5%;
}

/* 数据标签 */
.ks-data-tags {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 35px;
    gap: 12px;
}

.ks-data-tag {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    padding: 10px 20px;
    margin-right: 15px;
    transition: all 0.3s ease;
}

.ks-data-tag:hover {
    background: rgba(255, 46, 77, 0.2);
    transform: translateY(-3px);
}

.ks-data-tag i {
    color: #FF2E4D;
    margin-right: 10px;
    font-size: 16px;
}

.ks-data-tag span {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.9);
}

.ks-data-tag strong {
    color: #FFDC00;
    font-weight: 700;
    margin-left: 3px;
}

/* 徽章样式 */
.ks-badge {
    display: inline-block;
    padding: 8px 16px;
    background: rgba(255, 46, 77, 0.2);
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    color: #FF2E4D;
    margin-bottom: 25px;
    border: 1px solid rgba(255, 46, 77, 0.3);
}

/* 响应式样式 - 通屏背景，宽屏内容 */
@media (max-width: 1600px) {
    .ks-banner-content {
        max-width: 1400px;
        padding: 0 60px;
    }
}

@media (max-width: 1400px) {
    .ks-banner-content {
        max-width: 1200px;
        padding: 0 60px;
    }
}

@media (max-width: 992px) {
    .ks-banner {
        height: 800px; /* 小屏幕下增加高度以适应垂直布局 */
    }
    
    .ks-banner-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 0 40px;
    }

    .ks-banner-left {
        padding-right: 0;
        margin-bottom: 50px;
    }

    .ks-banner-btns {
        justify-content: center;
    }

    .ks-data-tags {
        justify-content: center;
    }

    .ks-badge {
        margin-left: auto;
        margin-right: auto;
    }
}

@media (max-width: 768px) {
    .ks-banner {
        height: 750px;
    }
    
    .ks-banner-title {
        font-size: 40px;
    }

    .ks-banner-subtitle {
        font-size: 18px;
    }

    .ks-banner-btns {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }

    .ks-btn {
        width: 100%;
        max-width: 300px;
    }

    .ks-3d-card-container {
        height: 340px;
        max-width: 400px;
    }
}

@media (max-width: 576px) {
    .ks-banner {
        height: 680px;
    }
    
    .ks-banner-content {
        padding: 0 20px;
    }
    
    .ks-banner-title {
        font-size: 36px;
    }
    
    .ks-data-tags {
        flex-direction: column;
        align-items: center;
        gap: 8px;
    }
    
    .ks-data-tag {
        margin-right: 0;
        width: 100%;
        justify-content: center;
    }
} 