/* 全屏置顶悬浮广告层：固定定位，不随滚动移动，置于最顶层 */
.taida-ad-overlay {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    box-sizing: border-box;
    overflow: auto;
}

.taida-ad-inner {
    max-width: 720px;
    width: 100%;
    text-align: center;
    margin: auto;
    box-sizing: border-box;
}

.taida-ad-image {
    margin: 0 auto 24px;
    box-sizing: border-box;
}

.taida-ad-image img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.taida-ad-title {
    font-size: 32px;
    font-weight: 700;
    margin: 0 0 16px;
    line-height: 1.3;
}

.taida-ad-subtitle {
    font-size: 18px;
    margin: 0 0 28px;
    line-height: 1.6;
    opacity: 0.92;
}

.taida-ad-btns {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: center;
    align-items: center;
}

.taida-ad-btn {
    display: inline-block;
    box-sizing: border-box;
    padding: 14px 36px;
    border-radius: 999px;
    font-size: 17px;
    font-weight: 600;
    text-decoration: none;
    max-width: 100%;
    border: 1px solid transparent;
}

/* 注册组（按钮一、二）：实心蓝白系 */
.taida-ad-btn-register.taida-ad-btn-primary {
    background: #ffffff;
    color: #0f3d7a;
}

.taida-ad-btn-register:not(.taida-ad-btn-primary) {
    background: rgba(255, 255, 255, 0.16);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.55);
}

/* 登录组（按钮三、四）：描边系 */
.taida-ad-btn-login {
    background: transparent;
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.7);
}

.taida-ad-close {
    position: absolute;
    top: 20px;
    right: 24px;
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.25);
    color: #fff;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    z-index: 1000000;
}

.taida-ad-close:hover {
    background: rgba(0, 0, 0, 0.45);
}

/* 关闭后的隐藏状态 */
.taida-ad-overlay.taida-ad-hidden {
    display: none !important;
}

/* 常驻模式：锁定背景页面滚动，访客无法滑到广告后面的原页面 */
body.taida-ad-locked {
    overflow: hidden;
}

@media (max-width: 600px) {
    .taida-ad-title { font-size: 24px; }
    .taida-ad-subtitle { font-size: 15px; }
    .taida-ad-close { top: 12px; right: 12px; width: 38px; height: 38px; font-size: 24px; }
    .taida-ad-btns { flex-direction: column; gap: 12px; }
    .taida-ad-btn { width: 100%; max-width: 320px; padding: 14px 20px; }
}
