/* ========================================
   JDL Overseas 内页头部样式
   Page Headers for Inner Pages
   ======================================== */

/* ========== 页面头部基础样式 ========== */
.page-header {
    position: relative;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: linear-gradient(135deg, #1e6e2a 0%, #28a745 50%, #5cb85c 100%);
    background-size: 200% 200%;
    animation: gradientShift 15s ease infinite;
    padding: 120px 20px 80px;
    text-align: center;
}

.page-header .container {
    text-align: center;
    width: 100%;
}

@keyframes gradientShift {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

/* 装饰性图案背景 */
.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 80%, rgba(255,255,255,0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255,255,255,0.08) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(255,255,255,0.05) 0%, transparent 50%);
    z-index: 0;
}

/* ========== 页面头部背景图片层 ========== */
.page-header-image-container {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 0;
    pointer-events: none;
    animation: fadeInScale 1.2s ease-out 0.3s both;
}

.page-header-image {
    width: auto;
    max-width: 1200px;
    height: auto;
    max-height: 400px;
    object-fit: contain;
    object-position: center;
    display: block;
    opacity: 0.75;
    filter: drop-shadow(0 10px 30px rgba(0,0,0,0.15));
    transition: all 0.5s ease;
}

.page-header:hover .page-header-image {
    opacity: 0.85;
    transform: scale(1.02);
}

/* 图片淡入缩放动画 */
@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 0.75;
        transform: scale(1);
    }
}

/* 底部波浪 */
.page-header::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 100%;
    height: 100px;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 120" preserveAspectRatio="none"><path d="M0,60 C200,20 400,100 600,60 C800,20 1000,100 1200,60 L1200,120 L0,120 Z" fill="%23f8f9fa"/></svg>') repeat-x;
    background-size: 1200px 100px;
    animation: waveSlide 12s linear infinite;
    z-index: 2;
}

@keyframes waveSlide {
    0% {
        background-position: 0 0;
    }
    100% {
        background-position: 1200px 0;
    }
}

/* 装饰元素 */
.page-header-decoration {
    position: absolute;
    pointer-events: none;
    opacity: 0.12;
    z-index: 0;
}

.page-header-decoration-1 {
    top: 10%;
    left: 5%;
    width: 80px;
    height: 80px;
    animation: float1 10s ease-in-out infinite;
}

.page-header-decoration-2 {
    top: 15%;
    right: 8%;
    width: 100px;
    height: 100px;
    animation: float2 12s ease-in-out infinite;
}

.page-header-decoration-3 {
    bottom: 20%;
    left: 10%;
    width: 60px;
    height: 60px;
    animation: float3 8s ease-in-out infinite;
}

.page-header-decoration-4 {
    bottom: 25%;
    right: 12%;
    width: 70px;
    height: 70px;
    animation: float1 11s ease-in-out infinite;
}

/* 内容容器 */
.page-header-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
    animation: fadeInUp 0.8s ease-out;
}

/* 面包屑导航 */
.breadcrumb-nav,
.page-header-breadcrumb {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 24px;
    font-size: 14px;
    color: rgba(255,255,255,0.9);
    animation: fadeInUp 0.8s ease-out 0.1s both;
}

.breadcrumb-nav a,
.page-header-breadcrumb a {
    color: rgba(255,255,255,0.9);
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb-nav a:hover,
.page-header-breadcrumb a:hover {
    color: white;
}

.breadcrumb-nav span,
.page-header-breadcrumb span {
    color: rgba(255,255,255,0.6);
}

.breadcrumb-nav .separator,
.page-header-breadcrumb .separator {
    color: rgba(255,255,255,0.5);
    margin: 0 4px;
}

/* 页面标题 */
.page-header-title {
    font-size: 52px;
    font-weight: 700;
    color: white;
    margin-bottom: 20px;
    line-height: 1.2;
    letter-spacing: -0.02em;
    text-shadow: 0 2px 20px rgba(0,0,0,0.15);
    text-align: center;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

/* 页面描述 */
.page-header-description {
    font-size: 18px;
    color: rgba(255,255,255,0.95);
    line-height: 1.6;
    max-width: 700px;
    margin: 0 auto 32px;
    text-align: center;
    text-shadow: 0 1px 10px rgba(0,0,0,0.1);
    animation: fadeInUp 0.8s ease-out 0.3s both;
}

/* 页面标签/徽章 */
.page-header-badges {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

.page-header-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255,255,255,0.25);
    border-radius: 50px;
    color: white;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.page-header-badge:hover {
    background: rgba(255,255,255,0.25);
    border-color: rgba(255,255,255,0.4);
    transform: translateY(-2px);
}

.page-header-badge svg {
    width: 20px;
    height: 20px;
    stroke: white;
    fill: none;
    stroke-width: 2;
}

/* 页面统计数据 */
.page-header-stats {
    display: flex;
    justify-content: center;
    gap: 48px;
    margin-top: 40px;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease-out 0.5s both;
}

.page-header-stat {
    text-align: center;
}

.page-header-stat-number {
    display: block;
    font-size: 36px;
    font-weight: 700;
    color: white;
    line-height: 1;
    margin-bottom: 8px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.15);
}

.page-header-stat-label {
    display: block;
    font-size: 13px;
    color: rgba(255,255,255,0.85);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ========== 不同页面的头部变体 ========== */

/* 产品中心 */
.page-header-products {
    min-height: 450px;
}

/* 关于我们 */
.page-header-about {
    min-height: 400px;
}

/* 联系我们 */
.page-header-contact {
    min-height: 380px;
}

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

@media (max-width: 1024px) {
    .page-header {
        min-height: 380px;
        padding: 100px 20px 70px;
    }
    
    .page-header-title {
        font-size: 44px;
    }
    
    .page-header-description {
        font-size: 17px;
    }
    
    .page-header-stat-number {
        font-size: 32px;
    }
}

@media (max-width: 768px) {
    .page-header {
        min-height: 350px;
        padding: 120px 20px 60px;  /* 增加上边距：90px → 120px */
    }
    
    .page-header-title {
        font-size: 36px;
    }
    
    .page-header-description {
        font-size: 16px;
    }
    
    .page-header-stats {
        gap: 32px;
    }
    
    .page-header-stat-number {
        font-size: 28px;
    }
    
    .page-header-decoration {
        display: none;
    }
}

@media (max-width: 480px) {
    .page-header {
        min-height: 320px;
        padding: 110px 16px 50px;  /* 增加上边距：80px → 110px */
    }
    
    .page-header-title {
        font-size: 32px;
    }
    
    .page-header-description {
        font-size: 15px;
    }
    
    .breadcrumb-nav {
        font-size: 13px;
    }
    
    .page-header-badge {
        padding: 8px 16px;
        font-size: 13px;
    }
    
    .page-header-stats {
        gap: 24px;
    }
    
    .page-header-stat-number {
        font-size: 24px;
    }
    
    .page-header-stat-label {
        font-size: 12px;
    }
}

/* ========== 动画关键帧 ========== */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float1 {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(10deg);
    }
}

@keyframes float2 {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-30px) rotate(-10deg);
    }
}

@keyframes float3 {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-15px) rotate(5deg);
    }
}

/* ========== 无障碍支持 ========== */

@media (prefers-reduced-motion: reduce) {
    .page-header,
    .page-header::before,
    .page-header::after,
    .page-header-content,
    .breadcrumb-nav,
    .page-header-title,
    .page-header-description,
    .page-header-badges,
    .page-header-stats,
    .page-header-decoration-1,
    .page-header-decoration-2,
    .page-header-decoration-3,
    .page-header-decoration-4 {
        animation: none !important;
    }
}

/* ========== 响应式适配 - 页面头部图片 ========== */

@media (max-width: 1400px) {
    .page-header-image {
        max-width: 95%;
        max-height: 350px;
    }
}

@media (max-width: 1024px) {
    .page-header-image {
        max-width: 90%;
        max-height: 300px;
        opacity: 0.65;
    }
}

@media (max-width: 768px) {
    .page-header-image {
        max-width: 85%;
        max-height: 250px;
        opacity: 0.55;
    }
}

@media (max-width: 480px) {
    .page-header-image {
        max-width: 80%;
        max-height: 200px;
        opacity: 0.45;
    }
}

/* ========== 打印样式 ========== */

@media print {
    .page-header {
        min-height: auto;
        padding: 40px 0;
        page-break-after: avoid;
    }
    
    .page-header::before,
    .page-header::after,
    .page-header-decoration,
    .page-header-image-container {
        display: none;
    }
}

