/* 页面标题区域样式 */

.page-header {
    height: 60vh;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    background: url('../images/background1.png') no-repeat center center;
    background-size: cover;
    background-attachment: fixed;
    padding: 120px 0 80px;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 123, 255, 0.8) 0%, rgba(0, 86, 179, 0.9) 100%);
    z-index: 1;
}

.page-header .container {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
}

.page-header h1 {
    font-size: 4rem;
    color: #ffffff;
    margin-bottom: 20px;
    font-weight: 700;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    letter-spacing: 2px;
    position: relative;
}

.page-header h1::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, #ffffff, rgba(255, 255, 255, 0.5), #ffffff);
    border-radius: 2px;
    animation: glow 2s ease-in-out infinite alternate;
}

.page-header p {
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.95);
    margin: 0;
    font-weight: 400;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    line-height: 1.6;
}

/* 装饰元素 */
.page-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100px;
    background: linear-gradient(to top, rgba(255, 255, 255, 0.1), transparent);
    z-index: 1;
}

/* 浮动装饰点 */
.page-header-decoration {
    position: absolute;
    width: 6px;
    height: 6px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
}

.page-header-decoration:nth-child(1) {
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.page-header-decoration:nth-child(2) {
    top: 60%;
    left: 20%;
    animation-delay: 2s;
}

.page-header-decoration:nth-child(3) {
    top: 30%;
    right: 15%;
    animation-delay: 4s;
}

.page-header-decoration:nth-child(4) {
    bottom: 30%;
    right: 25%;
    animation-delay: 1s;
}

.page-header-decoration:nth-child(5) {
    top: 70%;
    right: 10%;
    animation-delay: 3s;
}

/* 动画效果 */
@keyframes glow {
    0% {
        box-shadow: 0 0 5px rgba(255, 255, 255, 0.5);
    }
    100% {
        box-shadow: 0 0 20px rgba(255, 255, 255, 0.8), 0 0 30px rgba(255, 255, 255, 0.6);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px) scale(1);
        opacity: 0.6;
    }
    50% {
        transform: translateY(-20px) scale(1.2);
        opacity: 1;
    }
}

/* 响应式设计 */
@media (max-width: 992px) {
    .page-header {
        height: 50vh;
        min-height: 350px;
        background-attachment: scroll;
    }
    
    .page-header h1 {
        font-size: 3rem;
    }
    
    .page-header p {
        font-size: 1.3rem;
    }
}

@media (max-width: 768px) {
    .page-header {
        height: 40vh;
        min-height: 300px;
        padding: 100px 0 60px;
    }
    
    .page-header h1 {
        font-size: 2.5rem;
        letter-spacing: 1px;
    }
    
    .page-header p {
        font-size: 1.1rem;
    }
    
    .page-header h1::after {
        width: 80px;
        height: 3px;
    }
}

@media (max-width: 576px) {
    .page-header {
        height: 35vh;
        min-height: 250px;
        padding: 80px 0 40px;
    }
    
    .page-header h1 {
        font-size: 2rem;
        margin-bottom: 15px;
    }
    
    .page-header p {
        font-size: 1rem;
    }
    
    .page-header h1::after {
        width: 60px;
        height: 2px;
    }
}

/* 特定页面的标题颜色调整 */
.page-header.about-header::before {
    background: linear-gradient(135deg, rgba(40, 167, 69, 0.8) 0%, rgba(32, 134, 55, 0.9) 100%);
}

.page-header.products-header::before {
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.8) 0%, rgba(255, 143, 0, 0.9) 100%);
}

.page-header.achievements-header::before {
    background: linear-gradient(135deg, rgba(220, 53, 69, 0.8) 0%, rgba(189, 33, 48, 0.9) 100%);
}

.page-header.activities-header::before {
    background: linear-gradient(135deg, rgba(102, 16, 242, 0.8) 0%, rgba(81, 13, 193, 0.9) 100%);
}

.page-header.contact-header::before {
    background: linear-gradient(135deg, rgba(23, 162, 184, 0.8) 0%, rgba(17, 122, 139, 0.9) 100%);
}