/**
 * 顶部广告横幅专用样式
 * 
 * @package SWELL_CHILD
 * @since 1.2.0
 */

/* 顶部广告横幅容器 */
.top-ad-banner {
    position: relative;
    background-size: 200% 200%;
    animation: gradientShift 8s ease-in-out infinite;
    padding: 15px 0;
    box-shadow: 0 4px 20px rgba(255, 107, 53, 0.3);
    overflow: hidden;
    z-index: 1000;
}

/* 广告横幅容器 - 广告边界 */
.ad-banner-container {
    background: linear-gradient(135deg, #ff6b35 0%, #f7931e 50%, #ff6b35 100%);
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
}

/* 广告横幅内部容器 - 调整内容布局 */
.ad-banner-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 20px 25px;
    padding-left: 100px;
    backdrop-filter: blur(10px);

    position: relative;
    overflow: hidden;
}

/* 广告徽章 */
.ad-banner-badge {
    position: absolute;
    top: -5px;
    left: 15px;
    background: rgba(255, 255, 255, 0.9);
    color: #ff6b35;
    font-size: 10px;
    font-weight: bold;
    padding: 2px 8px;
    border-radius: 0 0 8px 8px;
    letter-spacing: 0.5px;
    z-index: 2;
}

/* 文本区域 */
.ad-banner-text {
    flex: 1;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

/* 主标题 */
.ad-banner-main-text {
    font-size: 28px;
    font-weight: bold;
    margin: 0 0 8px 0;
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.4);
    animation: textGlow 3s ease-in-out infinite alternate;
}

/* 副标题 */
.ad-banner-subtitle {
    font-size: 16px;
    margin: 0;
    opacity: 1;
    font-weight: 600;
    line-height: 1.3;
    color: #ffeb3b;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    font-style: italic;
    text-align: right;
}

/* 描述文字 */
.ad-banner-description {
    font-size: 14px;
    margin: 0;
    color: #ffffff;
    opacity: 1;
    line-height: 1.4;
    max-width: 600px;
    white-space: nowrap;
}

/* 右侧区域 - 包含副标题和CTA */
.ad-banner-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
    margin-left: 20px;
}

/* CTA按钮区域 */
.ad-banner-cta {
    margin: 0;
}

/* CTA按钮 */
.ad-banner-btn {
    display: inline-flex;
    align-items: center;
    background: white;
    color: #ff6b35;
    text-decoration: none;
    padding: 12px 24px;
    border-radius: 25px;
    font-weight: bold;
    font-size: 16px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    border: 2px solid transparent;
    white-space: nowrap;
}

.ad-banner-btn:hover {
    background: #ff6b35;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    border-color: white;
    text-decoration: none;
}

/* 箭头图标 */
.ad-banner-arrow {
    margin-left: 8px;
    transition: transform 0.3s ease;
    font-size: 18px;
}

.ad-banner-btn:hover .ad-banner-arrow {
    transform: translateX(5px);
}



/* 动画效果 */
@keyframes gradientShift {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

@keyframes textGlow {
    0% {
        text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.4);
    }
    100% {
        text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.4), 0 0 10px rgba(255, 255, 255, 0.3);
    }
}

@keyframes shine {
    0% {
        transform: translateX(-100%) translateY(-100%) rotate(45deg);
    }
    100% {
        transform: translateX(100%) translateY(100%) rotate(45deg);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 0.3;
        transform: scale(1);
    }
    50% {
        opacity: 0.6;
        transform: scale(1.1);
    }
}

/* 响应式设计 */
@media (max-width: 768px) {
    .top-ad-banner {
        padding: 12px 0;
    }
    
    .ad-banner-container {
        padding: 0 15px;
    }
    
    .ad-banner-inner {
        flex-direction: column;
        text-align: center;
        padding: 20px 15px;
        gap: 15px;
    }
    
    .ad-banner-main-text {
        font-size: 22px;
        line-height: 1.3;
    }
    
    .ad-banner-right {
        margin-left: 0;
        align-items: center;
    }
    
    .ad-banner-subtitle {
        font-size: 14px;
        color: #ffeb3b;
        font-weight: 600;
        font-style: italic;
        text-align: center;
    }
    
    .ad-banner-description {
        font-size: 13px;
        line-height: 1.4;
        white-space: nowrap;
    }
    
    .ad-banner-btn {
        padding: 10px 20px;
        font-size: 14px;
    }
    
    .ad-banner-badge {
        font-size: 9px;
        padding: 2px 6px;
    }
}

@media (max-width: 480px) {
    .ad-banner-container {
        padding: 0 10px;
    }
    
    .ad-banner-inner {
        padding: 15px 12px;
    }
    
    .ad-banner-main-text {
        font-size: 20px;
    }
    
    .ad-banner-right {
        margin-left: 0;
        align-items: center;
    }
    
    .ad-banner-subtitle {
        font-size: 13px;
        color: #ffeb3b;
        font-weight: 600;
        font-style: italic;
        text-align: center;
    }
    
    .ad-banner-description {
        font-size: 12px;
        white-space: nowrap;
    }
    
    .ad-banner-btn {
        padding: 8px 16px;
        font-size: 13px;
    }
}