/* alex-video-scroll.css - 移动端优化版 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Microsoft YaHei', Arial, sans-serif;
}

body {
    overflow-x: hidden;
}

.alex-video-section {
    width: 100%;
    position: relative;
}

.alex-video-container {
    width: 100%;
    height: 100vh;
    position: relative;
    overflow: hidden;
}

.alex-video-item {
    width: 100%;
    height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.alex-video-player {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.alex-video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
}

.alex-video-content {
    text-align: center;
    color: white;
    max-width: 800px;
    padding: 0 20px;
    z-index: 2;
}

.alex-video-title {
    font-size: 3.5rem;
    font-weight: bold;
    margin-bottom: 20px;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
}

.alex-video-description {
    font-size: 1.2rem;
    line-height: 1.6;
    margin-bottom: 30px;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.5);
}

.alex-video-button {
    display: inline-block;
    padding: 12px 30px;
    background: #dededec7;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: bold;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.alex-video-button:hover {
    background: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.alex-progress-indicator {
    position: fixed;
    right: 30px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 100;
}

.alex-progress-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.alex-progress-dot.active {
    background: white;
    transform: scale(1.2);
}

.alex-progress-dot::after {
    content: attr(data-title);
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.alex-progress-dot:hover::after {
    opacity: 1;
}

.alex-scroll-hint {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-size: 14px;
    text-align: center;
    z-index: 100;
    background: rgba(0, 0, 0, 0.5);
    padding: 10px 20px;
    border-radius: 20px;
    animation: bounce 2s infinite;
}

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

/* ==================== */
/* 移动端响应式优化 */
/* ==================== */

/* 平板设备 (768px 及以下) */
@media (max-width: 768px) {
    .alex-video-container {
        height: auto;
        min-height: 100vh;
        aspect-ratio: 16/9;
    }
    
    .alex-video-item {
        height: auto;
        min-height: 100vh;
        aspect-ratio: 16/9;
    }
    
    .alex-video-player {
        object-fit: contain;
        background: #000;
    }
    
    .alex-video-content {
        max-width: 90%;
        padding: 0 15px;
    }
    
    .alex-video-title {
        font-size: 2.2rem;
        margin-bottom: 15px;
        line-height: 1.2;
    }
    
    .alex-video-description {
        font-size: 1rem;
        margin-bottom: 20px;
        line-height: 1.4;
    }
    
    .alex-video-button {
        padding: 10px 25px;
        font-size: 0.9rem;
    }
    
    .alex-progress-indicator {
        right: 15px;
        gap: 12px;
    }
    
    .alex-progress-dot {
        width: 10px;
        height: 10px;
    }
    
    .alex-scroll-hint {
        font-size: 12px;
        padding: 8px 16px;
        bottom: 20px;
    }
}

/* 手机设备 (480px 及以下) */
@media (max-width: 480px) {
    .alex-video-container {
        aspect-ratio: 9/16;
        min-height: 100vh;
    }
    
    .alex-video-item {
        aspect-ratio: 9/16;
        min-height: 100vh;
    }
    
    .alex-video-player {
        object-fit: contain;
    }
    
    .alex-video-content {
        max-width: 95%;
        padding: 0 10px;
    }
    
    .alex-video-title {
        font-size: 1.8rem;
        margin-bottom: 12px;
        line-height: 1.1;
    }
    
    .alex-video-description {
        font-size: 0.85rem;
        margin-bottom: 18px;
        line-height: 1.3;
    }
    
    .alex-video-button {
        padding: 8px 20px;
        font-size: 0.8rem;
    }
    
    .alex-progress-indicator {
        right: 10px;
        gap: 10px;
    }
    
    .alex-progress-dot {
        width: 8px;
        height: 8px;
    }
    
    .alex-progress-dot::after {
        font-size: 10px;
        padding: 4px 8px;
        right: 15px;
    }
    
    .alex-scroll-hint {
        font-size: 11px;
        padding: 6px 12px;
        bottom: 15px;
    }
}

/* 超小屏幕手机 (360px 及以下) */
@media (max-width: 360px) {
    .alex-video-title {
        font-size: 1.5rem;
        margin-bottom: 10px;
    }
    
    .alex-video-description {
        font-size: 0.75rem;
        margin-bottom: 15px;
    }
    
    .alex-video-button {
        padding: 7px 18px;
        font-size: 0.75rem;
    }
    
    .alex-progress-indicator {
        right: 8px;
    }
    
    .alex-progress-dot {
        width: 7px;
        height: 7px;
    }
    
    .alex-scroll-hint {
        font-size: 10px;
        padding: 5px 10px;
    }
}

/* 横屏模式优化 */
@media (max-height: 500px) and (orientation: landscape) {
    .alex-video-container {
        aspect-ratio: 16/9;
    }
    
    .alex-video-item {
        aspect-ratio: 16/9;
    }
    
    .alex-video-content {
        max-width: 80%;
    }
    
    .alex-video-title {
        font-size: 1.8rem;
        margin-bottom: 10px;
    }
    
    .alex-video-description {
        font-size: 0.9rem;
        margin-bottom: 15px;
    }
    
    .alex-video-button {
        padding: 8px 20px;
        font-size: 0.8rem;
    }
}

/* 超大屏幕优化 */
@media (min-width: 1440px) {
    .alex-video-content {
        max-width: 1000px;
    }
    
    .alex-video-title {
        font-size: 4rem;
    }
    
    .alex-video-description {
        font-size: 1.4rem;
    }
    
    .alex-video-button {
        padding: 15px 35px;
        font-size: 1.1rem;
    }
}