/* XR产品页面样式 - GitHub 风格 */

/* 整体背景 - GitHub 深色主题 */
body {
    background: linear-gradient(180deg, #0d1117 0%, #010409 50%, #0d1117 100%);
    background-attachment: fixed;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

/* 背景光晕效果 */
body::before {
    content: '';
    position: fixed;
    top: -50%;
    left: 50%;
    transform: translateX(-50%);
    width: 120%;
    height: 120%;
    background: radial-gradient(circle at center, rgba(139, 92, 246, 0.15) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
    animation: pulseGlow 8s ease-in-out infinite;
}

/* 第二层光晕 */
body::after {
    content: '';
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 30% 50%, rgba(59, 130, 246, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 70% 50%, rgba(168, 85, 247, 0.1) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

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

body > * {
    position: relative;
    z-index: 1;
}

/* 视频展示区域 */
.video-showcase {
    background: transparent;
    padding: 5rem 0 4rem;
    position: relative;
    margin-top: 66px;
}

.video-showcase .container {
    max-width: 1400px;
}

.showcase-header {
    text-align: center;
    margin-bottom: 4rem;
}

.showcase-header .section-title {
    background: linear-gradient(135deg, #ffffff 0%, rgba(139, 92, 246, 1) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.showcase-subtitle {
    color: rgba(139, 92, 246, 1);
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 2px;
    margin-top: -1.5rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
    text-shadow: 0 0 8px rgba(139, 92, 246, 0.3);
}

.showcase-description {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.85);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.8;
}

.video-grid {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    margin-top: 3rem;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.video-item {
    background: rgba(22, 27, 34, 0.8);
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    isolation: isolate;
}

.video-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 16px 48px rgba(139, 92, 246, 0.3), 
                0 0 24px rgba(59, 130, 246, 0.2);
    border-color: rgba(139, 92, 246, 0.5);
    z-index: 10;
}

.video-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 60%; /* 增加高度以容纳控制条 */
    background: #000;
    overflow: hidden;
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.video-info {
    padding: 1.5rem 1.8rem;
    background: transparent;
}

.video-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 0.8rem;
    line-height: 1.4;
}

.video-description {
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 1rem;
}

/* 标签和链接包装器 - 左右布局 */
.tags-and-link-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.video-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
    align-items: center;
}

.tag {
    display: inline-block;
    padding: 0.35rem 0.9rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-size: 0.75rem;
    border-radius: 18px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.video-item:nth-child(2) .tag {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.video-item:nth-child(3) .tag {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.tag:hover {
    transform: scale(1.05);
}

/* Steam链接容器 */
.steam-link-container {
    flex-shrink: 0;
}

/* Steam链接按钮样式 - 绿色版本，与标签同高 */
.steam-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 1rem;
    background: linear-gradient(135deg, #7cbd1e 0%, #5fa517 100%);
    color: #ffffff;
    text-decoration: none;
    border-radius: 18px;
    font-size: 0.75rem;
    font-weight: 600;
    border: 1px solid rgba(124, 189, 30, 0.5);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 16px rgba(124, 189, 30, 0.3);
    position: relative;
    overflow: hidden;
}

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

.steam-link:hover::before {
    left: 100%;
}

.steam-link:hover {
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 8px 24px rgba(124, 189, 30, 0.5),
                0 0 16px rgba(95, 165, 23, 0.4);
    border-color: rgba(124, 189, 30, 0.8);
}

.steam-link:active {
    transform: translateY(0) scale(0.98);
}

.steam-link svg {
    flex-shrink: 0;
    transition: transform 0.3s ease;
    width: 14px;
    height: 14px;
}

.steam-link:hover svg {
    transform: translateX(3px) translateY(-3px);
}

/* 响应式设计 */
@media (max-width: 1400px) {
    .video-showcase .container {
        max-width: 1200px;
    }

    .video-grid {
        gap: 3rem;
    }
}

@media (max-width: 1200px) {
    .video-showcase .container {
        max-width: 100%;
    }

    .video-grid {
        gap: 2.5rem;
        max-width: 800px;
    }
}

@media (max-width: 768px) {
    .video-showcase {
        padding: 5rem 0 3rem;
        margin-top: 0;
    }

    .showcase-header {
        margin-bottom: 2.5rem;
    }

    .showcase-description {
        font-size: 1rem;
        padding: 0 1rem;
    }

    .video-grid {
        gap: 2rem;
        max-width: 100%;
    }

    .video-wrapper {
        padding-bottom: 60%;
    }

    .video-info {
        padding: 1.2rem 1.5rem;
    }

    .video-title {
        font-size: 1.15rem;
    }

    .video-description {
        font-size: 0.9rem;
    }
    
    .tags-and-link-wrapper {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .steam-link-container {
        width: 100%;
    }
    
    .steam-link {
        font-size: 0.75rem;
        padding: 0.35rem 1rem;
        width: 100%;
        justify-content: center;
    }
    
    .steam-link svg {
        width: 14px;
        height: 14px;
    }
}

@media (max-width: 480px) {
    .video-showcase {
        padding: 4rem 0 2rem;
        margin-top: 0;
    }

    .video-grid {
        gap: 2rem;
    }

    .video-wrapper {
        padding-bottom: 62%;
    }

    .video-info {
        padding: 1rem 1.2rem;
    }

    .video-title {
        font-size: 1.05rem;
    }

    .tag {
        font-size: 0.7rem;
        padding: 0.3rem 0.75rem;
    }
    
    .tags-and-link-wrapper {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .video-tags {
        gap: 0.5rem;
    }
    
    .steam-link-container {
        width: 100%;
    }
    
    .steam-link {
        font-size: 0.7rem;
        padding: 0.3rem 0.85rem;
        gap: 0.4rem;
        width: 100%;
        justify-content: center;
    }
    
    .steam-link svg {
        width: 12px;
        height: 12px;
    }
}

.cta-section {
    text-align: center;
    padding: 5rem 2rem;
    margin-top: 4rem;
    background: linear-gradient(180deg, rgba(139, 92, 246, 0.03) 0%, rgba(59, 130, 246, 0.03) 100%);
    position: relative;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(139, 92, 246, 0.5), transparent);
}

.cta-section h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #ffffff 0%, rgba(139, 92, 246, 1) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.cta-section p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.85);
}

@media (max-width: 768px) {
    .cta-section {
        padding: 4rem 2rem;
    }
    
    .cta-section h2 {
        font-size: 2rem;
    }
}


