/* Applications Page Styles */

/* Hero Section */
.applications-hero {
    position: relative;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: #ffffff;
    padding: 80px 0;
    overflow: hidden;
    text-align: center;
}

/* 视频背景样式 - 确保覆盖全屏且层级最低 */
.applications-hero .hero-bg-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; /* 保持视频比例并填满容器 */
    opacity: 0.8; /* 视频与背景渐变融合度 */
    z-index: 0;
}

/* 内容容器样式 - 半透明背景增强可读性 */
.applications-hero .container {
    background: rgba(0, 0, 0, 0.7);
    padding: 40px;
    border-radius: 12px;
    position: relative;
    z-index: 1; /* 确保在视频上方 */
    max-width: 1200px; /* 限制最大宽度，避免过宽 */
    margin: 0 auto; /* 居中显示 */
}

/* 下拉指示器层级 */
.applications-hero .scroll-down-indicator {
    position: relative;
    z-index: 1;
    margin-top: 30px; /* 与内容保持距离 */
}

/* 标题样式 - 渐变文字增强视觉效果 */
.applications-hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: 700;
    background: linear-gradient(45deg, rgb(148, 79, 0), rgb(255, 173, 49));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* 段落样式 */
.applications-hero p {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto 2rem;
    opacity: 0.9;
}

/* 响应式适配 - 小屏幕调整 */
@media (max-width: 768px) {
    .applications-hero {
        padding: 60px 20px; /* 减少上下内边距，增加左右内边距 */
    }
    
    .applications-hero .container {
        padding: 30px 20px; /* 缩小容器内边距 */
    }
    
    .applications-hero h1 {
        font-size: 2rem; /* 减小标题字体 */
    }
    
    .applications-hero p {
        font-size: 1rem; /* 减小段落字体 */
    }
}



/* Application Cards Section */
.applications-section {
    padding: 80px 0;
    background: #f8f9fa;
}

.applications-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.application-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.application-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

.application-card:hover .card-image img {
    transform: scale(1.05);
}

.card-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.card-content {
    padding: 25px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.card-content h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: #1a1a2e;
    font-weight: 600;
}

.card-content p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
    flex: 1;
}

.card-cta {
    display: inline-block;
    background: linear-gradient(45deg, #d8781f, #ffd07a);
    color: white;
    padding: 12px 24px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    text-align: center;
}

.card-cta:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(79, 172, 254, 0.4);
}

/* Features Section */
.features-section {
    padding: 80px 0;
    background: white;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.feature-item {
    text-align: center;
    padding: 30px;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.feature-icon img {
    width: 40px;
    height: 40px;
}

.feature-item h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: #1a1a2e;
}

.feature-item p {
    color: #666;
    line-height: 1.6;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, #ffd07a 0%, #d8781f 100%);
    color: rgb(0, 0, 0,0.7);
    padding: 80px 0;
    text-align: center;
}

.cta-content h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.cta-content p {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto 30px;
    opacity: 0.9;
}

.cta-button {
    background: linear-gradient(45deg, #d8781f, #ffd07a);;
    color: #ffffff;
    padding: 15px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.cta-button:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(255, 255, 255, 0.3);
}

/* Loading State */
.loading-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 400px;
    grid-column: 1 / -1;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid #4facfe;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Error State */
.error-container {
    text-align: center;
    padding: 60px 20px;
    color: #ff4757;
}

/* Responsive Design */
@media (max-width: 768px) {
    .applications-hero {
        padding: 60px 0;
    }
    
    .applications-hero h1 {
        font-size: 2.5rem;
    }
    
    .applications-section,
    .features-section,
    .cta-section {
        padding: 60px 0;
    }
    
    .applications-grid,
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .card-image {
        height: 180px;
    }
}

@media (max-width: 480px) {
    .applications-hero h1 {
        font-size: 2rem;
    }
    
    .applications-hero p {
        font-size: 1rem;
    }
    
    .card-content {
        padding: 20px;
    }
    
    .card-content h3 {
        font-size: 1.5rem;
    }
    
    .cta-content h2 {
        font-size: 2rem;
    }
}