/* 
 * 首页微调优化 - 在现有基础上的增强效果
 * 保持整体结构不变，仅添加细节优化
 */

/* ==================== Hero区域微调 ==================== */

/* 1. 添加微妙的呼吸动画给架构图 */
@keyframes breathe {
    0%, 100% {
        transform: scale(1);
        filter: brightness(1);
    }
    50% {
        transform: scale(1.02);
        filter: brightness(1.05);
    }
}

.architecture-diagram {
    animation: breathe 4s ease-in-out infinite;
}

/* 2. 优化按钮悬停效果 - 添加光晕效果 */
.btn-primary::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(0, 166, 251, 0.3) 0%, transparent 70%);
    border-radius: inherit;
    transform: translate(-50%, -50%) scale(0);
    opacity: 0;
    transition: all 0.5s ease;
    pointer-events: none;
    z-index: -1;
}

.btn-primary:hover::after {
    transform: translate(-50%, -50%) scale(1.5);
    opacity: 1;
}

/* 3. 增强Hero特性项的互动性 */
.hero-features .feature-item {
    position: relative;
    transition: all 0.3s ease;
}

.hero-features .feature-item::before {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-blue), var(--secondary-blue));
    transition: width 0.3s ease;
}

.hero-features .feature-item:hover::before {
    width: 100%;
}

.hero-features .feature-item:hover .feature-icon {
    transform: translateY(-3px) rotate(5deg);
}

/* 4. 添加更丰富的背景纹理 */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 40%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 50%, rgba(0, 166, 251, 0.02) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(51, 184, 252, 0.02) 0%, transparent 50%);
    pointer-events: none;
}

/* 5. 优化标题动画入场效果 */
@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.hero-title {
    animation: slideInLeft 0.8s ease-out;
}

/* 6. 数字强调样式 - 为特性项中的数字添加强调效果 */
.feature-text strong {
    font-size: 1.1em;
    color: var(--primary-blue);
    font-weight: 700;
}

.feature-text span {
    color: #333;
    font-weight: 600;
    font-size: 0.95em;
}

/* 7. 数字滚动动画 - 为数字添加动态效果 */
@keyframes countUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 数字特殊强调样式 */
.feature-text span {
    position: relative;
    display: inline-block;
    animation: countUp 1s ease-out 0.5s both;
}

/* 为包含数字的span添加特殊效果 */
.feature-text span:hover {
    transform: scale(1.1);
    transition: transform 0.3s ease;
}

/* 8. 问题标题特殊样式 - 突出痛点问题 */
.hero-title {
    position: relative;
}

/* 为问题文本添加红色强调 */
.problem-text {
    color: #e74c3c;
    font-weight: 700;
}

/* 解决方案部分保持蓝色渐变 */
.gradient-text {
    background: linear-gradient(135deg, #00a6fb, #0084d4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* 描述文案的highlight效果 */
.highlight-text {
    color: #333;
    font-weight: 500;
    position: relative;
    padding-left: 20px;
}

.highlight-text::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 12px;
    height: 2px;
    background: linear-gradient(90deg, #00a6fb, #33b8fc);
    border-radius: 1px;
    transform: translateY(-50%);
}

/* 特性图标差异化动画 */
.roi-icon {
    background: linear-gradient(135deg, rgba(0,166,251,0.1), rgba(0,166,251,0.05));
    animation: pulse-roi 3s ease-in-out infinite;
}

.efficiency-icon {
    background: linear-gradient(135deg, rgba(51,184,252,0.1), rgba(51,184,252,0.05));  
    animation: pulse-efficiency 3s ease-in-out infinite 1s;
}

.compliance-icon {
    background: linear-gradient(135deg, rgba(231,76,60,0.1), rgba(231,76,60,0.05));
    animation: pulse-compliance 3s ease-in-out infinite 2s;
}

@keyframes pulse-roi {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.05); opacity: 0.9; }
}

@keyframes pulse-efficiency {
    0%, 100% { transform: scale(1) rotate(0deg); opacity: 1; }
    50% { transform: scale(1.05) rotate(2deg); opacity: 0.9; }
}

@keyframes pulse-compliance {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.1); opacity: 0.8; }
}

/* 特性项整体悬停效果增强 */
.hero-features .feature-item:hover {
    transform: translateY(-5px) scale(1.02);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 数字强调效果增强 */
.feature-text span {
    background: linear-gradient(135deg, #00a6fb, #0084d4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
    font-size: 1.1em;
}

/* 架构图连接线动画效果 */
.architecture-diagram::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, transparent 30%, rgba(0,166,251,0.02) 40%, transparent 60%);
    transform: translate(-50%, -50%);
    animation: rotate 20s linear infinite;
    pointer-events: none;
    z-index: -1;
}

@keyframes rotate {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

/* CTA按钮终极优化 */
.cta-primary {
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 166, 251, 0.3);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.cta-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.6s ease;
}

.cta-primary:hover::before {
    left: 100%;
}

.cta-primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 12px 40px rgba(0, 166, 251, 0.4);
}

.cta-icon {
    display: inline-block;
    margin-right: 8px;
    animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-3px); }
    60% { transform: translateY(-2px); }
}

/* 微交互增强 - 整体Hero区域 */
.hero-content {
    animation: fadeInUp 1s ease-out;
}

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

.hero-description {
    animation: slideInLeft 0.8s ease-out 0.2s both;
}

.hero-features {
    animation: slideInLeft 0.8s ease-out 0.4s both;
}

.hero-actions {
    animation: slideInLeft 0.8s ease-out 0.6s both;
}

/* ==================== 数字统计区域优化 ==================== */

/* 6. 添加数字滚动效果的视觉提示 */
.stat-number {
    position: relative;
    display: inline-block;
}

.stat-number::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--primary-blue), transparent);
    opacity: 0;
    animation: numberHighlight 2s ease-in-out infinite;
}

@keyframes numberHighlight {
    0%, 100% { opacity: 0; width: 30px; }
    50% { opacity: 1; width: 50px; }
}

/* 7. 优化统计卡片悬停效果 */
.stats-grid .stat-card {
    position: relative;
    overflow: hidden;
}

.stats-grid .stat-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent,
        rgba(0, 166, 251, 0.05),
        transparent
    );
    transform: rotate(45deg);
    transition: all 0.6s;
    opacity: 0;
}

.stats-grid .stat-card:hover::before {
    animation: shimmer 0.6s ease;
}

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

/* ==================== 产品卡片优化 ==================== */

/* 8. 增强产品卡片的3D效果 */
.product-card {
    transform-style: preserve-3d;
    transition: transform 0.3s ease;
}

.product-card:hover {
    transform: translateY(-10px) rotateX(-5deg);
}

.product-card .card-icon {
    transition: all 0.3s ease;
}

.product-card:hover .card-icon {
    transform: translateZ(20px) scale(1.1);
    filter: drop-shadow(0 10px 20px rgba(0, 166, 251, 0.3));
}

/* 9. 优化标签样式 */
.product-card .tag {
    position: relative;
    overflow: hidden;
}

.product-card .tag::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.product-card:hover .tag::after {
    left: 100%;
}

/* ==================== 解决方案区域优化 ==================== */

/* 10. 添加卡片层次感 */
.solution-card {
    position: relative;
}

.solution-card::before,
.solution-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: inherit;
    opacity: 0;
    transition: all 0.3s ease;
    pointer-events: none;
}

.solution-card::before {
    background: linear-gradient(135deg, rgba(0, 166, 251, 0.1), transparent);
    transform: scale(0.95);
}

.solution-card::after {
    box-shadow: 0 20px 40px rgba(0, 166, 251, 0.15);
    transform: scale(0.98);
}

.solution-card:hover::before,
.solution-card:hover::after {
    opacity: 1;
    transform: scale(1);
}

/* ==================== 客户Logo墙优化 ==================== */

/* 11. 优化Logo滚动效果 */
.logo-track {
    display: flex;
    animation: scrollLogos 30s linear infinite;
    will-change: transform;
}

.logo-track:hover {
    animation-play-state: paused;
}

.logo-item {
    transition: all 0.3s ease;
    filter: grayscale(100%) opacity(0.6);
}

.logo-item:hover {
    filter: grayscale(0%) opacity(1);
    transform: scale(1.1);
}

/* 12. 添加渐变遮罩优化边缘 */
.logo-scroll::before,
.logo-scroll::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 100px;
    pointer-events: none;
    z-index: 2;
}

.logo-scroll::before {
    left: 0;
    background: linear-gradient(90deg, white, transparent);
}

.logo-scroll::after {
    right: 0;
    background: linear-gradient(90deg, transparent, white);
}

/* ==================== CTA区域优化 ==================== */

/* 13. 增强CTA背景效果 */
.cta-section {
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(
        circle,
        rgba(0, 166, 251, 0.1) 0%,
        transparent 30%,
        transparent 60%,
        rgba(51, 184, 252, 0.05) 100%
    );
    animation: ctaRotate 20s linear infinite;
}

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

/* 14. 优化CTA按钮组 */
.cta-buttons {
    position: relative;
    z-index: 1;
}

.cta-buttons .btn {
    position: relative;
    overflow: hidden;
}

.cta-buttons .btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.cta-buttons .btn:hover::before {
    width: 300px;
    height: 300px;
}

/* ==================== 全局优化 ==================== */

/* 15. 添加平滑滚动提示 */
@keyframes scrollHint {
    0%, 100% { transform: translateY(0); opacity: 0.6; }
    50% { transform: translateY(10px); opacity: 1; }
}

.scroll-hint {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    animation: scrollHint 2s ease-in-out infinite;
    cursor: pointer;
}

.scroll-hint svg {
    width: 24px;
    height: 24px;
    color: var(--primary-blue);
}

.scroll-hint span {
    font-size: 12px;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* ==================== 响应式优化 ==================== */

@media (max-width: 768px) {
    /* 移动端优化 */
    .hero-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .architecture-diagram {
        transform: scale(0.8);
        margin: 0 auto;
    }
    
    .hero-title {
        font-size: 32px;
    }
    
    .hero-description {
        font-size: 16px;
    }
}

/* ==================== 性能优化 ==================== */

/* 使用 will-change 优化动画性能 */
.btn,
.product-card,
.solution-card,
.stat-card {
    will-change: transform;
}

/* 动画结束后移除 will-change */
.btn:not(:hover),
.product-card:not(:hover),
.solution-card:not(:hover),
.stat-card:not(:hover) {
    will-change: auto;
}

/* ==================== 深色模式支持（可选） ==================== */

@media (prefers-color-scheme: dark) {
    /* 可以添加深色模式样式 */
}