/* 全局样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
    background-color: #1a1a1a;
    color: #fff;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* 顶部导航栏 */
.header {
    display: flex;
    align-items: center;
    height: 60px;
    padding: 0 24px;
    background-color: #2b2b2b;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
}

.header-left .logo img {
    height: 35px;
}

.header-center {
    flex: 1;
    display: flex;
    justify-content: center;
}

.search-box {
    display: flex;
    align-items: center;
    width: 400px;
    height: 36px;
    background-color: #3b3b3b;
    border-radius: 4px;
}

.search-box input {
    flex: 1;
    height: 100%;
    padding: 0 12px;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 14px;
}

.search-box input::placeholder {
    color: #999;
}

.search-btn {
    width: 36px;
    height: 36px;
    background: url('../images/search.png') center no-repeat;
    border: none;
    cursor: pointer;
}

.header-right .user-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.user-actions a {
    font-size: 14px;
    color: #ccc;
}

.user-actions .login {
    padding: 6px 20px;
    background-color: #2b90f6;
    border-radius: 4px;
    color: #fff;
}

/* 主容器 */
.main-container {
    display: flex;
    margin-top: 60px;
    min-height: calc(100vh - 60px);
}

/* 侧边导航 */
.side-nav {
    width: 200px;
    background-color: #2b2b2b;
    padding-top: 20px;
    position: fixed;
    height: calc(100vh - 60px);
}

.side-nav li {
    height: 48px;
    padding: 0 24px;
}

.side-nav a {
    display: flex;
    align-items: center;
    height: 100%;
    color: #ccc;
    font-size: 14px;
}

.side-nav .icon {
    width: 24px;
    height: 24px;
    margin-right: 8px;
    background-size: contain;
}

.side-nav li.active a {
    color: #2b90f6;
}

/* 内容区域 */
.content {
    flex: 1;
    margin-left: 200px;
    padding: 20px;
    transition: opacity 0.3s ease;
}

/* 直播区域 */
.live-section {
    margin-bottom: 30px;
}

.live-player {
    position: relative;
    width: 100%;
    height: 500px;
    border-radius: 8px;
    overflow: hidden;
}

.live-player img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.live-info {
    position: absolute;
    left: 30px;
    bottom: 30px;
    color: #fff;
}

.live-info h2 {
    font-size: 32px;
    margin-bottom: 10px;
}

.watch-btn {
    margin-top: 20px;
    padding: 10px 30px;
    background-color: #2b90f6;
    border: none;
    border-radius: 4px;
    color: #fff;
    font-size: 16px;
    cursor: pointer;
}

/* 重磅热播区域 */
.hot-section {
    margin-bottom: 30px;
}

.section-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.section-header h2 {
    font-size: 24px;
    margin-right: 30px;
}

.section-tabs {
    display: flex;
    gap: 20px;
}

.section-tabs a {
    color: #999;
    font-size: 14px;
}

.section-tabs a.active {
    color: #2b90f6;
}

/* 视频网格 */
.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

.video-card {
    position: relative;
    transition: transform 0.3s;
}

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

.video-cover {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
    border-radius: 4px;
    overflow: hidden;
    background-color: #2b2b2b;
}

.video-cover::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
    z-index: 1;
}

.video-card:hover .video-cover::before {
    opacity: 0.8;
}

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

.vip-tag {
    position: absolute;
    top: 8px;
    right: 8px;
    padding: 2px 6px;
    background-color: #ffb100;
    border-radius: 2px;
    font-size: 12px;
}

.video-card h3 {
    margin: 8px 0 4px;
    font-size: 14px;
    font-weight: normal;
}

.video-card p {
    color: #999;
    font-size: 12px;
}

.update-tag {
    position: absolute;
    bottom: 8px;
    left: 8px;
    padding: 2px 6px;
    background-color: rgba(0, 0, 0, 0.6);
    border-radius: 2px;
    font-size: 12px;
    color: #fff;
}

.video-cover .vip-tag {
    position: absolute;
    top: 8px;
    right: 8px;
    padding: 2px 6px;
    background-color: #ffb100;
    border-radius: 2px;
    font-size: 12px;
    color: #fff;
    z-index: 1;
}

/* VIP会员页面样式 */
.vip-content {
    padding: 30px;
    background-color: #2b2b2b;
    border-radius: 8px;
}

.vip-content h1 {
    font-size: 28px;
    margin-bottom: 30px;
    color: #ffb100;
}

.vip-benefits {
    background-color: #333;
    padding: 20px;
    border-radius: 8px;
}

.vip-benefits h2 {
    font-size: 20px;
    margin-bottom: 20px;
    color: #fff;
}

.vip-benefits ul {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.vip-benefits li {
    padding: 15px;
    background-color: #2b2b2b;
    border-radius: 4px;
    color: #fff;
    font-size: 14px;
    text-align: center;
}

/* 页面通用样式 */
.page-content {
    padding: 30px;
    background-color: #2b2b2b;
    border-radius: 8px;
    min-height: 500px;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.page-content h1 {
    font-size: 28px;
    margin-bottom: 20px;
    color: #fff;
}

/* 导航项样式 */
.side-nav label {
    display: flex;
    align-items: center;
    height: 100%;
    color: #ccc;
    font-size: 14px;
    cursor: pointer;
    transition: color 0.3s;
}

.side-nav label:hover {
    color: #2b90f6;
}

/* 选中状态 */
#nav-home:checked ~ .side-nav label[for="nav-home"],
#nav-vip:checked ~ .side-nav label[for="nav-vip"],
#nav-live:checked ~ .side-nav label[for="nav-live"],
#nav-series:checked ~ .side-nav label[for="nav-series"],
#nav-movie:checked ~ .side-nav label[for="nav-movie"],
#nav-variety:checked ~ .side-nav label[for="nav-variety"],
#nav-anime:checked ~ .side-nav label[for="nav-anime"],
#nav-child:checked ~ .side-nav label[for="nav-child"],
#nav-nba:checked ~ .side-nav label[for="nav-nba"] {
    color: #2b90f6;
}

/* 中视频页面样式 */
.short-video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 15px;
}

.short-video-card {
    position: relative;
    transition: transform 0.3s;
}

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

.duration {
    position: absolute;
    bottom: 8px;
    right: 8px;
    padding: 2px 6px;
    background-color: rgba(0, 0, 0, 0.6);
    border-radius: 2px;
    font-size: 12px;
    color: #fff;
    z-index: 2;
}

/* NBA页面样式 */
.live-matches {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.match-card {
    position: relative;
    background-color: #2b2b2b;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s;
}

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

.live-tag {
    position: absolute;
    top: 8px;
    left: 8px;
    padding: 2px 8px;
    background-color: #ff4757;
    border-radius: 2px;
    font-size: 12px;
    color: #fff;
    z-index: 2;
}

/* VIP会员页面样式更新 */
.vip-recommendations {
    margin-top: 30px;
}

.vip-recommendations h2 {
    font-size: 20px;
    margin-bottom: 20px;
    color: #fff;
}

/* 页面切换样式更新 */
#nav-home:checked ~ .content .home-page,
#nav-live:checked ~ .content .live-page,
#nav-series:checked ~ .content .series-page,
#nav-movie:checked ~ .content .movie-page,
#nav-variety:checked ~ .content .variety-page,
#nav-anime:checked ~ .content .anime-page,
#nav-child:checked ~ .content .child-page,
#nav-nba:checked ~ .content .nba-page {
    display: block;
    opacity: 1;
}

/* 首页内容样式 */
.home-page {
    padding: 0 !important;
    background-color: transparent !important;
} 