/* ====================================================
   Welcome Index 现代化样式
   ==================================================== */

/* ==============================================
   英雄区域样式
   ============================================== */

/* 主体内容区域间距调整 */
#main-body {
    background: var(--xyx-bg-color);
    transition: background 0.3s ease;
}

/* 修复显示割裂 - 确保平滑过渡 */
.xyx-hero-section + .xyx-features-modern {
    margin-top: 0;
    padding-top: 100px;
    background: var(--xyx-bg-color);
}

/* ==============================================
   现代化特性卡片
   ============================================== */

.xyx-features-modern {
    padding: 100px 0;
    background: var(--xyx-bg-color);
}

.xyx-section-header {
    text-align: center;
    margin-bottom: 80px;
}

.xyx-section-badge {
    display: inline-block;
    padding: 6px 18px;
    background: var(--xyx-glass-bg);
    border: 1px solid var(--xyx-glass-border);
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    color: var(--xyx-accent-color);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.xyx-section-title {
    font-size: 42px;
    font-weight: 800;
    margin-bottom: 20px;
    color: var(--xyx-text-color);
}

.xyx-section-desc {
    font-size: 18px;
    color: var(--xyx-text-color-light);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
}

.xyx-features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.xyx-feature-card {
    position: relative;
    background: var(--xyx-glass-bg);
    border: 1px solid var(--xyx-glass-border);
    border-radius: 20px;
    padding: 40px 30px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(var(--xyx-glass-blur));
    -webkit-backdrop-filter: blur(var(--xyx-glass-blur));
    box-shadow: var(--xyx-shadow-md);
    overflow: hidden;
    cursor: pointer;
}

.xyx-feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--xyx-accent-color, #0071e3) 0%, var(--xyx-accent-color-hover, #0077ed) 100%);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

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

.xyx-feature-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    border-color: var(--xyx-accent-color);
}

.xyx-feature-icon-wrapper {
    margin-bottom: 25px;
}

.xyx-feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 20px;
    font-size: 32px;
    color: var(--xyx-text-color-inverse, #ffffff);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.xyx-icon-performance {
    background: linear-gradient(135deg, var(--xyx-accent-color, #0071e3) 0%, var(--xyx-accent-color-hover, #0077ed) 100%);
}

.xyx-icon-security {
    background: linear-gradient(135deg, var(--xyx-danger-color, #ff3b30) 0%, var(--xyx-warning-color, #ff9500) 100%);
}

.xyx-icon-scale {
    background: linear-gradient(135deg, var(--xyx-info-color, #5ac8fa) 0%, var(--xyx-accent-color, #0071e3) 100%);
}

.xyx-icon-support {
    background: linear-gradient(135deg, var(--xyx-success-color, #34c759) 0%, var(--xyx-info-color, #5ac8fa) 100%);
}

.xyx-feature-card:hover .xyx-feature-icon {
    transform: scale(1.1) rotate(5deg);
}

.xyx-feature-title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--xyx-text-color);
}

.xyx-feature-text {
    font-size: 15px;
    line-height: 1.7;
    color: var(--xyx-text-color-light);
}

/* 悬浮覆盖层 */
.xyx-feature-hover-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 113, 227, 0.95) 0%, rgba(0, 113, 227, 0.95) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s ease;
    border-radius: 20px;
}

.xyx-feature-card:hover .xyx-feature-hover-overlay {
    opacity: 1;
}

.xyx-feature-stats {
    color: var(--xyx-text-color-inverse, #ffffff);
    text-align: center;
}

.xyx-feature-stat {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 5px;
    margin-bottom: 10px;
}

.xyx-feature-stat-value {
    font-size: 48px;
    font-weight: 800;
}

.xyx-feature-stat-unit {
    font-size: 24px;
    font-weight: 600;
}

.xyx-feature-stat-label {
    font-size: 16px;
    font-weight: 500;
    opacity: 0.9;
}

/* ==============================================
   服务卡片
   ============================================== */

.xyx-services-modern {
    padding: 100px 0;
    background: linear-gradient(180deg, 
        var(--xyx-bg-color) 0%, 
        rgba(108, 99, 255, 0.03) 100%);
}

.xyx-services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.xyx-service-card {
    background: var(--xyx-glass-bg);
    border: 1px solid var(--xyx-glass-border);
    border-radius: 20px;
    padding: 40px 30px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(var(--xyx-glass-blur));
    -webkit-backdrop-filter: blur(var(--xyx-glass-blur));
    box-shadow: var(--xyx-shadow-md);
    display: flex;
    flex-direction: column;
}

.xyx-service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    border-color: var(--xyx-accent-color);
}

.xyx-service-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--xyx-accent-color, #0071e3) 0%, var(--xyx-accent-color-hover, #0077ed) 100%);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: var(--xyx-text-color-inverse, #ffffff);
    margin-bottom: 25px;
    transition: all 0.4s ease;
}

.xyx-service-card:hover .xyx-service-icon {
    transform: scale(1.1) rotate(-5deg);
}

.xyx-service-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--xyx-text-color);
}

.xyx-service-desc {
    font-size: 15px;
    line-height: 1.7;
    color: var(--xyx-text-color-light);
    margin-bottom: 25px;
    flex-grow: 1;
}

.xyx-service-features {
    list-style: none;
    padding: 0;
    margin: 0 0 30px 0;
}

.xyx-service-features li {
    padding: 10px 0;
    font-size: 14px;
    color: var(--xyx-text-color);
    display: flex;
    align-items: center;
    gap: 10px;
}

.xyx-service-features li i {
    color: var(--xyx-accent-color);
    font-size: 12px;
}

.xyx-service-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: var(--xyx-glass-bg-light);
    border: 1px solid var(--xyx-glass-border);
    border-radius: 10px;
    color: var(--xyx-accent-color);
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    align-self: flex-start;
}

.xyx-service-link:hover {
    background: var(--xyx-accent-color);
    color: var(--xyx-text-color-inverse, #ffffff);
    transform: translateX(5px);
}

/* ==============================================
   CTA区域
   ============================================== */

.xyx-cta-modern {
    padding: 100px 0;
    background: linear-gradient(135deg, 
        rgba(0, 113, 227, 0.1) 0%, 
        rgba(0, 113, 227, 0.1) 100%);
    position: relative;
    overflow: hidden;
}

.xyx-cta-modern::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(0, 113, 227, 0.2) 0%, transparent 70%);
    border-radius: 50%;
}

.xyx-cta-modern::after {
    content: '';
    position: absolute;
    bottom: -50%;
    left: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(0, 113, 227, 0.2) 0%, transparent 70%);
    border-radius: 50%;
}

.xyx-cta-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.xyx-cta-title {
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 20px;
    color: var(--xyx-text-color);
}

.xyx-cta-desc {
    font-size: 20px;
    line-height: 1.6;
    color: var(--xyx-text-color-light);
    margin-bottom: 40px;
}

.xyx-cta-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ==============================================
   响应式设计
   ============================================== */

@media (max-width: 1024px) {
    .xyx-hero-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .xyx-hero-visual {
        height: 400px;
    }
    
    .xyx-hero-heading {
        font-size: 42px;
    }
    
    .xyx-section-title {
        font-size: 36px;
    }
    
    .xyx-cta-title {
        font-size: 36px;
    }
}

@media (max-width: 768px) {
    .xyx-hero-modern {
        padding: 80px 0 60px;
        min-height: auto;
    }
    
    .xyx-hero-heading {
        font-size: 32px;
    }
    
    .xyx-hero-description {
        font-size: 16px;
    }
    
    .xyx-hero-stats {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .xyx-section-title {
        font-size: 28px;
    }
    
    .xyx-section-desc {
        font-size: 16px;
    }
    
    .xyx-features-grid,
    .xyx-services-grid {
        grid-template-columns: 1fr;
    }
    
    .xyx-cta-title {
        font-size: 28px;
    }
    
    .xyx-cta-desc {
        font-size: 16px;
    }
    
    .xyx-cta-actions {
        flex-direction: column;
        align-items: stretch;
    }
    
    .xyx-cta-actions .button {
        width: 100%;
        justify-content: center;
    }
}

/* ==============================================
   动画关键帧
   ============================================== */

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}
