/* ==========================================================================
   首页专属样式
   ========================================================================== */

/* Hero 区域 */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding-top: 80px;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    min-width: 100%;
    min-height: 100%;
    object-fit: cover;
    transform: translate(-50%, -50%);
    z-index: 0;
    /* 确保视频作为背景不干扰交互 */
    pointer-events: none;
    /* 优化性能 */
    will-change: transform;
}

.particle-container {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
}

.gradient-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, 
        rgba(40, 50, 180, 0.3) 0%, 
        rgba(255, 184, 0, 0.2) 50%,
        rgba(30, 40, 117, 0.3) 100%);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 1;
    width: 100%;
}

.hero-text {
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.hero-title {
    font-size: 4rem;
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: var(--space-lg);
    color: var(--primary-navy);
    word-break: keep-all;
}

.text-gradient {
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
    display: inline-block;
}

.hero-subtitle {
    font-size: 1.25rem;
    line-height: 1.8;
    color: var(--dark-gray);
    margin-bottom: var(--space-xl);
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.hero-cta {
    display: flex;
    gap: var(--space-md);
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: var(--space-3xl);
    align-items: center;
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.125rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: var(--space-2xl);
    flex-wrap: wrap;
    max-width: 1000px;
    margin: 0 auto;
}

.hero-stats .stat-item {
    text-align: center;
}

.hero-stats .stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: var(--space-xs);
}

.hero-stats .stat-label {
    font-size: 0.875rem;
    color: var(--medium-gray);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    white-space: nowrap;
}

/* 滚动指示器 */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    animation: float 3s ease-in-out infinite;
    z-index: 1;
}

.mouse {
    width: 26px;
    height: 40px;
    border: 2px solid var(--primary-blue);
    border-radius: 20px;
    display: flex;
    justify-content: center;
    padding-top: 8px;
    margin: 0 auto 10px;
}

.wheel {
    width: 3px;
    height: 8px;
    background: var(--primary-blue);
    border-radius: 2px;
    animation: scroll 1.5s ease-in-out infinite;
}

@keyframes scroll {
    0% {
        opacity: 1;
        transform: translateY(0);
    }
    100% {
        opacity: 0;
        transform: translateY(12px);
    }
}

.scroll-indicator p {
    font-size: 0.75rem;
    color: var(--medium-gray);
    margin: 0;
}

/* 核心优势区域 */
.features {
    background: var(--white);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-xl);
    max-width: 1400px;
    margin: 0 auto;
}

.feature-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: var(--space-xl);
    border: 2px solid var(--light-gray);
    transition: all var(--transition-base) ease;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-height: 300px;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient-gold);
    transform: scaleX(0);
    transition: transform var(--transition-base) ease;
}

.feature-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-gold);
    box-shadow: var(--shadow-xl);
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, rgba(40, 50, 180, 0.1), rgba(255, 184, 0, 0.1));
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-lg);
    color: var(--primary-blue);
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: var(--space-md);
    color: var(--primary-navy);
    min-height: 2em;
}

.feature-card p {
    color: var(--dark-gray);
    line-height: 1.8;
    margin-bottom: 0;
}

/* 技术亮点区域 */
.tech-highlight {
    background: linear-gradient(135deg, rgba(40, 50, 180, 0.03), rgba(255, 184, 0, 0.03));
}

.tech-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3xl);
    align-items: center;
}

.tech-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 400px;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.tech-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--radius-xl);
}

.tech-showcase {
    position: relative;
    width: 400px;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.showcase-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 2px solid var(--primary-blue);
    border-radius: 50%;
    opacity: 0.2;
    animation: pulse 3s ease-in-out infinite;
}

.showcase-ring.delay-1 {
    animation-delay: 1s;
    opacity: 0.15;
}

.showcase-ring.delay-2 {
    animation-delay: 2s;
    opacity: 0.1;
}

.showcase-center {
    width: 200px;
    height: 200px;
    background: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-xl);
    position: relative;
    z-index: 1;
}

.tech-text .lead {
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--dark-gray);
    margin-bottom: var(--space-xl);
}

.tech-benefits {
    margin-bottom: var(--space-xl);
}

.benefit-item {
    display: flex;
    gap: var(--space-md);
    margin-bottom: var(--space-lg);
}

.benefit-icon {
    width: 32px;
    height: 32px;
    background: var(--gradient-gold);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-navy);
    font-weight: 700;
    flex-shrink: 0;
}

.benefit-content h4 {
    font-size: 1.125rem;
    margin-bottom: var(--space-xs);
    color: var(--primary-navy);
}

.benefit-content p {
    color: var(--dark-gray);
    margin-bottom: 0;
    line-height: 1.6;
}

/* 应用场景区域 */
.applications {
    background: var(--white);
}

.applications-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-xl);
    max-width: 1400px;
    margin: 0 auto;
}

.application-card {
    background: var(--white);
    padding: var(--space-xl);
    border-radius: var(--radius-xl);
    border: 2px solid var(--light-gray);
    transition: all var(--transition-base) ease;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-height: 280px;
}

.application-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient-gold);
    transform: scaleX(0);
    transition: transform var(--transition-base) ease;
}

.application-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-gold);
}

.application-card:hover::before {
    transform: scaleX(1);
}

.app-number {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 3rem;
    font-weight: 900;
    color: rgba(40, 50, 180, 0.05);
    line-height: 1;
    z-index: 10;
}

.application-card h3 {
    font-size: 1.5rem;
    margin-bottom: var(--space-md);
    margin-top: calc(50% + var(--space-md));
    color: white;
}

.application-card p {
    color: var(--dark-gray);
    margin-bottom: var(--space-lg);
    line-height: 1.8;
    flex: 1;
}

.app-icon {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 50%;
    margin-bottom: 0;
    text-align: center;
    overflow: hidden;
    z-index: 1;
}

.app-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.application-card h3,
.application-card p {
    position: relative;
    z-index: 2;
    margin-top: auto;
}

.application-card h3 {
    margin-top: calc(50% + var(--space-md));
}

/* CTA 区域 */
.cta-section {
    background: linear-gradient(135deg, #1E2875 0%, #2832B4 100%);
    color: var(--white);
}

.cta-card {
    position: relative;
    padding: var(--space-3xl);
    text-align: center;
    overflow: hidden;
}

.cta-content {
    position: relative;
    z-index: 1;
    max-width: 700px;
    margin: 0 auto;
}

.cta-card h2 {
    font-size: 2.5rem;
    color: var(--white);
    margin-bottom: var(--space-lg);
}

.cta-card p {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: var(--space-xl);
}

.cta-buttons {
    display: flex;
    gap: var(--space-md);
    justify-content: center;
    flex-wrap: wrap;
}

.cta-buttons .btn-outline {
    border-color: var(--white);
    color: var(--white);
}

.cta-buttons .btn-outline:hover {
    background: var(--white);
    color: var(--primary-navy);
}

.cta-visual {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 0;
}

.pulse-circle {
    position: absolute;
    width: 600px;
    height: 600px;
    border: 2px solid rgba(255, 184, 0, 0.2);
    border-radius: 50%;
    animation: pulse 4s ease-in-out infinite;
}

.pulse-circle.delay-1 {
    animation-delay: 1.3s;
    opacity: 0.7;
}

.pulse-circle.delay-2 {
    animation-delay: 2.6s;
    opacity: 0.4;
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .hero-title {
        font-size: 3.5rem;
    }
}

@media (max-width: 1024px) {
    .hero-title {
        font-size: 3rem;
    }

    .tech-content {
        grid-template-columns: 1fr;
        gap: var(--space-2xl);
    }

    .tech-showcase {
        width: 300px;
        height: 300px;
    }

    .showcase-center {
        width: 150px;
        height: 150px;
    }

    .showcase-center svg {
        width: 80px;
        height: 80px;
    }
}

@media (max-width: 768px) {
    .hero {
        min-height: 90vh;
        padding-top: 70px;
    }
    
    .hero-video {
        /* 移动端可以降低视频质量或使用静态图片 */
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.125rem;
    }

    .hero-cta {
        flex-direction: column;
        align-items: center;
    }

    .hero-cta .btn {
        width: 100%;
        max-width: 300px;
    }

    .hero-stats {
        gap: var(--space-lg);
    }

    .hero-stats .stat-number {
        font-size: 2rem;
    }

    .features-grid,
    .applications-grid {
        grid-template-columns: 1fr;
    }

    .tech-showcase {
        width: 250px;
        height: 250px;
    }

    .cta-card h2 {
        font-size: 2rem;
    }

    .cta-card p {
        font-size: 1.125rem;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .cta-buttons .btn {
        width: 100%;
        max-width: 300px;
    }

    .pulse-circle {
        width: 400px;
        height: 400px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

    .tech-showcase {
        width: 200px;
        height: 200px;
    }

    .showcase-center {
        width: 100px;
        height: 100px;
    }

    .showcase-center svg {
        width: 60px;
        height: 60px;
    }
}

/* 数据动画 */
[data-animate] {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

[data-animate].animated {
    opacity: 1;
    transform: translateY(0);
}
