.promo-placeholder { position: relative; transition: all 0.3s ease;}
.promo-placeholder.active { background: #fff; border-radius: 10px; box-shadow: 0 6px 14px rgba(0,0,0,0.02); overflow: hidden; border: 1px solid #e0e0e0; padding: 4px; display: flex; align-items: center; justify-content: center;}
.promo-wrapper { position: relative; overflow: hidden; width: 100%; height: 100%; }
.promo-content { transition: opacity 0.5s ease-in-out; position: relative; width: 100%; height: 100%; }
.promo-content-initial { opacity: 0; transition: opacity 0.3s ease; }
.promo-hidden { width: 0 !important; height: 0 !important; padding: 0 !important; margin: 0 !important; overflow: hidden !important; }
.promo-link { display: block; position: relative; width: 100%; height: 100%; }
.promo-container { display: block; position: relative; width: 100%; height: 100%; overflow: hidden; }
.promo-image { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 0.9s ease; border-radius: 10px; }
.promo-image:hover { transform: scale(1.07); }
.promo-title { position: absolute; bottom: 0; left: 0; right: 0; background: linear-gradient(to bottom, transparent, rgba(255,255,255,0.8), rgba(255,255,255,1)); color: #333; padding: 8px; font-size: 14px; text-align: center; z-index: 5; height: 35px; display: flex; align-items: flex-end; justify-content: center; }
.promo-badge { position: absolute; top: 0; right: 0; background: rgba(255,255,255,0.8); color: #333; font-size: 10px; padding: 2px 8px; border-bottom-left-radius: 4px; z-index: 5; }
.loading-overlay { position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: rgba(255,255,255,0.8); display: flex; align-items: center; justify-content: center; z-index: 10; }
.loading-spinner { border: 3px solid #f3f3f3; border-top: 3px solid #3498db; border-radius: 50%; width: 30px; height: 30px; animation: spin 1s linear infinite; }
@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }
.default-tenant { background: #e2e8f0; color: #1e293b; display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; min-height: 100px; font-size: 1rem; border: 2px dashed #94a3b8; border-radius: 12px; box-sizing: border-box; }

/* TAB 切换栏样式 */
.promo-tabs {
    position: absolute;
    bottom: 1px;
    left: 0;
    right: 0;
    display: flex;
    gap: 6px;
    justify-content: left;
    z-index: 100;
    pointer-events: auto;
    padding: 5px 8px;
}

.promo-tab {
    width: 24px;
    height: 4px;
    background: #ccc;
    border-radius: 2px;
    cursor: pointer;
    transition: all 0.3s ease;
    pointer-events: auto;
    font-size: 0;
    border: 1px solid rgba(255,255,255,0.5);
}

.promo-tab:hover {
    background: rgba(0,0,0,0.6);
    border-color: rgba(255,255,255,0.8);
}

.promo-tab.active {
    background: #35b0a7;
    border-color: #ffffff;
    width: 32px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.3);
}
#campus-index-promo-btn{
    padding: 15px 18px;
    margin: 0 auto;
    min-height: 0;
}

#campus-index-promo-btn.promo-hidden {
    display: none !important;
    padding: 0 !important;
    margin: 0 !important;
    height: 0 !important;
    min-height: 0 !important;
    overflow: hidden !important;
}
#campus-index-promo-btn:empty {
    display: none;
} 
/* 网格容器样式 */
.promo-grid-container {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: flex-start;
}

/* 网格项样式 */
.promo-grid-item {
    flex-shrink: 0;
}

/* 网格链接样式 */
.promo-grid-link {
    width: 100%;
    height: 100%;
}

/* 网格内部容器样式 */
.promo-grid-container-inner {
    width: 100%;
    height: 100%;
}


.promo-header {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    padding: 5px 0;
    background-color: var(--bg-light);
    height: auto;
    width: 100%;
    max-width: 1400px;
    margin: 0 3% 30px;
    padding: 0;  
    box-sizing: border-box;
}
.promobox-v-detail-right {
    width: 320px;
    height: 250px;
    margin: 0 auto;
    display: block; 
    align-items: center;
    justify-content: center;
}
.promo-detail-footer-container {
    display: flex;
    gap: 20px;
    flex-wrap: nowrap;
    width: 100%;
    max-width: 1400px;
    margin: 5px auto;
    align-items: flex-start;
}

.promobox-h-list-top, .promobox-h-list-buttom, .promobox-h-list-middle {
    margin: 0 auto;
    width: 730px;
    height: 62px;
    display: block;
    align-items: center;
    justify-content: center;
}
.promobox-v-detail-inner {
    margin: 0 auto;
    width: 500px;
    height: 60px;
    display: block; 
    align-items: center;
    justify-content: center;
}
.promo-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 20px;
    background: #f8f9fa;
    color: #6c757d;
    font-size: 14px;
    border-radius: 8px;
}
.promo-loading .loading-spinner {
    width: 20px;
    height: 20px;
    border-width: 2px;
}

.promo-error {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: #fff3cd;
    color: #dc3545;
    font-size: 14px;
    border-radius: 8px;
    border: 1px solid #f8d7da;
}
@media (max-width: 1200px) {
    #campus-index-promo-btn{
        width: 100% !important;
        max-width: 1200px;
        margin: 0 auto;
    }     
}
/* 响应式优化 */
@media (max-width: 768px) {
    .promo-header {
        max-width: 100%;
        padding: 5px 10px;
    }         
    .promo-placeholder[data-promotion-position="detail-btn"] {
        width: 100% !important;
        max-width: 100% !important;
        padding: 5px !important;
    }
    
    .promo-placeholder[data-promotion-position="top-banner"] {
        width: 100% !important;
        max-width: 100% !important;
    }
    
    .promo-placeholder[data-promotion-position="detail-footer"] {
        width: 100% !important;
        max-width: 100% !important;
    }
    .promobox-h-list-top, .promobox-h-list-buttom, .promobox-h-list-middle {
        width: 100%;
    }
    .promo-placeholder[data-promotion-position="detail-btn"] {
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
    }
    .promo-detail-footer-container {
        flex-wrap: wrap;
        justify-content: center;
    }
    #campus-index-promo-btn{
        max-width: 760px;
        gap: 13px;
    }
    #campus-index-promo-btn:empty {
        display: none;
    }     
    #detail-promo-footer {
        width: 100% !important;
        max-width: 400px;
        margin: 5px auto;
    }
    
    #detail-jobDuty-buttom {
        width: 100% !important;
        max-width: 400px;
        margin: 0 auto;
    }    
}
@media (max-width: 560px) {
    .promo-placeholder {
        margin: 5px 0;
    }
    #campus-index-promo-btn{
        padding: 10px 12px;
        gap: 11px;
    }        
    .promo-loading, .promo-error {
        padding: 15px;
        font-size: 12px;
    }
}