/* ===== 主页专用样式 ===== */

/* 主页容器基础样式 */
.index-page {
    font-family: 'Noto Sans SC', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #1a1a1a;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ===== 英雄区域样式 ===== */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
}

/* 视频背景 */
.hero-video-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    opacity: 0.8;
}

/* 视频遮罩层 */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        135deg,
        rgba(220, 20, 60, 0.3) 0%,
        rgba(0, 0, 0, 0.5) 50%,
        rgba(220, 20, 60, 0.2) 100%
    );
    z-index: 2;
}

/* 英雄内容 */
.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    color: white;
    max-width: 800px;
    padding: 2rem;
}

.hero-text h1 {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
    animation: fadeInUp 1s ease-out;
}

.hero-text p {
    font-size: 1.5rem;
    margin-bottom: 3rem;
    opacity: 0.95;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
    animation: fadeInUp 1s ease-out 0.3s both;
}

/* 英雄按钮 */
.hero-buttons {
    display: flex;
    gap: 2rem;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 1s ease-out 0.6s both;
}

/* 首页按钮使用全局样式 */

/* 视频错误提示 */
.video-error-message {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    z-index: 100;
    max-width: 400px;
    width: 90%;
}

.video-error-message h3 {
    margin-bottom: 1rem;
    color: #DC143C;
}

.video-error-message p {
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

/* 错误刷新按钮使用全局样式 */

/* 音效提示 */
.sound-tip {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    font-size: 0.9rem;
    z-index: 1000;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
    pointer-events: none;
}

/* 首页特定：确保认证模态框在最高层级 */
.index-page .auth-modal {
    z-index: 10000 !important;
}

.sound-tip.show {
    opacity: 1;
    transform: translateY(0);
}

.sound-tip.hide {
    opacity: 0;
    transform: translateY(20px);
}

/* 动画定义 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 响应式设计 */
@media (max-width: 768px) {
    .hero-text h1 {
        font-size: 2.5rem;
    }
    
    .hero-text p {
        font-size: 1.2rem;
        margin-bottom: 2rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    /* 响应式按钮样式使用全局定义 */
    
    .hero-content {
        padding: 1rem;
    }
}

@media (max-width: 480px) {
    .hero-text h1 {
        font-size: 2rem;
    }
    
    .hero-text p {
        font-size: 1rem;
    }
    
    .hero-content {
        padding: 1rem 0.5rem;
    }
} 