

/* 广告容器样式 */
.ad-container {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.1);
    transform: translateY(100%);
    transition: transform 1s ease-in-out;
    z-index: 1000;
}

/* 关闭按钮样式 */
.close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 5px 10px;
    border: none;
    background-color: rgba(0, 0, 0, 0.3);
    color: white;
    font-size: 12px;
    text-align: center;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    z-index: 1001;
}

.close-btn:hover {
    background-color: rgba(0, 0, 0, 0.5);
}

/* 广告内容样式 */
.ad-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
}

.ad-image {
    width: 100%;
    /* max-width: 100vw; */
    /* max-height: 30vh; */
    height: auto;
    object-fit: contain;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.ad-text {
    font-size: 16px;
    color: #666;
    font-weight: bold;
}

/* 广告显示动画 */
.ad-container.show {
    transform: translateY(0);
}

/* 广告隐藏动画 */
.ad-container.hide {
    transform: translateY(100%);
}