/* ===== 页面Hero区域 - 现代化增强版 ===== */

.page-hero {
    position: relative;
    height: 500px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-top: 0;
}

/* 动态背景装饰 */
.page-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 20s ease-in-out infinite;
}

.page-hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -5%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255,255,255,0.08) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 15s ease-in-out infinite reverse;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(30px, -30px) rotate(120deg); }
    66% { transform: translate(-20px, 20px) rotate(240deg); }
}

/* 遮罩层 */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.2);
    z-index: 1;
}

/* 装饰性几何图形 */
.hero-shapes {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 1;
    overflow: hidden;
}

.hero-shapes .shape {
    position: absolute;
    opacity: 0.1;
}

.hero-shapes .shape-1 {
    top: 10%;
    left: 5%;
    width: 100px;
    height: 100px;
    border: 3px solid white;
    border-radius: 50%;
    animation: rotate 20s linear infinite;
}

.hero-shapes .shape-2 {
    top: 60%;
    right: 10%;
    width: 80px;
    height: 80px;
    border: 3px solid white;
    transform: rotate(45deg);
    animation: pulse 3s ease-in-out infinite;
}

.hero-shapes .shape-3 {
    bottom: 15%;
    left: 15%;
    width: 60px;
    height: 60px;
    background: white;
    border-radius: 10px;
    animation: float-shape 8s ease-in-out infinite;
}

.hero-shapes .shape-4 {
    top: 20%;
    right: 20%;
    width: 120px;
    height: 120px;
    border: 2px solid white;
    border-radius: 50%;
    animation: scale-pulse 5s ease-in-out infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes pulse {
    0%, 100% { transform: rotate(45deg) scale(1); }
    50% { transform: rotate(45deg) scale(1.2); }
}

@keyframes float-shape {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-30px); }
}

@keyframes scale-pulse {
    0%, 100% { transform: scale(1); opacity: 0.1; }
    50% { transform: scale(1.3); opacity: 0.2; }
}

/* 内容区域 */
.page-hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    color: white;
    max-width: 900px;
    padding: 0 20px;
}

.page-hero-content h1 {
    font-size: 64px;
    font-weight: 900;
    margin-bottom: 20px;
    line-height: 1.2;
    text-shadow: 0 4px 20px rgba(0,0,0,0.3);
    animation: fadeInUp 0.8s ease-out;
}

/* 标题装饰线 */
.page-hero-content h1::after {
    content: '';
    display: block;
    width: 100px;
    height: 5px;
    background: linear-gradient(90deg, #ffd93d, #ff6b6b);
    margin: 25px auto 0;
    border-radius: 3px;
}

.page-hero-content > p {
    font-size: 22px;
    margin-bottom: 30px;
    opacity: 0.95;
    font-weight: 300;
    letter-spacing: 0.5px;
    animation: fadeInUp 0.8s ease-out 0.2s backwards;
}

/* 面包屑导航 */
.breadcrumb {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: 15px;
    background: rgba(255,255,255,0.15);
    padding: 12px 25px;
    border-radius: 30px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
    animation: fadeInUp 0.8s ease-out 0.4s backwards;
    transition: all 0.3s ease;
}

.breadcrumb:hover {
    background: rgba(255,255,255,0.25);
    transform: translateY(-2px);
}

.breadcrumb a {
    color: white;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.breadcrumb a:hover {
    opacity: 0.8;
    transform: translateX(-2px);
}

.breadcrumb span {
    opacity: 0.7;
}

/* 动画效果 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 波浪底部装饰 */
.page-hero-wave {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    z-index: 2;
}

.page-hero-wave svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 80px;
}

.page-hero-wave .shape-fill {
    fill: #ffffff;
}

/* 不同页面的个性化渐变色 */
.page-hero.about-hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.page-hero.contact-hero {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.page-hero.service-hero {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.page-hero.team-hero {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
}

.page-hero.news-hero {
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
}

/* 添加粒子效果容器 */
.hero-particles {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 1;
}

.hero-particles .particle {
    position: absolute;
    background: white;
    border-radius: 50%;
    opacity: 0.6;
    animation: particle-float linear infinite;
}

@keyframes particle-float {
    0% {
        transform: translateY(0) translateX(0);
        opacity: 0;
    }
    10% {
        opacity: 0.6;
    }
    90% {
        opacity: 0.6;
    }
    100% {
        transform: translateY(-100vh) translateX(50px);
        opacity: 0;
    }
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .page-hero {
        height: 450px;
    }
    
    .page-hero-content h1 {
        font-size: 52px;
    }
    
    .page-hero-content > p {
        font-size: 20px;
    }
    
    .hero-shapes .shape-1,
    .hero-shapes .shape-4 {
        width: 80px;
        height: 80px;
    }
}

@media (max-width: 768px) {
    .page-hero {
        height: 400px;
    }
    
    .page-hero-content h1 {
        font-size: 42px;
    }
    
    .page-hero-content > p {
        font-size: 18px;
    }
    
    .page-hero::before,
    .page-hero::after {
        width: 300px;
        height: 300px;
    }
    
    .hero-shapes .shape {
        display: none;
    }
    
    .breadcrumb {
        font-size: 14px;
        padding: 10px 20px;
    }
}

@media (max-width: 480px) {
    .page-hero {
        height: 350px;
    }
    
    .page-hero-content h1 {
        font-size: 32px;
    }
    
    .page-hero-content h1::after {
        width: 60px;
        height: 4px;
        margin-top: 15px;
    }
    
    .page-hero-content > p {
        font-size: 16px;
        margin-bottom: 20px;
    }
    
    .breadcrumb {
        font-size: 13px;
        padding: 8px 16px;
        gap: 8px;
    }
    
    .page-hero-wave svg {
        height: 50px;
    }
}

/* 额外的装饰效果 - 网格背景 */
.hero-grid-bg {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background-image: 
        linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    z-index: 1;
}

/* 光晕效果 */
.hero-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(255,255,255,0.15) 0%, transparent 70%);
    filter: blur(40px);
    animation: glow-pulse 4s ease-in-out infinite;
    z-index: 1;
}

@keyframes glow-pulse {
    0%, 100% { opacity: 0.5; transform: translate(-50%, -50%) scale(1); }
    50% { opacity: 0.8; transform: translate(-50%, -50%) scale(1.1); }
}

/* ===== 通用组件样式 ===== */

/* Section Header */
.section-header {
    margin-bottom: 60px;
}

.section-header.text-center {
    text-align: center;
}

.section-label {
    display: inline-block;
    padding: 8px 20px;
    background: var(--gradient-1);
    color: white;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 20px;
}

.section-title {
    font-size: 42px;
    font-weight: 900;
    color: var(--dark);
    margin-bottom: 15px;
    line-height: 1.2;
}

.section-subtitle {
    font-size: 18px;
    color: var(--text-light);
    margin-top: 15px;
}

/* CTA Section */
.cta-section {
    position: relative;
    padding: 100px 0;
    background: var(--gradient-2);
    overflow: hidden;
}

.cta-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px);
    background-size: 50px 50px;
}

.cta-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
}

.cta-content h2 {
    font-size: 42px;
    font-weight: 900;
    margin-bottom: 20px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.cta-content p {
    font-size: 18px;
    margin-bottom: 40px;
    opacity: 0.95;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 18px 40px;
    border-radius: 30px;
    font-size: 16px;
    font-weight: 600;
    transition: var(--transition);
    border: 2px solid transparent;
}

.btn-light {
    background: white;
    color: var(--primary-color);
}

.btn-light:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.btn-outline-light {
    background: transparent;
    color: white;
    border-color: white;
}

.btn-outline-light:hover {
    background: white;
    color: var(--primary-color);
    transform: translateY(-3px);
}

/* Back to Top */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--gradient-1);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 999;
    box-shadow: 0 4px 15px rgba(255,107,107,0.4);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(255,107,107,0.6);
}

/* 响应式调整 */
@media (max-width: 768px) {
    .section-title {
        font-size: 32px;
    }
    
    .section-subtitle {
        font-size: 16px;
    }
    
    .cta-content h2 {
        font-size: 32px;
    }
    
    .cta-content p {
        font-size: 16px;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: stretch;
    }
    
    .btn {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .section-title {
        font-size: 28px;
    }
    
    .cta-content h2 {
        font-size: 28px;
    }
    
    .back-to-top {
        width: 45px;
        height: 45px;
        bottom: 20px;
        right: 20px;
    }
}

