/* banner.css - 全局通用Banner样式 */

/* 通用页面横幅容器 */
.page-banner {
    position: relative;
    width: 100%;
    height: 300px;
    /*background-image: url('../images/default-banner.jpg'); */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* 渐变背景层 - 当背景图片不存在或作为备用方案 */
.page-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #08358f 0%, #1a4cb3 50%, #0a3ba8 100%);
    z-index: 1;
}

/* 遮罩层 - 增强文字可读性 */
.page-banner::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(8, 53, 143, 0.75); /* 半透明深蓝色遮罩 */
    z-index: 2;
}

/* 覆盖层容器 - 承载文字内容 */
.banner-overlay {
    position: relative;
    z-index: 3;
    text-align: center;
    color: #ffffff;
    padding: 20px;
    max-width: 1000px;
    width: 100%;
    animation: bannerFadeIn 0.8s ease;
}

/* 横幅主标题 */
.banner-text h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 15px;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.35);
    letter-spacing: 2px;
    line-height: 1.3;
}

/* 横幅副标题/描述 */
.banner-text p {
    font-size: 1.3rem;
    opacity: 0.95;
    margin-bottom: 0;
    font-weight: 300;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.3);
    letter-spacing: 1px;
}

/* 淡入动画 */
@keyframes bannerFadeIn {
    from {
        opacity: 0;
        transform: translateY(15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 各个页面自定义背景 - 通过内联样式或页面级CSS覆盖 */
/* 示例: 
   .page-banner.conference-banner {
       background-image: url('../images/conference-banner.jpg');
   }
*/

/* ===== 响应式适配 ===== */

/* 1400px以下 - 大屏幕 */
@media screen and (max-width: 1400px) {
    .page-banner {
        height: 280px;
    }
    
    .banner-text h1 {
        font-size: 2.8rem;
    }
    
    .banner-text p {
        font-size: 1.25rem;
    }
}

/* 1200px以下 - 桌面中等 */
@media screen and (max-width: 1200px) {
    .page-banner {
        height: 260px;
    }
    
    .banner-text h1 {
        font-size: 2.6rem;
    }
    
    .banner-text p {
        font-size: 1.2rem;
    }
}

/* 992px以下 - 平板横向 */
@media screen and (max-width: 992px) {
    .page-banner {
        height: 240px;
    }
    
    .banner-text h1 {
        font-size: 2.4rem;
        margin-bottom: 12px;
    }
    
    .banner-text p {
        font-size: 1.15rem;
    }
    
    .banner-overlay {
        padding: 18px;
    }
}

/* 768px以下 - 平板纵向/移动端 */
@media screen and (max-width: 768px) {
    .page-banner {
        height: 200px;
    }
    
    .banner-text h1 {
        font-size: 2rem;
        margin-bottom: 10px;
        letter-spacing: 1.5px;
    }
    
    .banner-text p {
        font-size: 1.1rem;
    }
    
    .banner-overlay {
        padding: 15px;
    }
    
    /* 移动端遮罩不透明度微调 */
    .page-banner::after {
        background-color: rgba(8, 53, 143, 0.8);
    }
}

/* 600px以下 - 手机大屏 */
@media screen and (max-width: 600px) {
    .page-banner {
        height: 180px;
    }
    
    .banner-text h1 {
        font-size: 1.8rem;
        margin-bottom: 8px;
        letter-spacing: 1px;
    }
    
    .banner-text p {
        font-size: 1rem;
    }
}

/* 480px以下 - 手机小屏 */
@media screen and (max-width: 480px) {
    .page-banner {
        height: 160px;
    }
    
    .banner-text h1 {
        font-size: 1.6rem;
        margin-bottom: 6px;
    }
    
    .banner-text p {
        font-size: 0.95rem;
    }
    
    .banner-overlay {
        padding: 12px;
    }
}

/* 360px以下 - 超小屏手机 */
@media screen and (max-width: 360px) {
    .page-banner {
        height: 150px;
    }
    
    .banner-text h1 {
        font-size: 1.4rem;
    }
    
    .banner-text p {
        font-size: 0.9rem;
    }
}

/* 打印样式 - 保持可读性 */
@media print {
    .page-banner {
        height: 150px;
        background: #08358f !important;
        color: white;
        page-break-inside: avoid;
    }
    
    .page-banner::before,
    .page-banner::after {
        display: none;
    }
    
    .banner-text h1,
    .banner-text p {
        text-shadow: none;
    }
}

/* 针对高分辨率屏幕优化 */
@media screen and (-webkit-min-device-pixel-ratio: 2), 
       screen and (min-resolution: 192dpi) {
    .page-banner {
        background-size: cover;
    }
}

/* 暗色模式适配 - 保持品牌色 */
@media (prefers-color-scheme: dark) {
    .page-banner::after {
        background-color: rgba(8, 53, 143, 0.85);
    }
}