﻿
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Microsoft Yahei", Arial, sans-serif;
}

body {
    background-color: #f5f5f5;
    color: #333;
}

a{
    text-decoration: none;
}

/* 布局容器 */
.container {
    display: flex;
    width: 100%;

}

/* 侧边栏样式 */
.sidebar {
    width: 300px;
    background-color: #fff;
    height: 100vh;
    padding: 20px 0;
    position: sticky;
    top: 0;
    box-shadow: 2px 0 5px rgba(0,0,0,0.05);
}

.logo {

    margin-bottom: 30px;
}

.logo img {
    width: 310px;
    vertical-align: middle;
}

.logo span {
    font-size: 18px;
    font-weight: bold;
    color: #e53935;
    margin-left: 8px;
}

.nav-list {
    list-style: none;
}

.nav-item {
    margin: 8px 0;
}

.nav-item a {
    display: block;
    padding: 12px 20px;
    color: #666;
    text-decoration: none;
    font-size: 14px;
    transition: all ease-in-out 0.2s;
}

.nav-item a:hover, .nav-item a.active {
    background-color: #f0f0f0;
    color: #e53935;
    border-left: 3px solid #e53935;

    transition: all ease-in-out 0.3s;
}

.nav-item a i {
    margin-right: 10px;
    font-size: 16px;
}

.badge {
    display: inline-block;
    background-color: #e53935;
    color: #fff;
    font-size: 12px;
    padding: 1px 6px;
    border-radius: 8px;
    margin-left: 8px;
}

/* 主内容区样式 */
.main-content {
    flex: 1;
    padding: 20px;
}

/* 顶部搜索栏 */
.header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;

    padding: 10px 20px;
    border-radius: 4px;
    border-bottom: 1px solid #d2d2d2;
}

.search-box {
    flex: 1;
    max-width: 500px;
    position: relative;
}

.search-box input {
    width: 100%;
    height: 38px;
    padding: 0 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    outline: none;
    font-size: 14px;
}

.search-box button {
    position: absolute;
    right: 0;
    top: 0;
    height: 38px;
    width: 80px;
    background-color: #e53935;
    color: #fff;
    border: none;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.header-right a {
    color: #fff;
    text-decoration: none;
    font-size: 14px;
}

.login-btn {
    padding: 0 16px;
    height: 36px;
    font-size: 14px;
    background: linear-gradient(90deg, #ff9800, #ff2a14);
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 88px;
    border-radius: 42px;
    color: #fff;
    margin-left: 10px;
    cursor: pointer;
}

/* 标签导航 */
.tag-nav {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    overflow-x: auto;
    padding-bottom: 5px;
}

.tag-nav a {
    color: #666;
    text-decoration: none;
    font-size: 14px;
    white-space: nowrap;
    padding: 5px 0;
}

.tag-nav a:hover {
    color: #e53935;
    border-bottom: 2px solid #e53935;
}

/* 内容板块 */
.content-section {
    margin-bottom: 30px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.section-title {
    font-size: 30px;
    font-weight: bold;
    color: #333;
}

.more-btn {
    color: #999;
    text-decoration: none;
    font-size: 14px;
}

.more-btn:hover {
    color: #e53935;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.live-card {
    position: relative;
    background-color: #fff;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: transform 0.2s;
}

.live-card:hover {
    transform: translateY(-5px);
}

.card-img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    position: relative;
    display: block;
}

.card-tag {
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: rgba(229, 57, 53, 0.8);
    color: #fff;
    font-size: 12px;
    padding: 2px 8px;
    border-radius: 2px;
}

.card-title {
    padding: 10px;
    font-size: 14px;
    color: #333;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 页脚样式 */
.footer {
    text-align: center;
    padding: 20px;
    font-size: 12px;
    color: #999;
    border-top: 1px solid #eee;
    margin-top: 30px;
}

.footer-links {
    margin-bottom: 10px;
}

.footer-links p{
    margin-top: 5px;
}

.footer-links a {
    color: #999;
    text-decoration: none;
    margin: 0 8px;
}
