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

body {
    font-family: "Microsoft YaHei", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
    background: #f4f4f4;
    color: #333;
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: #333;
    transition: color 0.3s;
}

a:hover {
    color: #e4393c;
}

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

/* ==================== 头部 ==================== */
.header {
    background: #fff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 65px;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo img {
    height: 45px;
}

.header-links a {
    display: inline-block;
    padding: 5px 10px;
    font-size: 13px;
    color: #666;
    border-radius: 3px;
}

.header-links a:hover {
    color: #e4393c;
    background: #f5f5f5;
}

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

.search-box form {
    display: flex;
}

.search-box input {
    width: 220px;
    height: 34px;
    padding: 0 12px;
    border: 2px solid #e4393c;
    border-right: none;
    border-radius: 4px 0 0 4px;
    outline: none;
    font-size: 14px;
}

.search-box button {
    width: 70px;
    height: 34px;
    background: #e4393c;
    color: #fff;
    border: none;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.3s;
}

.search-box button:hover {
    background: #d63336;
}

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

.user-links a {
    color: #666;
    font-size: 14px;
}

.user-links a:hover {
    color: #e4393c;
}

/* ==================== 导航栏 ==================== */
.nav {
    background: #333;
}

.nav ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
}

.nav li a {
    display: block;
    padding: 0 18px;
    height: 42px;
    line-height: 42px;
    color: #fff;
    font-size: 15px;
    transition: background 0.3s;
}

.nav li a:hover,
.nav li.active a {
    background: #e4393c;
}

/* ==================== 面包屑导航 ==================== */
.breadcrumb {
    padding: 15px 0;
    font-size: 14px;
}

.breadcrumb a {
    color: #666;
}

.breadcrumb a:hover {
    color: #e4393c;
}

.breadcrumb span {
    color: #999;
    margin: 0 8px;
}

.breadcrumb .current {
    color: #333;
}

/* ==================== 主内容区 ==================== */
.main {
    padding: 20px 0;
}

/* ==================== Banner ==================== */
.banner {
    margin-bottom: 20px;
    border-radius: 6px;
    overflow: hidden;
}

.banner-slide img {
    width: 100%;
    height: 380px;
    object-fit: cover;
    display: block;
}

/* ==================== 排行榜 ==================== */
.rank-section {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.rank-box {
    flex: 1;
    background: #fff;
    border-radius: 6px;
    padding: 18px;
}

.rank-box .section-title {
    margin-bottom: 12px;
    padding-bottom: 10px;
}

.rank-box .section-title h3 {
    font-size: 16px;
}

.rank-list {
    list-style: none;
}

.rank-item {
    display: flex;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px dashed #f0f0f0;
    transition: background 0.3s;
}

.rank-item:last-child {
    border-bottom: none;
}

.rank-item:hover {
    background: #fafafa;
}

.rank-num {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: bold;
    color: #fff;
    border-radius: 4px;
    margin-right: 12px;
    flex-shrink: 0;
}

.rank-item:nth-child(1) .rank-num {
    background: #e4393c;
}

.rank-item:nth-child(2) .rank-num {
    background: #ff6633;
}

.rank-item:nth-child(3) .rank-num {
    background: #ff9933;
}

.rank-item:nth-child(n+4) .rank-num {
    background: #ccc;
    color: #666;
}

.rank-info {
    flex: 1;
    min-width: 0;
}

.rank-info h4 {
    font-size: 14px;
    font-weight: 500;
    color: #333;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.rank-info h4:hover {
    color: #e4393c;
}

.rank-info p {
    font-size: 12px;
    color: #999;
    margin-top: 2px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.rank-heat {
    font-size: 12px;
    color: #e4393c;
    margin-left: 10px;
    white-space: nowrap;
}

/* ==================== 板块标题 ==================== */
.section {
    background: #fff;
    margin-bottom: 20px;
    border-radius: 6px;
    padding: 20px;
}

.section-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
    padding-bottom: 12px;
    border-bottom: 2px solid #e4393c;
}

.section-title h3 {
    font-size: 18px;
    color: #333;
    padding-left: 12px;
    border-left: 4px solid #e4393c;
}

.section-title .more {
    color: #999;
    font-size: 13px;
}

.section-title .more:hover {
    color: #e4393c;
}

/* ==================== 视频列表 ==================== */
.video-list {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 16px;
}

.video-item {
    transition: transform 0.3s, box-shadow 0.3s;
    border-radius: 6px;
    overflow: hidden;
    background: #fff;
}

.video-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.15);
}

.video-thumb {
    position: relative;
    width: 100%;
    padding-top: 140%;
    background: #f0f0f0;
    overflow: hidden;
}

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

.video-item:hover .video-thumb img {
    transform: scale(1.05);
}

.video-thumb .status {
    position: absolute;
    top: 8px;
    left: 8px;
    background: rgba(228, 57, 60, 0.85);
    color: #fff;
    padding: 2px 8px;
    border-radius: 3px;
    font-size: 11px;
}

.video-info {
    padding: 10px 8px;
}

.video-info h4 {
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 6px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #333;
}

.video-info h4:hover {
    color: #e4393c;
}

.video-info p {
    font-size: 12px;
    color: #999;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ==================== 页脚 ==================== */
.footer {
    background: #2c2c2c;
    padding: 25px 0;
    margin-top: 20px;
}

/* 友情链接 */
.friend-links {
    padding: 15px 0;
    border-bottom: 1px solid #444;
    margin-bottom: 15px;
}

.friend-links h4 {
    color: #888;
    font-size: 13px;
    font-weight: 400;
    margin-bottom: 10px;
    text-align: center;
}

.friend-links-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 15px;
}

.friend-links-list a {
    color: #999;
    font-size: 12px;
    padding: 3px 8px;
    border: 1px solid #444;
    border-radius: 3px;
    transition: all 0.3s;
}

.friend-links-list a:hover {
    color: #e4393c;
    border-color: #e4393c;
}

.footer-links {
    text-align: center;
    margin-bottom: 15px;
}

.footer-links a {
    color: #888;
    font-size: 13px;
    margin: 0 8px;
}

.footer-links a:hover {
    color: #fff;
}

.footer-info {
    text-align: center;
}

.footer-info p {
    color: #666;
    font-size: 12px;
    line-height: 1.8;
    margin-bottom: 5px;
}

.footer-info .copyright {
    color: #888;
    margin-top: 10px;
}

/* ==================== 列表页 ==================== */
.filter-wrap {
    background: #fff;
    padding: 20px;
    border-radius: 6px;
    margin-bottom: 20px;
}

.filter-item {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    font-size: 14px;
}

.filter-item:last-child {
    margin-bottom: 0;
}

.filter-item label {
    width: 50px;
    color: #666;
    font-weight: 500;
}

.filter-item .tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.filter-item .tags a {
    padding: 4px 12px;
    color: #666;
    font-size: 13px;
    border-radius: 3px;
    transition: all 0.3s;
}

.filter-item .tags a:hover,
.filter-item .tags a.active {
    background: #e4393c;
    color: #fff;
}

.list-wrap {
    background: #fff;
    padding: 20px;
    border-radius: 6px;
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 30px;
}

.pagination a,
.pagination span {
    padding: 8px 14px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    color: #666;
    transition: all 0.3s;
}

.pagination a:hover {
    border-color: #e4393c;
    color: #e4393c;
}

.pagination span {
    background: #e4393c;
    color: #fff;
    border-color: #e4393c;
}

/* ==================== 详情页 ==================== */
.detail-wrap {
    background: #fff;
    padding: 25px;
    border-radius: 6px;
    margin-bottom: 20px;
}

.detail-info {
    display: flex;
    gap: 25px;
}

.detail-pic {
    width: 200px;
    flex-shrink: 0;
}

.detail-pic img {
    width: 100%;
    border-radius: 6px;
    display: block;
}

.detail-con {
    flex: 1;
}

.detail-con h1 {
    font-size: 24px;
    margin-bottom: 15px;
    color: #333;
}

.detail-con p {
    margin-bottom: 8px;
    color: #666;
    font-size: 14px;
}

.detail-con p span {
    color: #333;
    font-weight: 500;
}

.detail-con .play-btn {
    display: inline-block;
    margin-top: 15px;
    padding: 10px 35px;
    background: #e4393c;
    color: #fff;
    border-radius: 4px;
    font-size: 15px;
    transition: background 0.3s;
}

.detail-con .play-btn:hover {
    background: #d63336;
    color: #fff;
}

.detail-desc {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.detail-desc h3 {
    font-size: 16px;
    margin-bottom: 10px;
    color: #333;
}

.detail-desc p {
    line-height: 1.8;
    color: #666;
    font-size: 14px;
}

.play-list {
    background: #fff;
    padding: 20px;
    border-radius: 6px;
    margin-bottom: 20px;
}

.play-list h3 {
    font-size: 16px;
    margin-bottom: 15px;
    color: #333;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.play-list ul {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    list-style: none;
}

.play-list li a {
    display: block;
    padding: 8px 18px;
    background: #f5f5f5;
    border-radius: 4px;
    font-size: 14px;
    transition: all 0.3s;
}

.play-list li a:hover {
    background: #e4393c;
    color: #fff;
}

/* ==================== 面包屑导航 ==================== */
.breadcrumb {
    background: #fff;
    padding: 12px 20px;
    border-radius: 6px;
    margin-bottom: 15px;
    font-size: 14px;
    color: #666;
}

.breadcrumb a {
    color: #666;
}

.breadcrumb a:hover {
    color: #e4393c;
}

.breadcrumb .sep {
    margin: 0 6px;
    color: #ccc;
}

.breadcrumb .current {
    color: #333;
    font-weight: 500;
}

/* ==================== 播放页 ==================== */
.player-wrap {
    background: #000;
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 20px;
}

.player-box {
    width: 100%;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #111;
}

.player-box .play-icon {
    width: 70px;
    height: 70px;
    background: rgba(228, 57, 60, 0.8);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
}

.player-box .play-icon:hover {
    background: #e4393c;
    transform: scale(1.1);
}

.player-box .play-icon::after {
    content: '';
    display: block;
    width: 0;
    height: 0;
    border-left: 25px solid #fff;
    border-top: 15px solid transparent;
    border-bottom: 15px solid transparent;
    margin-left: 5px;
}

.player-info {
    background: #fff;
    padding: 15px 20px;
    border-radius: 6px;
    margin-bottom: 20px;
}

.player-info h1 {
    font-size: 18px;
    color: #333;
}

/* ==================== 响应式 ==================== */
@media (max-width: 1200px) {
    .video-list {
        grid-template-columns: repeat(5, 1fr);
    }
    .rank-section {
        gap: 15px;
    }
}

@media (max-width: 992px) {
    .video-list {
        grid-template-columns: repeat(4, 1fr);
    }
    .banner-slide img {
        height: 300px;
    }
    .detail-info {
        flex-direction: column;
    }
    .rank-section {
        flex-direction: column;
    }
    .rank-box {
        max-height: 420px;
        overflow-y: auto;
    }
    .detail-pic {
        width: 100%;
        max-width: 200px;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .video-list {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }
    .header-top {
        flex-direction: column;
        height: auto;
        padding: 10px 0;
        gap: 10px;
    }
    .nav ul {
        justify-content: space-between;
    }
    .nav li a {
        padding: 0 10px;
        font-size: 13px;
        height: 38px;
        line-height: 38px;
    }
    .banner-slide img {
        height: 200px;
    }
    .search-box input {
        width: 150px;
    }
    .player-box {
        height: 250px;
    }
}

@media (max-width: 480px) {
    .video-list {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
    .section {
        padding: 12px;
    }
    .section-title h3 {
        font-size: 16px;
    }
    .banner-slide img {
        height: 160px;
    }
    .filter-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    .filter-item label {
        width: auto;
    }
}
