/* 全局样式 */
:root {
    --primary-color: #ff4d4f;
    --secondary-color: #1890ff;
    --text-primary: #333;
    --text-secondary: #666;
    --background-light: #f5f5f5;
    --background-white: #fff;
    --border-color: #e8e8e8;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif;
    background-color: #1e1e1e;
    color: #ffffff;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 导航栏 */
.navbar {
    background-color: #1a1a1a;
    padding: 15px 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.logo a {
    font-size: 28px;
    font-weight: bold;
    color: #fff;
    text-decoration: none;
    text-shadow: 0 0 10px rgba(255, 77, 79, 0.5);
}

.nav-links {
    display: flex;
    gap: 10px;
}

.nav-links a {
    color: #fff;
    text-decoration: none;
    font-size: 16px;
    transition: all 0.3s;
    padding: 8px 15px;
    border-radius: 20px;
}

.nav-links a:hover,
.nav-links a.active {
    color: #fff;
}

.start-live-btn {
    background: linear-gradient(135deg, #ff4d4f, #ff7875);
    color: #fff !important;
    padding: 8px 20px;
    border-radius: 20px;
    transition: all 0.3s;
    box-shadow: 0 2px 8px rgba(255, 77, 79, 0.3);
}

.start-live-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 77, 79, 0.4);
}

.user-actions {
    display: flex;
    gap: 15px;
}

.login-btn,
.register-btn {
    padding: 8px 20px;
    border-radius: 20px;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s;
}

.login-btn {
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.register-btn {
    background: linear-gradient(135deg, #1890ff, #40a9ff);
    color: #fff;
    box-shadow: 0 2px 8px rgba(24, 144, 255, 0.3);
}

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

.register-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(24, 144, 255, 0.4);
}

/* 主要内容区 */
.main-content {
    background-color: #1e1e1e;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.section-title {
    font-size: 28px;
    color: white;
    margin-bottom: 30px;
    text-align: center;
}

/* 轮播图样式 */
.banner {
    margin-top: 100px;
    width: 1900px;
    margin: 0 auto;
}

.banner-slider {
    width: 100%;
    height: 400px;
    overflow: hidden;
    position: relative;
    margin-top: 100px;
}

.slide {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.slide.active {
    opacity: 1;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
}

.slide-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    color: white;
    border-radius: 10px;
}

.slide-content h2 {
    font-size: 32px;
    margin-bottom: 10px;
}

.slide-content p {
    font-size: 18px;
    opacity: 0.9;
}

.slider-controls {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
    z-index: 10;
}

.prev-btn,
.next-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s;
}

.prev-btn:hover,
.next-btn:hover {
    background: rgba(0, 0, 0, 0.8);
}

.slider-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: background-color 0.3s;
}

.dot.active {
    background: white;
}

/* 直播卡片样式 */
.live-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.live-card {
    background-color: #2a2a2a;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}

.live-card:hover {
    transform: translateY(-5px);
}

.live-preview {
    position: relative;
    padding-top: 85.25%; /* 16:9 比例 */
}

.live-preview img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.viewer-count {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: rgba(0, 0, 0, 0.6);
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
}

.live-info {
    padding: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.avatar {
    width: 50px;
    height: 50px;
    overflow: hidden;
}

.avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50px;
}

.info h3 {
    font-size: 16px;
    margin-bottom: 5px;
}

.info p {
    font-size: 14px;
    color: var(--text-secondary);
}

/* 分类导航样式 */
.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.category-item {
    background-color: rgba(255, 255, 255, 0.05);
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    text-decoration: none;
    color: white;
    transition: all 0.3s;
}

.category-item:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-3px);
}

.category-item i {
    font-size: 24px;
    margin-bottom: 10px;
    display: block;
}

/* 页脚 */
.footer {
    background-color: #1a1a1a;
    color: #ffffff;
    padding: 40px 0;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
    justify-items: end;
}

.footer-section h3 {
    font-size: 18px;
    color: white;
    margin-bottom: 20px;
}

.footer-section p {
    color: #d8d8d8;
    margin-bottom: 10px;
}

.social-links {
    display: flex;
    gap: 20px;
}

.social-links a {
    color: #d8d8d8;
    font-size: 20px;
    transition: color 0.3s;
}

.social-links a:hover {
    color: var(--primary-color);
}

.copyright {
    text-align: center;
    color: #d8d8d8;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .navbar .container {
        flex-direction: column;
        height: auto;
        padding: 15px;
    }

    .nav-links {
        margin: 15px 0;
        flex-wrap: wrap;
        justify-content: center;
    }

    .user-actions {
        margin-top: 15px;
    }

    .main-content {
        margin-top: 120px;
    }

    .banner-slider {
        height: 300px;
    }
    
    .live-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
} 