/* 现代化设计全局变量 */
:root {
    --primary-color: #4a6bff;
    --secondary-color: #3851e0;
    --accent-color: #ff6b6b;
    --text-color: #333333;
    --text-light: #666666;
    --background: #ffffff;
    --background-light: #f5f7fa;
    --card-shadow: 0 8px 16px rgba(0, 0, 0, 0.08);
    --hover-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
    --border-radius: 12px;
    --transition-speed: 0.3s;
}

body {
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, Roboto, Oxygen, Ubuntu, sans-serif;
    color: var(--text-color);
    background-color: var(--background-light);
    line-height: 1.6;
}

/* 通用按钮样式 */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 600;
    transition: all var(--transition-speed);
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
    box-shadow: 0 4px 12px rgba(74, 107, 255, 0.3);
}

.btn-primary:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(74, 107, 255, 0.4);
}

.btn-outline {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-outline:hover {
    background: rgba(74, 107, 255, 0.1);
    transform: translateY(-2px);
}

.btn-download {
    background: var(--accent-color);
    color: white;
    box-shadow: 0 4px 12px rgba(255, 107, 107, 0.3);
}

.btn-download:hover {
    background: #e55c5c;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(255, 107, 107, 0.4);
}

/* 英雄区域样式 */
.hero-banner {
    background: linear-gradient(135deg, #4a6bff 0%, #9c6bff 100%);
    color: white;
    padding: 100px 0;
    position: relative;
    margin-bottom: 60px;
}

.hero-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 300px;
}

.hero-content {
    max-width: 600px;
    text-align: center;
    padding: 30px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: var(--border-radius);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    line-height: 1.2;
    font-weight: 700;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

/* 热门直播流样式 */
.trending-streams {
    padding: 60px 0;
    background-color: var(--background);
}

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

.section-header h2 {
    font-size: 2.2rem;
    color: var(--text-color);
    position: relative;
    display: inline-block;
    padding-bottom: 10px;
}

.section-header h2:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 3px;
}

.stream-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-bottom: 40px;
}

.stream-card {
    background: var(--background);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--card-shadow);
    transition: transform var(--transition-speed), box-shadow var(--transition-speed);
}

.stream-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--hover-shadow);
}

.stream-thumbnail {
    position: relative;
    padding-top: 56.25%; /* 16:9 宽高比 */
    overflow: hidden;
}

.stream-thumbnail img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.stream-card:hover .stream-thumbnail img {
    transform: scale(1.05);
}

.stream-status {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--accent-color);
    color: white;
    padding: 6px 12px;
    border-radius: 30px;
    font-size: 0.8rem;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(255, 107, 107, 0.3);
}

.viewer-count {
    position: absolute;
    bottom: 12px;
    right: 12px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 6px 12px;
    border-radius: 30px;
    font-size: 0.8rem;
    backdrop-filter: blur(4px);
}

.stream-info {
    padding: 16px;
}

.streamer-profile {
    display: flex;
    align-items: center;
}

.streamer-profile .avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--primary-color);
}

.streamer-name {
    margin-left: 10px;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-color);
}

.section-footer {
    text-align: center;
    margin-top: 20px;
}

/* 下载APP区域 */
.app-download {
    padding: 80px 0;
    background: linear-gradient(135deg, #4a6bff 0%, #6b4aff 100%);
    color: white;
    position: relative;
    overflow: hidden;
}

.app-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 1;
}

.app-info {
    max-width: 600px;
    text-align: center;
    padding: 40px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: var(--border-radius);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.app-info h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    font-weight: 700;
}

.app-info p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

.download-options {
    display: flex;
    justify-content: center;
}

/* 响应式调整 */
@media (max-width: 992px) {
    .stream-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .hero-banner {
        padding: 80px 0;
    }
    
    .hero-content h1 {
        font-size: 2.2rem;
    }
    
    .stream-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .section-header h2 {
        font-size: 1.8rem;
    }
}

@media (max-width: 576px) {
    .hero-banner {
        padding: 60px 0;
    }
    
    .hero-content h1 {
        font-size: 1.8rem;
    }
    
    .hero-content p {
        font-size: 1rem;
    }
    
    .stream-grid {
        grid-template-columns: 1fr;
    }
    
    .app-info h2 {
        font-size: 2rem;
    }
} 