.mx-ad-form-container {
    width: 90%;
    max-width: 800px;
    margin: 30px auto;
    padding: 25px;
    background: #f8fbfe;
    border-radius: 12px;
    box-shadow: 0 5px 25px rgba(0, 119, 204, 0.1);
    border: 1px solid #e1f0ff;
}

.mx-ad-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.form-group input {
    padding: 12px 15px;
    border-radius: 8px;
    border: 1px solid #cce0ff;
    background: #f0f7ff;
    color: #333;
    font-size: 15px;
    transition: all 0.2s ease;
    width: 100%;
    box-sizing: border-box;
}

.form-group input::placeholder {
    color: #99c2ff;
    opacity: 0.8;
}

.form-group input:focus {
    outline: none;
    border-color: #0077cc;
    box-shadow: 0 0 0 3px rgba(0, 119, 204, 0.1);
    background: white;
}

.error-message {
    color: #ff4d4d;
    font-size: 13px;
    margin-top: 4px;
    display: none;
}

.mx-submit-btn {
    width: 100%;
    padding: 15px;
    border: none;
    border-radius: 8px;
    background: linear-gradient(to right, #0077cc, #00aaff);
    color: white;
    font-size: 17px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
    box-shadow: 0 4px 15px rgba(0, 119, 204, 0.2);
    letter-spacing: 0.5px;
}

.mx-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 119, 204, 0.3);
    background: linear-gradient(to right, #006bb3, #0099ff);
}

.mx-submit-btn:active {
    transform: translateY(0);
}

.mxad_container {
    max-width: 1800px;
    margin: 0 auto;
    overflow-x: auto;
    margin-bottom: 20px;
}

.mxad_server-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    background-color: #fff;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    table-layout: fixed;
}

.mxad_server-table th {
    background: linear-gradient(to bottom, #5395e7, #1f5495);
    color: white;
    padding: 12px;
    text-align: center;
    font-weight: bold;
}

.mxad_server-table td {
    padding: 10px;
    border-bottom: 1px solid #ddd;
    text-align: center;
    vertical-align: middle;
    white-space: nowrap;
    color: #000000;
    font-size: 16px; /* 调整此处数值（如12px、15px等） */
}

.mxad_server-table tr:hover {
     background-color: #3399ff; /* 行背景色 */
}

.mxad_server-table a {
    text-decoration: none;
}

.mxad_server-table a:hover {
    text-decoration: underline;
}

.mxad_highlight-top {
    background-color: #fcec0c;
    position: relative;
}

.mxad_status-tag {
    display: inline-block;
    padding: 5px 12px; /* 增大内边距，让框更大 */
    border-radius: 4px;
    font-size: 14px; /* 增大文字大小 */
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.mxad_tag-top {
    border: 1px solid #ff9800;
    background-color: #fff3e0;
    color: #ff9800;
    box-shadow: 0 2px 4px rgba(255, 152, 0, 0.2);
}

.mxad_tag-normal {
    border: 1px solid #2196f3;
    background-color: #e3f2fd;
    color: #2196f3;
    box-shadow: 0 2px 4px rgba(33, 150, 243, 0.2);
}

.mxad_tag-featured {
    border: 1px solid #e91e63;
    background-color: #fce4ec;
    color: #e91e63;
    box-shadow: 0 2px 4px rgba(233, 30, 99, 0.2);
}

.mxad_tag-expired {
    border: 1px solid #9e9e9e;
    background-color: #f5f5f5;
    color: #9e9e9e;
    box-shadow: 0 2px 4px rgba(158, 158, 158, 0.2);
}

.mxad_btn {
    display: inline-block;
    padding: 6px 12px;
    font-size: 13px;
    border-radius: 4px;
    cursor: pointer;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.2s ease;
    border: none;
}

.mxad_btn-view {
    background-color: #4CAF50;
    color: white;
    box-shadow: 0 2px 5px rgba(76, 175, 80, 0.3);
}

.mxad_btn-view:hover {
    background-color: #45a049;
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(76, 175, 80, 0.4);
}

.mxad_btn-renew {
    background-color: #f44336;
    color: white;
    box-shadow: 0 2px 5px rgba(244, 67, 54, 0.3);
}

.mxad_btn-renew:hover {
    background-color: #d32f2f;
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(244, 67, 54, 0.4);
}

.ad-content-cell {
    max-width: 550px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    cursor: pointer;
    display: inline-block;
}

.container.fluid-widget {
    max-width: 100%;
    padding: 0;
}

.container.fluid-widget .widget {
    margin-bottom: 20px;
}

.content-wrap {
    max-width: 1800;
    margin: 0 auto;
}

@media screen and (min-width: 768px) {
    .mx-ad-form {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 15px;
    }
    
    .form-group {
        flex: 1;
        min-width: 0;
    }
    
    .form-group input {
        min-width: 0;
    }
    
    .mx-submit-btn {
        flex: 0 0 100%;
    }
}

@media screen and (min-width: 1200px) {
    .mx-ad-form-container {
        max-width: 1200px;
    }
}

@media screen and (max-width: 768px) {
    .mx-ad-form-container {
        width: 90%;
        padding: 20px;
    }
    .form-group {
        gap: 6px;
    }
}

.top-banner-container {
    position: relative;
    width: 100%;
    margin: 0 auto 20px;
    border-radius: 10px;
    /* 移除overflow: hidden，避免按钮被裁剪 */
    /* overflow: hidden; */
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    /* 确保无图片时容器有高度，按钮不塌陷 */
    min-height: 60px; 
    padding: 15px; /* 内边距让按钮不贴边 */
    background: #f5f5f5; /* 无图片时显示背景，便于看到按钮 */
}

/* 强制按钮容器显示，避免被其他样式覆盖 */
.banner-buttons {
    position: absolute;
    bottom: 20px;
    right: 20px;
    display: flex !important; /* 强制显示flex布局 */
    gap: 15px;
    z-index: 10; /* 确保层级最高 */
}

.top-banner {
    width: 100%;
    height: auto;
    display: block;
}

.banner-buttons {
    position: absolute;
    bottom: 20px;
    right: 20px;
    display: flex;
    gap: 15px;
    z-index: 10;
}

.banner-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 30px;
    background: linear-gradient(to right, #0077cc, #00aaff);
    color: white;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.banner-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

.banner-btn:active {
    transform: translateY(0);
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-container {
    background-color: white;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    width: 90%;
    max-width: 700px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    transform: translateY(20px);
    transition: transform 0.3s ease, opacity 0.3s ease;
    margin: 0 auto;
}

.modal-overlay.active .modal-container {
    transform: translateY(0);
}

.modal-content {
    padding: 40px;
    position: relative;
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 28px;
    background: none;
    border: none;
    cursor: pointer;
    color: #666;
    transition: color 0.2s ease;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.modal-close:hover {
    color: #333;
    background-color: #f5f5f5;
}

.modal-content h3 {
    margin-top: 0;
    margin-bottom: 25px;
    color: #0077cc;
    font-size: 26px;
    text-align: center;
}

.rules-content p {
    margin-bottom: 15px;
    line-height: 1.6;
    font-size: 16px;
}

#mx-ad-form {
    margin-top: 20px;
}

#mx-ad-form .form-group {
    margin-bottom: 20px;
}

#mx-ad-form input {
    font-size: 16px;
    padding: 14px 18px;
}

#mx-ad-form .mx-submit-btn {
    padding: 16px;
    font-size: 18px;
    margin-top: 20px;
}

@keyframes masked-animation {
    0% {
        background-position: 0 0;
    }
    100% {
        background-position: -100% 0;
    }
}

footer {
    display: none;
}



@media (max-width: 768px) {
    .notyf {
        width: 90% !important; /* 适应移动端宽度 */
        left: 5% !important;
        bottom: 20px !important; /* 避免被键盘遮挡 */
    }
}


/* 在 mxad.css 中添加 */
@media (max-width: 768px) {
    .modal-container {
        width: 90% !important; /* 占满屏幕宽度 */
        max-width: 500px;
        margin: 20px auto !important;
    }
    .mx-submit-btn {
        width: 100% !important; /* 提交按钮占满宽度，避免点击区域过小 */
        padding: 12px 0;
    }
}
/* 确保移动端提交按钮可点击 */
@media (max-width: 768px) {
    .mx-submit-btn {
        opacity: 1 !important;
        pointer-events: auto !important;
    }
}







/* 精准匹配子比主题默认头像（通过图片地址锁定） */
img.ad-custom-avatar[src*="zibll/img/avatar-default.png"] {
    width: 32px !important; /* 最终显示宽度（可修改） */
    height: 32px !important; /* 最终显示高度（可修改） */
    max-width: 32px !important;
    max-height: 32px !important;
    min-width: 32px !important;
    min-height: 32px !important;
    object-fit: cover !important; /* 保持圆形不拉伸 */
    box-shadow: none !important; /* 清除主题可能的阴影 */
    border: none !important; /* 清除边框 */
}

/* 兜底：确保所有插件内头像都受控制 */
.mxad_server-table td img.ad-custom-avatar {
    width: 32px !important;
    height: 32px !important;
}