/* ========== 米兰体育 - 全局样式 ========== */
/* 仿照 live.qq.com 配色方案 */

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

:root {
    --primary-red: #e84b3a;
    --dark-bg: #1a1a1a;
    --darker-bg: #111111;
    --card-bg: #2a2a2a;
    --light-bg: #f4f5f7;
    --white: #ffffff;
    --text-light: #cccccc;
    --text-gray: #999999;
    --text-dark: #333333;
    --border-color: #333333;
    --green-tag: #4caf50;
    --orange-tag: #ff9800;
    --blue-tag: #2196f3;
    --hover-bg: #333333;
    --shadow: 0 2px 8px rgba(0,0,0,0.3);
}

body {
    font-family: "Microsoft YaHei", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
    background-color: var(--dark-bg);
    color: var(--white);
    line-height: 1.6;
    min-width: 1200px;
}

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

a:hover {
    color: var(--primary-red);
}

img {
    max-width: 100%;
    height: auto;
}

ul, ol {
    list-style: none;
}

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

/* ========== 顶部导航栏 ========== */
.header {
    background: var(--darker-bg);
    height: 60px;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
}

.header .container {
    display: flex;
    align-items: center;
    height: 100%;
}

.logo {
    display: flex;
    align-items: center;
    margin-right: 30px;
    font-size: 0;
}

.logo-icon {
    width: 36px;
    height: 36px;
    background: var(--primary-red);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 8px;
    font-size: 18px;
    font-weight: bold;
    color: white;
}

.logo-text {
    font-size: 20px;
    font-weight: bold;
    color: var(--white);
    letter-spacing: 1px;
}

.logo-text span {
    color: var(--primary-red);
}

.nav-menu {
    display: flex;
    align-items: center;
    flex: 1;
}

.nav-menu li {
    margin-right: 5px;
}

.nav-menu li a {
    display: block;
    padding: 8px 18px;
    color: var(--text-light);
    font-size: 15px;
    border-radius: 4px;
    transition: all 0.3s;
}

.nav-menu li a:hover,
.nav-menu li a.active {
    background: var(--primary-red);
    color: var(--white);
}

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

.search-box {
    position: relative;
    display: flex;
    align-items: center;
}

.search-box input {
    width: 180px;
    height: 32px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 0 35px 0 15px;
    color: var(--white);
    font-size: 13px;
    outline: none;
    transition: border-color 0.3s;
}

.search-box input:focus {
    border-color: var(--primary-red);
}

.search-box input::placeholder {
    color: var(--text-gray);
}

.search-box .search-btn {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-gray);
    cursor: pointer;
    font-size: 16px;
}

.btn-login {
    padding: 6px 20px;
    background: var(--primary-red);
    color: var(--white);
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: opacity 0.3s;
}

.btn-login:hover {
    opacity: 0.85;
}

/* ========== 主体内容区 ========== */
.main-content {
    margin-top: 60px;
    padding-top: 20px;
    min-height: calc(100vh - 260px);
}

/* ========== Hero区域 ========== */
.hero-section {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.hero-video {
    flex: 1;
    position: relative;
    background: #000;
    border-radius: 8px;
    overflow: hidden;
    aspect-ratio: 16/9;
}

.hero-video iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.hero-video .video-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 15px;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    color: white;
}

.hero-video .video-title {
    font-size: 16px;
    font-weight: bold;
}

.hero-sidebar {
    width: 300px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.hero-sidebar-item {
    position: relative;
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
    flex: 1;
}

.hero-sidebar-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.hero-sidebar-item:hover img {
    transform: scale(1.05);
}

.hero-sidebar-item .sidebar-label {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 8px 10px;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    font-size: 13px;
    color: white;
}

/* ========== 赛程横向滚动 ========== */
.schedule-scroll {
    margin-bottom: 25px;
    position: relative;
}

.schedule-scroll-inner {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding: 10px 0;
    scrollbar-width: none;
}

.schedule-scroll-inner::-webkit-scrollbar {
    display: none;
}

.schedule-card {
    min-width: 200px;
    background: var(--card-bg);
    border-radius: 8px;
    padding: 15px;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
    flex-shrink: 0;
}

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

.schedule-card .match-league {
    font-size: 12px;
    color: var(--primary-red);
    margin-bottom: 5px;
}

.schedule-card .match-date {
    font-size: 11px;
    color: var(--text-gray);
    float: right;
}

.schedule-card .match-teams {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 10px;
}

.schedule-card .team-row {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

.schedule-card .team-logo {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--hover-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
}

.schedule-card .match-time {
    text-align: center;
    color: var(--primary-red);
    font-size: 16px;
    font-weight: bold;
    margin-top: 8px;
}

.schedule-card .btn-reserve {
    display: block;
    text-align: center;
    padding: 5px 0;
    background: var(--primary-red);
    color: white;
    border-radius: 4px;
    font-size: 12px;
    margin-top: 8px;
    cursor: pointer;
    transition: opacity 0.3s;
}

.schedule-card .btn-reserve:hover {
    opacity: 0.85;
}

/* ========== 区块标题 ========== */
.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary-red);
}

.section-title {
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-title h2 {
    font-size: 20px;
    font-weight: bold;
}

.section-title .en-title {
    font-size: 12px;
    color: var(--text-gray);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.section-title .icon {
    font-size: 22px;
    color: var(--primary-red);
}

.section-more {
    font-size: 13px;
    color: var(--text-gray);
    cursor: pointer;
    padding: 4px 12px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    transition: all 0.3s;
}

.section-more:hover {
    color: var(--primary-red);
    border-color: var(--primary-red);
}

/* ========== 直播卡片网格 ========== */
.live-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin-bottom: 30px;
}

.live-card {
    background: var(--card-bg);
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
}

.live-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.4);
}

.live-card .card-thumb {
    position: relative;
    aspect-ratio: 16/10;
    overflow: hidden;
}

.live-card .card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.live-card:hover .card-thumb img {
    transform: scale(1.08);
}

.live-card .card-tag {
    position: absolute;
    top: 8px;
    left: 8px;
    padding: 2px 8px;
    border-radius: 3px;
    font-size: 11px;
    color: white;
}

.tag-live {
    background: var(--primary-red);
}

.tag-football {
    background: var(--green-tag);
}

.tag-basketball {
    background: var(--orange-tag);
}

.tag-esports {
    background: var(--blue-tag);
}

.tag-nba {
    background: #9c27b0;
}

.tag-tennis {
    background: #00bcd4;
}

.tag-fighting {
    background: #f44336;
}

.tag-billiards {
    background: #607d8b;
}

.tag-general {
    background: #795548;
}

.live-card .card-category {
    position: absolute;
    bottom: 8px;
    right: 8px;
    padding: 2px 8px;
    background: rgba(0,0,0,0.7);
    border-radius: 3px;
    font-size: 11px;
    color: white;
}

.live-card .card-viewers {
    position: absolute;
    bottom: 8px;
    left: 8px;
    padding: 2px 8px;
    background: rgba(0,0,0,0.7);
    border-radius: 3px;
    font-size: 11px;
    color: white;
    display: flex;
    align-items: center;
    gap: 4px;
}

.live-card .card-info {
    padding: 12px;
}

.live-card .card-title {
    font-size: 14px;
    color: var(--white);
    margin-bottom: 8px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.live-card .card-anchor {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: var(--text-gray);
}

.live-card .anchor-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--hover-bg);
    overflow: hidden;
}

.live-card .anchor-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.live-card .card-views {
    margin-left: auto;
    font-size: 11px;
    color: var(--text-gray);
}

/* ========== 新闻列表 ========== */
.news-section {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.news-main {
    flex: 1;
}

.news-sidebar {
    width: 380px;
}

.news-list {
    background: var(--card-bg);
    border-radius: 8px;
    padding: 15px;
}

.news-item {
    display: flex;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color);
    cursor: pointer;
    transition: background 0.3s;
}

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

.news-item:hover {
    background: var(--hover-bg);
}

.news-item .news-tag {
    padding: 2px 8px;
    background: var(--primary-red);
    color: white;
    font-size: 11px;
    border-radius: 3px;
    margin-right: 10px;
    flex-shrink: 0;
}

.news-item .news-title {
    flex: 1;
    font-size: 14px;
    color: var(--text-light);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.news-item .news-date {
    font-size: 12px;
    color: var(--text-gray);
    margin-left: 15px;
    flex-shrink: 0;
}

/* ========== 资讯速递 ========== */
.trending-list {
    background: var(--card-bg);
    border-radius: 8px;
    padding: 15px;
}

.trending-item {
    display: flex;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
    cursor: pointer;
    transition: background 0.3s;
}

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

.trending-item:hover {
    background: var(--hover-bg);
}

.trending-item .trending-thumb {
    width: 120px;
    height: 75px;
    border-radius: 4px;
    overflow: hidden;
    flex-shrink: 0;
}

.trending-item .trending-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.trending-item .trending-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.trending-item .trending-title {
    font-size: 14px;
    color: var(--white);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.trending-item .trending-meta {
    font-size: 12px;
    color: var(--text-gray);
}

/* ========== 热门主播 ========== */
.anchors-section {
    margin-bottom: 30px;
    text-align: center;
}

.anchors-grid {
    display: flex;
    gap: 20px;
    justify-content: center;
    overflow-x: auto;
    padding: 15px 0;
}

.anchor-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    min-width: 100px;
    transition: transform 0.3s;
}

.anchor-item:hover {
    transform: translateY(-5px);
}

.anchor-item .anchor-img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--border-color);
    transition: border-color 0.3s;
}

.anchor-item:hover .anchor-img {
    border-color: var(--primary-red);
}

.anchor-item .anchor-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.anchor-item .anchor-name {
    font-size: 13px;
    color: var(--white);
}

.anchor-item .anchor-desc {
    font-size: 11px;
    color: var(--text-gray);
    max-width: 100px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ========== 热门活动/官方公告 Banner ========== */
.banner-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin-bottom: 30px;
}

.banner-item {
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s;
    aspect-ratio: 16/9;
}

.banner-item:hover {
    transform: translateY(-3px);
}

.banner-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ========== 分类页面 ========== */
.category-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.category-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    aspect-ratio: 4/3;
    transition: transform 0.3s;
}

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

.category-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.category-card .category-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px 15px;
    background: linear-gradient(transparent, rgba(0,0,0,0.85));
}

.category-card .category-name {
    font-size: 18px;
    font-weight: bold;
    color: white;
    display: flex;
    align-items: center;
    gap: 8px;
}

.category-card .category-viewers {
    font-size: 12px;
    color: var(--text-gray);
    margin-top: 4px;
}

/* ========== 赛程页面 ========== */
.schedule-table {
    width: 100%;
    background: var(--card-bg);
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 20px;
}

.schedule-table table {
    width: 100%;
    border-collapse: collapse;
}

.schedule-table th {
    background: var(--darker-bg);
    padding: 12px 15px;
    text-align: left;
    font-size: 14px;
    color: var(--text-gray);
    border-bottom: 1px solid var(--border-color);
}

.schedule-table td {
    padding: 12px 15px;
    font-size: 14px;
    color: var(--text-light);
    border-bottom: 1px solid var(--border-color);
}

.schedule-table tr:hover td {
    background: var(--hover-bg);
}

.schedule-table .status-live {
    color: var(--primary-red);
    font-weight: bold;
}

.schedule-table .status-upcoming {
    color: var(--green-tag);
}

.schedule-table .status-finished {
    color: var(--text-gray);
}

/* ========== 视频页面 ========== */
.video-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin-bottom: 30px;
}

.video-card {
    background: var(--card-bg);
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
}

.video-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.4);
}

.video-card .video-thumb {
    position: relative;
    aspect-ratio: 16/9;
    overflow: hidden;
}

.video-card .video-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-card .video-duration {
    position: absolute;
    bottom: 8px;
    right: 8px;
    padding: 2px 6px;
    background: rgba(0,0,0,0.8);
    border-radius: 3px;
    font-size: 11px;
    color: white;
}

.video-card .play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    background: rgba(232, 75, 58, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
}

.video-card:hover .play-icon {
    opacity: 1;
}

.play-icon::after {
    content: "";
    width: 0;
    height: 0;
    border-left: 12px solid white;
    border-top: 7px solid transparent;
    border-bottom: 7px solid transparent;
    margin-left: 3px;
}

.video-card .video-info {
    padding: 12px;
}

.video-card .video-title {
    font-size: 14px;
    color: var(--white);
    margin-bottom: 6px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.video-card .video-meta {
    font-size: 12px;
    color: var(--text-gray);
    display: flex;
    justify-content: space-between;
}

/* ========== 赛事数据页 ========== */
.data-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.data-tab {
    padding: 8px 24px;
    background: var(--card-bg);
    color: var(--text-light);
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s;
    border: none;
}

.data-tab.active,
.data-tab:hover {
    background: var(--primary-red);
    color: white;
}

.data-card {
    background: var(--card-bg);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

.data-card h3 {
    font-size: 16px;
    margin-bottom: 15px;
    color: var(--white);
    border-left: 3px solid var(--primary-red);
    padding-left: 10px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin-bottom: 20px;
}

.stat-item {
    background: var(--darker-bg);
    border-radius: 8px;
    padding: 20px;
    text-align: center;
}

.stat-item .stat-value {
    font-size: 28px;
    font-weight: bold;
    color: var(--primary-red);
}

.stat-item .stat-label {
    font-size: 13px;
    color: var(--text-gray);
    margin-top: 5px;
}

/* ========== 直播间详情页 ========== */
.room-layout {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.room-main {
    flex: 1;
}

.room-sidebar {
    width: 320px;
}

.room-player {
    background: #000;
    border-radius: 8px;
    overflow: hidden;
    aspect-ratio: 16/9;
    margin-bottom: 15px;
}

.room-player iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.room-info {
    background: var(--card-bg);
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
}

.room-info .room-title {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 10px;
}

.room-info .room-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 13px;
    color: var(--text-gray);
}

.room-info .room-anchor {
    display: flex;
    align-items: center;
    gap: 8px;
}

.chat-box {
    background: var(--card-bg);
    border-radius: 8px;
    height: 500px;
    display: flex;
    flex-direction: column;
}

.chat-header {
    padding: 12px 15px;
    border-bottom: 1px solid var(--border-color);
    font-size: 14px;
    font-weight: bold;
}

.chat-messages {
    flex: 1;
    padding: 15px;
    overflow-y: auto;
}

.chat-message {
    margin-bottom: 10px;
    font-size: 13px;
}

.chat-message .chat-user {
    color: var(--primary-red);
    margin-right: 5px;
}

.chat-message .chat-text {
    color: var(--text-light);
}

.chat-input-area {
    padding: 10px 15px;
    border-top: 1px solid var(--border-color);
    display: flex;
    gap: 10px;
}

.chat-input-area input {
    flex: 1;
    height: 36px;
    background: var(--darker-bg);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 0 12px;
    color: var(--white);
    font-size: 13px;
    outline: none;
}

.chat-input-area button {
    padding: 0 20px;
    background: var(--primary-red);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
}

/* ========== 搜索页面 ========== */
.search-page-box {
    display: flex;
    justify-content: center;
    margin: 30px 0;
}

.search-page-box input {
    width: 500px;
    height: 44px;
    background: var(--card-bg);
    border: 2px solid var(--primary-red);
    border-radius: 22px 0 0 22px;
    padding: 0 20px;
    color: var(--white);
    font-size: 15px;
    outline: none;
}

.search-page-box button {
    height: 44px;
    padding: 0 30px;
    background: var(--primary-red);
    color: white;
    border: none;
    border-radius: 0 22px 22px 0;
    cursor: pointer;
    font-size: 15px;
}

.search-results {
    margin-bottom: 30px;
}

.search-result-item {
    background: var(--card-bg);
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 10px;
    display: flex;
    gap: 15px;
    cursor: pointer;
    transition: background 0.3s;
}

.search-result-item:hover {
    background: var(--hover-bg);
}

.search-result-item .result-thumb {
    width: 160px;
    height: 100px;
    border-radius: 6px;
    overflow: hidden;
    flex-shrink: 0;
}

.search-result-item .result-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.search-result-item .result-info {
    flex: 1;
}

.search-result-item .result-title {
    font-size: 16px;
    color: var(--white);
    margin-bottom: 8px;
}

.search-result-item .result-desc {
    font-size: 13px;
    color: var(--text-gray);
    line-height: 1.5;
}

/* ========== 页面面包屑 ========== */
.breadcrumb {
    padding: 15px 0;
    font-size: 13px;
    color: var(--text-gray);
    margin-bottom: 15px;
}

.breadcrumb a {
    color: var(--text-gray);
}

.breadcrumb a:hover {
    color: var(--primary-red);
}

.breadcrumb span {
    margin: 0 8px;
}

/* ========== 分页 ========== */
.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin: 30px 0;
}

.pagination a,
.pagination span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: var(--card-bg);
    color: var(--text-light);
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
}

.pagination a:hover,
.pagination span.active {
    background: var(--primary-red);
    color: white;
}

.pagination .prev,
.pagination .next {
    width: auto;
    padding: 0 15px;
}

/* ========== Footer ========== */
.footer {
    background: var(--darker-bg);
    padding: 30px 0;
    border-top: 1px solid var(--border-color);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    margin-bottom: 25px;
}

.footer-col h4 {
    font-size: 15px;
    color: var(--white);
    margin-bottom: 12px;
}

.footer-col a {
    display: block;
    font-size: 13px;
    color: var(--text-gray);
    margin-bottom: 8px;
    transition: color 0.3s;
}

.footer-col a:hover {
    color: var(--primary-red);
}

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

.footer-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 10px;
}

.footer-links a {
    font-size: 13px;
    color: var(--text-gray);
}

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

.footer-copyright {
    font-size: 12px;
    color: var(--text-gray);
}

/* ========== 关于/帮助页面 ========== */
.page-content {
    background: var(--card-bg);
    border-radius: 8px;
    padding: 30px;
    margin-bottom: 30px;
    line-height: 1.8;
}

.page-content h1 {
    font-size: 24px;
    margin-bottom: 20px;
    color: var(--white);
    border-bottom: 2px solid var(--primary-red);
    padding-bottom: 10px;
}

.page-content h2 {
    font-size: 18px;
    margin: 20px 0 10px;
    color: var(--white);
}

.page-content p {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 15px;
}

.page-content ul {
    padding-left: 20px;
    margin-bottom: 15px;
}

.page-content ul li {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 8px;
    list-style: disc;
}

/* ========== 侧边栏导航(分类页) ========== */
.page-with-sidebar {
    display: flex;
    gap: 20px;
}

.sidebar-nav {
    width: 60px;
    background: var(--card-bg);
    border-radius: 8px;
    padding: 15px 0;
    position: sticky;
    top: 80px;
    height: fit-content;
}

.sidebar-nav a {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 12px 5px;
    font-size: 11px;
    color: var(--text-gray);
    transition: all 0.3s;
    gap: 4px;
}

.sidebar-nav a:hover,
.sidebar-nav a.active {
    color: var(--primary-red);
}

.sidebar-nav .nav-icon {
    font-size: 20px;
}

.page-main-content {
    flex: 1;
}

/* ========== 滚动到顶部按钮 ========== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 44px;
    height: 44px;
    background: var(--primary-red);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 999;
    transition: opacity 0.3s;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.back-to-top:hover {
    opacity: 0.85;
}

.back-to-top.visible {
    display: flex;
}

/* ========== 标签筛选 ========== */
.filter-tags {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.filter-tag {
    padding: 6px 18px;
    background: var(--card-bg);
    color: var(--text-light);
    border-radius: 20px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.3s;
    border: 1px solid transparent;
}

.filter-tag:hover,
.filter-tag.active {
    background: var(--primary-red);
    color: white;
}

/* ========== 视频播放页 ========== */
.player-page {
    margin-bottom: 30px;
}

.player-wrapper {
    background: #000;
    border-radius: 8px;
    overflow: hidden;
    aspect-ratio: 16/9;
    margin-bottom: 15px;
    max-height: 600px;
}

.player-wrapper iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.player-info {
    background: var(--card-bg);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

.player-info h1 {
    font-size: 20px;
    margin-bottom: 10px;
}

.player-info .player-meta {
    display: flex;
    gap: 20px;
    font-size: 13px;
    color: var(--text-gray);
}

/* ========== 响应式微调 ========== */
@media (max-width: 1250px) {
    .container {
        width: 100%;
        padding: 0 20px;
    }
    body {
        min-width: auto;
    }
}

/* ========== 动画 ========== */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in {
    animation: fadeIn 0.5s ease-out;
}

/* ========== 加载占位 ========== */
.skeleton {
    background: linear-gradient(90deg, var(--card-bg) 25%, var(--hover-bg) 50%, var(--card-bg) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 4px;
}

@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ========== 新闻详情页 ========== */
.news-detail {
    background: var(--card-bg);
    border-radius: 8px;
    padding: 30px;
    margin-bottom: 30px;
}

.news-detail h1 {
    font-size: 22px;
    margin-bottom: 15px;
    line-height: 1.4;
}

.news-detail .news-detail-meta {
    font-size: 13px;
    color: var(--text-gray);
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
}

.news-detail .news-detail-content {
    font-size: 15px;
    color: var(--text-light);
    line-height: 1.8;
}

.news-detail .news-detail-content p {
    margin-bottom: 15px;
}

.news-detail .news-detail-content img {
    border-radius: 8px;
    margin: 15px 0;
}

/* ========== 推荐列表 ========== */
.recommend-list {
    background: var(--card-bg);
    border-radius: 8px;
    padding: 15px;
}

.recommend-item {
    display: flex;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color);
    cursor: pointer;
}

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

.recommend-item .rec-thumb {
    width: 100px;
    height: 60px;
    border-radius: 4px;
    overflow: hidden;
    flex-shrink: 0;
}

.recommend-item .rec-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.recommend-item .rec-title {
    font-size: 13px;
    color: var(--text-light);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
