@charset "UTF-8";
/*
Theme Name: CeoMax-Pro主题
Theme URI: www.CeoTheme.com
Author: CeoTheme.com
Author URI: https://www.CeoTheme.com
Description: CeoMax-Pro主题是一款极致美观强大的WordPress付费资源下载主题，Ta 为资源站、下载站、交易站、素材站、源码站、课程站、CMS等各类资源站点而生，Ta 更为追求极致的你而生。
Version: 7.8
Tags: 资源下载主题、素材下载主题、下载站主题、源码站主题、CMS主题、图片摄影主题、资源主题，主题购买地址：www.ceotheme.com，总裁主题客服│总裁QQ：110300260
*/



/*==========自定义CSS请添加在以下，请勿修改以上信息！==========*/

/* 广告系统专用样式 - 添加ads前缀避免冲突 */
.ads-system-container {
    /* max-width: 1200px; */
    /* margin: 0 auto; */
    /* padding: 20px; */
}

.ads-title {
    margin-bottom: 20px;
    text-align: center;
    color: #4361ee;
    font-family: 'Noto Sans SC', sans-serif;
    font-weight: 700;
}

.ads-grid {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -5px;
}

.ads-container {
    width: calc(16.666% - 10px);
    margin: 0 5px 10px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    overflow: visible;
    transition: all 0.3s ease;
    min-height: 40px;
    position: relative;
}



.ads-placeholder:hover {
    color: #4361ee;
}

/* 替代方案：保持水平排列但整体居中 */
.ads-content {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5px 8px;
    height: 40px;
    position: relative;
}

.ads-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 40px;
    padding: 5px;
    color: #6c757d;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Noto Sans SC', sans-serif;
    font-size: 0.85rem;
}

.ads-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #212529;
    text-decoration: none;
    transition: all 0.3s ease;
    font-family: 'Noto Sans SC', sans-serif;
}

.ads-placeholder i, 
.ads-link i {
    font-size: 1rem;
    margin-right: 8px;
    color: #4361ee;
}



.ads-favicon {
    width: 35px;
    height: 20px;
    margin-right: 8px;
    object-fit: contain;
}

.ads-title-text {
    font-weight: 600;
    font-size: 0.85rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex-grow: 1;
    color: inherit;
    font-family: 'Noto Sans SC', sans-serif;
}

.ads-link:hover {
    color: #4361ee;
}

.ads-tooltip {
    position: absolute;
    bottom: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%);
    background-color: #797979;
    color: white;
    padding: 5px 10px;
    border-radius: 6px;
    font-size: 0.7rem;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    z-index: 1000;
    pointer-events: none;
    min-width: 140px;
    text-align: center;
    box-shadow: 0 3px 10px rgba(0,0,0,0.2);
    font-family: 'Noto Sans SC', sans-serif;
}

.ads-tooltip:after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-width: 6px;
    border-style: solid;
    border-color: #797979 transparent transparent transparent;
}

.ads-container:hover .ads-tooltip {
    opacity: 1;
    visibility: visible;
    bottom: calc(100% + 15px);
}

.ads-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

.ads-modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 20px;
    border-radius: 20px;
    width: 100%;
    max-width: 500px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    position: relative;
    font-family: 'Noto Sans SC', sans-serif;
}

.ads-close {
    position: absolute;
    right: 15px;
    top: 15px;
    font-size: 1.3rem;
    color: #6c757d;
    cursor: pointer;
    transition: all 0.3s ease;
}

.ads-close:hover {
    color: #ef233c;
}

.ads-modal-header {
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e9ecef;
}

.ads-modal-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #4361ee;
}

.ads-form-group {
    margin-bottom: 15px;
}

.ads-form-label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
    font-size: 0.9rem;
}

.ads-form-control {
    width: 95%;
    padding: 8px 12px;
    border: 1px solid #ced4da;
    border-radius: 8px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    font-family: 'Noto Sans SC', sans-serif;
}

.ads-form-control:focus {
    border-color: #4361ee;
    outline: none;
    box-shadow: 0 0 0 2px rgba(67, 97, 238, 0.2);
}

.ads-color-picker {
    display: flex;
    align-items: center;
    margin-top: 8px;
}

.ads-color-preview {
    width: 25px;
    height: 25px;
    border-radius: 50%;
    margin-left: 8px;
    border: 1px solid #e9ecef;
    cursor: pointer;
}

.ads-color-options {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}

.ads-color-option {
    width: 25px;
    height: 25px;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.ads-color-option.ads-selected {
    border-color: #212529;
}

.ads-btn {
    display: inline-block;
    padding: 8px 16px;
    background-color: #4361ee;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    font-family: 'Noto Sans SC', sans-serif;
}

.ads-btn:hover {
    background-color: #3f37c9;
}

.ads-tips {
    font-size: 0.75rem;
    color: #ff0000;
    margin: 15px 0 8px;
    padding: 8px;
    background-color: #f8f9fa;
    border-radius: 8px;
}

/* 居中提示样式 */
.ads-alert-center {
    position: fixed;
    top: 30%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 15px 25px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    z-index: 1100;
    display: flex;
    align-items: center;
    animation: adsAlertFadeIn 0.3s;
    max-width: 80%;
    text-align: center;
    font-size: 0.95rem;
    font-family: 'Noto Sans SC', sans-serif;
}

.ads-alert-center.ads-success {
    background-color: #4bb543;
    color: white;
}

.ads-alert-center.ads-warning {
    background-color: #fca311;
    color: white;
}

.ads-alert-center.ads-error {
    background-color: #ef233c;
    color: white;
}

.ads-alert-center i {
    margin-right: 10px;
    font-size: 1.2rem;
}

@keyframes adsAlertFadeIn {
    from { opacity: 0; transform: translate(-50%, -55%); }
    to { opacity: 1; transform: translate(-50%, -50%); }
}

@keyframes adsAlertFadeOut {
    from { opacity: 1; transform: translate(-50%, -50%); }
    to { opacity: 0; transform: translate(-50%, -55%); }
}

@media (max-width: 1200px) {
    .ads-container {
        width: calc(20% - 10px);
    }
}

@media (max-width: 992px) {
    .ads-container {
        width: calc(25% - 10px);
    }
}

@media (max-width: 768px) {
    .ads-container {
        width: calc(33.333% - 10px);
    }
}

@media (max-width: 576px) {
    .ads-container {
         width: calc(33.333% - 10px);
    }
    
    .ads-modal-content {
        margin: 20% auto;
        width: 90%;
    }
    
    .ads-alert-center {
        width: 90%;
        padding: 12px 20px;
        font-size: 0.9rem;
    }
}