/* ====================================================
   Welcome Hero 云服务器动画 - 100%精确还原P1模板
   ==================================================== */

/* 英雄区域布局 */
.xyx-hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: var(--xyx-bg-gradient);
    overflow: hidden;
    padding: 0 0 80px;
}

/* 英雄区域装饰背景 */
.xyx-hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 30%, var(--xyx-accent-color-alpha) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(118, 75, 162, 0.08) 0%, transparent 50%);
    pointer-events: none;
}


.xyx-hero-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    width: 100%;
    position: relative;
    z-index: 10;
}

/* 左侧内容 */
.xyx-hero-content {
    flex: 0 0 50%;
    max-width: 600px;
}

.xyx-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 24px;
    background: var(--xyx-glass-bg);
    border-radius: 50px;
    color: var(--xyx-accent-color);
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 28px;
    backdrop-filter: blur(10px);
    border: 1px solid var(--xyx-glass-border);
}

.xyx-hero-title {
    font-size: 52px;
    font-weight: 800;
    color: var(--xyx-text-color);
    line-height: 1.15;
    margin-bottom: 24px;
    letter-spacing: -1px;
}

.xyx-hero-desc {
    font-size: 18px;
    color: var(--xyx-text-color-light);
    line-height: 1.8;
    margin-bottom: 36px;
}

.xyx-hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.xyx-hero-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 36px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.xyx-hero-btn-primary {
    background: var(--xyx-accent-color);
    color: #fff;
    box-shadow: 0 8px 30px var(--xyx-accent-color-alpha);
}

.xyx-hero-btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 40px var(--xyx-accent-color-alpha);
    background: var(--xyx-accent-color-hover);
    color: #fff;
}

.xyx-hero-btn-secondary {
    background: var(--xyx-glass-bg);
    color: var(--xyx-text-color);
    border: 2px solid var(--xyx-glass-border);
    backdrop-filter: blur(10px);
}

.xyx-hero-btn-secondary:hover {
    background: var(--xyx-glass-bg-hover);
    border-color: var(--xyx-accent-color);
    color: var(--xyx-accent-color);
}

.xyx-hero-features {
    display: flex;
    gap: 32px;
    flex-wrap: wrap;
}

.xyx-hero-feature {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--xyx-text-color-light);
    font-size: 15px;
    font-weight: 500;
}

.xyx-hero-feature i {
    font-size: 18px;
    color: var(--xyx-success-color);
}

/* ==============================================
   右侧云服务器动画 - 100%还原P1 Revolution Slider
   ============================================== */

.xyx-hero-animation {
    flex: 0 0 45%;
    position: relative;
    height: 550px;
    overflow: visible;
}

/* 服务器动画画布 */
.xyx-server-canvas {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 320px;
    height: 360px;
}

/* 服务器盒子 */
.xyx-box {
    position: absolute;
    opacity: 0;
    transform: translateY(-50px);
    will-change: transform, opacity;
}

.xyx-box.drop {
    animation: boxDrop 1s cubic-bezier(0.33, 1, 0.68, 1) forwards;
}

.xyx-box.swing-l {
    animation: boxDrop 1s cubic-bezier(0.33, 1, 0.68, 1) forwards, swingLeft 3.5s cubic-bezier(0.37, 0, 0.63, 1) 1s infinite;
}

.xyx-box.swing-r {
    animation: boxDrop 1s cubic-bezier(0.33, 1, 0.68, 1) forwards, swingRight 3.5s cubic-bezier(0.37, 0, 0.63, 1) 1s infinite;
}

.xyx-box img {
    width: 100%;
    height: auto;
    filter: drop-shadow(0 5px 15px rgba(0, 0, 0, 0.1));
}


/* 云朵 */
.xyx-cloud {
    position: absolute;
    opacity: 0;
    will-change: transform, opacity;
    pointer-events: none;
}

.xyx-cloud.slide {
    opacity: 1;
    animation: cloudFadeIn 1s cubic-bezier(0.33, 1, 0.68, 1) forwards;
}

.xyx-cloud img {
    width: 100%;
    height: auto;
    opacity: 0.85;
    pointer-events: none;
}


/* P1风格动画 - 平滑缓动 */
@keyframes boxDrop {
    0% {
        opacity: 0;
        transform: translateY(-50px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes swingLeft {
    0% { transform: translateX(-2px); }
    50% { transform: translateX(2px); }
    100% { transform: translateX(-2px); }
}

@keyframes swingRight {
    0% { transform: translateX(2px); }
    50% { transform: translateX(-2px); }
    100% { transform: translateX(2px); }
}

@keyframes cloudFadeIn {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

/* ==============================================
   鼠标悬停效果 - P1风格
   ============================================== */

/* 鼠标反向跟随由JS控制 */

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

@media (max-width: 1200px) {
    .xyx-hero-title {
        font-size: 44px;
    }
    .xyx-hero-animation {
        flex: 0 0 40%;
    }
    .xyx-server-canvas {
        transform: translateY(-50%) scale(0.85);
    }
}

@media (max-width: 992px) {
    .xyx-hero-container {
        flex-direction: column;
        text-align: center;
    }
    .xyx-hero-content {
        max-width: 100%;
        flex: 1;
    }
    .xyx-hero-title {
        font-size: 36px;
    }
    .xyx-hero-actions {
        justify-content: center;
    }
    .xyx-hero-features {
        justify-content: center;
    }
    .xyx-hero-animation {
        display: none;
    }
}

/* 头部样式优化 */
#header {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

