/* 
 * 增强版首屏样式 - 各页面精美首屏设计
 * 包含动画、渐变、3D效果等现代设计元素
 */

/* ============================================
   通用首屏样式
   ============================================ */
.hero-section {
    position: relative;
    min-height: 70vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

/* 动态背景效果 */
.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
}

/* 浮动几何图形 */
.floating-shapes {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.shape {
    position: absolute;
    opacity: 0.15;
    animation: float 20s infinite ease-in-out;
    filter: blur(1px);
}

.shape-1 {
    width: 400px;
    height: 400px;
    background: linear-gradient(135deg, rgba(0, 166, 251, 0.3), rgba(0, 130, 200, 0.1));
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    top: -10%;
    left: -10%;
    animation-delay: 0s;
    animation-duration: 25s;
}

.shape-2 {
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, rgba(82, 196, 26, 0.2), rgba(115, 209, 61, 0.1));
    border-radius: 63% 37% 54% 46% / 55% 48% 52% 45%;
    top: 50%;
    right: -8%;
    animation-delay: 3s;
    animation-duration: 20s;
}

.shape-3 {
    width: 350px;
    height: 350px;
    background: linear-gradient(135deg, rgba(0, 166, 251, 0.2), rgba(0, 210, 255, 0.1));
    border-radius: 40% 60% 60% 40% / 60% 30% 70% 40%;
    bottom: -5%;
    left: 20%;
    animation-delay: 6s;
    animation-duration: 30s;
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg) scale(1);
    }
    25% {
        transform: translate(50px, -30px) rotate(90deg) scale(1.1);
    }
    50% {
        transform: translate(-30px, 50px) rotate(180deg) scale(0.95);
    }
    75% {
        transform: translate(30px, 30px) rotate(270deg) scale(1.05);
    }
}

/* 粒子效果 */
.particles {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.particle {
    position: absolute;
    width: 6px;
    height: 6px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    animation: particle-float 15s infinite linear;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.particle:nth-child(even) {
    width: 4px;
    height: 4px;
    animation-duration: 20s;
}

.particle:nth-child(3n) {
    width: 8px;
    height: 8px;
    animation-duration: 25s;
    background: rgba(0, 166, 251, 0.8);
}

@keyframes particle-float {
    0% {
        transform: translateY(100vh) translateX(0);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100vh) translateX(100px);
        opacity: 0;
    }
}

/* ============================================
   产品方案页首屏优化
   ============================================ */
.products-hero {
    position: relative;
    padding: 100px 0 60px;
    min-height: 60vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #f8fbff 0%, #eef7ff 100%);
    overflow: hidden;
}

.products-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.products-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
}

.products-hero-content h1 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #00A6FB 0%, #0082C8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: fadeInUp 0.8s ease;
}

.products-hero-content p {
    font-size: 18px;
    color: #666;
    max-width: 600px;
    margin: 0 auto 30px;
    animation: fadeInUp 0.8s ease 0.2s both;
}

/* 3D产品卡片展示 */
.hero-products-preview {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
    perspective: 1000px;
}

.hero-product-card {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 16px;
    padding: 30px;
    text-align: center;
    transition: all 0.3s ease;
    animation: fadeInUp 0.8s ease 0.4s both;
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.hero-product-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transform: rotate(45deg);
    transition: all 0.6s;
    opacity: 0;
}

.hero-product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0, 166, 251, 0.15);
    border-color: #00A6FB;
}

.hero-product-card:hover::before {
    animation: shine 0.6s ease;
}

@keyframes shine {
    0% {
        transform: translateX(-100%) translateY(-100%) rotate(45deg);
        opacity: 0;
    }
    50% {
        opacity: 1;
    }
    100% {
        transform: translateX(100%) translateY(100%) rotate(45deg);
        opacity: 0;
    }
}

.hero-product-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, #00a6fb, #0082c8);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: white;
}

.hero-product-card h3 {
    color: #1a1a1a;
    font-size: 18px;
    margin-bottom: 8px;
    font-weight: 600;
}

.hero-product-card p {
    color: #666;
    font-size: 14px;
    margin: 0;
    line-height: 1.5;
}

/* ============================================
   解决方案页首屏优化
   ============================================ */
.solutions-hero-enhanced {
    position: relative;
    min-height: 70vh;
    padding: 100px 0 60px;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #f0f8ff 0%, #e6f4ff 100%);
    overflow: hidden;
}

/* 动态网格背景 */
.grid-background {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0.1;
    background-image: 
        linear-gradient(rgba(255,255,255,.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.1) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: grid-move 10s linear infinite;
}

@keyframes grid-move {
    0% {
        transform: translate(0, 0);
    }
    100% {
        transform: translate(50px, 50px);
    }
}

/* 3D场景卡片 */
.solutions-showcase {
    display: flex;
    gap: 30px;
    margin-top: 40px;
}

.solution-card-3d {
    flex: 1;
    height: 320px;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.6s;
    cursor: pointer;
}

.solution-card-3d:hover {
    transform: rotateY(180deg);
}

.solution-card-face {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.solution-card-front {
    background: white;
    border: 1px solid #e0e0e0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 30px;
}

.solution-card-back {
    background: linear-gradient(135deg, #00A6FB 0%, #0082C8 100%);
    transform: rotateY(180deg);
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: white;
}

.solution-icon-large {
    font-size: 48px;
    margin-bottom: 20px;
    color: #00A6FB;
}

.solution-card-front h3 {
    font-size: 20px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 10px;
}

.solution-card-front p {
    font-size: 14px;
    color: #666;
}

.solution-card-back h4 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
}

.solution-card-back ul {
    list-style: none;
    padding: 0;
}

.solution-card-back li {
    padding: 8px 0;
    padding-left: 20px;
    position: relative;
}

.solution-card-back li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: white;
}

/* ============================================
   客户案例页首屏优化
   ============================================ */
.cases-hero-enhanced {
    position: relative;
    padding: 100px 0 60px;
    min-height: 65vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #00A6FB 0%, #0082C8 100%);
    overflow: hidden;
}

.cases-hero-enhanced::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

/* 静态Logo墙背景 - 移除动画以避免卡顿 */
.logo-wall-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0.06;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    padding: 30px;
}

.logo-wall-item {
    width: 150px;
    height: 70px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
}

/* 成功指标展示 - 优化版 */
.success-metrics {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 40px;
}

.metric-item {
    text-align: center;
    animation: fadeInScale 0.8s ease both;
    position: relative;
}

.metric-item:nth-child(1) { animation-delay: 0.2s; }
.metric-item:nth-child(2) { animation-delay: 0.4s; }
.metric-item:nth-child(3) { animation-delay: 0.6s; }
.metric-item:nth-child(4) { animation-delay: 0.8s; }

.metric-item::before {
    content: '';
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 60px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1), transparent);
    border-radius: 50%;
    opacity: 0;
    animation: pulseGlow 2s ease-in-out infinite;
    animation-delay: inherit;
}

@keyframes pulseGlow {
    0%, 100% {
        opacity: 0;
        transform: translateX(-50%) scale(0.8);
    }
    50% {
        opacity: 1;
        transform: translateX(-50%) scale(1.2);
    }
}

.metric-number {
    font-size: 48px;
    font-weight: 700;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
    display: block;
    line-height: 1;
    margin-bottom: 10px;
    position: relative;
    transition: transform 0.3s ease;
}

.metric-number .counter {
    display: inline-block;
    min-width: 2ch; /* 保持宽度稳定，避免跳动 */
    text-align: center;
    background: linear-gradient(180deg, #ffffff 0%, rgba(255, 255, 255, 0.9) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
}

/* 数字滚动时的光效 */
.metric-number .counter::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.8), transparent);
    transition: width 0.3s ease;
}

.metric-number .counter.counting::after {
    width: 100%;
}

.metric-label {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    opacity: 0;
    animation: fadeInUp 0.5s ease forwards;
    animation-delay: 1s;
}

@keyframes fadeInScale {
    0% {
        opacity: 0;
        transform: scale(0.8);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* ============================================
   关于我们页首屏优化
   ============================================ */
.about-hero-enhanced {
    position: relative;
    min-height: 65vh;
    padding: 100px 0 60px;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #00A6FB 0%, #0082C8 100%);
    overflow: hidden;
}

/* 科技感线条动画 */
.tech-lines {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.tech-line {
    position: absolute;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.8), transparent);
    animation: line-move 8s linear infinite;
}

.tech-line:nth-child(1) {
    top: 20%;
    animation-duration: 10s;
}

.tech-line:nth-child(2) {
    top: 50%;
    animation-duration: 8s;
    animation-delay: 2s;
}

.tech-line:nth-child(3) {
    top: 80%;
    animation-duration: 12s;
    animation-delay: 4s;
}

@keyframes line-move {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

/* 关于我们页面Hero内容样式 */
.about-hero-content {
    text-align: center;
    position: relative;
    z-index: 2;
    max-width: 900px;
    margin: 0 auto;
}

.about-hero-title {
    font-size: 48px;
    font-weight: 700;
    color: white;
    margin-bottom: 20px;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    letter-spacing: -0.5px;
    line-height: 1.2;
}

.about-hero-subtitle {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.95);
    max-width: 600px;
    margin: 0 auto 40px;
    line-height: 1.6;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    font-weight: 400;
    letter-spacing: 0.3px;
}

/* 公司价值展示 - 优化布局协调性 */
.company-values-hero {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-top: 50px;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.value-card-hero {
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 16px;
    padding: 32px 24px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    animation: fadeInUp 0.8s ease both;
    position: relative;
    overflow: hidden;
    min-height: 180px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* 添加微妙的内阴影效果 */
.value-card-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, transparent 50%, rgba(255,255,255,0.05) 100%);
    border-radius: 16px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.value-card-hero:hover::before {
    opacity: 1;
}

.value-card-hero:nth-child(1) { animation-delay: 0.1s; }
.value-card-hero:nth-child(2) { animation-delay: 0.2s; }
.value-card-hero:nth-child(3) { animation-delay: 0.3s; }
.value-card-hero:nth-child(4) { animation-delay: 0.4s; }

.value-card-hero:hover {
    transform: translateY(-8px) scale(1.02);
    background: rgba(255, 255, 255, 0.18);
    border-color: rgba(255, 255, 255, 0.4);
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.15),
        0 4px 12px rgba(255, 255, 255, 0.1);
}

.value-icon-hero {
    width: 56px;
    height: 56px;
    margin: 0 auto 18px;
    background: linear-gradient(135deg, #ffffff 0%, #f0f9ff 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #00A6FB;
    box-shadow: 
        0 4px 12px rgba(255, 255, 255, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
    transition: all 0.3s ease;
}

.value-card-hero:hover .value-icon-hero {
    transform: scale(1.1) rotateY(360deg);
    box-shadow: 
        0 8px 20px rgba(255, 255, 255, 0.4),
        inset 0 2px 0 rgba(255, 255, 255, 0.6);
}

.value-card-hero h3 {
    color: white;
    font-size: 17px;
    font-weight: 600;
    margin-bottom: 12px;
    letter-spacing: 0.3px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.value-card-hero p {
    color: rgba(255, 255, 255, 0.92);
    font-size: 13px;
    line-height: 1.6;
    font-weight: 400;
    margin: 0;
    letter-spacing: 0.2px;
}

/* ============================================
   通用动画
   ============================================ */
@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes gradient-shift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* 响应式设计 */
@media (max-width: 768px) {
    .hero-products-preview {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .solutions-showcase {
        flex-direction: column;
    }
    
    .success-metrics {
        flex-wrap: wrap;
        gap: 30px;
    }
    
    .company-values-hero {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
        margin-top: 30px;
        max-width: 100%;
        padding: 0 10px;
    }
    
    .value-card-hero {
        padding: 24px 16px;
        min-height: 160px;
    }
    
    .value-icon-hero {
        width: 48px;
        height: 48px;
        font-size: 20px;
        margin-bottom: 14px;
    }
    
    .value-card-hero h3 {
        font-size: 16px;
        margin-bottom: 8px;
    }
    
    .value-card-hero p {
        font-size: 12px;
    }
    
    .about-hero-title {
        font-size: 36px !important;
    }
    
    .about-hero-subtitle {
        font-size: 16px;
        margin-bottom: 30px;
    }
    
    .about-hero-content {
        max-width: 100%;
        padding: 0 15px;
    }
    
    h1 {
        font-size: 36px !important;
    }
}