/* 基本样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Microsoft YaHei', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
}

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

/* 头部样式 */
header {
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    padding: 20px 0;
}

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

.logo {
    font-size: 24px;
    font-weight: bold;
    color: #0066cc;
    text-decoration: none;
}

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

.nav li {
    margin-left: 30px;
}

.nav a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
}

.nav a:hover {
    color: #0066cc;
}

.user-links {
    display: flex;
    align-items: center;
}

.user-links a {
    margin-left: 15px;
    text-decoration: none;
    color: #333;
}

/* 按钮样式 */
.btn {
    display: inline-block;
    padding: 8px 16px;
    background-color: #0066cc;
    color: #fff;
    border-radius: 4px;
    text-decoration: none;
}

.btn:hover {
    background-color: #0052a3;
}

.btn-danger {
    background-color: #dc3545;
}

.btn-danger:hover {
    background-color: #c82333;
}

.btn-secondary {
    background-color: #6c757d;
}

.btn-secondary:hover {
    background-color: #5a6268;
}

/* 表单样式 */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #0066cc;
    box-shadow: 0 0 0 2px rgba(0, 102, 204, 0.1);
}

/* 表格样式 */
.table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

.table th,
.table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.table th {
    background-color: #f5f5f5;
    font-weight: 500;
}

.table tr:hover {
    background-color: #f9f9f9;
}

/* 卡片样式 */
.card {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    padding: 20px;
    margin-bottom: 20px;
}

/* 页脚样式 */
footer {
    background-color: #333;
    color: #fff;
    padding: 40px 0;
    margin-top: 60px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.footer-section h3 {
    margin-bottom: 20px;
    color: #fff;
}

.footer-section p,
.footer-section li {
    margin-bottom: 10px;
    color: #ccc;
}

.footer-section ul {
    list-style: none;
}

.footer-section a {
    color: #ccc;
    text-decoration: none;
}

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

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    margin-top: 30px;
    border-top: 1px solid #555;
    color: #ccc;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .header-top {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .nav {
        margin-top: 20px;
        flex-wrap: wrap;
    }
    
    .nav li {
        margin-left: 0;
        margin-right: 20px;
        margin-bottom: 10px;
    }
    
    .user-links {
        margin-top: 20px;
    }
}

/* 错误和成功消息 */
.alert {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 4px;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* 加载动画 */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(0, 102, 204, 0.3);
    border-radius: 50%;
    border-top-color: #0066cc;
    animation: spin 1s ease-in-out infinite;
}

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

/* 分页样式 */
.pagination {
    display: flex;
    justify-content: center;
    margin-top: 30px;
}

.pagination a {
    padding: 8px 16px;
    margin: 0 5px;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-decoration: none;
    color: #333;
}

.pagination a:hover {
    background-color: #f5f5f5;
}

.pagination .active {
    background-color: #0066cc;
    color: #fff;
    border-color: #0066cc;
}

/* 文章阅读模式 */
.reading-mode {
    display: flex;
    justify-content: center;
    margin: 20px 0;
}

.reading-mode button {
    padding: 8px 16px;
    margin: 0 5px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: #fff;
    cursor: pointer;
}

.reading-mode button.active {
    background-color: #0066cc;
    color: #fff;
    border-color: #0066cc;
}

/* 翻页阅读模式 */
.flip-mode {
    position: relative;
    width: 100%;
    height: 600px;
    overflow: hidden;
}

.flip-page {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #fff;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    padding: 40px;
    transform-origin: left center;
    transition: transform 0.5s ease;
}

/* PDF阅读模式 */
.pdf-mode {
    width: 100%;
    height: 600px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

/* 期刊卡片 */
.journal-card {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    padding: 20px;
    margin-bottom: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.journal-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.journal-cover {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 4px;
    margin-bottom: 15px;
}

.journal-title {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 10px;
    color: #333;
}

.journal-date {
    color: #666;
    margin-bottom: 15px;
}

/* 文章列表 */
.article-list {
    list-style: none;
}

.article-item {
    padding: 20px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.article-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.article-title {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 10px;
    color: #333;
}

.article-excerpt {
    color: #666;
    margin-bottom: 15px;
}

.article-meta {
    display: flex;
    justify-content: space-between;
    color: #999;
    font-size: 14px;
}

/* 个人中心 */
.profile-section {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    padding: 30px;
    margin-bottom: 30px;
}

.profile-header {
    display: flex;
    align-items: center;
    margin-bottom: 30px;
}

.avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 20px;
}

.profile-info h2 {
    margin-bottom: 10px;
    color: #333;
}

.profile-stats {
    display: flex;
    gap: 30px;
    margin-top: 20px;
}

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

.stat-value {
    font-size: 24px;
    font-weight: bold;
    color: #0066cc;
}

.stat-label {
    color: #666;
    font-size: 14px;
}

/* 订阅套餐 */
.plan-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.plan-card {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    padding: 30px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.plan-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.plan-card.featured {
    border: 2px solid #0066cc;
    position: relative;
}

.plan-card.featured::before {
    content: '推荐';
    position: absolute;
    top: -10px;
    right: 20px;
    background-color: #0066cc;
    color: #fff;
    padding: 5px 15px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 500;
}

.plan-name {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 15px;
    color: #333;
}

.plan-price {
    font-size: 32px;
    font-weight: bold;
    color: #0066cc;
    margin-bottom: 10px;
}

.plan-price span {
    font-size: 16px;
    font-weight: normal;
    color: #666;
}

.plan-features {
    list-style: none;
    margin: 20px 0;
    text-align: left;
}

.plan-features li {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.plan-features li i {
    color: #0066cc;
    margin-right: 10px;
}

.plan-btn {
    display: block;
    width: 100%;
    padding: 12px;
    background-color: #0066cc;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    margin-top: 20px;
}

.plan-btn:hover {
    background-color: #0052a3;
}

.plan-btn.featured {
    background-color: #ff6b00;
}

.plan-btn.featured:hover {
    background-color: #e55a00;
}

/* 后台管理 */
.main-content {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 30px;
    margin: 30px 0;
}

.sidebar {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    padding: 20px;
}

.nav-menu {
    list-style: none;
}

.nav-menu li {
    margin-bottom: 10px;
}

.nav-menu a {
    display: block;
    padding: 10px 15px;
    text-decoration: none;
    color: #333;
    border-radius: 4px;
}

.nav-menu a:hover {
    background-color: #f5f5f5;
}

.nav-menu a.active {
    background-color: #0066cc;
    color: #fff;
}

.nav-menu .submenu {
    list-style: none;
    margin-left: 20px;
    margin-top: 5px;
}

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

.content {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    padding: 30px;
}

.content h1 {
    font-size: 24px;
    margin-bottom: 30px;
    color: #333;
}

.section {
    margin-bottom: 40px;
}

.section-title {
    font-size: 18px;
    margin-bottom: 20px;
    color: #333;
    position: relative;
    padding-bottom: 10px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background-color: #0066cc;
}

/* 会员等级卡片 */
.level-card {
    background-color: #f9f9f9;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    border-left: 4px solid #0066cc;
}

.level-card h3 {
    margin-bottom: 10px;
    color: #333;
}

.level-card p {
    margin-bottom: 5px;
    color: #666;
}

/* 广告管理 */
.ad-card {
    background-color: #f9f9f9;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    border-left: 4px solid #0066cc;
}

.ad-card h3 {
    margin-bottom: 10px;
    color: #333;
}

.ad-card p {
    margin-bottom: 5px;
    color: #666;
}

/* 数据统计 */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.stat-card {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    padding: 30px;
    text-align: center;
}

.stat-card .stat-value {
    font-size: 32px;
    font-weight: bold;
    color: #0066cc;
    margin-bottom: 10px;
}

.stat-card .stat-label {
    font-size: 16px;
    color: #666;
}

/* 图表容器 */
.chart-container {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    padding: 30px;
    margin-bottom: 40px;
}

.chart-container h3 {
    margin-bottom: 20px;
    color: #333;
}

/* 登录页面 */
.login-container {
    max-width: 400px;
    margin: 100px auto;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 40px;
}

.login-container h2 {
    text-align: center;
    margin-bottom: 30px;
    color: #333;
}

.login-form .form-group {
    margin-bottom: 20px;
}

.login-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.login-form input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.login-form input:focus {
    outline: none;
    border-color: #0066cc;
    box-shadow: 0 0 0 2px rgba(0, 102, 204, 0.1);
}

.login-btn {
    width: 100%;
    padding: 12px;
    background-color: #0066cc;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    margin-top: 20px;
}

.login-btn:hover {
    background-color: #0052a3;
}

.login-links {
    text-align: center;
    margin-top: 20px;
}

.login-links a {
    color: #0066cc;
    text-decoration: none;
    margin: 0 10px;
}

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

/* 第三方登录 */
.third-party-login {
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid #eee;
}

.third-party-login h3 {
    text-align: center;
    margin-bottom: 20px;
    color: #666;
}

.social-login {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #f5f5f5;
    color: #333;
    text-decoration: none;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.social-btn:hover {
    transform: translateY(-3px);
    background-color: #e5e5e5;
}

/* 注册页面 */
.register-container {
    max-width: 500px;
    margin: 80px auto;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 40px;
}

.register-container h2 {
    text-align: center;
    margin-bottom: 30px;
    color: #333;
}

.register-form .form-group {
    margin-bottom: 20px;
}

.register-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.register-form input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.register-form input:focus {
    outline: none;
    border-color: #0066cc;
    box-shadow: 0 0 0 2px rgba(0, 102, 204, 0.1);
}

.register-btn {
    width: 100%;
    padding: 12px;
    background-color: #0066cc;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    margin-top: 20px;
}

.register-btn:hover {
    background-color: #0052a3;
}

/* 直播与视频页面 */
.live-container {
    max-width: 800px;
    margin: 0 auto;
}

.live-player {
    width: 100%;
    height: 450px;
    background-color: #000;
    border-radius: 8px;
    margin-bottom: 30px;
}

.live-info {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    padding: 20px;
    margin-bottom: 30px;
}

.live-title {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 10px;
    color: #333;
}

.live-meta {
    display: flex;
    justify-content: space-between;
    color: #666;
    margin-bottom: 20px;
}

.live-description {
    color: #333;
    line-height: 1.6;
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.video-card {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

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

.video-info {
    padding: 20px;
}

.video-title {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 10px;
    color: #333;
}

.video-meta {
    color: #666;
    font-size: 14px;
}

/* 搜索结果页面 */
.search-results {
    margin-top: 40px;
}

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

.search-header h1 {
    font-size: 24px;
    margin-bottom: 10px;
    color: #333;
}

.search-header p {
    color: #666;
}

/* 404页面 */
.error-404 {
    text-align: center;
    padding: 100px 0;
}

.error-404 h1 {
    font-size: 100px;
    font-weight: bold;
    color: #0066cc;
    margin-bottom: 20px;
}

.error-404 h2 {
    font-size: 32px;
    margin-bottom: 20px;
    color: #333;
}

.error-404 p {
    font-size: 18px;
    color: #666;
    margin-bottom: 30px;
}

/* 加载更多 */
.load-more {
    text-align: center;
    margin: 40px 0;
}

.load-more-btn {
    padding: 12px 30px;
    background-color: #0066cc;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
}

.load-more-btn:hover {
    background-color: #0052a3;
}

/* 回到顶部按钮 */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: #0066cc;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: #0052a3;
}

/* 深色模式 */
@media (prefers-color-scheme: dark) {
    body {
        background-color: #1a1a1a;
        color: #e0e0e0;
    }
    
    header {
        background-color: #2d2d2d;
        box-shadow: 0 2px 4px rgba(0,0,0,0.3);
    }
    
    .nav a {
        color: #e0e0e0;
    }
    
    .user-links a {
        color: #e0e0e0;
    }
    
    .card {
        background-color: #2d2d2d;
        box-shadow: 0 2px 4px rgba(0,0,0,0.3);
    }
    
    footer {
        background-color: #1a1a1a;
        border-top: 1px solid #333;
    }
    
    .footer-section a {
        color: #b0b0b0;
    }
    
    .footer-section a:hover {
        color: #fff;
    }
    
    .footer-bottom {
        color: #b0b0b0;
        border-top: 1px solid #333;
    }
    
    .table th {
        background-color: #2d2d2d;
        color: #e0e0e0;
    }
    
    .table tr:hover {
        background-color: #333;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        background-color: #2d2d2d;
        border: 1px solid #444;
        color: #e0e0e0;
    }
    
    .form-group input:focus,
    .form-group select:focus,
    .form-group textarea:focus {
        border-color: #0066cc;
        box-shadow: 0 0 0 2px rgba(0, 102, 204, 0.2);
    }
    
    .pagination a {
        background-color: #2d2d2d;
        border: 1px solid #444;
        color: #e0e0e0;
    }
    
    .pagination a:hover {
        background-color: #333;
    }
    
    .pagination .active {
        background-color: #0066cc;
        border-color: #0066cc;
        color: #fff;
    }
    
    .journal-card {
        background-color: #2d2d2d;
        box-shadow: 0 2px 4px rgba(0,0,0,0.3);
    }
    
    .journal-title {
        color: #e0e0e0;
    }
    
    .journal-date {
        color: #b0b0b0;
    }
    
    .article-item {
        background-color: #2d2d2d;
        box-shadow: 0 2px 4px rgba(0,0,0,0.3);
    }
    
    .article-title {
        color: #e0e0e0;
    }
    
    .article-excerpt {
        color: #b0b0b0;
    }
    
    .article-meta {
        color: #999;
    }
    
    .profile-section {
        background-color: #2d2d2d;
        box-shadow: 0 2px 4px rgba(0,0,0,0.3);
    }
    
    .profile-info h2 {
        color: #e0e0e0;
    }
    
    .plan-card {
        background-color: #2d2d2d;
        box-shadow: 0 2px 4px rgba(0,0,0,0.3);
    }
    
    .plan-name {
        color: #e0e0e0;
    }
    
    .plan-price span {
        color: #b0b0b0;
    }
    
    .plan-features li i {
        color: #0066cc;
    }
    
    .sidebar {
        background-color: #2d2d2d;
        box-shadow: 0 2px 4px rgba(0,0,0,0.3);
    }
    
    .nav-menu a {
        color: #e0e0e0;
    }
    
    .nav-menu a:hover {
        background-color: #333;
    }
    
    .content {
        background-color: #2d2d2d;
        box-shadow: 0 2px 4px rgba(0,0,0,0.3);
    }
    
    .content h1 {
        color: #e0e0e0;
    }
    
    .section-title {
        color: #e0e0e0;
    }
    
    .level-card {
        background-color: #333;
    }
    
    .level-card h3 {
        color: #e0e0e0;
    }
    
    .level-card p {
        color: #b0b0b0;
    }
    
    .ad-card {
        background-color: #333;
    }
    
    .ad-card h3 {
        color: #e0e0e0;
    }
    
    .ad-card p {
        color: #b0b0b0;
    }
    
    .stat-card {
        background-color: #2d2d2d;
        box-shadow: 0 2px 4px rgba(0,0,0,0.3);
    }
    
    .stat-card .stat-label {
        color: #b0b0b0;
    }
    
    .chart-container {
        background-color: #2d2d2d;
        box-shadow: 0 2px 4px rgba(0,0,0,0.3);
    }
    
    .chart-container h3 {
        color: #e0e0e0;
    }
    
    .login-container {
        background-color: #2d2d2d;
        box-shadow: 0 2px 10px rgba(0,0,0,0.3);
    }
    
    .login-container h2 {
        color: #e0e0e0;
    }
    
    .login-form input {
        background-color: #333;
        border: 1px solid #444;
        color: #e0e0e0;
    }
    
    .login-form input:focus {
        border-color: #0066cc;
        box-shadow: 0 0 0 2px rgba(0, 102, 204, 0.2);
    }
    
    .register-container {
        background-color: #2d2d2d;
        box-shadow: 0 2px 10px rgba(0,0,0,0.3);
    }
    
    .register-container h2 {
        color: #e0e0e0;
    }
    
    .register-form input {
        background-color: #333;
        border: 1px solid #444;
        color: #e0e0e0;
    }
    
    .register-form input:focus {
        border-color: #0066cc;
        box-shadow: 0 0 0 2px rgba(0, 102, 204, 0.2);
    }
    
    .live-info {
        background-color: #2d2d2d;
        box-shadow: 0 2px 4px rgba(0,0,0,0.3);
    }
    
    .live-title {
        color: #e0e0e0;
    }
    
    .live-meta {
        color: #b0b0b0;
    }
    
    .live-description {
        color: #e0e0e0;
    }
    
    .video-card {
        background-color: #2d2d2d;
        box-shadow: 0 2px 4px rgba(0,0,0,0.3);
    }
    
    .video-title {
        color: #e0e0e0;
    }
    
    .video-meta {
        color: #b0b0b0;
    }
    
    .search-header h1 {
        color: #e0e0e0;
    }
    
    .search-header p {
        color: #b0b0b0;
    }
    
    .error-404 h2 {
        color: #e0e0e0;
    }
    
    .error-404 p {
        color: #b0b0b0;
    }
}

/* 打印样式 */
@media print {
    header,
    footer,
    .sidebar,
    .user-links,
    .btn {
        display: none;
    }
    
    .main-content {
        grid-template-columns: 1fr;
    }
    
    body {
        background-color: #fff;
        color: #000;
    }
    
    .content {
        box-shadow: none;
        padding: 0;
    }
}

/* 无障碍样式 */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* 高对比度模式 */
@media (prefers-contrast: high) {
    body {
        background-color: #000;
        color: #fff;
    }
    
    header {
        background-color: #000;
        border-bottom: 1px solid #fff;
    }
    
    .nav a {
        color: #fff;
    }
    
    .user-links a {
        color: #fff;
    }
    
    .card {
        background-color: #111;
        border: 1px solid #fff;
    }
    
    footer {
        background-color: #000;
        border-top: 1px solid #fff;
    }
    
    .footer-section a {
        color: #fff;
    }
    
    .table th {
        background-color: #111;
        color: #fff;
        border: 1px solid #fff;
    }
    
    .table td {
        border: 1px solid #fff;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        background-color: #111;
        border: 1px solid #fff;
        color: #fff;
    }
    
    .btn {
        background-color: #fff;
        color: #000;
        border: 1px solid #fff;
    }
    
    .btn:hover {
        background-color: #ddd;
    }
}