/* ============== 底部悬浮广告条幅 - 重新设计 ============== */

.floating-ad-wrapper {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9998;
    animation: slideUp 0.5s ease-out;
}

@keyframes slideUp {
    from {
        transform: translateX(-50%) translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateX(-50%) translateY(0);
        opacity: 1;
    }
}

.floating-ad-wrapper.hidden {
    animation: slideDown 0.4s ease-out forwards;
}

@keyframes slideDown {
    to {
        transform: translateX(-50%) translateY(100%);
        opacity: 0;
    }
}

/* 横幅主体 */
.banner {
    width: 600px;
    height: 80px;
    background: linear-gradient(135deg, #1a1f2e 0%, #2d3748 100%);
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    padding: 0 20px;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.banner::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

/* 内容布局 */
.content {
    display: flex;
    align-items: center;
    width: 100%;
    gap: 16px;
    z-index: 1;
}

/* 礼物图标 */
.ad-icon {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #d4af37, #f0c24c);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.4);
}

.icon-gift {
    font-size: 28px;
    animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-5px);
    }
}

/* 文字内容 */
.text-content {
    flex: 1;
    color: white;
}

.text-content h2 {
    font-size: 24px;
    font-weight: 700;
    margin: 0;
    line-height: 1.2;
    color: #ffffff;
}

.text-content h2 .highlight {
    color: #d4af37;
    font-size: 32px;
    font-weight: 900;
    margin: 0 4px;
}

.text-content p {
    font-size: 13px;
    margin: 4px 0 0 0;
    color: rgba(255, 255, 255, 0.7);
}

/* 按钮 */
.buttons {
    flex-shrink: 0;
}

.btn {
    padding: 12px 28px;
    border: none;
    border-radius: 8px;
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-primary {
    background: linear-gradient(135deg, #d4af37, #f0c24c);
    color: #1a1a1a;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.6);
    background: linear-gradient(135deg, #f0c24c, #ffd700);
}

/* 关闭按钮 */
.ad-close {
    position: absolute;
    top: -8px;
    right: -8px;
    width: 28px;
    height: 28px;
    background: #d4af37;
    border: 2px solid #1a1f2e;
    border-radius: 50%;
    color: #1a1a1a;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: bold;
    line-height: 1;
    transition: all 0.3s ease;
    z-index: 2;
}

.ad-close:hover {
    background: #ffd700;
    transform: rotate(90deg);
}

/* ============== 响应式设计 ============== */
@media (max-width: 768px) {
    .floating-ad-wrapper {
        bottom: 20px;
        width: calc(100% - 32px);
        left: 16px;
        transform: none;
    }

    .banner {
        width: 100%;
        height: auto;
        min-height: 70px;
        padding: 16px;
        border-radius: 12px;
    }

    .content {
        gap: 12px;
    }

    .ad-icon {
        width: 42px;
        height: 42px;
    }

    .icon-gift {
        font-size: 24px;
    }

    .text-content h2 {
        font-size: 18px;
    }

    .text-content h2 .highlight {
        font-size: 24px;
    }

    .text-content p {
        font-size: 11px;
    }

    .btn-primary {
        padding: 10px 20px;
        font-size: 13px;
    }

    .ad-close {
        top: -6px;
        right: -6px;
        width: 24px;
        height: 24px;
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .floating-ad-wrapper {
        bottom: 15px;
        width: calc(100% - 24px);
        left: 12px;
    }

    .banner {
        padding: 12px;
        min-height: 60px;
    }

    .content {
        gap: 10px;
    }

    .ad-icon {
        width: 38px;
        height: 38px;
    }

    .icon-gift {
        font-size: 20px;
    }

    .text-content h2 {
        font-size: 16px;
    }

    .text-content h2 .highlight {
        font-size: 22px;
    }

    .text-content p {
        font-size: 10px;
    }

    .btn-primary {
        padding: 8px 16px;
        font-size: 12px;
    }
}
