:root {
    --primary: #6C5CE7;
    --secondary: #FD79A8;
    --grey:#5b5870;
    --dark: #0F0E1E;
    --light: #F8F9FF;
    --text-muted: rgba(255, 255, 255, 0.6);
    --glass: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.15);
    --success: #00E676;
    --error: #FF5252;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
a {
    text-decoration: none;
}
body {
    font-family: 'Inter', sans-serif;
    background: var(--dark);
    color: var(--light);
    min-height: 100vh;
    line-height: 1.6;
}
/* 公共 */
.mr20{
    margin-right: 20px;
}
.ft18{
    font-size: 18px;
}
.ft20{
    font-size: 20px;
}
.ft25{
    font-size: 25px;
}
.ft30{
    font-size: 30px;
}
.navs{
    display:none;
}
/* 顶部导航 */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgb(15 14 30);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgb(55 62 71);
}

.logo {
    font-size: 1.5rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #fff;
}

.logo i {
    color: var(--primary);
}

.navbar{
    display: flex;
    gap: 2rem;
}
.nav-link {
    display: flex;
    align-items: center;
    color: var(--text-secondary);
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    transition: var(--transition-fast);
}

.nav-link:hover {
    color: var(--text-primary);
    background: var(--bg-tertiary);
}

.nav-link i {
    margin-right: 0.5rem;
}
/* 视频主容器 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem;
    position: relative;
    z-index: 1;
}

/* 标题区域 */
.hero-section {
    text-align: center;
    margin: 2rem 0 3rem;
}

.hero-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    color: var(--text-muted);
    font-size: 1.1rem;
}

/* 主内容布局 */
.video-content {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 2rem;
}
/* 视频卡片 */
.video-card {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.video-container {
    position: relative;
    aspect-ratio: 16/9;
    background: #000;
}

#videoPlayer {
    width: 100%;
    height: 100%;
    display: block;
}

.loading {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    gap: 1rem;
}

.fa-spin {
    font-size: 2rem;
}

.video-overlay {
    position: absolute;
    top: 0;
    right: 0;
    padding: 1rem;
    display: flex;
    gap: 0.5rem;
}

.overlay-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.5);
    border: none;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.overlay-btn:hover {
    background: var(--primary);
}

/* 控制按钮 */
.controls {
    display: flex;
    padding: 1rem;
    gap: 0.75rem;
    flex-wrap: wrap;
}
.btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 2rem;
    background: var(--primary);
    color: white;
    border: none;
    cursor: pointer;
    font-weight: 500;
    transition: var(--transition);
} 
.btn:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

.btn-secondary {
    background: var(--glass);
}

/* 侧边栏 */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.sidebar-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 1rem;
    padding: 1.5rem;
}

.sidebar-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

/* 统计数据 */
.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.stat-item {
    text-align: center;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 0.5rem;
}

.stat-number {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: var(--primary);
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* 视频质量选择 */
.quality-selector {
    display: flex;
    gap: 0.5rem;
}

.quality-btn {
    flex: 1;
    padding: 0.5rem;
    border-radius: 0.5rem;
    background: var(--glass);
    border: none;
    color: white;
    cursor: pointer;
    transition: var(--transition);
}

.quality-btn.active {
    background: var(--primary);
}

/* 内容列表 */
.content-list {
    max-height: 300px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--primary) var(--glass);
}

.content-list::-webkit-scrollbar {
    width: 6px;
}

.content-list::-webkit-scrollbar-track {
    background: var(--glass);
    border-radius: 3px;
}

.content-list::-webkit-scrollbar-thumb {
    background-color: var(--primary);
    border-radius: 3px;
}

/* 错误消息 */
.error-msg {
    padding: 1rem;
    color: var(--error);
    text-align: center;
    display: none;
}

/* 开关控件 */
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 48px;
    height: 24px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--glass);
    transition: var(--transition);
    border-radius: 34px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: var(--transition);
    border-radius: 50%;
}

input:checked + .slider {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
}

input:checked + .slider:before {
    transform: translateX(24px);
}

/* 收藏项样式 */
.favorite-item {
    padding: 0.75rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    cursor: pointer;
    transition: var(--transition);
    gap: 0.75rem;
}

.favorite-item:hover {
    background: rgba(255, 255, 255, 0.05);
}

.favorite-item .video-thumbnail {
    width: 60px;
    height: 40px;
    background-color: #333;
    border-radius: 4px;
    overflow: hidden;
    flex-shrink: 0;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.favorite-item .video-thumbnail i {
    color: rgba(255, 255, 255, 0.5);
    font-size: 1rem;
}

.favorite-item .video-thumbnail .duration {
    position: absolute;
    bottom: 2px;
    right: 2px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    font-size: 0.6rem;
    padding: 0.1rem 0.3rem;
    border-radius: 2px;
}

.favorite-item .video-info {
    flex: 1;
    min-width: 0;
}

.favorite-item .video-title {
    font-weight: 500;
    margin-bottom: 0.25rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.favorite-item .video-date {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.favorite-item .play-btn {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--glass);
    border: none;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    flex-shrink: 0;
}

.favorite-item .play-btn:hover {
    background: var(--primary);
}







.image-content{
    display: flex;
    flex-wrap: wrap;
} 
.image-card {
    background: rgba(0, 0, 0, 0.3); 
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}
.image-btn {
    background: var(--grey);
}
.image-btn.active{
    background-color: var(--primary) !important;
}
.image-btn:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}
.category-item{
    width: 25%;
    padding: 15px;
    transition: transform 0.3s ease;
}
.resource-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
}

.page-center{
    display: flex;
    align-items: center;
    justify-content: center;
}
.page{
    padding: 20px;
}
.close{
    background: var(--grey);
    border: none;
    border-radius: 50%;
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0.25rem;
    transition: var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    position: fixed;
    right: -10px;
    top: -10px;
}
.resource-img:hover {
    transform: scale(1.1);
}
#previewImageContainer {
    width: 80%;
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 9999;
    background-color: #000000f0;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);  
}
#previewImage {
    max-width: 100%;
    height: auto;
} 
#viewOriginal {
    margin-top: 10px;
}
/* 下载通知样式 */
.download-notification {
    position: fixed;
    top: 100px;
    right: 20px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 15px 20px;
    border-radius: 8px;
    z-index: 10000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: none;
}

.notification-content {
    display: flex;
    align-items: center;
    gap: 10px;
}

.notification-content i {
    color: #4CAF50;
    font-size: 18px;
}
.no-data{
    width: 100%;
    text-align: center;
    padding: 50px;
    color: #999;
    font-size: 16px;
}














/* 侧边栏菜单样式 */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -300px;
    width: 280px;
    height: 100vh;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    transition: right 0.3s ease;
    z-index: 1000;
    padding: 60px 20px 20px;
}

.mobile-menu.active {
    right: 0;
}

.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    display: none;
}

.menu-overlay.active {
    display: block;
}

.mobile-nav-link {
    display: flex;
    align-items: center;
    padding: 15px;
    margin: 10px 0;
    border-radius: 8px;
    color: #333;
    text-decoration: none;
    transition: all 0.3s ease;
}

.mobile-nav-link:hover {
    background: rgba(0, 0, 0, 0.05);
    transform: translateX(5px);
}

.mobile-nav-link i {
    margin-right: 10px;
    width: 20px;
    text-align: center;
}

.close-menu {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: #666;
}

.menu-header {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 50px;
    background: rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    padding: 0 20px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.menu-title {
    font-weight: bold;
    color: #333;
}

/* 暗色主题支持 */
[data-theme="dark"] .mobile-menu {
    background: rgb(7 7 15 / 52%);
}

[data-theme="dark"] .mobile-nav-link {
    color: #fff;
}

[data-theme="dark"] .mobile-nav-link:hover {
    background: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .menu-header {
    background: rgba(255, 255, 255, 0.05);
    border-bottom-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .menu-title {
    color: #fff;
}

[data-theme="dark"] .close-menu {
    color: #ccc;
}

/* 响应式调整 */
@media (max-width: 768px) {
.navbar{
    display: none;
}
.navs{
    display: block;
    cursor: pointer;
}
.video-content {
    grid-template-columns: 1fr;
}
.controls {
    justify-content: center;
}
    
.sidebar {
    /*order: -1;*/
}
.category-item {
    width: 50%;
}
.page-center{
    flex-wrap: wrap;
}
.pages{
    padding: 5px;
    font-size: 14px;
}
/* 确保navs图标可点击 */
.navs l {
    cursor: pointer;
    transition: transform 0.3s ease;
}
.navs:hover l {
    transform: scale(1.1);
}
} 