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

:root {
    /* 白湖传媒品牌色彩系统 */
    --primary-color: #2563eb;      /* 主蓝色 */
    --primary-light: #3b82f6;     /* 浅蓝色 */
    --primary-dark: #1d4ed8;      /* 深蓝色 */
    --secondary-color: #06b6d4;   /* 辅助青色 */
    --accent-color: #f59e0b;      /* 强调橙色 */
    
    /* 背景色系 */
    --dark-bg: #0f172a;           /* 深海蓝背景 */
    --darker-bg: #020617;         /* 更深背景 */
    --card-bg: #1e293b;           /* 卡片背景 */
    --card-hover: #334155;        /* 卡片悬停 */
    
    /* 文字色系 */
    --text-primary: #f8fafc;      /* 主文字 */
    --text-secondary: #94a3b8;    /* 次要文字 */
    --text-muted: #64748b;        /* 弱化文字 */
    
    /* 边框和阴影 */
    --border-color: #334155;
    --border-light: #475569;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.4);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.5);
    
    /* 圆角系统 */
    --radius-sm: 6px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-full: 9999px;
    
    /* 过渡动画 */
    --transition-fast: 150ms ease;
    --transition-normal: 250ms ease;
    --transition-slow: 350ms ease;
    
    /* 间距系统 */
    --space-1: 4px;
    --space-2: 8px;
    --space-3: 12px;
    --space-4: 16px;
    --space-5: 20px;
    --space-6: 24px;
    --space-8: 32px;
    --space-10: 40px;
    --space-12: 48px;
    --space-16: 64px;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', 'Helvetica Neue', sans-serif;
    background: linear-gradient(135deg, var(--dark-bg) 0%, var(--darker-bg) 100%);
    color: var(--text-primary);
    min-height: 100vh;
    padding-bottom: 80px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* 顶部导航栏 */
.header {
    background: rgba(2, 6, 23, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow-lg);
    border-bottom: 1px solid rgba(51, 65, 85, 0.5);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    max-width: 1400px;
    margin: 0 auto;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 24px;
    font-weight: bold;
    color: var(--primary-color);
}

.logo i {
    font-size: 28px;
}

.search-bar {
    flex: 1;
    max-width: 500px;
    margin: 0 20px;
    position: relative;
}

.search-bar input {
    width: 100%;
    padding: 10px 40px 10px 16px;
    border: 1px solid var(--border-color);
    border-radius: 25px;
    background-color: var(--card-bg);
    color: var(--text-primary);
    font-size: 14px;
    outline: none;
    transition: border-color 0.3s;
}

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

.search-bar button {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
}

.user-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.btn-upload {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    border: none;
    padding: var(--space-2) var(--space-4);
    border-radius: var(--radius-full);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-size: 14px;
    font-weight: 600;
    transition: all var(--transition-fast);
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
}

.btn-upload::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left var(--transition-normal);
}

.btn-upload:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    background: linear-gradient(135deg, var(--primary-light), var(--primary-color));
}

.btn-upload:hover::before {
    left: 100%;
}

.btn-upload:active {
    transform: translateY(0);
}
}

.user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: var(--card-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

/* 分类标签 */
.category-tags {
    display: flex;
    gap: var(--space-3);
    padding: var(--space-4) 0;
    overflow-x: auto;
    max-width: 1400px;
    margin: 0 auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.category-tags::-webkit-scrollbar {
    display: none;
}

.tag {
    background: var(--card-bg);
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
    padding: var(--space-2) var(--space-4);
    border-radius: var(--radius-full);
    cursor: pointer;
    white-space: nowrap;
    font-size: 14px;
    font-weight: 500;
    transition: all var(--transition-fast);
    position: relative;
    overflow: hidden;
}

.tag::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left var(--transition-normal);
}

.tag:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.tag:hover::before {
    left: 100%;
}

.tag.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.3);
}

/* 主要内容区域 */
.main-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 16px;
}

/* 视频网格 */
.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: var(--space-6);
    padding: var(--space-6) 0;
    animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 视频卡片 */
.video-card {
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-normal);
    cursor: pointer;
    border: 1px solid transparent;
    position: relative;
}

.video-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-color);
    background: var(--card-hover);
}

.video-card:active {
    transform: translateY(-2px) scale(0.98);
}

.video-thumbnail {
    position: relative;
    width: 100%;
    height: 180px;
    background: linear-gradient(135deg, var(--darker-bg), var(--card-bg));
    overflow: hidden;
}

.video-thumbnail::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    pointer-events: none;
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.video-card:hover .video-thumbnail::after {
    opacity: 1;
}

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

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

.video-info {
    padding: 12px;
}

.video-title {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.video-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-secondary);
    font-size: 12px;
}

.video-author {
    display: flex;
    align-items: center;
    gap: 6px;
}

.author-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background-color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
}

.video-stats {
    display: flex;
    gap: 12px;
}

.video-stats span {
    display: flex;
    align-items: center;
    gap: 4px;
}

/* 底部导航栏 */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(2, 6, 23, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    display: flex;
    justify-content: space-around;
    padding: var(--space-3) 0;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.4);
    z-index: 100;
    border-top: 1px solid rgba(51, 65, 85, 0.5);
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-1);
    color: var(--text-muted);
    text-decoration: none;
    font-size: 11px;
    font-weight: 500;
    transition: all var(--transition-fast);
    padding: var(--space-2) var(--space-4);
    border-radius: var(--radius-md);
    position: relative;
}

.nav-item::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--primary-color);
    border-radius: var(--radius-full);
    transition: width var(--transition-normal);
}

.nav-item:hover,
.nav-item.active {
    color: var(--primary-color);
    transform: translateY(-2px);
}

.nav-item:hover::after,
.nav-item.active::after {
    width: 20px;
}

.nav-item i {
    font-size: 22px;
    transition: transform var(--transition-fast);
}

.nav-item:hover i {
    transform: scale(1.1);
}

/* 视频播放模态框 */
.video-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.video-modal.active {
    display: flex;
    opacity: 1;
    animation: modalFadeIn 0.3s ease-out;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}
.modal-content {
    background: var(--darker-bg);
    border-radius: var(--radius-xl);
    width: 90%;
    max-width: 1000px;
    max-height: 90vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--border-color);
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        transform: translateY(30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-header {
    display: flex;
    align-items: center;
    padding: 16px;
    border-bottom: 1px solid var(--border-color);
}

.close-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 24px;
    cursor: pointer;
    margin-right: 16px;
}

.modal-body {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.video-player {
    width: 100%;
    background: #000;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    overflow: hidden;
    position: relative;
}

.video-player video {
    width: 100%;
    max-height: 60vh;
    display: block;
    background: #000;
}

.video-player::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.3), transparent);
    z-index: 1;
    pointer-events: none;
}

.video-info {
    padding: 16px;
    flex: 1;
    overflow-y: auto;
}

.video-description {
    margin: 16px 0;
    color: var(--text-secondary);
    line-height: 1.6;
}

.video-actions {
    display: flex;
    gap: 16px;
    margin-top: 16px;
}

.action-btn {
    background: var(--card-bg);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    padding: var(--space-2) var(--space-4);
    border-radius: var(--radius-full);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-size: 14px;
    font-weight: 500;
    transition: all var(--transition-fast);
    position: relative;
    overflow: hidden;
}

.action-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width var(--transition-normal), height var(--transition-normal);
}

.action-btn:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.action-btn:hover::before {
    width: 200%;
    height: 200%;
}

.action-btn:active {
    transform: translateY(0);
}
}

/* 响应式设计 */
@media (max-width: 768px) {
    .header-content {
        flex-wrap: wrap;
        gap: var(--space-3);
        padding: var(--space-3);
    }
    
    .logo {
        font-size: 20px;
    }
    
    .search-bar {
        order: 3;
        margin: 0;
        max-width: 100%;
        width: 100%;
    }
    
    .search-bar input {
        padding: 8px 40px 8px 12px;
        font-size: 14px;
    }
    
    .btn-upload {
        padding: 6px 12px;
        font-size: 13px;
    }
    
    .user-avatar {
        width: 32px;
        height: 32px;
    }
    
    .video-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: var(--space-4);
    }
    
    .video-thumbnail {
        height: 140px;
    }
    
    .video-info {
        padding: var(--space-3);
    }
    
    .video-title {
        font-size: 13px;
        margin-bottom: var(--space-2);
    }
    
    .video-meta {
        font-size: 11px;
    }
    
    .modal-content {
        width: 95%;
        margin: var(--space-2);
        max-height: 85vh;
    }
    
    .modal-header {
        padding: var(--space-3);
    }
    
    .video-player video {
        max-height: 50vh;
    }
    
    .video-actions {
        flex-wrap: wrap;
        gap: var(--space-2);
    }
    
    .action-btn {
        padding: 8px 12px;
        font-size: 13px;
    }
    
    .category-tags {
        padding: var(--space-3) 0;
        gap: var(--space-2);
    }
    
    .tag {
        padding: var(--space-2) var(--space-3);
        font-size: 13px;
    }
    
    .bottom-nav {
        padding: var(--space-2) 0;
    }
    
    .nav-item {
        font-size: 10px;
        padding: var(--space-1) var(--space-2);
    }
    
    .nav-item i {
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    .video-grid {
        grid-template-columns: 1fr;
        gap: var(--space-4);
    }
    
    .video-thumbnail {
        height: 200px;
    }
    
    .video-title {
        font-size: 15px;
    }
    
    .category-tags {
        padding: var(--space-2) 0;
        gap: var(--space-2);
    }
    
    .tag {
        padding: var(--space-1) var(--space-3);
        font-size: 12px;
    }
    
    .modal-content {
        width: 100%;
        margin: 0;
        border-radius: 0;
        max-height: 100vh;
    }
    
    .modal-header {
        padding: var(--space-3);
        border-radius: 0;
    }
    
    .video-player video {
        max-height: 40vh;
    }
    
    .video-info {
        padding: var(--space-3);
    }
    
    .video-actions {
        flex-direction: column;
        gap: var(--space-2);
    }
    
    .action-btn {
        width: 100%;
        justify-content: center;
    }
    
    .bottom-nav {
        padding: var(--space-1) 0;
    }
    
    .nav-item {
        font-size: 9px;
        padding: var(--space-1);
    }
    
    .nav-item i {
        font-size: 16px;
    }
    
    .footer {
        padding: var(--space-4);
        margin-top: var(--space-6);
    }
    
    .footer p {
        font-size: 13px;
    }
}
.footer {
    background-color: var(--darker-bg);
    color: var(--text-secondary);
    text-align: center;
    padding: 20px;
    margin-top: 40px;
    border-top: 1px solid var(--border-color);
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
}

.footer p {
    font-size: 14px;
    margin: 0;
}/* 视频叠加层按钮 */
.video-overlay {
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
    z-index: 2;
    opacity: 0;
    transform: translateX(10px);
    transition: all var(--transition-normal);
}

.video-card:hover .video-overlay {
    opacity: 1;
    transform: translateX(0);
}

.overlay-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    border: none;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    transition: all var(--transition-fast);
}

.overlay-btn:hover {
    transform: scale(1.1);
    background: rgba(0, 0, 0, 0.9);
}

.overlay-btn.liked {
    background: var(--primary-color);
    color: white;
}

.overlay-btn.favorited {
    background: var(--accent-color);
    color: white;
}

/* 点赞动画 */
.animate-like {
    animation: likeAnimation 0.6s ease;
}

@keyframes likeAnimation {
    0% { transform: scale(1); }
    25% { transform: scale(1.3); }
    50% { transform: scale(0.9); }
    75% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

/* 收藏动画 */
.animate-favorite {
    animation: favoriteAnimation 0.6s ease;
}

@keyframes favoriteAnimation {
    0% { transform: scale(1); }
    25% { transform: scale(1.2); }
    50% { transform: scale(0.95); }
    75% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* 点赞计数样式 */
.like-count.liked {
    color: var(--primary-color);
}

/* 模态框按钮样式 */
.modal-like-btn.liked {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.modal-favorite-btn.favorited {
    background: var(--accent-color);
    color: white;
    border-color: var(--accent-color);
}

/* Toast提示 */
.toast {
    position: fixed;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: var(--card-bg);
    color: var(--text-primary);
    padding: var(--space-3) var(--space-6);
    border-radius: var(--radius-full);
    box-shadow: var(--shadow-lg);
    z-index: 2000;
    opacity: 0;
    transition: all var(--transition-normal);
    font-size: 14px;
    font-weight: 500;
    border: 1px solid var(--border-color);
}

.toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* 视频卡片悬停效果增强 */
.video-card:hover .video-thumbnail img {
    transform: scale(1.05);
    transition: transform var(--transition-slow);
}

.video-thumbnail img {
    transition: transform var(--transition-slow);
}

/* 响应式调整 */
@media (max-width: 768px) {
    .video-overlay {
        opacity: 1;
        transform: translateX(0);
    }
    
    .overlay-btn {
        width: 32px;
        height: 32px;
        font-size: 12px;
    }
}/* 加载更多按钮 */
.load-more-container {
    display: flex;
    justify-content: center;
    padding: var(--space-8) 0;
    grid-column: 1 / -1;
}

.load-more-btn {
    background: var(--card-bg);
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
    padding: var(--space-3) var(--space-6);
    border-radius: var(--radius-full);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-size: 14px;
    font-weight: 500;
    transition: all var(--transition-fast);
}

.load-more-btn:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.load-more-btn i {
    transition: transform var(--transition-fast);
}

.load-more-btn:hover i {
    transform: translateY(2px);
}

/* 图片懒加载动画 */
img[loading="lazy"] {
    opacity: 0;
    transition: opacity var(--transition-normal);
}

img[loading="lazy"].loaded,
img[loading="lazy"]:not([data-src]) {
    opacity: 1;
}

/* 加载状态 */
.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid var(--border-color);
    border-radius: 50%;
    border-top-color: var(--primary-color);
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* 空状态 */
.empty-state {
    text-align: center;
    padding: var(--space-16) var(--space-4);
    color: var(--text-muted);
}

.empty-state i {
    font-size: 48px;
    margin-bottom: var(--space-4);
    opacity: 0.5;
}

.empty-state p {
    font-size: 16px;
    margin-bottom: var(--space-2);
}/* 加载状态容器 */
.loading-container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: var(--space-16) 0;
    grid-column: 1 / -1;
}

.loading-content {
    text-align: center;
}

.loading-spinner-large {
    width: 48px;
    height: 48px;
    border: 4px solid var(--border-color);
    border-radius: 50%;
    border-top-color: var(--primary-color);
    animation: spin 1s ease-in-out infinite;
    margin: 0 auto var(--space-4);
}

.loading-text {
    color: var(--text-secondary);
    font-size: 16px;
    margin: 0;
}

/* 空状态容器 */
.empty-state-container {
    grid-column: 1 / -1;
    padding: var(--space-16) 0;
}

/* 页面过渡动画 */
.page-transition {
    animation: pageIn 0.4s ease-out;
}

@keyframes pageIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 视频卡片进入动画 */
.video-card {
    animation: cardIn 0.4s ease-out;
    animation-fill-mode: both;
}

@keyframes cardIn {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* 错误状态 */
.error-state {
    text-align: center;
    padding: var(--space-8) var(--space-4);
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: var(--radius-lg);
    color: #ef4444;
    margin: var(--space-4) 0;
}

.error-state i {
    font-size: 24px;
    margin-bottom: var(--space-2);
}

/* 成功状态 */
.success-state {
    text-align: center;
    padding: var(--space-8) var(--space-4);
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.3);
    border-radius: var(--radius-lg);
    color: #22c55e;
    margin: var(--space-4) 0;
}

/* 骨架屏加载效果 */
.skeleton {
    background: linear-gradient(90deg, var(--card-bg) 25%, var(--card-hover) 50%, var(--card-bg) 75%);
    background-size: 200% 100%;
    animation: skeleton 1.5s ease-in-out infinite;
    border-radius: var(--radius-md);
}

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

.skeleton-card {
    height: 280px;
    margin-bottom: var(--space-4);
}

.skeleton-thumbnail {
    height: 180px;
    margin-bottom: var(--space-3);
}

.skeleton-title {
    height: 16px;
    width: 80%;
    margin-bottom: var(--space-2);
}

.skeleton-meta {
    height: 12px;
    width: 60%;
}/* 重试按钮 */
.retry-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: var(--space-2) var(--space-4);
    border-radius: var(--radius-full);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    font-size: 14px;
    font-weight: 500;
    margin-top: var(--space-4);
    transition: all var(--transition-fast);
}

.retry-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* 视频播放错误状态 */
.video-error {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 300px;
    background: var(--card-bg);
    color: var(--text-muted);
    text-align: center;
    padding: var(--space-4);
}

.video-error i {
    font-size: 48px;
    margin-bottom: var(--space-4);
    opacity: 0.5;
}

.video-error p {
    margin-bottom: var(--space-4);
}

/* 网络状态提示 */
.offline-banner {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: #ef4444;
    color: white;
    text-align: center;
    padding: var(--space-2);
    font-size: 14px;
    z-index: 2000;
    transform: translateY(-100%);
    transition: transform var(--transition-normal);
}

.offline-banner.show {
    transform: translateY(0);
}

/* 加载进度条 */
.loading-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    z-index: 2000;
    transition: width var(--transition-normal);
}

.loading-progress.complete {
    width: 100%;
    opacity: 0;
    transition: opacity var(--transition-slow);
}/* 用户登录模态框 */
.login-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 1500;
    justify-content: center;
    align-items: center;
}

.login-modal.active {
    display: flex;
    animation: modalFadeIn 0.3s ease-out;
}

.login-content {
    background: var(--darker-bg);
    border-radius: var(--radius-xl);
    width: 90%;
    max-width: 400px;
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--border-color);
}

.login-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-4) var(--space-5);
    border-bottom: 1px solid var(--border-color);
}

.login-header h3 {
    margin: 0;
    color: var(--text-primary);
    font-size: 18px;
}

.login-body {
    padding: var(--space-5);
}

.form-group {
    margin-bottom: var(--space-4);
}

.form-group label {
    display: block;
    margin-bottom: var(--space-2);
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
}

.form-group input {
    width: 100%;
    padding: var(--space-3);
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 14px;
    transition: all var(--transition-fast);
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2);
}

.form-group input::placeholder {
    color: var(--text-muted);
}

.login-btn {
    width: 100%;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    border: none;
    padding: var(--space-3) var(--space-4);
    border-radius: var(--radius-md);
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: all var(--transition-fast);
    margin-top: var(--space-4);
}

.login-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.login-footer {
    text-align: center;
    margin-top: var(--space-4);
    color: var(--text-secondary);
    font-size: 14px;
}

.login-footer a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

.login-footer a:hover {
    text-decoration: underline;
}

/* 用户信息面板 */
.user-panel {
    position: fixed;
    top: 0;
    right: 0;
    width: 320px;
    height: 100%;
    background: var(--darker-bg);
    box-shadow: var(--shadow-xl);
    z-index: 1400;
    transform: translateX(100%);
    transition: transform var(--transition-normal);
    overflow-y: auto;
}

.user-panel.active {
    transform: translateX(0);
}

.user-panel-content {
    padding: var(--space-5);
}

.user-info {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    margin-bottom: var(--space-6);
    padding-bottom: var(--space-4);
    border-bottom: 1px solid var(--border-color);
}

.user-avatar-large {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: white;
}

.user-details h4 {
    margin: 0 0 var(--space-1) 0;
    color: var(--text-primary);
    font-size: 18px;
}

.user-details p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 14px;
}

.user-stats {
    display: flex;
    justify-content: space-around;
    margin-bottom: var(--space-6);
    padding: var(--space-4) 0;
    background: var(--card-bg);
    border-radius: var(--radius-lg);
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 20px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: var(--space-1);
}

.stat-label {
    font-size: 12px;
    color: var(--text-secondary);
}

.user-actions-panel {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.panel-btn {
    background: var(--card-bg);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    padding: var(--space-3) var(--space-4);
    border-radius: var(--radius-md);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: var(--space-3);
    font-size: 14px;
    font-weight: 500;
    transition: all var(--transition-fast);
}

.panel-btn:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    transform: translateX(5px);
}

.panel-btn i {
    width: 20px;
    text-align: center;
}

/* 观看历史模态框 */
.history-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 1600;
    justify-content: center;
    align-items: center;
}

.history-modal.active {
    display: flex;
    animation: modalFadeIn 0.3s ease-out;
}

.history-content {
    background: var(--darker-bg);
    border-radius: var(--radius-xl);
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
}

.history-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-4) var(--space-5);
    border-bottom: 1px solid var(--border-color);
}

.history-header h3 {
    margin: 0;
    color: var(--text-primary);
    font-size: 18px;
}

.history-body {
    flex: 1;
    overflow-y: auto;
    padding: var(--space-4);
}

.history-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.history-item {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-3);
    background: var(--card-bg);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.history-item:hover {
    background: var(--card-hover);
    transform: translateX(5px);
}

.history-thumbnail {
    width: 80px;
    height: 60px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    flex-shrink: 0;
}

.history-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

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

.history-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--space-1);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.history-meta {
    font-size: 12px;
    color: var(--text-secondary);
}

.history-empty {
    text-align: center;
    padding: var(--space-8) var(--space-4);
    color: var(--text-muted);
}

.history-empty i {
    font-size: 48px;
    margin-bottom: var(--space-4);
    opacity: 0.5;
}

.history-empty p {
    font-size: 16px;
    margin: 0;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .user-panel {
        width: 100%;
    }
    
    .login-content,
    .history-content {
        width: 95%;
        margin: var(--space-2);
    }
}/* 推荐视频区域 */
.recommended-section {
    margin-top: var(--space-6);
    padding-top: var(--space-4);
    border-top: 1px solid var(--border-color);
}

.recommended-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--space-4);
}

.recommended-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: var(--space-4);
}

.recommended-card {
    background: var(--card-bg);
    border-radius: var(--radius-md);
    overflow: hidden;
    cursor: pointer;
    transition: all var(--transition-fast);
}

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

.recommended-thumbnail {
    position: relative;
    width: 100%;
    height: 120px;
    overflow: hidden;
}

.recommended-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-normal);
}

.recommended-card:hover .recommended-thumbnail img {
    transform: scale(1.05);
}

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

.recommended-info {
    padding: var(--space-3);
}

.recommended-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--space-1);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.recommended-meta {
    font-size: 12px;
    color: var(--text-secondary);
}

/* 响应式调整 */
@media (max-width: 768px) {
    .recommended-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .recommended-grid {
        grid-template-columns: 1fr;
    }
    
    .recommended-thumbnail {
        height: 150px;
    }
}/* 剧场页面样式 */
.theater-categories {
    max-width: 1400px;
    margin: 0 auto;
    padding: var(--space-4) 0;
}

.category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-6);
    flex-wrap: wrap;
    gap: var(--space-4);
}

.section-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

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

.category-tabs {
    display: flex;
    gap: var(--space-2);
    flex-wrap: wrap;
}

.category-tab {
    background: var(--card-bg);
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
    padding: var(--space-2) var(--space-4);
    border-radius: var(--radius-full);
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all var(--transition-fast);
}

.category-tab:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.category-tab.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* 精选推荐区域 */
.featured-section {
    margin-bottom: var(--space-8);
}

.featured-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-4);
}

.featured-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.featured-title i {
    color: var(--accent-color);
}

.view-all-btn {
    background: none;
    border: none;
    color: var(--primary-color);
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: var(--space-1);
    transition: all var(--transition-fast);
}

.view-all-btn:hover {
    color: var(--primary-light);
    transform: translateX(3px);
}

.featured-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: var(--space-4);
}

.featured-card {
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-normal);
    cursor: pointer;
}

.featured-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.featured-thumbnail {
    position: relative;
    width: 100%;
    height: 180px;
    overflow: hidden;
}

.featured-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.featured-card:hover .featured-thumbnail img {
    transform: scale(1.05);
}

.featured-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.7));
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: var(--space-3);
}

.featured-badge {
    background: var(--accent-color);
    color: white;
    padding: var(--space-1) var(--space-2);
    border-radius: var(--radius-sm);
    font-size: 12px;
    font-weight: 600;
}

.featured-rating {
    background: rgba(0, 0, 0, 0.7);
    color: var(--accent-color);
    padding: var(--space-1) var(--space-2);
    border-radius: var(--radius-sm);
    font-size: 12px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: var(--space-1);
}

.featured-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 20px;
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.featured-card:hover .featured-play-btn {
    opacity: 1;
}

.featured-info {
    padding: var(--space-4);
}

.featured-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 var(--space-2) 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.featured-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-2);
}

.featured-category {
    background: var(--primary-color);
    color: white;
    padding: var(--space-1) var(--space-2);
    border-radius: var(--radius-sm);
    font-size: 12px;
    font-weight: 500;
}

.featured-views {
    color: var(--text-secondary);
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: var(--space-1);
}

.featured-tags {
    display: flex;
    gap: var(--space-2);
    flex-wrap: wrap;
}

.featured-tag {
    background: var(--card-hover);
    color: var(--text-secondary);
    padding: var(--space-1) var(--space-2);
    border-radius: var(--radius-sm);
    font-size: 11px;
}

/* 热门剧场区域 */
.hot-theater-section {
    margin-bottom: var(--space-8);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-4);
    flex-wrap: wrap;
    gap: var(--space-4);
}

.sort-options {
    display: flex;
    gap: var(--space-2);
}

.sort-btn {
    background: var(--card-bg);
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
    padding: var(--space-1) var(--space-3);
    border-radius: var(--radius-full);
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all var(--transition-fast);
}

.sort-btn:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.sort-btn.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.theater-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--space-4);
}

.theater-card {
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-normal);
    cursor: pointer;
}

.theater-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.theater-thumbnail {
    position: relative;
    width: 100%;
    height: 160px;
    overflow: hidden;
}

.theater-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.theater-card:hover .theater-thumbnail img {
    transform: scale(1.05);
}

.theater-duration {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 2px 6px;
    border-radius: var(--radius-sm);
    font-size: 12px;
}

.theater-rating {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.8);
    color: var(--accent-color);
    padding: 2px 6px;
    border-radius: var(--radius-sm);
    font-size: 12px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
}

.theater-info {
    padding: var(--space-3);
}

.theater-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 var(--space-2) 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.theater-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-2);
}

.theater-category {
    color: var(--primary-color);
    font-size: 12px;
    font-weight: 500;
}

.theater-episodes {
    color: var(--text-secondary);
    font-size: 12px;
}

.theater-stats {
    display: flex;
    gap: var(--space-3);
    margin-bottom: var(--space-2);
    color: var(--text-secondary);
    font-size: 12px;
}

.theater-stats span {
    display: flex;
    align-items: center;
    gap: var(--space-1);
}

.theater-tags {
    display: flex;
    gap: var(--space-2);
    flex-wrap: wrap;
}

.theater-tag {
    background: var(--card-hover);
    color: var(--text-secondary);
    padding: var(--space-1) var(--space-2);
    border-radius: var(--radius-sm);
    font-size: 11px;
}

/* 分类排行区域 */
.ranking-section {
    margin-bottom: var(--space-8);
}

.ranking-tabs {
    display: flex;
    gap: var(--space-2);
}

.ranking-tab {
    background: var(--card-bg);
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
    padding: var(--space-1) var(--space-3);
    border-radius: var(--radius-full);
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all var(--transition-fast);
}

.ranking-tab:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.ranking-tab.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.ranking-grid {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.ranking-item {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-3);
    background: var(--card-bg);
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
    cursor: pointer;
}

.ranking-item:hover {
    background: var(--card-hover);
    transform: translateX(5px);
}

.ranking-rank {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--card-hover);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    color: var(--text-secondary);
    flex-shrink: 0;
}

.ranking-rank.gold {
    background: linear-gradient(135deg, #ffd700, #ffaa00);
    color: #000;
}

.ranking-rank.silver {
    background: linear-gradient(135deg, #c0c0c0, #a0a0a0);
    color: #000;
}

.ranking-rank.bronze {
    background: linear-gradient(135deg, #cd7f32, #b87333);
    color: #000;
}

.ranking-thumbnail {
    width: 80px;
    height: 60px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    flex-shrink: 0;
}

.ranking-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

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

.ranking-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--space-1);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ranking-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ranking-category {
    color: var(--primary-color);
    font-size: 12px;
    font-weight: 500;
}

.ranking-stats {
    color: var(--text-secondary);
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.ranking-stats i {
    margin-right: 2px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .category-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .featured-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
    
    .theater-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
    
    .section-header {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 480px) {
    .featured-grid {
        grid-template-columns: 1fr;
    }
    
    .theater-grid {
        grid-template-columns: 1fr;
    }
    
    .category-tabs,
    .sort-options,
    .ranking-tabs {
        flex-wrap: wrap;
    }
    
    .ranking-item {
        flex-wrap: wrap;
    }
    
    .ranking-thumbnail {
        width: 100%;
        height: 120px;
    }
}/* 发现页面样式 */
.discover-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: var(--space-4) 0;
}

.hot-searches-section,
.tag-cloud-section,
.hot-videos-section,
.special-topics-section,
.latest-uploads-section {
    margin-bottom: var(--space-8);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-4);
    flex-wrap: wrap;
    gap: var(--space-4);
}

.section-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

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

.refresh-btn {
    background: var(--card-bg);
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
    padding: var(--space-2) var(--space-3);
    border-radius: var(--radius-full);
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: var(--space-2);
    transition: all var(--transition-fast);
}

.refresh-btn:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.refresh-btn.rotating i {
    animation: rotate 1s linear;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* 热门搜索标签 */
.hot-searches-tags {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-3);
}

.hot-search-tag {
    background: var(--card-bg);
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
    padding: var(--space-2) var(--space-4);
    border-radius: var(--radius-full);
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all var(--transition-fast);
}

.hot-search-tag:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

/* 标签云 */
.tag-filter {
    display: flex;
    gap: var(--space-2);
}

.tag-filter-btn {
    background: var(--card-bg);
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
    padding: var(--space-1) var(--space-3);
    border-radius: var(--radius-full);
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all var(--transition-fast);
}

.tag-filter-btn:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.tag-filter-btn.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-3);
    padding: var(--space-4);
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
}

.tag-cloud-item {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-2) var(--space-3);
    background: var(--card-hover);
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.tag-cloud-item:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

.tag-cloud-item.tag-large {
    font-size: 16px;
    font-weight: 700;
    padding: var(--space-3) var(--space-4);
}

.tag-cloud-item.tag-medium {
    font-size: 14px;
    font-weight: 600;
}

.tag-cloud-item.tag-small {
    font-size: 12px;
    font-weight: 500;
}

.tag-name {
    color: var(--text-primary);
}

.tag-count {
    color: var(--text-secondary);
    font-size: 12px;
}

/* 热门视频 */
.time-filter {
    display: flex;
    gap: var(--space-2);
}

.time-filter-btn {
    background: var(--card-bg);
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
    padding: var(--space-1) var(--space-3);
    border-radius: var(--radius-full);
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all var(--transition-fast);
}

.time-filter-btn:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.time-filter-btn.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.hot-videos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: var(--space-4);
}

.hot-video-card {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-3);
    background: var(--card-bg);
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
    cursor: pointer;
}

.hot-video-card:hover {
    background: var(--card-hover);
    transform: translateX(5px);
}

.hot-video-rank {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--card-hover);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    color: var(--text-secondary);
    flex-shrink: 0;
}

.hot-rank-1 {
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
    color: white;
}

.hot-rank-2 {
    background: linear-gradient(135deg, #4ecdc4, #44bd32);
    color: white;
}

.hot-rank-3 {
    background: linear-gradient(135deg, #ffe66d, #ffa502);
    color: #000;
}

.hot-video-thumbnail {
    width: 120px;
    height: 80px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    position: relative;
    flex-shrink: 0;
}

.hot-video-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hot-video-duration {
    position: absolute;
    bottom: 4px;
    right: 4px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 2px 4px;
    border-radius: var(--radius-sm);
    font-size: 10px;
}

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

.hot-video-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--space-1);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.hot-video-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-1);
}

.hot-video-author {
    color: var(--primary-color);
    font-size: 12px;
    font-weight: 500;
}

.hot-video-views {
    color: var(--text-secondary);
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: var(--space-1);
}

.hot-video-tags {
    display: flex;
    gap: var(--space-2);
    flex-wrap: wrap;
}

.hot-video-tag {
    background: var(--card-hover);
    color: var(--text-secondary);
    padding: var(--space-1) var(--space-2);
    border-radius: var(--radius-sm);
    font-size: 11px;
}

/* 推荐专题 */
.view-all-btn {
    background: none;
    border: none;
    color: var(--primary-color);
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: var(--space-1);
    transition: all var(--transition-fast);
}

.view-all-btn:hover {
    color: var(--primary-light);
    transform: translateX(3px);
}

.special-topics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--space-4);
}

.special-topic-card {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    padding: var(--space-4);
    border-radius: var(--radius-lg);
    color: white;
    transition: all var(--transition-normal);
    cursor: pointer;
}

.special-topic-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.special-topic-icon {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
}

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

.special-topic-title {
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 var(--space-1) 0;
}

.special-topic-description {
    font-size: 14px;
    margin: 0 0 var(--space-1) 0;
    opacity: 0.9;
}

.special-topic-count {
    font-size: 12px;
    opacity: 0.8;
}

.special-topic-arrow {
    font-size: 16px;
    opacity: 0.7;
    transition: transform var(--transition-fast);
}

.special-topic-card:hover .special-topic-arrow {
    transform: translateX(5px);
    opacity: 1;
}

/* 最新上传 */
.sort-options {
    display: flex;
    gap: var(--space-2);
}

.sort-btn {
    background: var(--card-bg);
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
    padding: var(--space-1) var(--space-3);
    border-radius: var(--radius-full);
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all var(--transition-fast);
}

.sort-btn:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.sort-btn.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.latest-uploads-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--space-4);
}

.latest-upload-card {
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-normal);
    cursor: pointer;
}

.latest-upload-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.latest-upload-thumbnail {
    position: relative;
    width: 100%;
    height: 160px;
    overflow: hidden;
}

.latest-upload-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.latest-upload-card:hover .latest-upload-thumbnail img {
    transform: scale(1.05);
}

.latest-upload-duration {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 2px 6px;
    border-radius: var(--radius-sm);
    font-size: 12px;
}

.latest-upload-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background: var(--accent-color);
    color: white;
    padding: 2px 6px;
    border-radius: var(--radius-sm);
    font-size: 12px;
    font-weight: 600;
}

.latest-upload-info {
    padding: var(--space-3);
}

.latest-upload-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 var(--space-2) 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.latest-upload-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-2);
}

.latest-upload-author {
    color: var(--primary-color);
    font-size: 12px;
    font-weight: 500;
}

.latest-upload-date {
    color: var(--text-secondary);
    font-size: 12px;
}

.latest-upload-stats {
    display: flex;
    gap: var(--space-3);
    color: var(--text-secondary);
    font-size: 12px;
}

.latest-upload-stats span {
    display: flex;
    align-items: center;
    gap: var(--space-1);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .hot-videos-grid {
        grid-template-columns: 1fr;
    }
    
    .special-topics-grid {
        grid-template-columns: 1fr;
    }
    
    .latest-uploads-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
    
    .section-header {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 480px) {
    .hot-video-card {
        flex-wrap: wrap;
    }
    
    .hot-video-thumbnail {
        width: 100%;
        height: 120px;
    }
    
    .hot-video-info {
        width: 100%;
    }
    
    .special-topic-card {
        flex-wrap: wrap;
    }
    
    .special-topic-icon {
        width: 100%;
        height: 40px;
    }
    
    .latest-uploads-grid {
        grid-template-columns: 1fr;
    }
}/* 个人资料页面样式 */
.profile-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: var(--space-4) 0;
}

.profile-card {
    background: var(--card-bg);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    margin-bottom: var(--space-6);
}

.profile-header {
    position: relative;
}

.profile-cover {
    height: 200px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    position: relative;
}

.cover-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}

.profile-info {
    display: flex;
    align-items: flex-end;
    gap: var(--space-4);
    padding: 0 var(--space-5);
    margin-top: -50px;
    position: relative;
    z-index: 1;
}

.profile-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    color: white;
    border: 4px solid var(--card-bg);
    box-shadow: var(--shadow-lg);
    flex-shrink: 0;
}

.profile-details {
    flex: 1;
    padding-bottom: var(--space-4);
}

.profile-username {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 var(--space-1) 0;
}

.profile-bio {
    color: var(--text-secondary);
    font-size: 14px;
    margin: 0 0 var(--space-3) 0;
}

.profile-stats {
    display: flex;
    gap: var(--space-6);
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 20px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: var(--space-1);
}

.stat-label {
    font-size: 12px;
    color: var(--text-secondary);
}

.profile-actions {
    display: flex;
    gap: var(--space-3);
    padding: var(--space-4) var(--space-5);
    border-top: 1px solid var(--border-color);
}

.profile-btn {
    background: var(--card-hover);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    padding: var(--space-2) var(--space-4);
    border-radius: var(--radius-full);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-size: 14px;
    font-weight: 500;
    transition: all var(--transition-fast);
}

.profile-btn:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

/* 内容标签页 */
.profile-tabs {
    display: flex;
    gap: var(--space-2);
    margin-bottom: var(--space-6);
    overflow-x: auto;
    padding-bottom: var(--space-2);
}

.profile-tab {
    background: var(--card-bg);
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
    padding: var(--space-3) var(--space-5);
    border-radius: var(--radius-full);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
    transition: all var(--transition-fast);
}

.profile-tab:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.profile-tab.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* 标签页内容 */
.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
}

/* 我的上传 */
.uploads-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-4);
}

.upload-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: var(--space-2) var(--space-4);
    border-radius: var(--radius-full);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-size: 14px;
    font-weight: 500;
    transition: all var(--transition-fast);
}

.upload-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.uploads-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: var(--space-4);
}

.upload-card {
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-normal);
    cursor: pointer;
}

.upload-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.upload-thumbnail {
    position: relative;
    width: 100%;
    height: 180px;
    overflow: hidden;
}

.upload-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.upload-card:hover .upload-thumbnail img {
    transform: scale(1.05);
}

.upload-duration {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 2px 6px;
    border-radius: var(--radius-sm);
    font-size: 12px;
}

.upload-status {
    position: absolute;
    top: 8px;
    left: 8px;
    background: rgba(34, 197, 94, 0.9);
    color: white;
    padding: 2px 8px;
    border-radius: var(--radius-sm);
    font-size: 12px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 4px;
}

.upload-info {
    padding: var(--space-3);
}

.upload-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 var(--space-2) 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.upload-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-2);
}

.upload-date {
    color: var(--text-secondary);
    font-size: 12px;
}

.upload-stats {
    color: var(--text-secondary);
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.upload-stats i {
    margin-right: 2px;
}

.upload-actions {
    display: flex;
    gap: var(--space-2);
}

.upload-action-btn {
    background: var(--card-hover);
    color: var(--text-secondary);
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    transition: all var(--transition-fast);
}

.upload-action-btn:hover {
    background: var(--primary-color);
    color: white;
}

/* 我的收藏 */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-4);
    flex-wrap: wrap;
    gap: var(--space-4);
}

.section-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

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

.filter-options {
    display: flex;
    gap: var(--space-2);
}

.filter-btn {
    background: var(--card-bg);
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
    padding: var(--space-1) var(--space-3);
    border-radius: var(--radius-full);
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all var(--transition-fast);
}

.filter-btn:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.filter-btn.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.favorites-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--space-4);
}

/* 观看历史 */
.clear-btn {
    background: var(--card-bg);
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
    padding: var(--space-2) var(--space-3);
    border-radius: var(--radius-full);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-size: 13px;
    font-weight: 500;
    transition: all var(--transition-fast);
}

.clear-btn:hover {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.history-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.history-item {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-3);
    background: var(--card-bg);
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
    cursor: pointer;
}

.history-item:hover {
    background: var(--card-hover);
    transform: translateX(5px);
}

.history-thumbnail {
    width: 120px;
    height: 80px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    position: relative;
    flex-shrink: 0;
}

.history-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.history-duration {
    position: absolute;
    bottom: 4px;
    right: 4px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 2px 4px;
    border-radius: var(--radius-sm);
    font-size: 10px;
}

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

.history-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--space-1);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.history-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-1);
}

.history-author {
    color: var(--primary-color);
    font-size: 12px;
    font-weight: 500;
}

.history-date {
    color: var(--text-secondary);
    font-size: 12px;
}

.history-stats {
    display: flex;
    gap: var(--space-3);
    color: var(--text-secondary);
    font-size: 12px;
}

.history-stats span {
    display: flex;
    align-items: center;
    gap: var(--space-1);
}

.history-actions {
    flex-shrink: 0;
}

.history-action-btn {
    background: var(--card-hover);
    color: var(--text-secondary);
    border: none;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    transition: all var(--transition-fast);
}

.history-action-btn:hover {
    background: #ef4444;
    color: white;
}

/* 我的点赞 */
.sort-options {
    display: flex;
    gap: var(--space-2);
}

.sort-btn {
    background: var(--card-bg);
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
    padding: var(--space-1) var(--space-3);
    border-radius: var(--radius-full);
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all var(--transition-fast);
}

.sort-btn:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.sort-btn.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.likes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--space-4);
}

/* 空状态 */
.empty-state {
    text-align: center;
    padding: var(--space-16) var(--space-4);
    color: var(--text-muted);
}

.empty-state i {
    font-size: 48px;
    margin-bottom: var(--space-4);
    opacity: 0.5;
}

.empty-state p {
    font-size: 16px;
    margin: 0 0 var(--space-2) 0;
}

.empty-state span {
    font-size: 14px;
}

/* 编辑资料模态框 */
.edit-profile-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 1500;
    justify-content: center;
    align-items: center;
}

.edit-profile-modal.active {
    display: flex;
    animation: modalFadeIn 0.3s ease-out;
}

.edit-profile-content {
    background: var(--darker-bg);
    border-radius: var(--radius-xl);
    width: 90%;
    max-width: 500px;
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--border-color);
}

.edit-profile-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-4) var(--space-5);
    border-bottom: 1px solid var(--border-color);
}

.edit-profile-header h3 {
    margin: 0;
    color: var(--text-primary);
    font-size: 18px;
}

.edit-profile-body {
    padding: var(--space-5);
}

.form-group {
    margin-bottom: var(--space-4);
}

.form-group label {
    display: block;
    margin-bottom: var(--space-2);
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: var(--space-3);
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 14px;
    transition: all var(--transition-fast);
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-muted);
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: var(--space-3);
    margin-top: var(--space-6);
}

.cancel-btn {
    background: var(--card-bg);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    padding: var(--space-2) var(--space-4);
    border-radius: var(--radius-md);
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all var(--transition-fast);
}

.cancel-btn:hover {
    background: var(--card-hover);
}

.save-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: var(--space-2) var(--space-4);
    border-radius: var(--radius-md);
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all var(--transition-fast);
}

.save-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .profile-info {
        flex-direction: column;
        align-items: center;
        text-align: center;
        margin-top: -30px;
    }
    
    .profile-avatar {
        width: 80px;
        height: 80px;
        font-size: 32px;
    }
    
    .profile-stats {
        justify-content: center;
    }
    
    .profile-actions {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .profile-tabs {
        justify-content: center;
    }
    
    .uploads-grid {
        grid-template-columns: 1fr;
    }
    
    .favorites-grid,
    .likes-grid {
        grid-template-columns: 1fr;
    }
    
    .history-item {
        flex-wrap: wrap;
    }
    
    .history-thumbnail {
        width: 100%;
        height: 120px;
    }
}

@media (max-width: 480px) {
    .profile-cover {
        height: 150px;
    }
    
    .profile-username {
        font-size: 20px;
    }
    
    .profile-stats {
        gap: var(--space-4);
    }
    
    .profile-actions {
        padding: var(--space-3);
    }
    
    .profile-btn {
        padding: var(--space-2) var(--space-3);
        font-size: 13px;
    }
    
    .profile-tab {
        padding: var(--space-2) var(--space-4);
        font-size: 13px;
    }
}/* 页面切换动画 */
.page-transition-in {
    animation: pageIn 0.3s ease-out;
}

.page-transition-out {
    animation: pageOut 0.2s ease-in;
}

@keyframes pageIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pageOut {
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        transform: translateY(-10px);
    }
}

/* 页面加载动画 */
.page-loading {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--dark-bg);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 3000;
    transition: opacity 0.3s ease;
}

.page-loading.hidden {
    opacity: 0;
    pointer-events: none;
}

.page-loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--border-color);
    border-radius: 50%;
    border-top-color: var(--primary-color);
    animation: spin 1s linear infinite;
}

/* 页面切换时的内容淡入 */
.content-fade-in {
    animation: contentFadeIn 0.4s ease-out;
}

@keyframes contentFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 视频卡片入场动画 */
.video-card-enter {
    animation: videoCardEnter 0.4s ease-out;
    animation-fill-mode: both;
}

@keyframes videoCardEnter {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* 交错动画延迟 */
.video-card:nth-child(1) { animation-delay: 0.05s; }
.video-card:nth-child(2) { animation-delay: 0.1s; }
.video-card:nth-child(3) { animation-delay: 0.15s; }
.video-card:nth-child(4) { animation-delay: 0.2s; }
.video-card:nth-child(5) { animation-delay: 0.25s; }
.video-card:nth-child(6) { animation-delay: 0.3s; }
.video-card:nth-child(7) { animation-delay: 0.35s; }
.video-card:nth-child(8) { animation-delay: 0.4s; }

/* 导航栏激活状态动画 */
.nav-item.active {
    animation: navItemActive 0.3s ease-out;
}

@keyframes navItemActive {
    from {
        transform: translateY(2px);
        opacity: 0.7;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* 模态框打开动画优化 */
.modal-content {
    animation: modalSlideIn 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes modalSlideIn {
    from {
        transform: translateY(30px) scale(0.95);
        opacity: 0;
    }
    to {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

/* 按钮点击涟漪效果 */
.btn-ripple {
    position: relative;
    overflow: hidden;
}

.btn-ripple::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.3s, height 0.3s, opacity 0.3s;
    opacity: 0;
}

.btn-ripple:active::after {
    width: 200%;
    height: 200%;
    opacity: 1;
    transition: none;
}

/* 滚动条美化 */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--darker-bg);
}

::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color);
}

/* 选择文本颜色 */
::selection {
    background: var(--primary-color);
    color: white;
}

::-moz-selection {
    background: var(--primary-color);
    color: white;
}

/* 焦点样式优化 */
*:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* 平滑滚动 */
html {
    scroll-behavior: smooth;
}

/* 减少动画偏好 */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}/* 视频播放器增强控制 */
.video-controls-enhanced {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    padding: var(--space-4);
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    opacity: 0;
    transition: opacity var(--transition-normal);
    z-index: 10;
}

.video-player:hover .video-controls-enhanced {
    opacity: 1;
}

.controls-left,
.controls-right {
    display: flex;
    gap: var(--space-2);
}

.control-btn {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    transition: all var(--transition-fast);
    backdrop-filter: blur(10px);
}

.control-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.speed-btn {
    width: auto;
    border-radius: var(--radius-full);
    padding: 0 var(--space-2);
}

.speed-text {
    font-size: 12px;
    font-weight: 600;
}

/* 画质菜单 */
.quality-menu {
    position: absolute;
    bottom: 60px;
    right: var(--space-4);
    background: var(--darker-bg);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--border-color);
    overflow: hidden;
    z-index: 20;
    min-width: 120px;
    animation: menuFadeIn 0.2s ease-out;
}

@keyframes menuFadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.quality-menu-header {
    padding: var(--space-2) var(--space-3);
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border-color);
    background: var(--card-bg);
}

.quality-options {
    padding: var(--space-1);
}

.quality-option {
    display: block;
    width: 100%;
    padding: var(--space-2) var(--space-3);
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 13px;
    cursor: pointer;
    text-align: left;
    transition: background var(--transition-fast);
    border-radius: var(--radius-sm);
}

.quality-option:hover {
    background: var(--card-hover);
}

.quality-option.active {
    background: var(--primary-color);
    color: white;
}

/* 视频播放器全屏样式 */
.video-player:fullscreen {
    background: black;
}

.video-player:fullscreen video {
    max-height: 100vh;
    max-width: 100vw;
}

.video-player:fullscreen .video-controls-enhanced {
    opacity: 1;
    padding: var(--space-6);
}

.video-player:fullscreen .control-btn {
    width: 44px;
    height: 44px;
    font-size: 18px;
}

/* 画中画样式 */
.video-player:picture-in-picture {
    position: fixed;
    bottom: var(--space-4);
    right: var(--space-4);
    width: 300px;
    height: 200px;
    z-index: 2000;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

.video-player:picture-in-picture .video-controls-enhanced {
    opacity: 1;
}

/* 音量控制 */
.volume-control {
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.volume-slider {
    width: 80px;
    height: 4px;
    background: var(--border-color);
    border-radius: 2px;
    cursor: pointer;
    position: relative;
}

.volume-slider::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: var(--primary-color);
    border-radius: 2px;
    width: var(--volume-percent, 100%);
}

/* 进度条增强 */
.video-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    cursor: pointer;
    transition: height var(--transition-fast);
}

.video-progress:hover {
    height: 6px;
}

.video-progress-bar {
    height: 100%;
    background: var(--primary-color);
    border-radius: 2px;
    position: relative;
}

.video-progress-bar::after {
    content: '';
    position: absolute;
    right: -4px;
    top: 50%;
    transform: translateY(-50%);
    width: 12px;
    height: 12px;
    background: var(--primary-color);
    border-radius: 50%;
    opacity: 0;
    transition: opacity var(--transition-fast);
}

.video-progress:hover .video-progress-bar::after {
    opacity: 1;
}

/* 缓冲进度 */
.video-buffer {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 2px;
}

/* 视频信息叠加层 */
.video-info-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    padding: var(--space-4);
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.6), transparent);
    opacity: 0;
    transition: opacity var(--transition-normal);
    z-index: 10;
}

.video-player:hover .video-info-overlay {
    opacity: 1;
}

.video-title-overlay {
    color: white;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: var(--space-1);
}

.video-meta-overlay {
    color: rgba(255, 255, 255, 0.8);
    font-size: 12px;
}

/* 加载状态 */
.video-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 15;
}

.video-loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s linear infinite;
}

/* 错误状态 */
.video-error {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
    z-index: 15;
}

.video-error i {
    font-size: 48px;
    margin-bottom: var(--space-4);
    opacity: 0.7;
}

.video-error p {
    font-size: 16px;
    margin-bottom: var(--space-4);
}

.video-error .retry-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: var(--space-2) var(--space-4);
    border-radius: var(--radius-full);
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: background var(--transition-fast);
}

.video-error .retry-btn:hover {
    background: var(--primary-dark);
}

/* 响应式调整 */
@media (max-width: 768px) {
    .video-controls-enhanced {
        padding: var(--space-3);
    }
    
    .control-btn {
        width: 32px;
        height: 32px;
        font-size: 12px;
    }
    
    .speed-btn {
        padding: 0 var(--space-1);
    }
    
    .speed-text {
        font-size: 11px;
    }
    
    .quality-menu {
        bottom: 50px;
        right: var(--space-3);
        min-width: 100px;
    }
}

@media (max-width: 480px) {
    .video-controls-enhanced {
        padding: var(--space-2);
    }
    
    .control-btn {
        width: 28px;
        height: 28px;
        font-size: 10px;
    }
    
    .speed-text {
        font-size: 10px;
    }
}/* 评论系统样式 */
.comments-section {
    margin-top: var(--space-6);
    padding-top: var(--space-4);
    border-top: 1px solid var(--border-color);
}

.comments-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-4);
}

.comments-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

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

.comment-count {
    background: var(--primary-color);
    color: white;
    padding: 2px 8px;
    border-radius: var(--radius-full);
    font-size: 12px;
    font-weight: 600;
}

/* 评论输入区域 */
.comment-input-container {
    display: flex;
    gap: var(--space-3);
    margin-bottom: var(--space-6);
}

.comment-input-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--card-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    font-size: 14px;
    flex-shrink: 0;
}

.comment-input-wrapper {
    flex: 1;
    display: flex;
    gap: var(--space-2);
}

.comment-input {
    flex: 1;
    padding: var(--space-3);
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-full);
    color: var(--text-primary);
    font-size: 14px;
    transition: all var(--transition-fast);
}

.comment-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2);
}

.comment-input::placeholder {
    color: var(--text-muted);
}

.comment-submit-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    transition: all var(--transition-fast);
    flex-shrink: 0;
}

.comment-submit-btn:hover {
    background: var(--primary-dark);
    transform: scale(1.05);
}

.comment-submit-btn:active {
    transform: scale(0.95);
}

/* 评论列表 */
.comments-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
}

.comment-item {
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    padding: var(--space-4);
    transition: all var(--transition-fast);
}

.comment-item:hover {
    background: var(--card-hover);
}

.comment-header {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    margin-bottom: var(--space-3);
}

.comment-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 12px;
    flex-shrink: 0;
}

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

.comment-username {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.comment-time {
    font-size: 12px;
    color: var(--text-secondary);
}

.comment-actions {
    display: flex;
    gap: var(--space-2);
}

.comment-action-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 12px;
    padding: var(--space-1) var(--space-2);
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
    display: flex;
    align-items: center;
    gap: var(--space-1);
}

.comment-action-btn:hover {
    background: var(--card-hover);
    color: var(--primary-color);
}

.comment-action-btn i {
    font-size: 12px;
}

.comment-content {
    margin-bottom: var(--space-3);
}

.comment-content p {
    margin: 0;
    color: var(--text-primary);
    font-size: 14px;
    line-height: 1.6;
}

/* 回复区域 */
.comment-replies {
    margin-top: var(--space-3);
    padding-top: var(--space-3);
    border-top: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.reply-item {
    padding-left: var(--space-4);
    border-left: 2px solid var(--primary-color);
}

.reply-header {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    margin-bottom: var(--space-1);
}

.reply-username {
    font-size: 13px;
    font-weight: 600;
    color: var(--primary-color);
}

.reply-time {
    font-size: 11px;
    color: var(--text-secondary);
}

.reply-content p {
    margin: 0;
    color: var(--text-primary);
    font-size: 13px;
    line-height: 1.5;
}

/* 回复表单 */
.reply-form {
    margin-top: var(--space-3);
    padding-top: var(--space-3);
    border-top: 1px solid var(--border-color);
}

.reply-input-container {
    display: flex;
    gap: var(--space-2);
}

.reply-input {
    flex: 1;
    padding: var(--space-2) var(--space-3);
    background: var(--card-hover);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-full);
    color: var(--text-primary);
    font-size: 13px;
    transition: all var(--transition-fast);
}

.reply-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.2);
}

.reply-input::placeholder {
    color: var(--text-muted);
}

.reply-submit-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: var(--space-2) var(--space-3);
    border-radius: var(--radius-full);
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all var(--transition-fast);
}

.reply-submit-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

.reply-submit-btn:active {
    transform: translateY(0);
}

/* 空评论状态 */
.comments-empty {
    text-align: center;
    padding: var(--space-8) var(--space-4);
    color: var(--text-muted);
}

.comments-empty i {
    font-size: 48px;
    margin-bottom: var(--space-4);
    opacity: 0.5;
}

.comments-empty p {
    font-size: 16px;
    margin: 0 0 var(--space-2) 0;
}

.comments-empty span {
    font-size: 14px;
}

/* 评论加载动画 */
.comment-loading {
    text-align: center;
    padding: var(--space-4);
    color: var(--text-secondary);
}

.comment-loading-spinner {
    width: 24px;
    height: 24px;
    border: 2px solid var(--border-color);
    border-radius: 50%;
    border-top-color: var(--primary-color);
    animation: spin 1s linear infinite;
    margin: 0 auto var(--space-2);
}

/* 评论排序 */
.comments-sort {
    display: flex;
    gap: var(--space-2);
    margin-bottom: var(--space-4);
}

.sort-btn {
    background: var(--card-bg);
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
    padding: var(--space-1) var(--space-3);
    border-radius: var(--radius-full);
    cursor: pointer;
    font-size: 12px;
    font-weight: 500;
    transition: all var(--transition-fast);
}

.sort-btn:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.sort-btn.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .comment-input-container {
        flex-direction: column;
        gap: var(--space-2);
    }
    
    .comment-input-avatar {
        align-self: flex-start;
    }
    
    .comment-input-wrapper {
        width: 100%;
    }
    
    .comment-input {
        width: 100%;
    }
    
    .comment-header {
        flex-wrap: wrap;
    }
    
    .comment-actions {
        width: 100%;
        justify-content: flex-end;
        margin-top: var(--space-2);
    }
}

@media (max-width: 480px) {
    .comments-section {
        margin-top: var(--space-4);
        padding-top: var(--space-3);
    }
    
    .comment-item {
        padding: var(--space-3);
    }
    
    .comment-content p {
        font-size: 13px;
    }
    
    .reply-content p {
        font-size: 12px;
    }
}/* PWA 安装提示 */
.install-banner {
    position: fixed;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--card-bg);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--border-color);
    padding: var(--space-4);
    z-index: 2000;
    animation: slideUp 0.3s ease-out;
    max-width: 90%;
    width: 400px;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

.install-content {
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

.install-icon {
    width: 48px;
    height: 48px;
    background: var(--primary-color);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
    flex-shrink: 0;
}

.install-text {
    flex: 1;
}

.install-text p {
    margin: 0 0 var(--space-1) 0;
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 600;
}

.install-text span {
    color: var(--text-secondary);
    font-size: 12px;
}

.install-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: var(--space-2) var(--space-4);
    border-radius: var(--radius-full);
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all var(--transition-fast);
    flex-shrink: 0;
}

.install-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.install-close {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 18px;
    padding: var(--space-1);
    margin-left: var(--space-2);
    transition: color var(--transition-fast);
}

.install-close:hover {
    color: var(--text-primary);
}

/* 离线状态样式 */
body.offline {
    position: relative;
}

body.offline::before {
    content: '离线模式';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: #ef4444;
    color: white;
    text-align: center;
    padding: var(--space-1);
    font-size: 12px;
    font-weight: 500;
    z-index: 3000;
}

/* 网络状态指示器 */
.network-status {
    position: fixed;
    top: 80px;
    right: var(--space-4);
    background: var(--card-bg);
    border-radius: var(--radius-full);
    padding: var(--space-2) var(--space-3);
    display: flex;
    align-items: center;
    gap: var(--space-2);
    box-shadow: var(--shadow-md);
    z-index: 1500;
    transition: all var(--transition-normal);
    transform: translateX(120%);
}

.network-status.show {
    transform: translateX(0);
}

.network-status.online {
    border-left: 3px solid #22c55e;
}

.network-status.offline {
    border-left: 3px solid #ef4444;
}

.network-status-icon {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #22c55e;
}

.network-status.offline .network-status-icon {
    background: #ef4444;
}

.network-status-text {
    font-size: 12px;
    color: var(--text-primary);
    font-weight: 500;
}

/* 应用更新提示 */
.update-banner {
    position: fixed;
    top: 80px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--border-color);
    padding: var(--space-4);
    z-index: 2000;
    animation: fadeInDown 0.3s ease-out;
    max-width: 90%;
    width: 400px;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

.update-content {
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

.update-icon {
    width: 48px;
    height: 48px;
    background: var(--accent-color);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
    flex-shrink: 0;
}

.update-text {
    flex: 1;
}

.update-text p {
    margin: 0 0 var(--space-1) 0;
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 600;
}

.update-text span {
    color: var(--text-secondary);
    font-size: 12px;
}

.update-actions {
    display: flex;
    gap: var(--space-2);
    flex-shrink: 0;
}

.update-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: var(--space-2) var(--space-3);
    border-radius: var(--radius-full);
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all var(--transition-fast);
}

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

.update-later {
    background: var(--card-hover);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    padding: var(--space-2) var(--space-3);
    border-radius: var(--radius-full);
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all var(--transition-fast);
}

.update-later:hover {
    background: var(--card-bg);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .install-banner,
    .update-banner {
        bottom: 80px;
        width: 95%;
        max-width: none;
    }
    
    .install-content,
    .update-content {
        flex-wrap: wrap;
    }
    
    .install-text,
    .update-text {
        width: 100%;
        margin-bottom: var(--space-2);
    }
    
    .install-btn,
    .update-btn,
    .update-later {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .install-banner,
    .update-banner {
        bottom: 70px;
        padding: var(--space-3);
    }
    
    .install-icon,
    .update-icon {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
}
/* ===== 抖音风格全屏播放器 ===== */
.player-fullscreen {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    z-index: 1000;
    overflow: hidden;
    flex-direction: column;
}

.player-fullscreen.active {
    display: flex;
    animation: playerFadeIn 0.3s ease-out;
}

@keyframes playerFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* 顶部标题栏 */
.player-top-bar {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    align-items: center;
    padding: 12px 16px;
    background: linear-gradient(to bottom, rgba(0,0,0,0.7), transparent);
    z-index: 10;
}

.player-back-btn {
    background: none;
    border: none;
    color: white;
    font-size: 20px;
    padding: 8px;
    margin-right: 12px;
    cursor: pointer;
}

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

.player-title {
    color: white;
    font-size: 16px;
    font-weight: 600;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.player-episode {
    color: rgba(255,255,255,0.8);
    font-size: 12px;
    display: block;
    margin-top: 2px;
}

.player-more-btn {
    background: none;
    border: none;
    color: white;
    font-size: 18px;
    padding: 8px;
    cursor: pointer;
}

/* 弹幕容器层 */
.danmaku-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 5;
    overflow: hidden;
}

.danmaku-item {
    position: absolute;
    white-space: nowrap;
    font-size: 16px;
    font-weight: bold;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
    animation: danmakuScroll linear;
    pointer-events: none;
}

@keyframes danmakuScroll {
    from { transform: translateX(100%); }
    to { transform: translateX(-100%); }
}

/* 视频播放器容器 */
.player-video-container {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
    position: relative;
}

.player-video-container video {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* 集数导航条 */
.episode-bar {
    position: absolute;
    bottom: 80px;
    left: 0;
    right: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 16px;
    background: rgba(0,0,0,0.5);
    z-index: 10;
}

.episode-prev, .episode-next {
    background: rgba(255,255,255,0.2);
    border: none;
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
}

.episode-current {
    color: white;
    font-size: 14px;
    font-weight: 500;
}

/* 右侧操作栏 */
.player-sidebar {
    position: absolute;
    right: 12px;
    bottom: 120px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    z-index: 10;
}

.sidebar-avatar {
    position: relative;
    margin-bottom: 10px;
}

.avatar-img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ff6b6b, #ffa500);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
    border: 2px solid white;
}

.avatar-follow-btn {
    position: absolute;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #ff2d55;
    border: 2px solid white;
    color: white;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
}

.sidebar-action {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: white;
    font-size: 12px;
    cursor: pointer;
}

.sidebar-action i {
    font-size: 24px;
    margin-bottom: 4px;
    transition: transform 0.2s;
}

.sidebar-action:active i {
    transform: scale(1.3);
}

.action-count {
    font-size: 11px;
    color: rgba(255,255,255,0.8);
}

/* 底部弹幕输入栏 */
.danmaku-input-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    align-items: center;
    padding: 12px 16px;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    z-index: 10;
    gap: 8px;
}

.danmaku-toggle {
    background: rgba(255,255,255,0.2);
    border: none;
    color: white;
    padding: 8px 12px;
    border-radius: 20px;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
}

.danmaku-input {
    flex: 1;
    background: rgba(255,255,255,0.2);
    border: none;
    color: white;
    padding: 10px 16px;
    border-radius: 24px;
    font-size: 14px;
    outline: none;
}

.danmaku-input::placeholder {
    color: rgba(255,255,255,0.6);
}

.danmaku-send {
    background: #ff2d55;
    border: none;
    color: white;
    padding: 10px 20px;
    border-radius: 24px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

/* 点赞心跳动画 */
@keyframes likeHeartbeat {
    0% { transform: scale(1); }
    25% { transform: scale(1.3); }
    50% { transform: scale(1); }
    75% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

.sidebar-action.liked i {
    color: #ff2d55;
    animation: likeHeartbeat 0.6s ease-in-out;
}

.sidebar-action.favorited i {
    color: #ffd700;
}

/* 响应式适配 */
@media (min-width: 768px) {
    .player-video-container video {
        max-height: 100vh;
        max-width: 100%;
    }
    
    .player-sidebar {
        right: 24px;
        bottom: 140px;
        gap: 24px;
    }
    
    .avatar-img {
        width: 56px;
        height: 56px;
    }
    
    .sidebar-action i {
        font-size: 28px;
    }
}

/* 横屏视频适配 */
@media (orientation: landscape) {
    .player-sidebar {
        right: 20px;
        bottom: 100px;
    }
    
    .episode-bar {
        bottom: 70px;
    }
    
    .danmaku-input-bar {
        padding: 8px 16px;
    }
}
