/* CSS Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Dark Theme Variables - 优化后的变量定义 */
:root {
    --primary-yellow: #ffd700;
    --secondary-yellow: #ffed4e;
    --accent-yellow: #fbbf24;
    --yellow-600: #d97706;
    --yellow-700: #b45309;
    --yellow-500: #f59e0b;
    --dark-bg: #0f0f0f;
    --dark-surface: #1a1a1a;
    --dark-card: #262626;
    --dark-border: #404040;
    --text-primary: #ffffff;
    --text-secondary: #d1d5db;
    --text-muted: #9ca3af;
    --shadow-dark: rgba(0, 0, 0, 0.5);
    --primary-yellow-glow: rgba(255, 215, 0, 0.3);
    --gradient-dark: linear-gradient(135deg, #1a1a1a 0%, #0f0f0f 100%);
    --gradient-yellow: linear-gradient(135deg, #ffd700 0%, #fbbf24 100%);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--dark-bg);
    background-image: 
        radial-gradient(circle at 20% 80%, rgba(255, 215, 0, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 215, 0, 0.05) 0%, transparent 50%);
    min-height: 100vh;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Header Styles */
.site-header {
    background: var(--dark-surface);
    box-shadow: 0 4px 20px var(--shadow-dark);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 2px solid var(--primary-yellow);
}

.top-bar {
    background: var(--dark-bg);
    padding: 8px 0;
    border-bottom: 1px solid var(--dark-border);
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.user-actions {
    display: flex;
    gap: 15px;
    font-size: 14px;
}

.user-actions a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.3s ease;
    padding: 5px 10px;
    border-radius: 4px;
}

.user-actions a:hover {
    color: var(--primary-yellow);
    background: rgba(255, 215, 0, 0.1);
}

.main-nav {
    padding: 15px 0;
}

.main-nav .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-brand img {
    height: 50px;
    width: auto;
    filter: brightness(1.2) contrast(1.1);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 25px;
    margin: 0;
    padding: 0;
}

.nav-item {
    position: relative;
}

.nav-link {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    padding: 10px 15px;
    border-radius: 6px;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: var(--dark-bg);
    background: var(--gradient-yellow);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px var(--primary-yellow-glow);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 5px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--primary-yellow);
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 2px;
}

/* Search Container */
.search-container {
    flex: 1;
    max-width: 400px;
    margin: 0 20px;
}

.search-form {
    display: flex;
    width: 100%;
}

.search-input {
    flex: 1;
    padding: 12px 20px;
    border: 2px solid var(--dark-border);
    border-right: none;
    border-radius: 25px 0 0 25px;
    outline: none;
    font-size: 14px;
    background: var(--dark-card);
    color: var(--text-primary);
    transition: all 0.3s ease;
}

.search-input:focus {
    border-color: var(--primary-yellow);
    box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.2);
}

.search-input::placeholder {
    color: var(--text-muted);
}

.search-btn {
    padding: 12px 25px;
    background: var(--gradient-yellow);
    color: var(--dark-bg);
    border: 2px solid var(--primary-yellow);
    border-radius: 0 25px 25px 0;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
}

.search-btn:hover {
    background: var(--primary-yellow);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4);
}

/* Notice Bar */
.notice-bar {
    background: var(--gradient-yellow);
    color: var(--dark-bg);
    padding: 10px 0;
    text-align: center;
    font-weight: 500;
}

.notice-content {
    font-size: 14px;
}

/* Main Content */
.main-content {
    padding: 30px 0;
}

.content-section {
    background: var(--dark-surface);
    border-radius: 12px;
    box-shadow: 0 8px 32px var(--shadow-dark);
    margin-bottom: 30px;
    overflow: hidden;
    border: 1px solid var(--dark-border);
}

/* Section Header */
.section-header {
    background: var(--dark-surface);
    border-radius: 12px 12px 0 0;
    border: 1px solid var(--dark-border);
    border-bottom: none;
    padding: 0;
    margin-bottom: 0;
}

.section-title-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    border-bottom: 1px solid var(--dark-border);
    background: linear-gradient(135deg, var(--dark-surface) 0%, var(--dark-card) 100%);
}

/* More Links Container */
.more-links {
    display: flex;
    align-items: center;
    gap: 4px;
}

.section-title {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    color: var(--primary-yellow);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    position: relative;
}

.section-title::before {
    content: '';
    position: absolute;
    left: -15px;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 20px;
    background: linear-gradient(180deg, var(--primary-yellow) 0%, var(--yellow-600) 100%);
    border-radius: 2px;
    box-shadow: 0 0 8px var(--primary-yellow-glow);
}

/* Tab Navigation */
.tab-nav {
    padding: 0;
    background: var(--dark-surface);
}

.tab-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    margin: 0;
    padding: 15px 25px;
    list-style: none;
    border-bottom: 1px solid var(--dark-border);
}

.tab-item {
    margin: 0;
}

.tab-btn {
    background: var(--dark-card);
    color: var(--text-secondary);
    border: 1px solid var(--dark-border);
    padding: 10px 18px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    margin-right: 8px;
    margin-bottom: 8px;
}

.tab-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 193, 7, 0.2), transparent);
    transition: left 0.5s ease;
}

.tab-btn:hover::before {
    left: 100%;
}

.tab-btn:hover {
    background: linear-gradient(135deg, var(--yellow-700) 0%, var(--primary-yellow) 100%);
    color: var(--dark-bg);
    border-color: var(--primary-yellow);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px var(--primary-yellow-glow);
}

.tab-btn.active {
    background: linear-gradient(135deg, var(--primary-yellow) 0%, var(--yellow-600) 100%);
    color: var(--dark-bg);
    border-color: var(--primary-yellow);
    box-shadow: 0 4px 15px var(--primary-yellow-glow);
    font-weight: 600;
}

/* More Button in Header - 与tab-btn保持一致的样式 */
.section-title-wrapper .more-btn,
.more-links .more-btn {
    background: var(--dark-card);
    color: var(--text-secondary);
    border: 1px solid var(--dark-border);
    padding: 5px 9px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    gap: 3px;
    text-decoration: none;
    margin-left: 4px;
}

.section-title-wrapper .more-btn::before,
.more-links .more-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 193, 7, 0.2), transparent);
    transition: left 0.5s ease;
}

.section-title-wrapper .more-btn:hover::before,
.more-links .more-btn:hover::before {
    left: 100%;
}

.section-title-wrapper .more-btn:hover,
.more-links .more-btn:hover {
    background: linear-gradient(135deg, var(--yellow-700) 0%, var(--primary-yellow) 100%);
    color: var(--dark-bg);
    border-color: var(--primary-yellow);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px var(--primary-yellow-glow);
}

/* 换一批按钮样式 - 与tab-btn保持一致 */
.refresh-btn {
    background: var(--dark-card);
    color: var(--text-secondary);
    border: 1px solid var(--dark-border);
    padding: 5px 9px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    gap: 3px;
    text-decoration: none;
    margin-right: 4px;
}

.refresh-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 193, 7, 0.2), transparent);
    transition: left 0.5s ease;
}

.refresh-btn:hover::before {
    left: 100%;
}

.refresh-btn:hover {
    background: linear-gradient(135deg, var(--yellow-700) 0%, var(--primary-yellow) 100%);
    color: var(--dark-bg);
    border-color: var(--primary-yellow);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px var(--primary-yellow-glow);
}

.refresh-btn .refresh-icon {
    font-size: 10px;
    transition: transform 0.3s ease;
}

.refresh-btn:hover .refresh-icon {
    transform: rotate(180deg);
}

.refresh-btn.loading {
    pointer-events: none;
    opacity: 0.8;
}

.refresh-btn.loading .refresh-icon {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* 错误提示动画 */
@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

/* Video Grid */
.video-grid {
    padding: 0;
    background: var(--dark-surface);
    border: 1px solid var(--dark-border);
    border-top: none;
    border-radius: 0 0 12px 12px;
}

.video-list {
    display: none;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    padding: 25px;
}

.video-list.active {
    display: grid;
}

/* 确保type页面能显示所有视频 */
.main-content .video-list {
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
}

/* 针对type页面的特殊样式 */
.content-section .video-list {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 18px;
    padding: 20px;
}

.video-card {
    background: var(--dark-card);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 25px var(--shadow-dark);
    transition: all 0.3s ease;
    border: 1px solid var(--dark-border);
}

.video-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px var(--shadow-dark);
    border-color: var(--primary-yellow);
}

.video-thumb {
    position: relative;
    padding-bottom: 56.25%;
    overflow: hidden;
    background: var(--dark-bg);
}

.thumb-link {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: block;
}

.video-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.3s ease;
    filter: brightness(0.9);
}

.video-card:hover .video-thumb img {
    transform: scale(1.05);
    filter: brightness(1.1);
}

.duration {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.8);
    color: var(--primary-yellow);
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    border: 1px solid var(--primary-yellow);
}

.video-info {
    padding: 20px;
}

.video-title {
    margin: 0 0 10px 0;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
    height: 2.8em;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
}

.video-title a {
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.3s ease;
    display: block;
    height: 100%;
}

.video-title a:hover {
    color: var(--primary-yellow);
}

.video-date {
    color: var(--text-muted);
    font-size: 14px;
}

/* Video Section Spacing */
.video-section {
    margin-bottom: 40px;
}

.video-section:last-child {
    margin-bottom: 0;
}

/* Novel Grid Styles */
.novel-list-container {
    background: var(--dark-surface);
    border-radius: 0 0 12px 12px;
    padding: 25px;
}

.novel-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
    width: 100%;
}

.novel-grid .novel-item {
    background: var(--dark-card);
    border: 1px solid var(--dark-border);
    border-radius: 8px;
    padding: 15px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.novel-grid .novel-item:hover {
    background: var(--dark-surface);
    border-color: var(--primary-yellow);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 156, 29, 0.15);
}

.novel-grid .novel-title {
    color: var(--text-primary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
    display: block;
    transition: all 0.3s ease;
    text-align: center;
    /* 单行显示，超出部分用省略号 */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    /* 设置最大宽度确保省略号生效 */
    max-width: 100%;
    /* 相对定位，为悬停效果做准备 */
    position: relative;
}

.novel-grid .novel-title:hover {
    color: var(--primary-yellow);
    /* 悬停时显示完整标题 */
    white-space: normal;
    overflow: visible;
    text-overflow: unset;
    /* 悬停时的背景和边框效果 */
    background: var(--dark-surface);
    padding: 8px 12px;
    border-radius: 6px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    /* 提升层级，确保完整标题显示在最上层 */
    z-index: 10;
    /* 绝对定位，避免影响布局 */
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    /* 设置最小宽度，确保有足够空间显示完整标题 */
    min-width: max-content;
    max-width: 300px;
    text-align: center;
}

    .back-to-top {
        bottom: 20px;
        right: 20px;
    }
    
    .back-to-top-btn {
        width: 50px;
        height: 50px;
        font-size: 11px;
    }
    
    .back-to-top-btn span:first-child {
        font-size: 16px;
    }
    
    .back-to-top-btn span:last-child {
        font-size: 9px;
    }

/* Loading Indicator Styles */
.loading-indicator {
    position: fixed;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--dark-card);
    color: var(--text-primary);
    padding: 15px 25px;
    border-radius: 25px;
    border: 1px solid var(--dark-border);
    display: none;
    align-items: center;
    gap: 10px;
    z-index: 1000;
    box-shadow: 0 4px 20px var(--shadow-dark);
    font-size: 14px;
    font-weight: 500;
}

.loading-indicator.error {
    background: rgba(220, 38, 38, 0.1);
    border-color: rgba(220, 38, 38, 0.3);
    color: #fca5a5;
}

.loading-spinner {
    width: 16px;
    height: 16px;
    border: 2px solid var(--dark-border);
    border-top: 2px solid var(--primary-yellow);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive design for novel grid */
@media (max-width: 768px) {
    .novel-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 12px;
    }
    
    .novel-list-container {
        padding: 15px;
    }
    
    .novel-grid .novel-item {
        padding: 12px;
    }
    
    .novel-grid .novel-title {
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .novel-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: 10px;
    }
    
    .novel-list-container {
        padding: 12px;
    }
    
    .novel-grid .novel-item {
        padding: 10px;
    }
    
    .novel-grid .novel-title {
        font-size: 12px;
    }
}

/* Article Grid Styles */
.art-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    padding: 25px;
    background: var(--dark-surface);
    border-radius: 0 0 12px 12px;
}

.art-item {
    background: var(--dark-card);
    border: 1px solid var(--dark-border);
    border-radius: 8px;
    padding: 20px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.art-item:hover {
    background: var(--dark-surface);
    border-color: var(--primary-yellow);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 156, 29, 0.15);
}

.art-title {
    margin: 0 0 15px 0;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
}

.art-title a {
    color: var(--text-primary);
    text-decoration: none;
    display: block;
    transition: color 0.3s ease;
}

.art-title a:hover {
    color: var(--primary-yellow);
}

.art-content {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.art-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid var(--dark-border);
    margin-top: 15px;
}

.art-date {
    color: var(--text-muted);
    font-size: 12px;
}

/* Pagination Styles */
.pagination-wrapper {
    padding: 30px 25px;
    background: var(--dark-surface);
    border-top: 1px solid var(--dark-border);
    border-radius: 0 0 12px 12px;
    display: flex;
    justify-content: center;
}

.pagination {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}

.pagination a,
.pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 8px 12px;
    border: 1px solid var(--dark-border);
    border-radius: 8px;
    text-decoration: none;
    color: var(--text-secondary);
    background: var(--dark-card);
    transition: all 0.3s ease;
    font-weight: 500;
}

.pagination a:hover {
    background: var(--gradient-yellow);
    color: var(--dark-bg);
    border-color: var(--primary-yellow);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px var(--primary-yellow-glow);
}

.pagination .current {
    background: var(--gradient-yellow);
    color: var(--dark-bg);
    border-color: var(--primary-yellow);
    box-shadow: 0 4px 15px var(--primary-yellow-glow);
}

.pagination .prev,
.pagination .next {
    padding: 8px 16px;
    font-weight: 600;
    gap: 5px;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
}

.back-to-top-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: var(--gradient-yellow);
    color: var(--dark-bg);
    border: 2px solid var(--primary-yellow);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    font-size: 12px;
    box-shadow: 0 4px 20px var(--primary-yellow-glow);
}

.back-to-top-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(255, 215, 0, 0.5);
    background: var(--primary-yellow);
}

.back-to-top-btn span:first-child {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 2px;
}

.back-to-top-btn span:last-child {
    font-size: 10px;
    line-height: 1;
}

/* 播放器相关样式 */
.yp_wz {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.yp_pr {
    color: var(--text-secondary);
    margin-bottom: 15px;
    font-size: 14px;
}

.yp_pr a {
    color: var(--primary-yellow);
    text-decoration: none;
}

.yp_pr a:hover {
    color: var(--secondary-yellow);
}

.yp_bt {
    margin-bottom: 20px;
}

.yp_bt h1 {
    color: var(--text-primary);
    font-size: 24px;
    margin: 0 0 10px 0;
    font-weight: 600;
}

.yp_bt span {
    color: var(--text-secondary);
    font-size: 14px;
}

.yp_nr {
    position: relative;
}

.yp_nr .y_p {
    width: 100%;
    height: 0;
    padding-bottom: 56.25%;
    position: relative;
    background: #000;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 20px;
}

.yp_nr .y_p > * {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.yp_nr .t_s,
.yp_nr .r_k {
    margin: 10px 0;
}

.yp_nr .t_s a,
.yp_nr .r_k a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    padding: 8px 15px;
    background: var(--dark-card);
    border: 1px solid var(--dark-border);
    border-radius: 6px;
    display: inline-block;
    transition: all 0.3s ease;
}

.yp_nr .t_s a:hover,
.yp_nr .r_k a:hover {
    color: var(--primary-yellow);
    border-color: var(--primary-yellow);
    background: rgba(255, 215, 0, 0.1);
}

/* 通用样式 */
.clear {
    clear: both;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: var(--gradient-yellow);
    color: var(--dark-bg);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 4px 20px rgba(255, 215, 0, 0.3);
    transition: all 0.3s ease;
    line-height: 1;
}

.back-to-top-btn:hover {
    background: var(--primary-yellow);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.5);
}

.back-to-top-btn span:first-child {
    font-size: 18px;
    margin-bottom: 2px;
}

.back-to-top-btn span:last-child {
    font-size: 10px;
    line-height: 1;
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--dark-bg);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-yellow);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-yellow);
}

/* 响应式设计 - 合并优化 */
@media (max-width: 768px) {
    .container {
        padding: 0 10px;
    }
    
    .main-nav .container {
        flex-wrap: wrap;
    }
    
    .nav-list {
        display: none;
        width: 100%;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        background: var(--dark-surface);
        box-shadow: 0 8px 25px var(--shadow-dark);
        padding: 20px;
        border-top: 2px solid var(--primary-yellow);
    }
    
    .nav-list.active {
        display: flex;
    }
    
    .hamburger {
        display: flex;
    }
    
    .search-container {
        order: 3;
        width: 100%;
        margin: 15px 0 0 0;
    }
    
    .video-list,
    .main-content .video-list,
    .content-section .video-list {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 15px;
        padding: 15px;
    }
    
    .section-header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .tab-nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .art-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 15px;
        padding: 15px;
    }
    
    .art-item {
        padding: 15px;
    }
    
    .tab-list {
        padding: 8px 10px;
        gap: 4px;
    }
    
    .tab-btn {
        padding: 6px 10px;
        font-size: 12px;
        margin-right: 4px;
        margin-bottom: 4px;
        border-radius: 6px;
    }
    
    .tab-item {
        margin: 0;
    }
    
    .back-to-top {
        bottom: 20px;
        right: 20px;
    }
    
    .back-to-top-btn {
        width: 50px;
        height: 50px;
        font-size: 11px;
    }
    
    .back-to-top-btn span:first-child {
        font-size: 16px;
    }
    
    .back-to-top-btn span:last-child {
        font-size: 9px;
    }
    
    .pagination a,
    .pagination span {
        min-width: 35px;
        height: 35px;
        font-size: 14px;
    }
    
    .yp_wz {
        margin: 10px auto 20px;
        padding: 0 15px;
    }
    
    .yp_bt h1 {
        font-size: 18px;
        margin-bottom: 0;
    }
    
    .yp_bt span {
        display: none;
    }
    
    .yp_nr .y_p {
        margin: 0;
    }
    
    .yp_nr .t_s,
    .yp_nr .r_k {
        display: block;
        float: left;
        margin: 10px 5px 10px 0;
        padding: 6px 12px;
        background-color: var(--dark-card);
        border-radius: 5px;
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .video-list,
    .main-content .video-list,
    .content-section .video-list {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 10px;
        padding: 10px;
    }
    
    .video-card {
        margin-bottom: 15px;
    }
    
    .tab-list {
        padding: 6px 8px;
        gap: 3px;
    }
    
    .tab-btn {
        padding: 4px 8px;
        font-size: 11px;
        margin-right: 3px;
        margin-bottom: 3px;
        border-radius: 4px;
    }
    
    .art-grid {
        grid-template-columns: 1fr;
        gap: 12px;
        padding: 12px;
    }
    
    .art-item {
        padding: 12px;
    }
    
    .art-title {
        font-size: 15px;
    }
    
    .art-content {
        font-size: 13px;
    }
    
    .pagination {
        gap: 5px;
    }
    
    .pagination a,
    .pagination span {
        min-width: 30px;
        height: 30px;
        font-size: 12px;
        padding: 4px 8px;
    }
    
    .pagination .prev,
    .pagination .next {
        padding: 4px 12px;
    }

    /* 移动端视频卡片优化 */
    .video-info {
        padding: 8px 10px;
    }
    
    .video-title {
        font-size: 13px;
        height: auto;
        max-height: 54px; /* 允许最多显示3行 */
        -webkit-line-clamp: 3;
        line-clamp: 3;
        margin-bottom: 0;
        font-weight: normal;
    }
}

/* 文章详情页面样式 */
.article-detail-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    background: var(--dark-surface);
    border-radius: 12px;
    box-shadow: 0 8px 25px var(--shadow-dark);
    margin-top: 20px;
    margin-bottom: 20px;
}

/* 面包屑导航 */
.breadcrumb-nav {
    margin-bottom: 20px;
    padding: 15px 0;
    border-bottom: 1px solid var(--dark-border);
}

.breadcrumb {
    font-size: 14px;
    color: var(--text-muted);
}

.breadcrumb a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb a:hover {
    color: var(--primary-yellow);
}

/* 文章内容区域 */
.article-content {
    width: 100%;
    max-width: 100%;
}

.article-wrapper {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
}

/* 文章标题 */
.article-header {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--primary-yellow);
}

.article-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.4;
    margin: 0;
    text-shadow: 0 2px 4px var(--shadow-dark);
}

/* 文章正文 */
.article-body {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
}

/* 文章正文容器 - 简化版本 */
.article-body {
    width: 100%;
    min-height: 600px;
    background: var(--dark-card);
    border-radius: 8px;
    border: 1px solid var(--dark-border);
    box-sizing: border-box;
    padding: 0;
}

.content-wrapper {
    width: 100%;
    height: 100%;
    min-height: 580px;
    padding: 20px;
    box-sizing: border-box;
    background: transparent;
}

.article-text {
    width: 100%;
    min-height: 540px;
    overflow-wrap: break-word;
    word-wrap: break-word;
    word-break: break-word;
    line-height: 1.8;
    font-size: 16px;
    color: var(--text-primary);
    margin: 0;
    padding: 15px;
    box-sizing: border-box;
    display: block;
    text-align: justify;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 4px;
}

.article-text p {
    margin-bottom: 15px;
    line-height: 1.8;
    margin-top: 0;
    padding: 0;
}

.article-text img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 20px 0;
    box-shadow: 0 4px 15px var(--shadow-dark);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .article-detail-container {
        padding: 15px;
        margin: 10px;
        border-radius: 8px;
    }
    
    .content-wrapper {
        padding: 10px;
    }
    
    .article-title {
        font-size: 22px;
    }
    
    .article-text {
        font-size: 15px;
    }
}

/* 视频分类弹窗样式 */
.video-category-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    z-index: 2000;
    backdrop-filter: blur(5px);
}

.video-category-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    border-radius: 12px;
    padding: 20px;
    width: 90%;
    max-width: 500px;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.video-category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--primary-yellow);
}

.video-category-header h3 {
    color: var(--primary-yellow);
    margin: 0;
    font-size: 20px;
    font-weight: 600;
}

.video-category-close {
    background: none;
    border: none;
    color: #999;
    font-size: 28px;
    cursor: pointer;
    padding: 0;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.video-category-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    transform: rotate(90deg);
}

.video-category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 12px;
}

.video-category-item {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px 10px;
    background: linear-gradient(135deg, #2a2a2a 0%, #3a3a3a 100%);
    border: 1px solid #444;
    border-radius: 8px;
    text-decoration: none;
    color: #fff;
    transition: all 0.3s ease;
    text-align: center;
    min-height: 50px;
}

.video-category-item:hover {
    background: linear-gradient(135deg, var(--primary-yellow) 0%, var(--secondary-yellow) 100%);
    color: #000;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 153, 0, 0.3);
    border-color: var(--primary-yellow);
}

.video-category-name {
    font-size: 14px;
    font-weight: 500;
    line-height: 1.2;
}

/* 底部导航样式 - 黑金主题设计 */
.bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--dark-bg);
    background-image: 
        linear-gradient(135deg, var(--dark-surface) 0%, var(--dark-bg) 100%),
        radial-gradient(circle at center bottom, rgba(255, 215, 0, 0.05) 0%, transparent 70%);
    border-top: 1px solid var(--dark-border);
    z-index: 1000;
    box-shadow: 
        0 -8px 32px rgba(0, 0, 0, 0.6),
        0 -2px 8px rgba(255, 215, 0, 0.1);
    backdrop-filter: blur(10px);
}

.bottom-nav::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--gradient-yellow);
    box-shadow: 0 0 10px var(--primary-yellow-glow);
}

.bottom-nav-container {
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 12px 0 8px;
    max-width: 100%;
    position: relative;
}

.bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: var(--text-muted);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 10px 12px;
    border-radius: 12px;
    min-width: 70px;
    cursor: pointer;
    position: relative;
    background: transparent;
    border: 1px solid transparent;
}

.bottom-nav-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-dark);
    border-radius: 12px;
    opacity: 0;
    transition: all 0.4s ease;
    z-index: -1;
}

.bottom-nav-item:hover,
.bottom-nav-item.active {
    color: var(--dark-bg);
    background: var(--gradient-yellow);
    border-color: var(--primary-yellow);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 
        0 8px 25px rgba(255, 215, 0, 0.4),
        0 4px 12px rgba(0, 0, 0, 0.3);
}

.bottom-nav-item:hover::before,
.bottom-nav-item.active::before {
    opacity: 0;
}

.bottom-nav-item:hover .bottom-nav-icon,
.bottom-nav-item.active .bottom-nav-icon {
    transform: scale(1.2) rotate(5deg);
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.3));
}

.bottom-nav-item:hover .bottom-nav-text,
.bottom-nav-item.active .bottom-nav-text {
    font-weight: 700;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.bottom-nav-icon {
    font-size: 24px;
    margin-bottom: 6px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.2));
}

.bottom-nav-text {
    font-size: 11px;
    font-weight: 600;
    transition: all 0.4s ease;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.video-category-item {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px 10px;
    background: linear-gradient(135deg, #2a2a2a 0%, #3a3a3a 100%);
    border: 1px solid #444;
    border-radius: 8px;
    text-decoration: none;
    color: #fff;
    transition: all 0.3s ease;
    text-align: center;
    min-height: 50px;
}

.video-category-item:hover {
    background: linear-gradient(135deg, var(--primary-yellow) 0%, var(--secondary-yellow) 100%);
    color: #000;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 153, 0, 0.3);
    border-color: var(--primary-yellow);
}

.video-category-name {
    font-size: 14px;
    font-weight: 500;
    line-height: 1.2;
}

/* 底部导航样式更新 - 与网站主题保持一致 */
.bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    border-top: 2px solid var(--primary-yellow);
    z-index: 1000;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.5);
}

.bottom-nav-container {
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 10px 0;
    max-width: 100%;
}

.bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #999;
    transition: all 0.3s ease;
    padding: 8px 10px;
    border-radius: 10px;
    min-width: 65px;
    cursor: pointer;
    position: relative;
}

.bottom-nav-item:hover,
.bottom-nav-item.active {
    color: var(--primary-yellow);
    background: rgba(255, 153, 0, 0.1);
    transform: translateY(-2px);
}

.bottom-nav-item:hover .bottom-nav-icon,
.bottom-nav-item.active .bottom-nav-icon {
    transform: scale(1.1);
    filter: drop-shadow(0 2px 4px rgba(255, 153, 0, 0.3));
}

.bottom-nav-icon {
    font-size: 22px;
    margin-bottom: 4px;
    transition: all 0.3s ease;
}

.bottom-nav-text {
    font-size: 12px;
    font-weight: 500;
    transition: all 0.3s ease;
}

/* 移动端显示底部导航 */
@media (max-width: 768px) {
    .bottom-nav {
        display: block;
    }
    
    /* 为底部导航留出空间 */
    body {
        padding-bottom: 80px;
    }
    
    /* 隐藏顶部导航在移动端 */
    .site-header {
        display: none;
    }
}

/* 超小屏幕优化 */
@media (max-width: 480px) {
    .bottom-nav-item {
        padding: 6px 8px;
        min-width: 55px;
    }
    
    .bottom-nav-icon {
        font-size: 20px;
    }
    
    .bottom-nav-text {
        font-size: 11px;
    }
    
    .mobile-search-container {
        width: 95%;
        padding: 15px;
        max-height: 75vh;
    }
    
    .mobile-search-grid {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
        gap: 10px;
    }
    
    .mobile-search-item {
        padding: 12px 8px;
        min-height: 45px;
    }
    
    .mobile-search-name {
        font-size: 13px;
    }
}

/* 移动端搜索弹窗 */
.mobile-search-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    z-index: 2000;
    backdrop-filter: blur(5px);
}

.mobile-search-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    border-radius: 12px;
    padding: 20px;
    width: 90%;
    max-width: 400px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.mobile-search-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.mobile-search-header h3 {
    color: #f90;
    margin: 0;
    font-size: 18px;
}

.mobile-search-close {
    background: none;
    border: none;
    color: #999;
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.mobile-search-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.mobile-search-input-group {
    display: flex;
    gap: 10px;
}

.mobile-search-input {
    flex: 1;
    padding: 12px 15px;
    border: 1px solid #333;
    border-radius: 8px;
    background: #000;
    color: #fff;
    font-size: 16px;
}

.mobile-search-input:focus {
    outline: none;
    border-color: #f90;
    box-shadow: 0 0 0 2px rgba(255, 153, 0, 0.2);
}

.mobile-search-btn {
    padding: 12px 20px;
    background: linear-gradient(135deg, #f90 0%, #ff6600 100%);
    border: none;
    border-radius: 8px;
    color: #fff;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.mobile-search-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(255, 153, 0, 0.3);
}

/* 移动端显示底部导航 */
@media (max-width: 768px) {
    .bottom-nav {
        display: block;
    }
    
    /* 为底部导航留出空间 */
    body {
        padding-bottom: 70px;
    }
    
    /* 隐藏顶部导航在移动端 */
    .site-header {
        display: none;
    }
}

/* 超小屏幕优化 */
@media (max-width: 480px) {
    .bottom-nav-item {
        padding: 4px 6px;
        min-width: 50px;
    }
    
    .bottom-nav-icon {
        font-size: 18px;
    }
    
    .bottom-nav-text {
        font-size: 10px;
    }
    
    .mobile-search-container {
        width: 95%;
        padding: 15px;
    }
}

@media (max-width: 480px) {
    .article-detail-container {
        padding: 10px;
        margin: 5px;
    }
    
    .content-wrapper {
        padding: 8px;
    }
    
    .article-title {
        font-size: 20px;
    }
    
    .article-text {
        font-size: 14px;
    }
}

/* 懒加载图片样式 */
img.lazy {
    opacity: 0.3;
    transition: opacity 0.3s ease;
    background: var(--dark-card);
    min-height: 200px;
    display: block;
}

img.loaded {
    opacity: 1;
}

img.error {
    opacity: 0.5;
    background: var(--dark-card);
    position: relative;
}

img.error::after {
    content: "图片加载失败";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--text-muted);
    font-size: 12px;
    background: var(--dark-bg);
    padding: 5px 10px;
    border-radius: 4px;
}

/* 视频缩略图优化 */
 .video-thumb {
     position: relative;
     padding-bottom: 56.25%;
     overflow: hidden;
     background: var(--dark-bg);
     border-radius: 8px;
 }