/* 简单轮播图样式 - 带动画效果 */

/* 引入自定义字体 */
@font-face {
    font-family: 'StarrFont';
    src: url('/web/StarPolicy/static/font/aoyehei.woff2') format('woff2'),
         url('/web/StarPolicy/static/font/aoyehei.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

.section.banner {
    width: 100%;
    position: relative;
    margin: 0;
    padding: 0;
    padding-top: 65px; /* 导航栏高度 */
}

.simple-banner {
    width: 100%;
    height: 500px;
    position: relative;
    overflow: hidden;
    background: #f7f9fa;
    z-index: 1;
}

/* 加载动画 */
.simple-banner-loading {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #f7f9fa;
    z-index: 50;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.simple-banner-loading.hidden {
    opacity: 0;
    visibility: hidden;
}

.loading-bars {
    display: flex;
    align-items: flex-end;
    gap: 6px;
    height: 30px;
}

.loading-bars span {
    width: 6px;
    height: 10px;
    background: #1a54ff;
    border-radius: 3px;
    animation: loading-bar 1s ease-in-out infinite;
}

.loading-bars span:nth-child(1) {
    animation-delay: 0s;
}

.loading-bars span:nth-child(2) {
    animation-delay: 0.2s;
}

.loading-bars span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes loading-bar {
    0%, 100% {
        height: 10px;
    }
    50% {
        height: 30px;
    }
}

.simple-banner-loading p {
    margin-top: 15px;
    color: #1a54ff;
    font-size: 14px;
    font-weight: 500;
}

.simple-banner-track {
    width: 100%;
    height: 100%;
    position: relative;
}

/* 幻灯片 - 带缩放和淡入效果 */
.simple-banner-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transform: scale(1.1);
    transition: opacity 0.8s ease-in-out, transform 1.2s ease-out, visibility 0.8s;
    z-index: 1;
}

.simple-banner-slide.active {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
    z-index: 2;
}

.simple-banner-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* 视频样式 */
.simple-banner-slide video.banner-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.simple-banner-slide .video-poster {
    display: none;
}

/* 视频加载时显示封面 */
.simple-banner-slide[data-type="video"]:not(.active) .video-poster {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #1a1a2e;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 视频播放图标（可选） */
.simple-banner-slide[data-type="video"] .video-play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 5;
}

/* 按钮覆盖层 - 带切入动画 */
.simple-banner-overlay {
    position: absolute;
    bottom: 160px;
    left: 100px;
    z-index: 10;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out 0.3s, transform 0.6s ease-out 0.3s;
}

.simple-banner-slide.active .simple-banner-overlay {
    opacity: 1;
    transform: translateY(0);
}

/* 备注信息样式 */
.simple-banner-notes {
    position: absolute;
    bottom: 240px;
    left: 100px;
    z-index: 10;
    color: #333;
    font-size: 28px;
    font-weight: 600;
    text-shadow: 0 1px 3px rgba(255, 255, 255, 0.5);
    max-width: 60%;
    line-height: 1.4;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out 0.2s, transform 0.6s ease-out 0.2s;
}

.simple-banner-slide.active .simple-banner-notes {
    opacity: 1;
    transform: translateY(0);
}

/* 标签样式 */
.banner-tag {
    display: inline-block;
    padding: 4px 14px;
    background: linear-gradient(135deg, #ff4500, #ff6b00, #ff8c00);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    border-radius: 20px;
    margin-left: 10px;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
    vertical-align: middle;
    box-shadow: 0 2px 8px rgba(255, 69, 0, 0.5);
    animation: tag-glow 1.5s ease-in-out infinite;
}

/* SVG图标标签（火爆/新品/热卖） */
.banner-tag-svg {
    display: inline-block;
    width: 22px !important;
    height: 22px !important;
    max-width: 22px;
    max-height: 22px;
    margin-left: 10px;
    vertical-align: middle;
    animation: icon-bounce 0.5s ease-in-out infinite alternate;
}

@keyframes icon-bounce {
    0% {
        transform: scale(1) rotate(-3deg);
    }
    100% {
        transform: scale(1.05) rotate(3deg);
    }
}

/* 标签发光动画 */
@keyframes tag-glow {
    0%, 100% {
        box-shadow: 0 2px 8px rgba(255, 69, 0, 0.5);
    }
    50% {
        box-shadow: 0 2px 15px rgba(255, 69, 0, 0.8), 0 0 20px rgba(255, 140, 0, 0.4);
    }
}

/* 标题样式 */
.banner-title {
    font-family: 'StarrFont', 'Microsoft YaHei', sans-serif !important;
    font-size: 42px;
    font-weight: normal;
    line-height: 1.2;
    margin-bottom: 10px;
}

/* 副标题样式 */
.banner-subtitle {
    font-family: 'Microsoft YaHei', 'PingFang SC', 'SimHei', sans-serif;
    font-size: 18px;
    font-weight: 500;
    opacity: 0.9;
    margin-bottom: 8px;
}

/* 描述样式 */
.banner-desc {
    font-family: 'Microsoft YaHei', 'PingFang SC', 'SimHei', sans-serif;
    font-size: 16px;
    font-weight: 400;
    opacity: 0.8;
    line-height: 1.5;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

/* ===== 内置字体样式 ===== */

/* 科技风格 - tech */
.font-tech {
    font-family: 'Orbitron', 'Microsoft YaHei', sans-serif;
    letter-spacing: 2px;
}
.font-tech .banner-title {
    background: linear-gradient(90deg, #00d4ff, #1a54ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: none;
    filter: drop-shadow(0 2px 10px rgba(0, 212, 255, 0.5));
}
.font-tech .banner-tag {
    background: linear-gradient(135deg, #00d4ff, #1a54ff);
}

/* 优雅风格 - elegant */
.font-elegant {
    font-family: 'Georgia', 'STSong', serif;
    letter-spacing: 3px;
}
.font-elegant .banner-title {
    font-weight: 400;
    font-style: italic;
}
.font-elegant .banner-tag {
    background: linear-gradient(135deg, #c9a86c, #8b6914);
}

/* 粗体风格 - bold */
.font-bold .banner-title {
    font-size: 52px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 4px;
}
.font-bold .banner-tag {
    background: #000;
    border-radius: 0;
}

/* 手写风格 - handwrite */
.font-handwrite {
    font-family: 'Comic Sans MS', 'STKaiti', cursive;
}
.font-handwrite .banner-title {
    font-weight: 400;
    transform: rotate(-2deg);
}
.font-handwrite .banner-tag {
    background: linear-gradient(135deg, #ff9a9e, #fecfef);
    color: #333;
}

/* 像素风格 - pixel */
.font-pixel {
    font-family: 'Courier New', monospace;
    letter-spacing: 1px;
}
.font-pixel .banner-title {
    text-shadow: 3px 3px 0 #000, -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000;
}
.font-pixel .banner-tag {
    background: #00ff00;
    color: #000;
    border-radius: 0;
}

/* 渐变风格 - gradient */
.font-gradient .banner-title {
    background: linear-gradient(90deg, #ff6b6b, #ffa500, #ffeb3b, #4caf50, #2196f3, #9c27b0);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: none;
    animation: gradient-flow 3s linear infinite;
}
@keyframes gradient-flow {
    0% { background-position: 0% center; }
    100% { background-position: 200% center; }
}

/* 霓虹风格 - neon */
.font-neon .banner-title {
    color: #fff;
    text-shadow: 
        0 0 5px #fff,
        0 0 10px #fff,
        0 0 20px #ff00de,
        0 0 30px #ff00de,
        0 0 40px #ff00de;
    animation: neon-flicker 1.5s infinite alternate;
}
@keyframes neon-flicker {
    0%, 19%, 21%, 23%, 25%, 54%, 56%, 100% {
        text-shadow: 
            0 0 5px #fff,
            0 0 10px #fff,
            0 0 20px #ff00de,
            0 0 30px #ff00de;
    }
    20%, 24%, 55% {
        text-shadow: none;
    }
}

/* 简约风格 - minimal */
.font-minimal {
    font-family: 'Helvetica Neue', 'PingFang SC', sans-serif;
}
.font-minimal .banner-title {
    font-weight: 300;
    font-size: 48px;
    letter-spacing: 8px;
}
.font-minimal .banner-subtitle {
    font-weight: 200;
    letter-spacing: 4px;
}
.font-minimal .banner-tag {
    background: transparent;
    border: 1px solid #fff;
    border-radius: 0;
}

/* 按钮样式 */
.simple-banner-btn {
    display: inline-block;
    padding: 10px 28px;
    background: #1a54ff;
    color: #ffffff !important;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none !important;
    border-radius: 4px;
    box-shadow: 0 4px 15px rgba(26, 84, 255, 0.3);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

/* 自动扫光效果 */
.simple-banner-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    transform: skewX(-25deg);
    animation: btn-shine 3s ease-in-out infinite;
}

@keyframes btn-shine {
    0% {
        left: -100%;
    }
    50%, 100% {
        left: 150%;
    }
}

.simple-banner-btn:hover {
    background: #0040cc;
    box-shadow: 0 6px 20px rgba(26, 84, 255, 0.4);
    color: #ffffff !important;
    text-decoration: none !important;
    transform: translateY(-2px);
}

.simple-banner-btn:active {
    transform: translateY(0);
}

/* 分页点容器 */
.simple-banner-dots {
    position: absolute;
    bottom: 100px;
    left: 100px;
    z-index: 10;
    display: flex;
    gap: 15px;
}

/* 单个指示器 */
.simple-banner-dot {
    width: 40px;
    height: 3px;
    background: rgba(0, 0, 0, 0.15);
    border-radius: 2px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

/* 进度条填充 */
.simple-banner-dot::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: #1a54ff;
    border-radius: 2px;
    transition: width 0.3s ease;
}

.simple-banner-dot:hover {
    background: rgba(0, 0, 0, 0.25);
}

/* 激活状态 */
.simple-banner-dot.active::after {
    width: 100%;
}

/* 自动播放进度条动画 */
.simple-banner-dot.active.playing::after {
    width: 0;
    animation: progress 5s linear forwards;
}

@keyframes progress {
    from { width: 0; }
    to { width: 100%; }
}

/* 响应式 - 移动端大气字体 */
@media (max-width: 768px) {
    .simple-banner {
        height: 380px;
    }
    
    .simple-banner-overlay {
        bottom: 60px;
        left: 50%;
        transform: translateX(-50%);
        text-align: center;
        width: 90%;
    }
    
    .simple-banner-slide.active .simple-banner-overlay {
        transform: translateX(-50%) translateY(0);
    }
    
    .simple-banner-notes {
        bottom: 130px;
        left: 50%;
        transform: translateX(-50%) translateY(30px);
        text-align: center;
        max-width: 92%;
        width: 92%;
        font-size: 22px !important;
        line-height: 1.5 !important;
    }
    
    .simple-banner-slide.active .simple-banner-notes {
        transform: translateX(-50%) translateY(0);
    }
    
    /* 移动端字体放大 - 更大气 */
    .banner-title {
        font-size: 32px !important;
        line-height: 1.25 !important;
        margin-bottom: 12px !important;
        letter-spacing: 1px !important;
    }
    
    .banner-subtitle {
        font-size: 18px !important;
        line-height: 1.4 !important;
        margin-bottom: 10px !important;
    }
    
    .banner-desc {
        font-size: 16px !important;
        line-height: 1.5 !important;
        margin-bottom: 10px !important;
    }
    
    .banner-tag {
        font-size: 12px !important;
        padding: 4px 12px !important;
    }
    
    .banner-tag-svg {
        width: 22px !important;
        height: 22px !important;
        max-width: 22px !important;
        max-height: 22px !important;
    }
    
    .simple-banner-btn {
        padding: 12px 28px;
        font-size: 15px !important;
        font-weight: 600 !important;
    }
    
    .simple-banner-dots {
        left: 50%;
        transform: translateX(-50%);
        bottom: 30px;
    }
    
    .simple-banner-dot {
        width: 30px;
    }
    
    /* 特殊字体风格移动端适配 */
    .font-bold .banner-title {
        font-size: 36px !important;
        letter-spacing: 2px !important;
    }
    
    .font-minimal .banner-title {
        font-size: 30px !important;
        letter-spacing: 4px !important;
    }
}

@media (max-width: 480px) {
    .simple-banner {
        height: 320px;
    }
    
    .simple-banner-overlay {
        bottom: 50px;
        width: 94%;
    }
    
    .simple-banner-notes {
        bottom: 110px;
        max-width: 94%;
        width: 94%;
        font-size: 18px !important;
    }
    
    /* 小屏幕保持大气感 */
    .banner-title {
        font-size: 26px !important;
        line-height: 1.2 !important;
        margin-bottom: 10px !important;
    }
    
    .banner-subtitle {
        font-size: 15px !important;
        margin-bottom: 8px !important;
    }
    
    .banner-desc {
        font-size: 14px !important;
        margin-bottom: 8px !important;
    }
    
    .banner-tag {
        font-size: 11px !important;
        padding: 3px 10px !important;
        margin-left: 6px !important;
    }
    
    .banner-tag-svg {
        width: 20px !important;
        height: 20px !important;
        max-width: 20px !important;
        max-height: 20px !important;
        margin-left: 6px !important;
    }
    
    .simple-banner-btn {
        padding: 10px 24px;
        font-size: 14px !important;
    }
    
    .simple-banner-dots {
        bottom: 25px;
        gap: 12px;
    }
    
    .simple-banner-dot {
        width: 26px;
        height: 3px;
    }
    
    /* 特殊字体风格小屏适配 */
    .font-bold .banner-title {
        font-size: 28px !important;
        letter-spacing: 1px !important;
    }
    
    .font-minimal .banner-title {
        font-size: 24px !important;
        letter-spacing: 3px !important;
    }
}

/* 超小屏幕 (360px以下) */
@media (max-width: 360px) {
    .simple-banner {
        height: 300px;
    }
    
    .simple-banner-notes {
        bottom: 100px;
        font-size: 16px !important;
    }
    
    .simple-banner-overlay {
        bottom: 45px;
    }
    
    .banner-title {
        font-size: 22px !important;
    }
    
    .banner-subtitle {
        font-size: 14px !important;
    }
    
    .banner-desc {
        font-size: 13px !important;
    }
    
    .simple-banner-btn {
        padding: 9px 20px;
        font-size: 13px !important;
    }
}

