/* Ad Styles - Placeholder Only */

/* Ad Container Section - Placeholder Only */

.ad-content {
    min-width: 300px;
    min-height: 250px;
    height: auto !important;
    max-height: none !important;
    padding-left: 0px !important;
    margin-left: 0px !important;
    position: relative !important;
}
.anchorAdContent{
    border: 0pt none !important;
    max-height: none !important;
    padding: 0px !important;
    width: 100% !important;
    height: 94px !important;
    inset: auto !important;
    clear: none !important;
    display: inline !important;
    float: none !important;
    margin: 0px !important;
    opacity: 1 !important;
    overflow: visible !important;
    position: static !important;
    vertical-align: baseline !important;
    visibility: visible !important;
    z-index: 9999 !important;
}
/* 确保谷歌广告内容在容器内居中 */
.anchorAdContent > div {
    margin: 0 auto !important;
    text-align: center !important;
}

/* 
.anchorAdContent iframe {
    width: 100% !important;
    height: 100% !important;
    border: none !important;
    margin: 0 !important;
    padding: 0 !important;
    display: block !important;
}


.bottom-floating-ad .anchorAdContent {
    width: 100% !important;
    height: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.bottom-floating-ad:not(.collapsed) .anchorAdContent iframe {
    width: 100vw !important;
    height: 100vh !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    z-index: 9999 !important;
} */
/* Bottom Floating Ad - Placeholder Only */
.bottom-floating-ad {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%) translateY(0);
    max-width: 1005px;
    width: 100%;
    background: #fafafa;
    color: #666;
    z-index: 999;
    min-height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease-out;
}


.bottom-floating-ad.collapsed {
    transform: translateX(-50%) translateY(calc(100% - 4px));
}


.ad-toggle-btn {
    position: absolute;
    top: -25px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 31px;
    border: none;
    border-radius: 8px 8px 0 0;
    cursor: pointer;
}

/* Banner Ads - Placeholder Only */
.banner-ad {
    width: 100%;
    height: auto;
    clear: both;
    text-align: center;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 160px;
    right: 30px;
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 28px;
    color: white;
    font-size: 22px;
    font-weight: 600;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
    z-index: 1000;
    outline: none;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.back-to-top:not(.show) {
    transform: translateY(20px) scale(0.8);
}

.back-to-top:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 12px 35px rgba(102, 126, 234, 0.4);
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
}

.back-to-top:active {
    transform: translateY(-1px) scale(0.98);
    transition: all 0.1s ease;
}

/* 添加发光动画效果 */
.back-to-top::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 28px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.back-to-top:hover::before {
    opacity: 1;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 0.8;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.4;
    }
    100% {
        transform: scale(1);
        opacity: 0.8;
    }
}

/* Interstitial Ad Modal */
.interstitial-ad-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 插屏广告内部广告容器居中样式 */
.popAdContent {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    width: 100% !important;
    height: 100% !important;
}

/* 确保谷歌广告内容在容器内居中 */
.popAdContent > div {
    margin: 0 auto !important;
    text-align: center !important;
}

.interstitial-ad-content {
    width: 100%;
    height: 100%;
    background: #1a1a2e;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.5);
}

.interstitial-ad-content .ad-header {
    background: #16213e;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.ad-label {
    color: #4ecdc4;
    font-weight: 600;
    font-size: 14px;
}

.close-ad-btn {
    background: none;
    border: none;
    color: #ff6b6b;
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.3s ease;
}

.close-ad-btn:hover {
    background-color: rgba(255, 107, 107, 0.2);
}

.ad-body {
    display: block !important;
    width: 100vw !important;
    max-width: 375px !important;
    height: 100vh !important;
    max-height: none !important;
    padding: 0px !important;
    margin: 52px 0 0 0!important;
    inset: 0px auto auto 50% !important;
    transform: translateX(-50%) !important;
    clear: none !important;
    float: none !important;
    opacity: 1 !important;
    overflow: visible !important;
    position: fixed !important;
    vertical-align: baseline !important;
    visibility: visible !important;
    z-index: 2147483647 !important;
    background: transparent !important;
}



.ad-cta-btn {
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.ad-cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
}


.ad-timer {
    color: rgba(255, 255, 255, 0.7);
    font-size: 12px;
}



/* 广告备用内容样式 */
.ad-fallback {
    padding: 20px;
    text-align: center;
    color: #6c757d;
    font-size: 14px;
    font-weight: 500;
    min-height: 100px;
    height: 100%;
    width: 100vh;
    box-sizing: border-box;
    position: relative;
    line-height: 1.4;
    display: table-cell !important;
    vertical-align: middle !important;
}

/* 为ad-content添加table布局支持，不影响谷歌广告 */
.ad-content {
    display: table !important;
    width: 100% !important;
    height: 100% !important;
}

/* 广告状态指示器 */
.ad-status {
    position: absolute;
    top: 5px;
    right: 5px;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 10px;
    font-weight: bold;
    z-index: 10;
}

.ad-status.loading {
    background: #ffc107;
    color: #000;
}

.ad-status.success {
    background: #28a745;
    color: #fff;
}

.ad-status.failed {
    background: #dc3545;
    color: #fff;
}

/* Pagination Styles */
.pagination-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 30px;
    padding-bottom: 10px;
}

.pagination {
    font-family: var(--font-family-base);
}

.pagination-list {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
    gap: var(--space-xs);
    flex-wrap: wrap;
    justify-content: center;
}

.pagination-item {
    margin: 0 5px;
}

.pagination-link,
.pagination-link.current {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    padding: 0 var(--space-sm);
    border-radius: var(--radius-md);
    font-size: var(--font-size-base);
    font-weight: 500;
    text-decoration: none;
    color: var(--text-secondary);
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    transition: all 0.2s ease;
}

.pagination-link:hover {
    color: var(--text-primary);
    background-color: var(--bg-tertiary);
    border-color: var(--primary-color);
}

.pagination-link:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

.pagination-link.current {
    color: white;
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    cursor: default;
}

.pagination-link.disabled {
    color: var(--text-muted);
    background-color: var(--bg-secondary);
    border-color: var(--border-color);
    cursor: not-allowed;
    opacity: 0.6;
    pointer-events: none;
}

.pagination-ellipsis .pagination-link {
    cursor: default;
    background-color: transparent;
    border-color: transparent;
    min-width: auto;
    padding: 0 8px;
}

.pagination-ellipsis .pagination-link:hover {
    background-color: transparent;
    border-color: transparent;
    color: var(--text-secondary);
}

.pagination-link.prev,
.pagination-link.next {
    min-width: 44px;
    font-weight: bold;
}

.pagination-link.prev span,
.pagination-link.next span {
    font-size: var(--font-size-lg);
    line-height: 1;
}


/* Mobile Responsive Design */
@media (max-width: 768px) {
   
    .ad-container {
        padding: 0 15px;
    }
    
    .ad-container::after {
        top: 5px;
        right: 20px;
        font-size: 10px;
        padding: 3px 6px;
    }
    .ad-toggle-btn {
        left: -12px;
        transform: none;
        top: -25px;
        padding: 3px;
    }
    
    .bottom-floating-ad::after {
        top: 5px;
        right: 5px;
        font-size: 10px;
        padding: 3px 6px;
    }
  
    
    .back-to-top {
        bottom: 130px;
        right: 15px;
        width: 52px;
        height: 52px;
        font-size: 20px;
        border-radius: 26px;
    }
    
    .back-to-top:hover {
        transform: translateY(-3px) scale(1.03);
    }
    
    .ad-body {
        padding: 20px 15px;
    }
    .pagination-list {
        gap: var(--space-xxs);
    }
    
    .pagination-link,
    .pagination-link.current {
        min-width: 36px;
        height: 36px;
        padding: 0 var(--space-xs);
        font-size: var(--font-size-sm);
    }
}

@media (max-width: 480px) {
    .ad-container::after {
        top: 5px;
        right: 20px;
        font-size: 9px;
        padding: 2px 4px;
    }
    
    .ad-toggle-btn {
        left: -12px;
        transform: none;
        top: -20px;
        padding: 2px;
    }
    
    .bottom-floating-ad::after {
        top: 5px;
        right: 5px;
        font-size: 9px;
        padding: 2px 4px;
    }

}

/* 插屏广告弹出框样式 - 全屏无圆角 */
.interstitial-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease-in-out;
}

.interstitial-popup.show {
    opacity: 1;
    visibility: visible;
}

.interstitial-popup-content {
    position: relative;
    width: 100%;
    height: 100%;
    background: #ffffff;
    border-radius: 0;
    overflow: hidden;
    transform: scale(1);
}

/* 悬浮关闭按钮 */
.interstitial-close-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    background: rgba(0, 0, 0, 0.6);
    border: none;
    border-radius: 50%;
    color: #ffffff;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10001;
    transition: all 0.2s ease;
}

.interstitial-close-btn:hover {
    background: rgba(0, 0, 0, 0.8);
    transform: scale(1.1);
}

.interstitial-close-btn:active {
    transform: scale(0.95);
}

/* 广告内容区域 - 全屏 */
.interstitial-ad-area {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
}

/* 插屏广告专用内容样式 */
.pop-ad-content {
    clear: both;
    width: 100% !important;
    height: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: transparent !important;
    border: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* 确保插屏广告的iframe全屏显示 */
.pop-ad-content iframe {
    width: 100% !important;
    height: 100% !important;
    border: none !important;
    margin: 0 !important;
    padding: 0 !important;
    display: block !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    z-index: 1 !important;
}

/* 移动端响应式调整 - 全屏显示 */
@media (max-width: 768px) {
    .interstitial-popup-content {
        width: 100%;
        max-width: none;
        max-height: none;
    }
    
    .interstitial-close-btn {
        top: 12px;
        right: 12px;
        width: 32px;
        height: 32px;
        font-size: 18px;
    }
    
    .interstitial-ad-area {
        min-height: auto;
    }
}

@media (max-width: 480px) {
    .interstitial-popup-content {
        width: 100%;
        max-width: none;
        max-height: none;
        border-radius: 0;
    }
    
    .interstitial-close-btn {
        top: 10px;
        right: 10px;
        width: 30px;
        height: 30px;
        font-size: 16px;
    }
    
    .interstitial-ad-area {
        min-height: auto;
    }
}
