@charset "UTF-8";
:root {
    --theme-color: #ead67d; /* 采用原站的金色主题 */
    --theme-color-light: #fbeba8;
    --theme-color-dark: #c5b25c;
    --theme-color-rgba-01: rgba(234, 214, 125, 0.1);
    --theme-color-rgba-05: rgba(234, 214, 125, 0.5);
}

* { padding: 0; margin: 0; box-sizing: border-box; }
body { font-family: Arial, sans-serif; line-height: 1.6; color: #fff; background-color: #000; }
a { text-decoration: none; color: var(--theme-color); transition: all 0.3s ease; }
a:hover { text-decoration: none; color: var(--theme-color-light); }
li { list-style: none; }

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

/* 头部 Header */
header {
    display: flex; justify-content: space-between; align-items: center;
    padding: 15px 20px; background: #111; 
    border-bottom: 1px solid rgba(255,255,255,0.1);
    margin-bottom: 20px; position: relative;
}
.logo { padding: 12px 0; display: inline-block; }
.logo span { color: var(--theme-color); font-size: 22px; font-weight: bold; }

.category-nav {
    background: 0 0; box-shadow: none; margin: 0; padding: 0; 
    text-align: right; position: relative; z-index: 1; flex: 1; 
    padding-left: 20px; display: flex; flex-direction: row; align-items: center;
}
.category-nav-list { display: flex; justify-content: flex-start; flex-wrap: wrap; gap: 5px; order: 1; }
.category-nav-item { display: flex; padding: 8px 15px; border-radius: 20px; font-size: 15px; color: #fff; transition: all .3s ease; }
.category-nav-item.active, .category-nav-item:hover { background-color: rgba(255,255,255,.1); color: var(--theme-color); }

.search-box { max-width: 300px; text-align: center; position: relative; z-index: 2; margin-left: auto; order: 2; }
.search-box form { display: flex; box-shadow: 0 2px 10px rgba(0,0,0,.5); border-radius: 50px; overflow: hidden; }
.search-box input { flex: 1; padding: 8px 15px; border: none; background: #222; color: #fff; font-size: 14px; outline: 0; }
.search-box button { background: var(--theme-color); color: #000; border: none; padding: 8px 20px; cursor: pointer; font-size: 14px; font-weight: 700; }

/* 推荐网格 (原站样式) */
.recommend { margin: 15px auto; text-align: center; border-radius: 10px; }
.recommend h3 { 
    margin-bottom: 20px; font-size: 20px; color: #fff; position: relative; 
    display: flex; align-items: center; justify-content: space-between; 
    padding-bottom: 15px; border-bottom: 1px solid rgba(255,255,255,.1);
}
.section-title { font-weight: 600; position: relative; padding-left: 10px; }
.section-title:before { content: ''; position: absolute; left: 0; top: 2px; height: 80%; width: 4px; background: var(--theme-color); border-radius: 2px; }

.recommend-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 15px; margin: 0 auto; }
.recommend-card { background: #1a1a1a; border-radius: 8px; overflow: hidden; transition: transform .3s ease; }
.recommend-card:hover { transform: translateY(-5px); box-shadow: 0 5px 15px rgba(234, 214, 125, 0.2); }
.recommend-card a { color: inherit; text-decoration: none; display: block; }
.recommend-thumbnail { position: relative; width: 100%; padding-top: 65%; overflow: hidden; background: #333; }
.recommend-thumbnail img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.recommend-card:hover .recommend-thumbnail img { transform: scale(1.05); }

.vod-tag { position: absolute; right: 5px; bottom: 5px; background: rgba(0,0,0,0.7); color: #fff; padding: 2px 6px; font-size: 12px; border-radius: 4px; }
.recommend-info { padding: 10px; text-align: left; }
.recommend-info h4 { margin: 0; font-size: 14px; font-weight: normal; color: #e5e7eb; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* 播放页详情卡片 */
.video-container { margin: 20px auto; position: relative; background: #000; border: 1px solid #333; }
#video-player { position: relative; width: 100%; margin: 0 auto; aspect-ratio: 16/9; background: #000; }
.content-card { margin: 0; margin-top: 10px; padding: 15px; background-color: #1a1a1a; border-radius: 8px; }
.video-title { margin: 0; margin-bottom: 10px; font-size: 18px; font-weight: 700; color: #F5F5F5; }
.content-badge { display: inline-block; padding: 4px 10px; background: rgba(255,255,255,.1); color: #b9b9b9; border-radius: 15px; font-size: 12px; margin-right: 10px; margin-bottom: 10px;}
.content-desc { color: #999; font-size: 14px; line-height: 1.6; margin-top: 10px; }

/* 播放列表按钮 */
.play-list-card { margin-top: 15px; padding: 15px; background-color: #1a1a1a; border-radius: 8px; }
.source-title { font-size: 15px; color: #fff; margin-bottom: 10px; padding-left: 8px; border-left: 3px solid var(--theme-color); }
.video-links { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0; list-style: none; }
.video-links li { background-color: #333; border-radius: 5px; transition: background .3s; }
.video-links li:hover { background-color: #444; }
.video-links li a { display: block; padding: 6px 15px; font-size: 13px; text-decoration: none; color: #f5f5f5; }
.video-links li a.active { color: #000; background-color: var(--theme-color); border-radius: 5px; }

/* 筛选条件 (分类页) */
.filter-box { background: #1a1a1a; padding: 15px; border-radius: 8px; margin-bottom: 20px; }
.filter-row { display: flex; align-items: center; margin-bottom: 10px; flex-wrap: wrap; }
.filter-row:last-child { margin-bottom: 0; }
.filter-label { color: #999; font-size: 14px; margin-right: 15px; white-space: nowrap; }
.filter-items { display: flex; flex-wrap: wrap; gap: 8px; }
.filter-items a { color: #ccc; font-size: 14px; padding: 4px 12px; border-radius: 15px; background: #222; }
.filter-items a:hover, .filter-items a.active { background: var(--theme-color); color: #000; }

/* 分页 */
.pagination { display: flex; justify-content: center; gap: 10px; margin: 30px 0; }
.pagination a, .pagination span { display: inline-block; padding: 8px 15px; background: #1a1a1a; color: #fff; border-radius: 4px; font-size: 14px; }
.pagination a:hover, .pagination span.current { background: var(--theme-color); color: #000; }

/* 底部 */
.footer { text-align: center; margin-top: 40px; padding: 30px 0; font-size: 13px; color: #666; border-top: 1px solid #222; }

/* 移动端适配 Mobile Responsive */
.mobile-menu-btn { display: none; background: 0 0; border: none; width: 30px; height: 30px; cursor: pointer; z-index: 1000; }
.mobile-menu-btn span { display: block; width: 100%; height: 2px; background-color: var(--theme-color); margin: 6px 0; transition: all .3s; }

@media (max-width: 768px) {
    header { padding: 10px 15px; }
    .logo span { font-size: 18px; }
    .mobile-menu-btn { display: block!important; position: relative; z-index: 9999; }
    .search-box { display: none; /* 移动端可以考虑放到侧边栏或单独一行 */ }
    
    .category-nav {
        position: fixed; flex-direction: column; top: 0; left: -100%; 
        width: 70%; height: 100%; z-index: 9998; background: #111;
        padding: 60px 20px 20px; transition: left .3s ease; text-align: left;
    }
    .category-nav.active { left: 0; box-shadow: 5px 0 15px rgba(0,0,0,.5); }
    .category-nav-list { flex-direction: column; width: 100%; }
    .category-nav-item { width: 100%; padding: 12px 15px; border-bottom: 1px solid #222; border-radius: 0; }
    
    .recommend-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .recommend h3 { font-size: 16px; margin-bottom: 15px; }
    
    .video-links li a { padding: 5px 10px; font-size: 12px; }
}

/* 移动端遮罩 */
.nav-overlay { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,.6); z-index: 9997; }
.nav-overlay.active { display: block; }
