/* 全局样式 */
:root {
    --primary-color: #FF6B6B;
    --secondary-color: #4ECDC4;
    --accent-color: #FFD166;
    --text-color: #292F36;
    --light-text: #6C757D;
    --background-color: #F9F7F7;
    --card-background: #FFFFFF;
    --border-radius: 12px;
    --box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Comic Sans MS', 'Arial Rounded MT Bold', sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
    padding-top: 60px;
    overflow-x: hidden;
    word-break: break-word;
}

/* 显示公告栏时，主体内容往下推 22px(公告高度) + 2px(间距) */
body.has-announcement {
    padding-top: 84px;
}

/* 响应式body padding */
@media (max-width: 768px) {
    body {
        padding-top: 56px;
    }
    body.has-announcement {
        padding-top: 80px;
    }
}

@media (max-width: 576px) {
    body {
        padding-top: 50px;
    }
    body.has-announcement {
        padding-top: 74px;
    }
}

/* 公告区域样式 */
.announcement-container {
    padding: 0;
    overflow: hidden;
    margin-top: 0;
    height: 22px;
    line-height: 22px;
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    z-index: 998;
    background: var(--secondary-color);
    display: none;
}

.navbar.fixed-top.scrolled + .announcement-container {
    top: 52px;
}

.announcement-content {
    display: flex;
    align-items: center;
    position: relative;
    white-space: nowrap;
    font-size: 14px;
    color: white;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
    height: 100%;
}

.announcement-content.scrolling {
    animation: scroll 30s linear infinite;
    white-space: nowrap;
    overflow: visible;
}

.announcement-icon {
    margin-right: 8px;
    color: white;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

.announcement-text {
    white-space: nowrap;
}

.announcement-link {
    color: white;
    text-decoration: underline;
    cursor: pointer;
}

.announcement-link:hover {
    color: #ffd700;
    text-decoration: none;
}

@keyframes scroll {
    0% {
        transform: translateX(100vw);
    }
    100% {
        transform: translateX(-100%);
    }
}

/* Toast 动画 */
@keyframes toastIn {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

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

/* 导航栏 */
.navbar {
    background: #ffffff;
    padding: 0 0.5rem;
    box-shadow: 0 1px 8px rgba(0, 0, 0, 0.06);
    height: 60px;
    transition: all 0.3s ease;
    z-index: 999;
    display: flex;
    align-items: center;
    border-bottom: 1px solid #f0f0f0;
}

.navbar.fixed-top {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
}

.navbar.fixed-top.scrolled {
    height: 52px;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.1);
    border-bottom-color: transparent;
}

.navbar.fixed-top.scrolled .logo {
    width: 30px;
    height: 30px;
}

.navbar.fixed-top.scrolled .brand-name {
    font-size: 1rem;
}

.navbar.fixed-top.scrolled .navbar-nav .nav-link {
    font-size: 0.85rem;
}

.navbar.fixed-top.scrolled .navbar-search-toggle {
    transform: scale(0.9);
}

.navbar.fixed-top.scrolled .category-quick-nav-item {
    padding: 3px 10px;
    font-size: 0.78rem;
}

.logo {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 8px;
    transition: all 0.3s ease;
}

.brand-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: #2d3436;
    transition: all 0.3s ease;
    letter-spacing: -0.5px;
}

.category-quick-nav {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-left: 16px;
    overflow-x: auto;
    overflow-y: hidden;
    white-space: nowrap;
    flex: 1;
    max-width: 50%;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.category-quick-nav::-webkit-scrollbar {
    display: none;
}

.category-quick-nav-item {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    font-size: 0.82rem;
    font-weight: 500;
    color: #636e72;
    text-decoration: none;
    border-radius: 16px;
    transition: all 0.2s ease;
    white-space: nowrap;
    background: transparent;
    border: none;
    cursor: pointer;
}

.category-quick-nav-item:hover {
    color: var(--secondary-color);
    background: rgba(78, 205, 196, 0.08);
}

.category-quick-nav-item.active {
    color: var(--secondary-color);
    background: rgba(78, 205, 196, 0.12);
    font-weight: 600;
}

/* ========== 导航栏内联搜索框 ========== */
.navbar-search-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.navbar-search-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: none;
    border: none;
    color: #636e72;
    font-size: 1rem;
    cursor: pointer;
    border-radius: 50%;
    transition: all 0.25s ease;
}

.navbar-search-toggle:hover {
    color: #4a6cf7;
    background: rgba(74, 108, 247, 0.08);
}

.navbar-search-form {
    display: flex;
    align-items: center;
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    overflow: hidden;
    background: #f5f6fa;
    border: 1px solid transparent;
    border-radius: 22px;
    transition: width 0.35s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.25s, border-color 0.3s, box-shadow 0.3s;
    opacity: 0;
    pointer-events: none;
    z-index: 10;
}

.navbar-search-wrapper.active .navbar-search-form {
    width: 280px;
    opacity: 1;
    pointer-events: auto;
    border-color: #e2e8f0;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.navbar-search-wrapper.active .navbar-search-toggle {
    display: none;
}

.navbar-search-input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 0.5rem 0.6rem 0.5rem 1rem;
    font-size: 0.9rem;
    color: #2d3748;
    outline: none;
    min-width: 0;
}

.navbar-search-input::placeholder {
    color: #a0aec0;
}

.navbar-search-submit {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    background: #4a6cf7;
    border: none;
    color: #fff;
    border-radius: 50%;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.25s;
    flex-shrink: 0;
}

.navbar-search-submit:hover {
    background: #3b5de7;
    transform: scale(1.05);
}

/* 关闭搜索按钮（展开后显示） */
.navbar-search-close {
    display: none;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: none;
    border: none;
    color: #a0aec0;
    font-size: 0.75rem;
    cursor: pointer;
    border-radius: 50%;
    margin-left: 2px;
    margin-right: 4px;
    flex-shrink: 0;
    transition: all 0.2s;
}

.navbar-search-close:hover {
    color: #636e72;
    background: rgba(0, 0, 0, 0.06);
}

.navbar-search-wrapper.active .navbar-search-close {
    display: flex;
}

/* ========== 导航栏内联搜索框 END ========== */

.nav-link {
    font-size: 0.9rem;
    font-weight: 500;
    color: #636e72;
    transition: all 0.2s ease;
    margin-left: 0.5rem;
    border-radius: 8px;
    padding: 0.4rem 0.8rem;
}

.nav-link:hover,
.nav-link.active {
    color: var(--secondary-color);
    background-color: rgba(78, 205, 196, 0.08);
}

.dropdown-menu {
    border-radius: 10px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    border: 1px solid #f0f0f0;
    padding: 0.5rem 0;
    background: #ffffff;
    min-width: 140px;
    margin-top: 0.5rem;
}

.dropdown-item {
    padding: 0.6rem 1.5rem;
    transition: all 0.2s ease;
    color: #636e72;
    font-size: 0.9rem;
}

.dropdown-item:hover {
    background-color: rgba(78, 205, 196, 0.06);
    color: var(--secondary-color);
}

.nav-item.dropdown {
    position: relative;
}

.nav-item.dropdown .dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    left: auto;
}

/* 幻灯片轮播 */
/* 分类标签 */
.categories-section {
    margin: 2rem 0;
}

.categories-list {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}

.category-btn {
    background-color: var(--card-background);
    border: 2px solid var(--secondary-color);
    border-radius: 25px;
    padding: 0.5rem 1.5rem;
    font-weight: 600;
    color: var(--text-color);
    transition: var(--transition);
    cursor: pointer;
}

.category-btn:hover,
.category-btn.active {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--box-shadow);
}

/* 文章列表和热门文章 */
.articles-section,
.popular-articles-section {
    margin: 2rem 0;
}

.popular-articles-head {
    text-align: center;
}

.popular-articles-head .section-title {
    margin-bottom: 0;
}

.section-title {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 2rem;
    text-align: center;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.section-title i {
    margin-right: 0.5rem;
    color: var(--secondary-color);
}

/* 搜索结果统计 */
.search-result-count {
    text-align: center;
    color: #6C757D;
    font-size: 0.9rem;
    margin-top: -1.2rem;
    margin-bottom: 1.5rem;
}

/* ========== 搜索页文章卡片 - 参考首页热门文章 ========== */
.search-section .articles-grid {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1.2rem;
}

.search-section .article-card {
    border-radius: 12px;
    border: 1px solid #eef1f5;
    box-shadow: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.search-section .article-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
    border-color: #d0d8f0;
    background-color: #fff;
}

.search-section .article-card .card-image {
    height: auto;
    aspect-ratio: 16 / 10;
    background: #f5f6fa;
}

.search-section .article-card .card-image img {
    object-fit: fill;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.search-section .article-card:hover .card-image img {
    transform: scale(1.06);
}

.search-section .article-card .category-badge {
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    color: #fff;
    padding: 0.22rem 0.65rem;
    border-radius: 6px;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.03em;
}

.search-section .article-card .card-content {
    padding: 0.85rem 1rem;
}

.search-section .article-card .card-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: #2d3748;
    line-height: 1.45;
    margin-bottom: 0.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.25s;
    overflow-wrap: break-word;
    word-break: break-word;
}

.search-section .article-card:hover .card-title {
    color: #4a6cf7;
}

.search-section .article-card .card-summary {
    font-size: 0.78rem;
    color: #a0aec0;
    line-height: 1.5;
    margin-bottom: 0.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.search-section .article-card .card-meta {
    font-size: 0.72rem;
    color: #a0aec0;
    gap: 0.8rem;
    justify-content: flex-start;
    margin-bottom: 0;
}

.search-section .article-card .card-meta span i {
    margin-right: 0.2rem;
    font-size: 0.7rem;
}

.search-section .article-card .read-more {
    display: none;
}

.search-section .article-card-link:hover .article-card {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
    background-color: #fff;
}

.search-section .article-card-link:active .article-card {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}
/* ========== 搜索页文章卡片 END ========== */

.articles-grid,
.popular-articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.2rem;
    margin-bottom: 2rem;
}

/* ========== 热门文章卡片样式 ========== */
.popular-articles-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
    min-width: 0;
}

.popular-card {
    display: block;
    text-decoration: none;
    color: inherit;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #eef1f5;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    min-width: 0;
}

.popular-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
    border-color: #d0d8f0;
}

.popular-card-image {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 11;
    overflow: hidden;
    background: #f5f6fa;
    border-radius: 0;
}

.popular-card-image img {
    width: 100%;
    height: 100%;
    object-fit: fill;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.popular-card:hover .popular-card-image img {
    transform: scale(1.06);
}

.popular-card-badge {
    position: absolute;
    top: 0.65rem;
    left: 0.65rem;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    color: #fff;
    padding: 0.22rem 0.65rem;
    border-radius: 6px;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    z-index: 2;
}

.popular-card-summary-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    max-height: 50%;
    padding: 1.2rem 0.75rem 0.7rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.75) 0%, rgba(0, 0, 0, 0.35) 60%, transparent 100%);
    z-index: 1;
    display: flex;
    align-items: flex-end;
}

.popular-card-summary-overlay p {
    color: #fff;
    font-size: 0.75rem;
    line-height: 1.45;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* 软件/游戏卡片摘要 - 更短 */
.home-software-grid .popular-card-summary-overlay p,
.home-game-grid .popular-card-summary-overlay p {
    font-size: 0.7rem;
    -webkit-line-clamp: 2;
    line-height: 1.4;
}

/* 热门文章卡片摘要 - 更长 */
.popular-articles-grid .popular-card-summary-overlay p {
    font-size: 0.78rem;
    -webkit-line-clamp: 3;
    line-height: 1.5;
}

.popular-card-body {
    padding: 1rem 1.1rem 1.1rem;
}

.popular-card-title {
    font-size: 0.92rem;
    font-weight: 600;
    color: #2d3748;
    line-height: 1.5;
    margin-bottom: 0.6rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.25s;
    overflow-wrap: break-word;
    word-break: break-word;
}

.popular-card:hover .popular-card-title {
    color: #4a6cf7;
}

.popular-card-meta {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 0.72rem;
    color: #a0aec0;
}

.popular-card-meta i {
    margin-right: 0.2rem;
    font-size: 0.7rem;
}

.popular-card-views {
    color: #f59e0b;
}

.popular-card-date {
    color: #a0aec0;
}

/* ========== 热门文章卡片样式 END ========== */

.article-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: var(--transition);
}

.article-card-link:hover .article-card {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    background-color: #f8f9fa;
}

.article-card-link:active .article-card {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.article-card {
    background-color: var(--card-background);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    position: relative;
    cursor: pointer;
    min-width: 0;
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    background-color: #f8f9fa;
}

.article-card:active {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.article-card .card-image {
    width: 100%;
    height: 160px;
    overflow: hidden;
}

.article-card .card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.article-card:hover .card-image img {
    transform: scale(1.1);
}

.article-card .category-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background-color: var(--primary-color);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
    z-index: 1;
}

.article-card .card-content {
    padding: 1rem;
}

.article-card .card-title {
    font-size: 1.05rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
    color: var(--text-color);
    transition: var(--transition);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    overflow-wrap: break-word;
    word-break: break-word;
}

.article-card:hover .card-title {
    color: var(--primary-color);
}

.article-card .card-summary {
    font-size: 0.82rem;
    color: var(--light-text);
    margin-bottom: 0.75rem;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    overflow-wrap: break-word;
    word-break: break-word;
}

.article-card .card-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: var(--light-text);
    margin-bottom: 0.75rem;
}

.article-card .read-more {
    display: inline-block;
    background-color: var(--secondary-color);
    color: white;
    padding: 0.35rem 1rem;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.8rem;
    text-decoration: none;
    transition: var(--transition);
}

.article-card .read-more:hover {
    background-color: var(--primary-color);
    transform: translateX(5px);
}

.load-more {
    text-align: center;
    margin: 2.5rem 0 1.5rem;
}

.load-more .btn {
    background: #fff;
    color: #4a5568;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    padding: 0.7rem 2.2rem;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    outline: none;
    letter-spacing: 0.02em;
}

.load-more .btn:hover:not(:disabled) {
    color: #4a6cf7;
    border-color: #4a6cf7;
    background: #f8faff;
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(74, 108, 247, 0.12);
}

.load-more .btn:active:not(:disabled) {
    transform: translateY(0);
}

.load-more .btn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
    background: #fafbfc;
}

.load-more .btn i {
    margin-right: 0.45rem;
    font-size: 0.8rem;
}

/* ========== 最新文章列表样式 ========== */
.latest-articles-section {
    margin: 2rem 0;
}

.latest-articles-head {
    text-align: center;
    margin-bottom: 1.5rem;
}

.latest-articles-head .section-title {
    margin-bottom: 0;
}

.latest-category-tabs-wrapper {
    position: relative;
    margin-top: 1rem;
    padding: 0 40px;
}

.latest-category-tabs-wrapper::before,
.latest-category-tabs-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 40px;
    z-index: 2;
    pointer-events: none;
}

.latest-category-tabs-wrapper::before {
    left: 0;
    background: linear-gradient(to right, #fff 20%, transparent);
}

.latest-category-tabs-wrapper::after {
    right: 0;
    background: linear-gradient(to left, #fff 20%, transparent);
}

.latest-category-tabs {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 4px 0;
    justify-content: center;
    flex-wrap: nowrap;
}

.latest-category-tabs::-webkit-scrollbar {
    display: none;
}

.latest-category-tab {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.45rem 1.1rem;
    border: 1.5px solid #e8ecf1;
    border-radius: 22px;
    background: #fff;
    color: #5a6677;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
    user-select: none;
    outline: none;
}

.latest-category-tab i {
    font-size: 0.75rem;
}

.latest-category-tab:hover {
    color: #4a6cf7;
    border-color: #b8c5f0;
    background: #f8faff;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(74, 108, 247, 0.1);
}

.latest-category-tab.active {
    color: #fff;
    background: linear-gradient(135deg, #4a6cf7, #6b8aff);
    border-color: transparent;
    box-shadow: 0 3px 12px rgba(74, 108, 247, 0.3);
    font-weight: 600;
}

.latest-category-tab.active:hover {
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(74, 108, 247, 0.4);
}

.latest-articles-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 1.5rem;
    max-width: 1000px;
    margin: 0 auto 2rem;
    min-width: 0;
    overflow: hidden;
}

.latest-article-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.85rem 1.2rem;
    border-bottom: 1px solid #f0f0f0;
    text-decoration: none;
    color: inherit;
    transition: all 0.25s ease;
    border-radius: 8px;
    position: relative;
    min-width: 0;
    overflow: hidden;
}

.latest-article-item:nth-child(-n+2) {
    border-top: 1px solid #f0f0f0;
}

.latest-article-item:hover {
    background: linear-gradient(135deg, #f8faff 0%, #f0f4ff 100%);
    padding-left: 1.6rem;
    border-bottom-color: #d0d8f0;
    box-shadow: 0 2px 12px rgba(74, 108, 247, 0.08);
}

.latest-article-item:hover .latest-article-index {
    color: #fff;
    background: linear-gradient(135deg, #4a6cf7, #6b8aff);
    transform: scale(1.1);
}

.latest-article-item:hover .latest-article-title {
    color: #4a6cf7;
}

.latest-article-index {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    color: #a0aec0;
    background: #f7f8fc;
    border-radius: 8px;
    transition: all 0.25s ease;
    font-family: 'Courier New', monospace;
}

.latest-article-item:nth-child(-n+3) .latest-article-index {
    color: #fff;
    background: linear-gradient(135deg, #4a6cf7, #6b8aff);
}

.latest-article-item:nth-child(1) .latest-article-index {
    background: linear-gradient(135deg, #f04848, #ff6b6b);
}

.latest-article-item:nth-child(2) .latest-article-index {
    background: linear-gradient(135deg, #ff8c42, #ffa94d);
}

.latest-article-item:nth-child(3) .latest-article-index {
    background: linear-gradient(135deg, #fcc419, #ffd43b);
}

.latest-article-title {
    flex: 1;
    font-size: 0.95rem;
    font-weight: 500;
    color: #2d3748;
    line-height: 1.5;
    transition: color 0.25s ease;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0;
    overflow-wrap: break-word;
    word-break: break-word;
}

.latest-article-category {
    flex-shrink: 0;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25rem 0.85rem;
    border-radius: 20px;
    background: linear-gradient(135deg, #eef2ff, #e0e7ff);
    color: #4a6cf7;
    transition: all 0.25s ease;
    white-space: nowrap;
    min-width: 0;
    max-width: 80px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.latest-article-item:hover .latest-article-category {
    background: linear-gradient(135deg, #4a6cf7, #6b8aff);
    color: #fff;
    box-shadow: 0 2px 8px rgba(74, 108, 247, 0.3);
}

/* 响应式 - 移动端 */
@media (max-width: 768px) {
    .latest-articles-list {
        grid-template-columns: 1fr;
        max-width: 100%;
    }

    .latest-article-item:nth-child(-n+2) {
        border-top: none;
    }

    .latest-article-item:first-child {
        border-top: 1px solid #f0f0f0;
    }

    .latest-category-tabs-wrapper {
        padding: 0 24px;
        margin-top: 0.75rem;
    }

    .latest-category-tabs-wrapper::before,
    .latest-category-tabs-wrapper::after {
        width: 24px;
    }

    .latest-category-tabs {
        justify-content: flex-start;
        gap: 0.4rem;
    }

    .latest-category-tab {
        padding: 0.35rem 0.85rem;
        font-size: 0.78rem;
        border-radius: 18px;
    }

    .latest-article-item {
        padding: 0.7rem 0.8rem;
        gap: 0.65rem;
    }

    .latest-article-item:hover {
        padding-left: 1rem;
    }

    .latest-article-index {
        width: 26px;
        height: 26px;
        font-size: 0.7rem;
        border-radius: 6px;
    }

    .latest-article-title {
        font-size: 0.85rem;
    }

    .latest-article-category {
        font-size: 0.7rem;
        padding: 0.2rem 0.6rem;
    }
}

@media (max-width: 480px) {
    .latest-category-tabs-wrapper {
        padding: 0 16px;
        margin-top: 0.5rem;
    }

    .latest-category-tabs-wrapper::before,
    .latest-category-tabs-wrapper::after {
        width: 16px;
    }

    .latest-category-tabs {
        gap: 0.35rem;
    }

    .latest-category-tab {
        padding: 0.3rem 0.7rem;
        font-size: 0.72rem;
        border-radius: 16px;
    }

    .latest-article-item {
        padding: 0.6rem 0.6rem;
        gap: 0.5rem;
    }

    .latest-article-index {
        width: 24px;
        height: 24px;
        font-size: 0.65rem;
    }

    .latest-article-title {
        font-size: 0.8rem;
    }

    .latest-article-category {
        font-size: 0.65rem;
        padding: 0.18rem 0.5rem;
    }
}

/* ========== 最新文章列表样式 END ========== */

/* 分类主页样式 */
.category-header {
    background: var(--secondary-color);
    color: white;
    margin-bottom: 0;
    padding: 2rem 0;
}

.category-info {
    text-align: center;
}

.category-info h1 {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
    color: white;
}

.category-info p {
    font-size: 1rem;
    opacity: 0.9;
    color: rgba(255, 255, 255, 0.9);
}

/* 子分类样式 */
.subcategories-container {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.subcategories-container h3 {
    font-size: 1.1rem;
    font-weight: bold;
    margin-bottom: 15px;
    color: white;
}

.subcategories-list {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.subcategory-item {
    position: relative;
}

.subcategory-link {
    color: white;
    text-decoration: none;
    font-size: 1rem;
    display: inline-block;
    padding: 8px 15px;
    border-radius: 25px;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    white-space: nowrap;
}

.subcategory-link:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.05);
    text-decoration: none;
    color: white;
    box-shadow: 0 2px 8px rgba(255, 255, 255, 0.3);
}

.subcategory-indent {
    display: inline-block;
    vertical-align: middle;
}

.subcategory-connector {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

.category-articles-section {
    background: #f5f5f5;
    padding: 1rem 0;
}

.category-articles-section .container {
    max-width: 1200px;
    margin: 0 auto;
}

.category-articles-section .section-title {
    font-size: 1.5rem;
    font-weight: bold;
    color: #333;
    margin-bottom: 1rem;
    text-align: left;
    border-bottom: 2px solid var(--secondary-color);
    padding-bottom: 0.5rem;
}

.category-more {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}

/* 左侧文章列表样式 - 一行一篇 */
.category-articles-list {
    margin-bottom: 1rem;
}

.category-articles-list .article-card {
    background: #fff;
    border: 1px solid #EBEBEB;
    border-radius: 3px;
    padding: 15px;
    margin-bottom: 15px;
    transition: border-color 0.6s;
    overflow: hidden;
}

.category-articles-list .article-card:hover {
    border-color: #61B3E6;
}

.category-articles-list .article-card .article-link {
    display: flex;
    align-items: flex-start;
    color: inherit;
    text-decoration: none;
}

.category-articles-list .article-card .thumb {
    width: 250px;
    height: auto;
    float: left;
    margin: 5px 15px 5px 0;
    flex-shrink: 0;
}

.category-articles-list .article-card .thumb a {
    display: block;
    border: 1px solid #ddd;
    padding: 2px;
    background: #f1f1f1;
    border-radius: 3px;
    overflow: hidden;
}

.category-articles-list .article-card .article-cover {
    display: block;
    width: 100%;
    height: auto;
    max-height: 160px;
    transition: opacity 0.3s;
}

.category-articles-list .article-card .thumb img:hover {
    opacity: 0.7;
}

.category-articles-list .article-card .article-content {
    flex: 1;
    overflow: hidden;
}

.category-articles-list .article-card .article-category {
    float: left;
    font-size: 0.75em;
    margin: 3px 10px 0 0;
}

.category-articles-list .article-card .article-category a {
    padding: 3px 6px 2px;
    background: var(--secondary-color);
    color: #fff;
    border-radius: 2px;
    font-family: 'Simsun';
}

.category-articles-list .article-card .article-category a:hover {
    background: #0F72A5;
}

.category-articles-list .article-card .article-title {
    font-size: 1em;
    margin-bottom: 15px;
    clear: both;
    font-weight: bold;
    overflow-wrap: break-word;
    word-break: break-word;
    overflow: hidden;
}

.category-articles-list .article-card .article-title a {
    color: #333;
    text-decoration: none;
    font-weight: bold;
}

.category-articles-list .article-card .article-title a:hover {
    color: #3F729B;
}

.category-articles-list .article-card .article-summary {
    font-size: 0.875em;
    color: #555;
    overflow: hidden;
    margin-bottom: 10px;
}

.category-articles-list .article-card .article-summary p {
    margin-bottom: 15px;
    line-height: 1.75em;
    text-align: justify;
    text-indent: 2em;
}

.category-articles-list .article-card .article-meta {
    font-size: 0.75em;
    color: #666;
    clear: both;
}

.category-articles-list .article-card .article-meta a {
    color: #666;
}

.category-articles-list .article-card .article-meta a:hover {
    text-decoration: underline;
}

.category-articles-list .article-card .article-meta span {
    padding-right: 5px;
}

/* 右侧边栏样式 */
.sidebar {
    padding-left: 1rem;
}

.widget {
    background: #fff;
    border: 1px solid #EBEBEB;
    border-radius: 3px;
    padding: 1rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.widget h3 {
    font-size: 1.1rem;
    font-weight: bold;
    color: #333;
    margin-bottom: 0.75rem;
    border-bottom: 1px solid #eee;
    padding-bottom: 0.5rem;
}

.widget h3 i {
    margin-right: 0.5rem;
    color: var(--secondary-color);
}

/* 热门文章列表样式 */
.hot-articles-list .hot-article {
    display: flex;
    align-items: center;
    margin-bottom: 0.75rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #f5f5f5;
}

.hot-articles-list .hot-article:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.hot-articles-list .hot-article .thumb {
    width: 60px;
    height: 60px;
    margin-right: 0.75rem;
    flex-shrink: 0;
}

.hot-articles-list .hot-article .thumb a {
    display: block;
    border: 1px solid #ddd;
    padding: 1px;
    background: #f1f1f1;
    border-radius: 2px;
    overflow: hidden;
}

.hot-articles-list .hot-article .thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hot-articles-list .hot-article .hot-content {
    flex: 1;
}

/* 分页控件样式 */
.pagination-container {
    margin-top: 2rem;
    margin-bottom: 2rem;
}

.pagination-container .total-articles {
    font-size: 0.875rem;
    color: #666;
    margin-bottom: 1rem;
}

.pagination {
    display: flex;
    justify-content: center;
    list-style: none;
    padding: 0;
    margin: 0;
}

.pagination .page-item {
    margin: 0 0.25rem;
}

.pagination .page-link {
    display: block;
    padding: 0.5rem 0.75rem;
    color: #333;
    text-decoration: none;
    border: 1px solid #ddd;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.pagination .page-link:hover {
    background-color: #f5f5f5;
    border-color: #ddd;
}

.pagination .page-item.active .page-link {
    background-color: var(--secondary-color);
    color: white;
    border-color: var(--secondary-color);
}

.pagination .page-item.disabled .page-link {
    color: #999;
    background-color: #f5f5f5;
    border-color: #ddd;
    cursor: not-allowed;
}

/* 移动端分页样式 */
@media (max-width: 768px) {
    .pagination .page-item {
        margin: 0 0.125rem;
    }
    
    .pagination .page-link {
        padding: 0.375rem 0.5rem;
        font-size: 0.875rem;
    }
}

/* 跳转页码输入框 */
.page-jump-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    margin-top: 0.75rem;
}

.page-jump-label {
    font-size: 0.85rem;
    color: #666;
}

.page-jump-input {
    width: 60px;
    padding: 0.3rem 0.5rem;
    font-size: 0.85rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-align: center;
    outline: none;
    transition: border-color 0.2s;
}

.page-jump-input:focus {
    border-color: #3F729B;
    box-shadow: 0 0 0 2px rgba(63, 114, 155, 0.15);
}

.page-jump-btn {
    padding: 0.3rem 0.7rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: #fff;
    background: #3F729B;
    border: 1px solid #3F729B;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
}

.page-jump-btn:hover {
    background: #356589;
    border-color: #356589;
}

/* 回到顶部按钮 */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.7);
    color: var(--secondary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border: none;
}

.back-to-top:hover {
    background-color: rgba(255, 255, 255, 0.9);
    transform: translateY(-5px);
}

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

/* 移动端回到顶部按钮样式 */
@media (max-width: 768px) {
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 40px;
        height: 40px;
    }
}

.hot-articles-list .hot-article .hot-title {
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.hot-articles-list .hot-article .hot-title a {
    color: #333;
    text-decoration: none;
}

.hot-articles-list .hot-article .hot-title a:hover {
    color: #3F729B;
}

.hot-articles-list .hot-article .hot-time {
    font-size: 0.75rem;
    color: #999;
}

/* 推荐阅读列表样式 */
.recommended-articles-list .recommended-article {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #f5f5f5;
}

.recommended-articles-list .recommended-article:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.recommended-articles-list .recommended-article .rank {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background-color: #3F729B;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: bold;
    flex-shrink: 0;
    margin-right: 0.75rem;
}

.recommended-articles-list .recommended-article:nth-child(1) .rank {
    background-color: #FFD700;
}

.recommended-articles-list .recommended-article:nth-child(2) .rank {
    background-color: #C0C0C0;
}

.recommended-articles-list .recommended-article:nth-child(3) .rank {
    background-color: #CD7F32;
}

.recommended-articles-list .recommended-article:nth-child(4) .rank {
    background-color: #FF6347;
}

.recommended-articles-list .recommended-article:nth-child(5) .rank {
    background-color: #9370DB;
}

.recommended-articles-list .recommended-article a {
    color: #333;
    text-decoration: none;
    font-size: 0.875rem;
    line-height: 1.4;
    flex: 1;
}

.recommended-articles-list .recommended-article a:hover {
    color: #3F729B;
}

/* ========== 分类页周排行榜 + 总排行榜 侧边栏样式 ========== */
.weekly-rank-sidebar-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.weekly-rank-item {
    border-bottom: 1px solid #f0f0f0;
}

.weekly-rank-item:last-child {
    border-bottom: none;
}

.weekly-rank-link {
    display: flex;
    align-items: center;
    padding: 0.5rem 0;
    color: #333;
    text-decoration: none;
    transition: background 0.2s ease;
    gap: 0.5rem;
}

.weekly-rank-link:hover {
    background: #f8f9fc;
    color: #3F729B;
    margin: 0 -0.5rem;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
    border-radius: 4px;
}

.weekly-rank-num {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    line-height: 22px;
    text-align: center;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    color: #fff;
}

.weekly-rank-num-1 { background: #e74c3c; }
.weekly-rank-num-2 { background: #e67e22; }
.weekly-rank-num-3 { background: #f39c12; }
.weekly-rank-num-other { background: #b0b0b0; }

.weekly-rank-title-text {
    flex: 1;
    font-size: 0.85rem;
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.weekly-rank-views {
    flex-shrink: 0;
    font-size: 0.72rem;
    color: #999;
    margin-left: 0.3rem;
}

.weekly-rank-loading {
    text-align: center;
    padding: 1rem;
    color: #999;
    font-size: 0.85rem;
}

/* ========== 分类页排行榜样式 END ========== */

/* ========== 标签云样式 ========== */
.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 0.5rem 0;
}

.tag-item {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    text-decoration: none;
    color: #555;
    background: #f0f4f8;
    transition: all 0.25s ease;
    font-weight: 500;
    white-space: nowrap;
}

.tag-item:hover {
    background: #3F729B;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(63, 114, 155, 0.3);
}

/* 标签字号级别（5级，按文章数量加权） */
.tag-size-1 { font-size: 0.75rem; background: #e8f0fe; color: #5a7fa0; }
.tag-size-2 { font-size: 0.82rem; background: #dce8f5; color: #4a6f90; }
.tag-size-3 { font-size: 0.9rem; background: #cfe0f0; color: #3a5f80; }
.tag-size-4 { font-size: 1rem; background: #c0d5ea; color: #2a4f70; }
.tag-size-5 { font-size: 1.1rem; padding: 0.4rem 1rem; background: #b0cae0; color: #1a3f60; }

/* ========== 标签云样式 END ========== */

/* 响应式设计 */
@media (max-width: 991px) {
    .sidebar {
        padding-left: 0;
        margin-top: 2rem;
    }
    
    .category-articles-list .article-card .thumb {
        width: 200px;
    }
    
    .category-articles-list .article-card .article-cover {
        max-height: 120px;
    }
}

@media (max-width: 767px) {
    .category-articles-list .article-card .article-link {
        flex-direction: row;
        align-items: flex-start;
    }
    
    .category-articles-list .article-card .thumb {
        width: 38%;
        margin-right: 15px;
        margin-bottom: 0;
        float: left;
    }
    
    .category-articles-list .article-card .article-cover {
        max-height: 120px;
    }
    
    .category-articles-list .article-card .article-content {
        width: 62%;
        float: left;
    }
    
    .category-articles-list .article-card .article-title {
        margin-bottom: 10px;
        font-size: 0.9em;
    }
    
    .category-articles-list .article-card .article-summary {
        font-size: 0.8em;
    }
    
    .category-articles-list .article-card .article-summary p {
        text-indent: 0;
        margin-bottom: 8px;
    }
    
    .category-articles-list .article-card .article-meta {
        font-size: 0.7em;
    }
}

/* 更小屏幕的适配 */
@media (max-width: 480px) {
    .category-articles-list .article-card .thumb {
        width: 35%;
    }
    
    .category-articles-list .article-card .article-content {
        width: 65%;
    }
    
    .category-articles-list .article-card .article-cover {
        max-height: 100px;
    }
}

/* 页脚 */
.footer {
    background: #2d3436;
    padding: 2rem 0 1rem;
    margin-top: 3rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 2rem;
    margin-bottom: 1.5rem;
}

.footer-logo {
    flex: 1;
    min-width: 200px;
}

.footer-logo img {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    margin-bottom: 0.5rem;
}

.footer-logo h3 {
    font-size: 1.25rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
    color: white;
}

.footer-logo p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
}

.footer-links {
    flex: 1;
    min-width: 150px;
}

.footer-links h4 {
    font-size: 1.1rem;
    font-weight: bold;
    margin-bottom: 1rem;
    color: white;
}

.footer-links ul {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: white;
}

.footer-contact {
    flex: 1;
    min-width: 200px;
}

.footer-contact h4 {
    font-size: 1.1rem;
    font-weight: bold;
    margin-bottom: 1rem;
    color: white;
}

.footer-contact p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.footer-contact i {
    margin-right: 0.5rem;
    color: rgba(255, 255, 255, 0.8);
}

.social-icons {
    display: flex;
    gap: 0.75rem;
    margin-top: 1rem;
}

.social-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s;
}

.social-icons a:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.footer-bottom {
    padding-top: 1rem;
    text-align: center;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.footer-bottom a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
}

.footer-bottom a:hover {
    color: white;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }
    
    .footer-logo,
    .footer-links,
    .footer-contact {
        min-width: 100%;
    }
    
    .footer-logo img {
        margin: 0 auto 0.5rem;
    }
    
    .social-icons {
        justify-content: center;
    }
}

/* 热门文章响应式 - 中等屏幕 3列 */
@media (max-width: 1000px) {
    .popular-articles-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.2rem;
    }
}

/* 响应式设计 */
@media (max-width: 768px) {
    .navbar {
        height: auto;
        min-height: 56px;
        padding: 0.25rem;
        display: flex;
        align-items: center;
    }
    
    .navbar .container {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
    }
    
    .navbar-brand {
        display: flex;
        align-items: center;
        margin: 0;
        flex-shrink: 0;
    }
    
    .logo {
        width: 32px;
        height: 32px;
    }
    
    .brand-name {
        font-size: 0.95rem;
        white-space: nowrap;
    }
    
    .category-quick-nav {
        display: none;
    }
    
    .navbar-nav {
        margin: 0 !important;
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        gap: 0.25rem !important;
        flex-shrink: 0 !important;
        flex-wrap: nowrap !important;
    }
    
    .nav-item {
        margin: 0;
        flex-shrink: 0;
    }
    
    .nav-link {
        margin-left: 0;
        padding: 0.35rem 0.4rem;
        font-size: 0.8rem;
        display: flex;
        align-items: center;
        justify-content: center;
        min-width: 32px;
        border-radius: 6px;
        color: #636e72;
    }
    
    .nav-link:hover,
    .nav-link.active {
        color: var(--secondary-color);
        background-color: rgba(78, 205, 196, 0.08);
    }
    
    .nav-link span {
        display: none;
    }
    
    .dropdown-menu {
        position: absolute;
        right: 0;
        left: auto;
        z-index: 1000;
    }
    
    /* 移动端搜索展开时隐藏其他导航按钮 */
    .navbar-search-wrapper.active ~ #navHome,
    .navbar-search-wrapper.active ~ #navCategory,
    .navbar-search-wrapper.active ~ #navHistory {
        display: none;
    }
    
    /* 移动端搜索框宽度自适应 */
    .navbar-search-wrapper.active .navbar-search-form {
        width: calc(100vw - 120px);
    }
    
    .articles-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 1.5rem;
    }

    .popular-articles-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
    }

    .search-section .articles-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 1rem;
    }

    .search-section .article-card .card-content {
        padding: 0.7rem 0.8rem;
    }

    .search-section .article-card .card-title {
        font-size: 0.82rem;
    }

    .search-section .article-card .card-summary {
        font-size: 0.72rem;
    }

    .search-section .article-card .card-meta {
        font-size: 0.68rem;
        gap: 0.5rem;
    }

    .popular-card-title {
        font-size: 0.82rem;
    }

    .popular-card-meta {
        font-size: 0.68rem;
        gap: 0.5rem;
    }

    .popular-category-tabs {
        justify-content: flex-start;
    }

    .category-tab {
        padding: 0.38rem 0.9rem;
        font-size: 0.8rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .social-icons {
        justify-content: center;
    }
}

@media (max-width: 576px) {
    .brand-name {
        font-size: 1.2rem;
    }
    
    .logo {
        width: 40px;
        height: 40px;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
}

/* ==================== 影视分类专用样式 ==================== */

/* 影视分类文章列表容器 */
.fed-list-info {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -0.75rem;
    list-style: none;
    padding: 0;
}

/* 影视分类文章项 */
.fed-list-item {
    width: 20%;
    padding: 1rem;
    box-sizing: border-box;
}

/* 影视分类图片容器 */
.fed-list-pics {
    position: relative;
    display: block;
    width: 100%;
    padding-top: 150%; /* 2:3 比例 */
    overflow: hidden;
    border-radius: 6px;
    background-color: #f5f5f5;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    text-decoration: none;
}

.fed-list-pics img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.fed-list-pics:hover img {
    transform: scale(1.05);
}

/* 影视分类标签/备注 */
.fed-list-remarks {
    position: absolute;
    top: 8px;
    right: 8px;
    background-color: rgba(0, 0, 0, 0.7);
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    color: #fff;
    z-index: 1;
}

/* 影视分类标题 */
.fed-list-title {
    display: block;
    margin-top: 0.75rem;
    font-size: 0.875rem;
    color: #333;
    text-decoration: none;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-align: center;
    transition: color 0.2s ease;
}

.fed-list-title:hover {
    color: #007bff;
}

/* 影视分类描述 */
.fed-list-desc {
    display: block;
    margin-top: 0.25rem;
    font-size: 0.75rem;
    color: #999;
    text-decoration: none;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-align: center;
}

/* 响应式布局 */
@media (max-width: 1400px) {
    .fed-list-item {
        width: 25%;
    }
}

@media (max-width: 1200px) {
    .fed-list-item {
        width: 33.333333%;
    }
}

@media (max-width: 992px) {
    .fed-list-item {
        width: 50%;
    }
}

@media (max-width: 992px) {
    .fed-list-item {
        width: 33.333333%;
    }
}

@media (max-width: 768px) {
    .fed-list-item {
        width: 50%;
        padding: 0.5rem;
    }
    
    .fed-list-title {
        font-size: 0.85rem;
    }
    
    .fed-list-desc {
        display: none;
    }
}

@media (max-width: 576px) {
    .fed-list-item {
        width: 50%;
        padding: 0.375rem;
    }
    
    .fed-list-pics {
        border-radius: 4px;
    }
    
    .fed-list-title {
        font-size: 0.75rem;
        margin-top: 0.5rem;
    }
    
    .articles-grid {
        grid-template-columns: 1fr;
    }

    .popular-articles-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.7rem;
    }

    .popular-card-body {
        padding: 0.6rem 0.7rem;
    }

    .popular-card-title {
        font-size: 0.78rem;
    }

    .popular-card-meta {
        font-size: 0.65rem;
    }

    .popular-card-badge {
        font-size: 0.65rem;
        padding: 0.18rem 0.5rem;
        top: 0.45rem;
        left: 0.45rem;
    }

    .search-section .articles-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.7rem;
    }

    .search-section .article-card .card-content {
        padding: 0.6rem 0.7rem;
    }

    .search-section .article-card .card-title {
        font-size: 0.78rem;
    }

    .search-section .article-card .card-summary {
        font-size: 0.68rem;
        -webkit-line-clamp: 1;
    }

    .search-section .article-card .card-meta {
        font-size: 0.65rem;
    }

    .search-section .article-card .category-badge {
        font-size: 0.65rem;
        padding: 0.18rem 0.5rem;
        top: 0.45rem;
        left: 0.45rem;
    }

    .category-tab {
        padding: 0.32rem 0.75rem;
        font-size: 0.75rem;
    }
}

/* 热门文章分类标签 */
.popular-category-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    margin-top: 1rem;
    margin-bottom: 1.5rem;
    padding: 4px 0;
    max-height: 5rem;
    overflow: hidden;
    position: relative;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 折叠状态下的渐变遮罩提示 */
.popular-category-tabs::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2.5rem;
    background: linear-gradient(to bottom, transparent, rgba(255, 255, 255, 0.95));
    pointer-events: none;
    transition: opacity 0.3s;
    opacity: 1;
}

/* 展开时隐藏遮罩 */
.popular-category-tabs.expanded::after {
    opacity: 0;
}

/* 鼠标悬停或点击展开 */
.popular-category-tabs:hover,
.popular-category-tabs.expanded {
    max-height: 30rem;
}

.popular-category-tabs:hover::after,
.popular-category-tabs.expanded::after {
    opacity: 0;
}

/* 展开/收起提示按钮 */
.popular-category-tabs-toggle {
    display: none;
    text-align: center;
    margin-bottom: 1.5rem;
}

.popular-category-tabs-toggle .toggle-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 1rem;
    background: #f0f4ff;
    border: 1px solid #d0d8f0;
    border-radius: 20px;
    color: #4a6cf7;
    font-size: 0.78rem;
    cursor: pointer;
    transition: all 0.25s;
}

.popular-category-tabs-toggle .toggle-btn:hover {
    background: #e0e8ff;
    border-color: #4a6cf7;
}

.popular-category-tabs-toggle .toggle-btn i {
    transition: transform 0.3s;
}

.popular-category-tabs-toggle .toggle-btn.expanded i {
    transform: rotate(180deg);
}

/* 移动端显示展开按钮 */
@media (max-width: 768px) {
    .popular-category-tabs-toggle {
        display: block;
    }
    
    .popular-category-tabs {
        max-height: 4.2rem;
    }
    
    .popular-category-tabs:hover {
        max-height: 4.2rem;
    }
    
    .popular-category-tabs.expanded {
        max-height: 30rem;
    }
}

.category-tab {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.45rem 1.1rem;
    border: 1.5px solid #e8ecf1;
    border-radius: 22px;
    background: #fff;
    color: #5a6677;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
    user-select: none;
    outline: none;
}

.category-tab:hover {
    color: #4a6cf7;
    border-color: #b8c5f0;
    background: #f8faff;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(74, 108, 247, 0.1);
}

.category-tab.active {
    color: #fff;
    background: linear-gradient(135deg, #4a6cf7, #6b8aff);
    border-color: transparent;
    box-shadow: 0 3px 12px rgba(74, 108, 247, 0.3);
    font-weight: 600;
}

.category-tab.active:hover {
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(74, 108, 247, 0.4);
}

/* 加载动画 */
.loading {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 200px;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(0, 0, 0, 0.1);
    border-left-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* 滚动条样式 */
::-webkit-scrollbar {
    width: 8px;
}

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

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

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

/* 简化版分类头部样式 */
.category-header-simple {
    padding: 2rem 0;
    background: white;
    border-bottom: 1px solid #e5e5e5;
}

.category-title-simple {
    font-size: 2rem;
    color: #333;
    margin: 1rem 0 0.5rem;
    font-weight: 600;
}

.category-desc-simple {
    color: #666;
    margin: 0;
    font-size: 1rem;
}

/* 简化版面包屑导航 */
.breadcrumb-simple {
    font-size: 0.9rem;
    color: #666;
}

.breadcrumb-link-simple {
    color: #666;
    text-decoration: none;
}

.breadcrumb-link-simple:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

.breadcrumb-separator {
    margin: 0 8px;
    color: #999;
}

.breadcrumb-current {
    color: #333;
    font-weight: 500;
}

.category-header-top {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.category-title-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.category-title-row .category-title-simple {
    margin-bottom: 0;
}

.category-rank-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.3rem 0.75rem;
    background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
    color: #fff;
    font-size: 0.8rem;
    font-weight: 600;
    border-radius: 20px;
    text-decoration: none;
    white-space: nowrap;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(255, 107, 53, 0.25);
    flex-shrink: 0;
}

.category-rank-btn:hover {
    background: linear-gradient(135deg, #e55a2b 0%, #e6831a 100%);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.35);
}

.category-rank-btn i {
    animation: rank-fire 1.5s ease-in-out infinite alternate;
}

@keyframes rank-fire {
    0% { transform: scale(1); opacity: 0.8; }
    100% { transform: scale(1.15); opacity: 1; }
}

.video-quick-nav {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.125rem;
}

.video-quick-nav::before {
    content: '';
    display: inline-block;
    width: 1px;
    height: 1rem;
    background: #ccc;
    margin: 0 0.375rem;
    flex-shrink: 0;
}

.video-quick-nav-item {
    display: inline-block;
    padding: 0.125rem 0.5rem;
    font-size: 0.875rem;
    color: #666;
    text-decoration: none;
    border-radius: 3px;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.video-quick-nav-item:hover {
    color: #fff;
    background: var(--primary-color, #e74c3c);
    text-decoration: none;
}

.video-quick-nav-item.active {
    color: #fff;
    background: var(--primary-color, #e74c3c);
    cursor: default;
}

/* 文章详情页影视快捷导航 */
.article-quick-nav {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.125rem;
    margin-bottom: 0.75rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #eee;
}

.article-quick-nav-item {
    display: inline-block;
    padding: 0.125rem 0.5rem;
    font-size: 0.875rem;
    color: #666;
    text-decoration: none;
    border-radius: 3px;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.article-quick-nav-item:hover {
    color: #fff;
    background: var(--primary-color, #e74c3c);
    text-decoration: none;
}

.article-quick-nav-item.active {
    color: #fff;
    background: var(--primary-color, #e74c3c);
    cursor: default;
}

@media (max-width: 768px) {
    .article-quick-nav-item {
        padding: 0.125rem 0.375rem;
        font-size: 0.8rem;
    }
}

/* 分类导航区域 */
.category-nav-section {
    padding: 1.5rem 0;
    background: white;
}

.category-nav-box {
    background: #f9f9f9;
    padding: 1.5rem;
    border-radius: 4px;
}

.category-nav-title {
    font-size: 1.1rem;
    color: #333;
    margin: 0 0 1rem;
    font-weight: 600;
}

/* 简化版分类链接样式 */
.subcategories-container-simple {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.category-items-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.category-item-simple {
    display: inline-block;
}

.category-link-simple {
    display: inline-block;
    color: #333;
    text-decoration: none;
    padding: 8px 16px;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
}

.category-link-simple:hover {
    color: var(--primary-color);
    border-color: var(--primary-color);
    background: rgba(255, 107, 107, 0.05);
}

.category-link-simple.has-children {
    cursor: pointer;
}

.category-arrow {
    font-size: 0.8rem;
    color: #999;
    transition: transform 0.2s ease;
}

/* 子分类容器 */
.child-categories {
    display: none;
    padding-left: 20px;
    margin-top: 8px;
    width: 100%;
    flex-direction: column;
}

.child-categories.expanded {
    display: flex;
    gap: 8px;
}

.child-categories .category-items-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.child-categories .category-link-simple {
    font-size: 0.9rem;
    padding: 6px 14px;
    background: white;
}

/* 简化版文章区域 */
.category-articles-section-simple {
    padding: 2rem 0;
}

.section-title-simple {
    font-size: 1.3rem;
    color: #333;
    margin: 0 0 1.5rem;
    font-weight: 600;
}

/* 响应式样式 */
@media (max-width: 768px) {
    .category-header-simple {
        padding: 1.5rem 0;
    }
    
    .category-title-simple {
        font-size: 1.5rem;
    }
    
    .category-header-top {
        gap: 0.25rem;
    }
    
    .category-title-row {
        gap: 0.5rem;
    }
    
    .category-rank-btn {
        font-size: 0.7rem;
        padding: 0.2rem 0.5rem;
    }
    
    .video-quick-nav::before {
        margin: 0 0.125rem;
    }
    
    .video-quick-nav-item {
        padding: 0.125rem 0.375rem;
        font-size: 0.8rem;
    }
    
    .category-nav-box {
        padding: 1rem;
    }
    
    .category-link-simple {
        padding: 6px 12px;
        font-size: 0.9rem;
    }
    
    .child-categories {
        padding-left: 12px;
    }
}

/* 面包屑导航样式 */
.breadcrumb-container {
    margin-bottom: 1.5rem;
}

.breadcrumb {
    background: transparent;
    padding: 0;
    margin: 0;
}

.breadcrumb-list {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    padding: 0;
    margin: 0;
}

.breadcrumb-item {
    display: flex;
    align-items: center;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
}

.breadcrumb-item:not(:last-child)::after {
    content: '/';
    margin: 0 0.75rem;
    color: rgba(255, 255, 255, 0.5);
}

.breadcrumb-link {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: all 0.3s ease;
}

.breadcrumb-link:hover {
    color: white;
    text-decoration: underline;
}

.breadcrumb-item.active {
    color: white;
    font-weight: 500;
}

/* 多级分类树形结构样式 */
.subcategories-list.level-0 {
    margin-top: 0.5rem;
}

.subcategories-list.level-1 {
    margin-top: 0.75rem;
    padding-left: 1.5rem;
}

.subcategories-list.level-2 {
    margin-top: 0.5rem;
    padding-left: 1.5rem;
}

.child-categories-container {
    width: 100%;
    margin-top: 0.5rem;
}

.child-categories-container .subcategories-list {
    justify-content: flex-start;
}

.child-categories-container .subcategory-link {
    font-size: 0.9rem;
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.08);
}

.subcategory-indicator {
    display: inline-block;
    margin-left: 4px;
    font-size: 0.8rem;
    opacity: 0.8;
    transition: transform 0.3s ease;
}

/* 响应式面包屑导航 */
@media (max-width: 768px) {
    .breadcrumb-item {
        font-size: 0.8rem;
    }
    
    .breadcrumb-item:not(:last-child)::after {
        margin: 0 0.5rem;
    }
}

/* 响应式子分类树形结构 */
@media (max-width: 768px) {
    .subcategories-list.level-1,
    .subcategories-list.level-2 {
        padding-left: 0.75rem;
    }
    
    .child-categories-container .subcategory-link {
        font-size: 0.85rem;
        padding: 5px 10px;
    }
}

/* ========== 影视筛选面板样式 ========== */

.video-filter-section {
    padding: 0;
    background: #fff;
    border-bottom: 1px solid #e5e5e5;
}

.video-filter-panel {
    padding: 0.625rem 0;
}

.video-filter-panel .filter-row {
    display: flex;
    align-items: flex-start;
    margin: 0;
    padding: 0.375rem 0;
    line-height: 1.75rem;
}

.video-filter-panel .filter-row dt {
    flex-shrink: 0;
    min-width: 3.5rem;
    font-weight: 600;
    font-size: 0.9rem;
    color: #333;
    padding-top: 0;
}

.video-filter-panel .filter-row dd {
    flex: 1;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
    align-items: flex-start;
}

.filter-item {
    display: inline-block;
    padding: 0.125rem 0.625rem;
    font-size: 0.875rem;
    color: #555;
    text-decoration: none;
    border-radius: 3px;
    transition: all 0.2s ease;
    white-space: nowrap;
    cursor: pointer;
}

.filter-item:hover {
    color: #fff;
    background: var(--primary-color, #e74c3c);
}

.filter-item.active {
    color: #fff;
    background: var(--primary-color, #e74c3c);
}

@media (max-width: 768px) {
    .video-filter-panel {
        padding: 0.375rem 0;
    }

    .video-filter-panel .filter-row {
        padding: 0.25rem 0;
    }

    .video-filter-panel .filter-row dt {
        min-width: 2.75rem;
        font-size: 0.8rem;
    }

    .filter-item {
        padding: 0.125rem 0.5rem;
        font-size: 0.8rem;
    }
}

/* ========== 影视分类视频网格样式 ========== */

.video-category-section {
    padding: 0.625rem 0;
}

.video-subcategory-section {
    background: #fff;
    padding: 0.3125rem;
    margin-top: 0.625rem;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
    overflow: hidden;
}

.video-list-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 0.625rem;
    line-height: 1.5rem;
}

.video-list-title {
    font-size: 1.15rem;
    font-weight: 600;
    color: #222;
    margin: 0;
    position: relative;
    padding-left: 0.75rem;
    flex-shrink: 0;
    white-space: nowrap;
}

.video-list-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 1rem;
    background: #ff5f00;
    border-radius: 2px;
}

.video-list-more {
    font-size: 0.85rem;
    color: #888;
    text-decoration: none;
    transition: color 0.2s;
    padding-right: 0.3125rem;
}

.video-list-more:hover {
    color: #ff5f00;
    text-decoration: none;
}

/* 三级分类排序筛选 */
.third-level-sort {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 0;
    margin-left: 1rem;
    font-size: 0.9rem;
}

.third-level-sort-item {
    color: #666;
    text-decoration: none;
    padding: 0.15rem 0.625rem;
    transition: color 0.2s;
    font-weight: 500;
}

.third-level-sort-item:hover {
    color: #ff5f00;
    text-decoration: none;
}

.third-level-sort-item.active {
    color: #ff5f00;
    font-weight: 700;
}

.third-level-count {
    font-size: 0.8rem;
    color: #999;
    margin-left: 0.5rem;
    flex-shrink: 0;
}

/* 三级分类翻页 */
.third-level-pagination {
    padding: 0.75rem 0;
    text-align: center;
}

/* 翻页辅助类 */
.fed-hide {
    display: none !important;
}

.fed-rims-info {
    border-radius: 3px;
}

.fed-text-center {
    text-align: center;
}

@media (max-width: 576px) {
    .fed-show-xs-inline {
        display: inline !important;
    }
}

.third-level-pagination .fed-page-info {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 0.25rem;
}

.third-level-pagination .fed-btns-info {
    display: inline-block;
    padding: 0.35rem 0.6rem;
    font-size: 0.8rem;
    color: #555;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 3px;
    text-decoration: none;
    transition: all 0.2s;
    cursor: pointer;
    min-width: 2rem;
    text-align: center;
}

.third-level-pagination .fed-btns-info:hover {
    color: #ff5f00;
    border-color: #ff5f00;
    text-decoration: none;
}

.third-level-pagination .fed-btns-green {
    background: #ff5f00;
    color: #fff;
    border-color: #ff5f00;
    font-weight: 600;
}

.third-level-pagination .fed-btns-green:hover {
    background: #e55500;
    color: #fff;
}

.third-level-pagination .fed-btns-disad {
    color: #ccc;
    border-color: #eee;
    cursor: not-allowed;
    pointer-events: none;
}

.third-level-pagination .fed-btns-disad:hover {
    color: #ccc;
    border-color: #eee;
}

.third-level-pagination .third-level-page-input {
    width: 70px;
    padding: 0.35rem 0.5rem;
    font-size: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 3px;
    text-align: center;
    outline: none;
    background: #fff;
}

.third-level-pagination .third-level-page-input:focus {
    border-color: #ff5f00;
}

.third-level-pagination .third-level-page-jump {
    cursor: pointer;
}

/* 三级分类快捷链接 */
.sub-quick-links {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 0;
    margin-left: 1rem;
    overflow: hidden;
    white-space: nowrap;
    font-size: 0.85rem;
    min-width: 0;
}

.sub-quick-links a {
    color: #666;
    text-decoration: none;
    padding: 0 0.375rem;
    transition: color 0.2s;
    flex-shrink: 0;
}

.sub-quick-links a:hover {
    color: #ff5f00;
}

.sub-quick-links .quick-link-sep {
    color: #ddd;
    flex-shrink: 0;
}

.sub-quick-links .quick-link-more {
    color: #888;
    font-weight: 500;
    padding-left: 0.5rem;
}

.video-list-more {
    flex-shrink: 0;
    margin-left: 0.5rem;
}

/* 移动端快捷链接水平滚动 */
@media (max-width: 768px) {
    .video-list-head {
        flex-wrap: wrap;
    }

    .video-list-title {
        flex: 0 0 auto;
        margin-bottom: 0.25rem;
    }

    .sub-quick-links {
        flex: 0 0 100%;
        order: 3;
        margin-left: 0;
        margin-top: 0.25rem;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
        padding-bottom: 0.25rem;
    }

    .sub-quick-links::-webkit-scrollbar {
        display: none;
    }

    .video-list-more {
        order: 2;
        margin-left: auto;
    }
    
    .third-level-sort {
        flex: 0 0 100%;
        order: 3;
        margin-left: 0;
        margin-top: 0.25rem;
        font-size: 0.8rem;
    }
    
    .third-level-count {
        font-size: 0.75rem;
        margin-left: 0.25rem;
    }
    
    .third-level-pagination .fed-btns-info {
        padding: 0.3rem 0.5rem;
        font-size: 0.75rem;
    }
    
    .third-level-pagination .third-level-page-input {
        width: 55px;
        font-size: 0.75rem;
    }
}

/* ==================== 二级分类：左列(幻灯片+本周热门) + 右列(4×2视频) ==================== */
.video-subcategory-body {
    display: flex;
    gap: 0;
    padding: 0;
    min-width: 0;
    overflow: hidden;
}

.sub-left-col {
    flex: 0 0 42%;
    max-width: 42%;
    overflow: hidden;
}

.sub-slideshow-box {
    overflow: hidden;
    border-radius: 4px 4px 0 0;
}

.sub-slideshow-swiper {
    width: 100%;
    height: 0;
    padding-bottom: 56.25%;
    position: relative;
}

.sub-slideshow-swiper .swiper-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.sub-slideshow-swiper .swiper-slide {
    position: relative;
    overflow: hidden;
}

.sub-slideshow-swiper .swiper-slide a {
    display: block;
    width: 100%;
    height: 100%;
    position: relative;
}

.sub-slideshow-swiper .swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sub-slideshow-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
    color: #fff;
    padding: 1.5rem 0.75rem 0.5rem;
    pointer-events: none;
}

.sub-slideshow-title {
    font-size: 0.95rem;
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sub-slideshow-desc {
    font-size: 0.75rem;
    opacity: 0.8;
    margin-top: 0.2rem;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

/* 子分类幻灯片分页 */
[id^="sub-slideshow-pagination-"] {
    bottom: 8px !important;
}

[id^="sub-slideshow-pagination-"] .swiper-pagination-bullet {
    background: #fff;
    opacity: 0.5;
    width: 6px;
    height: 6px;
}

[id^="sub-slideshow-pagination-"] .swiper-pagination-bullet-active {
    opacity: 1;
    background: #ff5f00;
}

/* 子分类幻灯片导航按钮 - 鼠标悬停显示 */
.sub-slideshow-nav {
    color: #fff !important;
    opacity: 0;
    transition: opacity 0.3s;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(0,0,0,0.5);
}

.sub-slideshow-nav::after {
    font-size: 0.85rem !important;
}

.sub-slideshow-box:hover .sub-slideshow-nav {
    opacity: 1;
}

/* 本周热门盒子 */
.sub-hot-box {
    background: #fafafa;
    border: 1px solid #e8e8e8;
    border-top: none;
    border-radius: 0 0 4px 4px;
    overflow: hidden;
}

.sub-hot-box.no-slideshow {
    border-top: 1px solid #e8e8e8;
    border-radius: 4px;
}

.sub-hot-head {
    font-size: 0.95rem;
    font-weight: 600;
    color: #333;
    padding: 0.65rem 0.75rem;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #eee;
    background: #fff;
}

.sub-hot-more {
    font-size: 0.75rem;
    font-weight: 400;
    color: #999;
    text-decoration: none;
}

.sub-hot-more:hover {
    color: #ff5f00;
    text-decoration: none;
}

.sub-hot-body {
    display: flex;
    align-items: flex-start;
    padding: 0.75rem;
    gap: 0.75rem;
}

.sub-hot-cover {
    flex: 0 0 38%;
    max-width: 38%;
}

.sub-hot-cover-link {
    display: block;
    position: relative;
    width: 100%;
    padding-bottom: 118%;
    border-radius: 4px;
    overflow: hidden;
}

.sub-hot-cover-link img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sub-hot-cover-tag {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0,0,0,0.6);
    color: #fff;
    text-align: center;
    font-size: 0.7rem;
    padding: 0.2rem 0;
}

.sub-hot-list {
    flex: 1;
    margin: 0;
    padding: 0;
    list-style: none;
}

.sub-hot-list li {
    padding: 0.35rem 0;
    border-bottom: 1px dotted #e8e8e8;
}

.sub-hot-list li:last-child {
    border-bottom: none;
}

.sub-hot-list li a {
    display: flex;
    align-items: center;
    color: #333;
    text-decoration: none;
    font-size: 0.8rem;
    overflow: hidden;
}

.sub-hot-list li a:hover {
    color: #ff5f00;
}

.sub-hot-num {
    flex: 0 0 18px;
    height: 18px;
    line-height: 18px;
    text-align: center;
    border-radius: 3px;
    font-size: 0.7rem;
    font-weight: 700;
    background: #ccc;
    color: #fff;
    margin-right: 0.5rem;
}

.sub-hot-rank-1 { background: #e74c3c; }
.sub-hot-rank-2 { background: #e67e22; }
.sub-hot-rank-3 { background: #f39c12; }

.sub-hot-title {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex: 1;
}

/* 子分类视频网格 (4列 × 2行 = 8个) */
.sub-video-grid {
    flex: 1;
    min-width: 0;
    grid-template-columns: repeat(4, 1fr) !important;
    align-content: start;
}

/* ==================== 响应式：平板 ==================== */
@media (max-width: 992px) {
    .sub-left-col {
        flex: 0 0 38%;
        max-width: 38%;
    }
    
    .sub-video-grid {
        grid-template-columns: repeat(3, 1fr) !important;
    }
    
    .sub-slideshow-title {
        font-size: 0.85rem;
    }
    
    .sub-hot-head {
        font-size: 0.85rem;
    }
    
    .sub-hot-list li a {
        font-size: 0.75rem;
    }
}

/* ==================== 响应式：移动端 (<768px) ==================== */
@media (max-width: 768px) {
    .video-subcategory-body {
        flex-direction: column;
    }
    
    .sub-left-col {
        flex: 0 0 auto;
        max-width: 100%;
    }
    
    .sub-slideshow-swiper {
        padding-bottom: 52%;
    }

    .sub-hot-cover {
        flex: 0 0 40%;
        max-width: 40%;
    }

    .sub-hot-cover-link {
        padding-bottom: 140%;
    }

    .sub-video-grid {
        flex: none;
        width: 100%;
        grid-template-columns: repeat(3, 1fr) !important;
    }
    
    .sub-slideshow-title {
        font-size: 0.85rem;
    }
    
    .sub-slideshow-info {
        padding: 1.25rem 0.625rem 0.4rem;
    }

    .sub-slideshow-nav {
        display: none;
    }
}

@media (max-width: 576px) {
    .sub-slideshow-swiper {
        padding-bottom: 56%;
    }

    .sub-hot-cover {
        flex: 0 0 42%;
        max-width: 42%;
    }

    .sub-hot-cover-link {
        padding-bottom: 145%;
    }

    .sub-slideshow-title {
        font-size: 0.8rem;
    }

    .sub-slideshow-desc {
        font-size: 0.7rem;
    }
}

/* ==================== 幻灯片轮播区域 ==================== */
.slideshow-section {
    padding: 0.625rem 0 0;
    background: #f5f5f5;
    overflow: hidden;
}

.slideshow-wrapper {
    background: #fff;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
    overflow: hidden;
    width: 100%;
}

/* 幻灯片行列布局 */
.slideshow-row {
    display: flex;
    gap: 0;
    width: 100%;
}

.slideshow-main {
    flex: 0 0 58%;
    max-width: 58%;
}

.slideshow-swiper {
    width: 100%;
    height: 0;
    padding-bottom: 56.25%;
    position: relative;
}

.slideshow-swiper .swiper-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.slideshow-swiper .swiper-slide {
    position: relative;
    overflow: hidden;
}

.slideshow-swiper .swiper-slide a {
    display: block;
    width: 100%;
    height: 100%;
}

.slideshow-swiper .swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slideshow-slide-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
    color: #fff;
    padding: 2rem 1.25rem 0.75rem;
    pointer-events: none;
}

.slideshow-slide-title {
    font-size: 1.1rem;
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.slideshow-slide-desc {
    font-size: 0.8rem;
    opacity: 0.85;
    margin-top: 0.25rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* 幻灯片导航按钮 */
.slideshow-nav {
    color: #fff !important;
    opacity: 0;
    transition: opacity 0.3s;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(0,0,0,0.5);
}

.slideshow-wrapper:hover .slideshow-nav {
    opacity: 1;
}

.slideshow-nav::after {
    font-size: 1rem !important;
}

/* 幻灯片分页 */
#slideshow-pagination {
    bottom: 10px !important;
}

#slideshow-pagination .swiper-pagination-bullet {
    background: #fff;
    opacity: 0.5;
}

#slideshow-pagination .swiper-pagination-bullet-active {
    opacity: 1;
    background: #ff5f00;
}

/* 幻灯片加载占位 */
.slideshow-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 1rem;
    background: #f0f0f0;
}

/* ==================== 幻灯片右侧本周热门 ==================== */
.slideshow-hot-row {
    flex: 1;
    min-width: 0;
    display: flex;
}

.slideshow-hot-box {
    flex: 1;
    min-width: 0;
    border-left: 1px solid #eee;
    display: flex;
    flex-direction: column;
}

.slideshow-hot-box:first-child {
    border-left: none;
}

.slideshow-hot-head {
    font-size: 0.95rem;
    font-weight: 600;
    color: #333;
    padding: 0.6rem 0.85rem;
    margin: 0;
    border-bottom: 1px solid #eee;
    background: #fafafa;
}

.slideshow-hot-body {
    padding: 0.5rem 0.75rem;
    flex: 1;
}

.slideshow-hot-list {
    margin: 0;
    padding: 0;
    list-style: none;
    min-width: 0;
}

.slideshow-hot-list li {
    padding: 0.28rem 0;
    border-bottom: 1px dotted #e8e8e8;
}

.slideshow-hot-list li:last-child {
    border-bottom: none;
}

.slideshow-hot-list li a {
    display: flex;
    align-items: center;
    color: #333;
    text-decoration: none;
    font-size: 0.8rem;
    overflow: hidden;
}

.slideshow-hot-list li a:hover {
    color: #ff5f00;
}

.slideshow-hot-num {
    flex: 0 0 18px;
    height: 18px;
    line-height: 18px;
    text-align: center;
    border-radius: 3px;
    font-size: 0.7rem;
    font-weight: 700;
    background: #ccc;
    color: #fff;
    margin-right: 0.5rem;
}

.slideshow-hot-rank-1 { background: #e74c3c; }
.slideshow-hot-rank-2 { background: #e67e22; }
.slideshow-hot-rank-3 { background: #f39c12; }

.slideshow-hot-title {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex: 1;
}

.slideshow-hot-loading {
    color: #999;
    font-size: 0.8rem;
    padding: 0.5rem 0;
    text-align: center;
}

/* 响应式幻灯片 */
@media (max-width: 992px) {
    .slideshow-row {
        flex-direction: column;
    }

    .slideshow-main {
        flex: 0 0 auto;
        width: 100%;
        max-width: 100%;
    }

    .slideshow-swiper {
        padding-bottom: 52%;
    }

    .slideshow-hot-row {
        width: 100%;
        flex: none;
        max-width: 100%;
    }

    .slideshow-hot-box {
        border-left: none;
        border-top: 1px solid #eee;
    }

    .slideshow-slide-title {
        font-size: 1rem;
    }
}

@media (max-width: 768px) {
    .slideshow-swiper {
        padding-bottom: 52%;
    }

    .slideshow-slide-info {
        padding: 1.25rem 0.75rem 0.5rem;
    }

    .slideshow-slide-title {
        font-size: 0.9rem;
    }

    .slideshow-slide-desc {
        font-size: 0.75rem;
    }

    .slideshow-nav {
        display: none;
    }
}

@media (max-width: 576px) {
    .slideshow-swiper {
        padding-bottom: 56%;
    }

    .slideshow-hot-body {
        padding: 0.4rem 0.5rem;
    }

    .slideshow-hot-list li a {
        font-size: 0.75rem;
    }
}

/* 最新视频区域 */
.video-latest-section {
    background: #fff;
    padding: 0.3125rem;
    margin-bottom: 0.625rem;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.video-list-head-tips {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.85rem;
    color: #666;
}

.video-update-count {
    color: #ff5f00;
    font-weight: 600;
}

.video-latest-grid {
    grid-template-columns: repeat(6, 1fr);
}

/* 视频卡片网格 */
.video-list-grid {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 0.5rem;
}

.video-loading {
    grid-column: 1 / -1;
    text-align: center;
    padding: 1.5rem;
    color: #999;
    font-size: 0.9rem;
}

.video-card-item {
    list-style: none;
    padding: 0.25rem;
    min-width: 0;
    overflow: hidden;
}

.video-card-pics {
    position: relative;
    display: block;
    width: 100%;
    padding-top: 150%;
    overflow: hidden;
    border-radius: 4px;
    background: #f0f0f0;
}

.video-card-pics img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.video-card-pics:hover img {
    transform: scale(1.08);
}

.video-card-score {
    position: absolute;
    top: 0.3125rem;
    left: -0.3125rem;
    padding: 0 0.375rem;
    height: 1.25rem;
    line-height: 1.25rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: #fff;
    background: #ff5f00;
    border-radius: 0 2px 2px 0;
    box-shadow: 0 1px 2px rgba(0,0,0,0.15);
    z-index: 2;
}

.video-card-score::before {
    content: '';
    position: absolute;
    left: 0.0625rem;
    bottom: -0.25rem;
    border-top: 0.25rem solid #cc4c00;
    border-left: 0.25rem solid transparent;
}

.video-card-remarks {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 0.3125rem 0.375rem;
    font-size: 0.75rem;
    color: #fff;
    text-align: center;
    background: linear-gradient(transparent, rgba(0,0,0,0.65));
    z-index: 2;
}

.video-card-play {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.25);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.video-card-play i {
    font-size: 2rem;
    color: rgba(255,255,255,0.9);
}

.video-card-pics:hover .video-card-play {
    opacity: 1;
}

.video-card-title {
    display: block;
    margin-top: 0.375rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: #333;
    line-height: 1.2;
    text-decoration: none;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    transition: color 0.2s;
}

.video-card-title:hover {
    color: #ff5f00;
    text-decoration: none;
}

.video-card-desc {
    display: block;
    margin-top: 0.25rem;
    font-size: 0.75rem;
    color: #999;
    line-height: 1.1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* 影视分类响应式 */
@media (max-width: 1200px) {
    .video-list-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 768px) {
    .video-list-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.375rem;
    }
    
    .video-latest-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .video-list-head-tips {
        font-size: 0.75rem;
        gap: 0.5rem;
    }
    
    .video-card-item {
        padding: 0.125rem;
    }
    
    .video-card-title {
        font-size: 0.8rem;
    }
    
    .video-card-desc {
        display: none;
    }
    
    .video-card-score {
        font-size: 0.65rem;
        height: 1.1rem;
        line-height: 1.1rem;
    }
    
    .video-card-remarks {
        font-size: 0.65rem;
    }
    
    .video-card-play i {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .video-list-head-tips {
        font-size: 0.7rem;
        gap: 0.375rem;
    }
    
    .video-update-count + span,
    .video-list-head-tips li:first-child {
        display: none;
    }
}

/* ==================== 影视专题样式 ==================== */
.video-topics-section {
    padding: 1rem 0 2rem 0;
    background: var(--background-color);
}

.video-topics-section .video-list-head {
    margin-bottom: 1.25rem;
}

.topics-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.topic-card {
    background: var(--card-background);
    border-radius: var(--border-radius);
    overflow: hidden;
    text-decoration: none;
    color: var(--text-color);
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: block;
}

.topic-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
    color: var(--text-color);
    text-decoration: none;
}

.topic-card-cover {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9 */
    overflow: hidden;
    background: #e9ecef;
}

.topic-card-cover img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.topic-card:hover .topic-card-cover img {
    transform: scale(1.05);
}

.topic-card-count {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: rgba(0,0,0,0.7);
    color: #fff;
    font-size: 0.75rem;
    padding: 2px 8px;
    border-radius: 10px;
    font-weight: 500;
}

.topic-card-info {
    padding: 0.75rem 1rem;
}

.topic-card-name {
    font-size: 0.95rem;
    font-weight: 600;
    margin: 0 0 0.25rem 0;
    color: var(--text-color);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.3;
}

.topic-card-desc {
    font-size: 0.8rem;
    color: var(--light-text);
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.4;
}

/* 专题详情页样式 */
.topic-header-section {
    background: var(--background-color);
    padding: 0.75rem 0;
}

.topic-detail-section {
    padding: 1rem 0 2rem 0;
}

.topic-detail-box {
    margin-bottom: 1.5rem;
}

.topic-detail-cover {
    position: relative;
    width: 100%;
    padding-top: 30%;
    min-height: 200px;
    overflow: hidden;
    border-radius: var(--border-radius);
    background: linear-gradient(135deg, #667eea, #764ba2);
}

.topic-detail-cover img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.topic-detail-cover-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2rem 2rem 1.5rem;
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
    color: #fff;
}

.topic-detail-name {
    font-size: 1.75rem;
    font-weight: 700;
    margin: 0 0 0.35rem 0;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.topic-detail-count {
    font-size: 0.9rem;
    opacity: 0.9;
}

.topic-detail-desc {
    margin-top: 1rem;
    padding: 1rem 1.25rem;
    background: var(--card-background);
    border-radius: var(--border-radius);
    color: var(--text-color);
    font-size: 0.95rem;
    line-height: 1.7;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.topic-articles-section {
    margin-top: 0.5rem;
}

.topic-articles-section .video-list-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 0.75rem;
}

/* 管理后台 - 文章选择器样式 */
.article-selector-box {
    border: 1px solid #dee2e6;
    border-radius: 6px;
    overflow: hidden;
}

.article-selector-list {
    max-height: 300px;
    overflow-y: auto;
    background: #f8f9fa;
}

.article-selector-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    cursor: pointer;
    transition: background 0.15s ease;
    border-bottom: 1px solid #e9ecef;
}

.article-selector-item:hover {
    background: #e8f4fd;
}

.article-selector-item.selected {
    background: #d1ecf1;
}

.article-selector-item .selector-check {
    flex-shrink: 0;
    width: 20px;
    text-align: center;
    color: #0d6efd;
    font-size: 0.9rem;
}

.article-selector-item .selector-title {
    flex: 1;
    font-size: 0.85rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.article-selector-item .selector-category {
    flex-shrink: 0;
    font-size: 0.75rem;
    color: #6c757d;
    background: #e9ecef;
    padding: 1px 6px;
    border-radius: 3px;
}

.selected-articles-box {
    border: 1px solid #dee2e6;
    border-radius: 6px;
    padding: 0.5rem;
    min-height: 40px;
    display: flex;
    flex-wrap: wrap;
    gap: 0.375rem;
}

.selected-article-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    background: #0d6efd;
    color: #fff;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-size: 0.8rem;
}

.selected-article-tag .remove-article-btn {
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
    padding: 0;
    font-size: 0.7rem;
    opacity: 0.8;
    line-height: 1;
}

.selected-article-tag .remove-article-btn:hover {
    opacity: 1;
}

/* 专题响应式 */
@media (max-width: 992px) {
    .topics-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .topic-detail-cover {
        padding-top: 40%;
        min-height: 160px;
    }
    
    .topic-detail-name {
        font-size: 1.4rem;
    }
    
    .topic-articles-section .video-list-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 768px) {
    .topics-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.625rem;
    }
    
    .topic-card-name {
        font-size: 0.85rem;
    }
    
    .topic-card-info {
        padding: 0.5rem 0.625rem;
    }
    
    .topic-detail-cover {
        padding-top: 56.25%;
        min-height: 150px;
    }
    
    .topic-detail-cover-info {
        padding: 1.25rem 1rem 1rem;
    }
    
    .topic-detail-name {
        font-size: 1.2rem;
    }
    
    .topic-detail-desc {
        padding: 0.75rem 1rem;
        font-size: 0.85rem;
    }
    
    .topic-articles-section .video-list-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 480px) {
    .topics-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
    }
    
    .topic-detail-cover-info {
        padding: 1rem 0.75rem 0.75rem;
    }
    
    .topic-detail-name {
        font-size: 1rem;
    }
    
    .topic-detail-count {
        font-size: 0.75rem;
    }
}

/* ==================== 本周热门榜单页样式 ==================== */
.rank-page {
    padding: 1rem 0;
}

.rank-page-header {
    text-align: center;
    padding: 1.5rem 0;
    margin-bottom: 1rem;
}

.rank-page-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #222;
    margin: 0 0 0.375rem;
}

.rank-page-desc {
    font-size: 0.875rem;
    color: #999;
    margin: 0;
}

.rank-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.rank-column {
    min-width: 0;
}

.rank-box {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
    overflow: hidden;
}

.rank-box-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #f0f0f0;
}

.rank-box-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
    position: relative;
    padding-left: 0.75rem;
}

.rank-box-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 1rem;
    background: #ff5f00;
    border-radius: 2px;
}

.rank-box-title a {
    color: #222;
    text-decoration: none;
    transition: color 0.2s;
}

.rank-box-title a:hover {
    color: #ff5f00;
}

.rank-box-more {
    font-size: 0.8rem;
    color: #888;
    text-decoration: none;
    padding-right: 0.25rem;
    flex-shrink: 0;
}

.rank-box-more:hover {
    color: #ff5f00;
}

.rank-list {
    list-style: none;
    margin: 0;
    padding: 0.5rem 0;
    counter-reset: none;
}

.rank-item {
    padding: 0;
}

.rank-item-link {
    display: flex;
    align-items: center;
    padding: 0.65rem 1rem;
    color: #333;
    text-decoration: none;
    transition: background 0.2s;
    line-height: 1.4;
}

.rank-item-link:hover {
    background: #f8f9fa;
    color: #ff5f00;
}

.rank-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.375rem;
    height: 1.375rem;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 4px;
    margin-right: 0.625rem;
    flex-shrink: 0;
    color: #fff;
}

.rank-num-1 { background: #e74c3c; }
.rank-num-2 { background: #e67e22; }
.rank-num-3 { background: #f39c12; }
.rank-num-other { background: #b0b0b0; }

.rank-item-title {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 0.875rem;
}

.rank-item-views {
    color: #aaa;
    font-size: 0.75rem;
    margin-left: 0.5rem;
    flex-shrink: 0;
    min-width: 2.5rem;
    text-align: right;
}

/* 本周热门响应式 */
@media (max-width: 1200px) {
    .rank-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .rank-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }

    .rank-page-title {
        font-size: 1.25rem;
    }

    .rank-box-head {
        padding: 0.625rem 0.75rem;
    }

    .rank-box-title {
        font-size: 1rem;
    }

    .rank-item-link {
        padding: 0.55rem 0.75rem;
    }

    .rank-item-title {
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .rank-grid {
        grid-template-columns: 1fr;
        gap: 0.625rem;
    }
}

/* ========== 首页影视分类盒子 ========== */
.home-video-section {
    margin-bottom: 1.5rem;
}

.video-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #4ECDC4;
}

.video-section-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: #2d3436;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.video-section-title i {
    color: #4ECDC4;
    font-size: 1.1rem;
}

.video-section-more {
    font-size: 0.85rem;
    color: #999;
    text-decoration: none;
    transition: color 0.2s;
}

.video-section-more:hover {
    color: #4ECDC4;
}

.home-video-quick-nav {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: 0.125rem;
    flex: 1;
    margin: 0 1rem;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.home-video-quick-nav::-webkit-scrollbar {
    display: none;
}

.home-video-quick-nav-item {
    display: inline-block;
    flex-shrink: 0;
    padding: 0.15rem 0.6rem;
    font-size: 0.8rem;
    color: #777;
    text-decoration: none;
    border-radius: 12px;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.home-video-quick-nav-item:hover {
    color: #4ECDC4;
    background: rgba(78, 205, 196, 0.08);
    text-decoration: none;
}

.home-video-quick-nav-item.active {
    color: #4ECDC4;
    background: rgba(78, 205, 196, 0.12);
    font-weight: 600;
}

@media (max-width: 768px) {
    .home-video-quick-nav {
        margin: 0 0.5rem;
    }
}

.home-video-body {
    display: flex;
    gap: 1rem;
}

.home-video-left {
    flex: 0 0 42%;
    max-width: 42%;
    overflow: hidden;
}

.home-slideshow-box {
    overflow: hidden;
    border-radius: 6px 6px 0 0;
}

.home-slideshow-swiper {
    width: 100%;
    height: 0;
    padding-bottom: 56.25%;
    position: relative;
    border-radius: 6px 6px 0 0;
    overflow: hidden;
}

.home-slideshow-swiper .swiper-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.home-slideshow-swiper .swiper-slide {
    position: relative;
    overflow: hidden;
}

.home-slideshow-swiper .swiper-slide a {
    display: block;
    width: 100%;
    height: 100%;
    position: relative;
}

.home-slideshow-swiper .swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: fill;
}

.home-slideshow-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.75));
    color: #fff;
    padding: 1.5rem 0.75rem 0.5rem;
    pointer-events: none;
}

.home-slideshow-title {
    font-size: 0.95rem;
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.home-slideshow-desc {
    font-size: 0.75rem;
    opacity: 0.85;
    margin-top: 0.2rem;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

#home-slideshow-pagination {
    bottom: 8px !important;
}

#home-slideshow-pagination .swiper-pagination-bullet {
    background: #fff;
    opacity: 0.5;
    width: 6px;
    height: 6px;
}

#home-slideshow-pagination .swiper-pagination-bullet-active {
    opacity: 1;
    background: #4ECDC4;
}

/* 首页幻灯片导航按钮 - 鼠标悬停显示 */
.home-slideshow-nav {
    color: #fff !important;
    opacity: 0;
    transition: opacity 0.3s;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(0,0,0,0.5);
}

.home-slideshow-nav::after {
    font-size: 1rem !important;
}

.home-slideshow-box:hover .home-slideshow-nav {
    opacity: 1;
}

/* 软件和游戏专属分页样式 */

.home-hot-box {
    background: #fafafa;
    border: 1px solid #e8e8e8;
    border-top: none;
    border-radius: 0 0 6px 6px;
    overflow: hidden;
}

.home-hot-head {
    font-size: 0.95rem;
    font-weight: 600;
    color: #333;
    padding: 0.65rem 0.75rem;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #eee;
    background: #fff;
}

.home-hot-more {
    font-size: 0.75rem;
    font-weight: 400;
    color: #999;
    text-decoration: none;
}

.home-hot-more:hover {
    color: #4ECDC4;
}

.home-hot-body {
    display: flex;
    align-items: flex-start;
    padding: 0 0.75rem 0.75rem;
    gap: 0.75rem;
}

.home-hot-cover {
    flex: 0 0 38%;
    max-width: 38%;
}

.home-hot-cover-link {
    display: block;
    position: relative;
    width: 100%;
    padding-bottom: 118%;
    border-radius: 4px;
    overflow: hidden;
}

.home-hot-cover-link img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.home-hot-cover-tag {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0,0,0,0.6);
    color: #fff;
    text-align: center;
    font-size: 0.7rem;
    padding: 0.2rem 0;
}

.home-hot-list {
    flex: 1;
    list-style: none;
    padding: 0;
    margin: 0;
    counter-reset: home-hot-counter;
}

.home-hot-list li {
    counter-increment: home-hot-counter;
    padding: 0.3rem 0;
    border-bottom: 1px dashed #eee;
}

.home-hot-list li:last-child {
    border-bottom: none;
}

.home-hot-list li a {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    color: #444;
    text-decoration: none;
    font-size: 0.82rem;
    line-height: 1.4;
}

.home-hot-list li a:hover {
    color: #4ECDC4;
}

.home-hot-num {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 600;
    color: #fff;
    background: #b2bec3;
    border-radius: 3px;
}

.home-hot-rank-1 { background: #e74c3c; }
.home-hot-rank-2 { background: #e67e22; }
.home-hot-rank-3 { background: #f39c12; }

.home-hot-title {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.home-video-grid {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.75rem;
    list-style: none;
    padding: 0;
    margin: 0;
    align-content: start;
}

/* 首页影视盒子响应式 */
@media (max-width: 1200px) {
    .home-video-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* PC端隐藏第9个视频卡片（4列×2行=8个），移动端3列×3行=9个全部显示 */
@media (min-width: 1200px) {
    .home-video-grid .video-card-item:nth-child(9) {
        display: none;
    }
}

@media (max-width: 992px) {
    .home-video-body {
        flex-direction: column;
    }
    
    .home-video-left {
        flex: none;
        max-width: 100%;
        display: flex;
        gap: 0.75rem;
    }
    
    .home-slideshow-box {
        flex: 0 0 55%;
        max-width: 55%;
        border-radius: 6px;
    }
    
    .home-slideshow-swiper {
        border-radius: 6px;
    }
    
    .home-hot-box {
        flex: 1;
        border: 1px solid #e8e8e8;
        border-radius: 6px;
    }
    
    .home-video-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .home-video-left {
        flex-direction: column;
    }
    
    .home-slideshow-box {
        flex: none;
        max-width: 100%;
    }
    
    .home-video-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.35rem;
    }

    .home-slideshow-nav {
        display: none;
    }
    
    .video-section-title {
        font-size: 1.05rem;
    }
    
    .home-hot-head {
        font-size: 0.85rem;
        padding: 0.5rem 0.6rem;
    }
    
    .home-hot-body {
        padding: 0 0.5rem 0.5rem;
        gap: 0.5rem;
    }

    .home-hot-cover {
        flex: 0 0 40%;
        max-width: 40%;
    }

    .home-hot-cover-link {
        padding-bottom: 140%;
    }
    
    .home-hot-list li a {
        font-size: 0.75rem;
    }
    
    .home-hot-num {
        width: 16px;
        height: 16px;
        font-size: 0.65rem;
    }
}

@media (max-width: 480px) {
    .home-video-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.3rem;
    }
    
    .home-hot-head {
        font-size: 0.8rem;
        padding: 0.4rem 0.5rem;
    }
    
    .home-hot-body {
        padding: 0 0.4rem 0.4rem;
        gap: 0.4rem;
    }

    .home-hot-cover {
        flex: 0 0 42%;
        max-width: 42%;
    }

    .home-hot-cover-link {
        padding-bottom: 145%;
    }
    
    .home-hot-list li {
        padding: 0.2rem 0;
    }
    
    .home-hot-list li a {
        font-size: 0.7rem;
    }
    
    .home-hot-num {
        width: 15px;
        height: 15px;
        font-size: 0.6rem;
    }
}

/* ==================== 首页软件分类盒子 ==================== */
.software-section-head {
    border-bottom-color: #6C5CE7;
}

.software-section-title i {
    color: #6C5CE7;
}

.software-section-more:hover {
    color: #6C5CE7;
}

.home-software-quick-nav-item:hover {
    color: #6C5CE7;
    background: rgba(108, 92, 231, 0.08);
}

.home-software-quick-nav-item.active {
    color: #6C5CE7;
    background: rgba(108, 92, 231, 0.12);
}

#home-software-slideshow-pagination .swiper-pagination-bullet-active {
    background: #6C5CE7;
}

.home-software-hot-box .home-hot-more:hover {
    color: #6C5CE7;
}

/* ==================== 首页游戏分类盒子 ==================== */
.game-section-head {
    border-bottom-color: #00B894;
}

.game-section-title i {
    color: #00B894;
}

.game-section-more:hover {
    color: #00B894;
}

.home-game-quick-nav-item:hover {
    color: #00B894;
    background: rgba(0, 184, 148, 0.08);
}

.home-game-quick-nav-item.active {
    color: #00B894;
    background: rgba(0, 184, 148, 0.12);
}

#home-game-slideshow-pagination .swiper-pagination-bullet-active {
    background: #00B894;
}

.home-game-hot-box .home-hot-more:hover {
    color: #00B894;
}

/* ==================== 影视分类页排行榜侧边栏样式 ==================== */
.video-category-layout {
    display: flex;
    gap: 1.25rem;
    align-items: flex-start;
}

.video-main-content {
    flex: 1;
    min-width: 0;
}

.video-rank-sidebar {
    width: 280px;
    flex-shrink: 0;
}

.rank-sidebar-box {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
    overflow: hidden;
    margin-bottom: 1rem;
}

.rank-sidebar-head {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #f0f0f0;
}

.rank-sidebar-title {
    font-size: 1rem;
    font-weight: 700;
    color: #222;
    margin: 0;
    position: relative;
    padding-left: 0.75rem;
}

.rank-sidebar-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 16px;
    background: #e74c3c;
    border-radius: 2px;
}

.rank-sidebar-list {
    list-style: none;
    margin: 0;
    padding: 0.5rem 0;
}

.rank-sidebar-item {
    margin: 0;
    padding: 0;
}

.rank-sidebar-link {
    display: flex;
    align-items: center;
    padding: 0.55rem 1rem;
    color: #333;
    text-decoration: none;
    transition: background-color 0.2s;
}

.rank-sidebar-link:hover {
    background: #f8f9fa;
    color: #e74c3c;
}

.rank-sidebar-num {
    width: 20px;
    height: 20px;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    color: #fff;
    margin-right: 0.625rem;
    flex-shrink: 0;
}

.rank-sidebar-num.rank-num-1 { background: #e74c3c; }
.rank-sidebar-num.rank-num-2 { background: #e67e22; }
.rank-sidebar-num.rank-num-3 { background: #f39c12; }
.rank-sidebar-num.rank-num-other { background: #b0b0b0; }

.rank-sidebar-title-text {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 0.85rem;
}

.rank-sidebar-views {
    color: #aaa;
    font-size: 0.75rem;
    margin-left: 0.5rem;
    flex-shrink: 0;
}

.rank-sidebar-loading,
.rank-sidebar-empty {
    text-align: center;
    padding: 1.5rem 0;
    color: #999;
    font-size: 0.85rem;
}

@media (max-width: 992px) {
    .video-category-layout {
        flex-direction: column;
    }
    
    .video-main-content {
        max-width: 100%;
    }
    
    .video-rank-sidebar {
        width: 100%;
        display: flex;
        gap: 0.75rem;
    }
    
    .video-rank-sidebar .rank-sidebar-box {
        flex: 1;
        margin-bottom: 0;
    }
}

@media (max-width: 768px) {
    .video-rank-sidebar {
        flex-direction: column;
    }
    
    .video-rank-sidebar .rank-sidebar-box {
        margin-bottom: 0.75rem;
    }
    
    .rank-sidebar-title {
        font-size: 0.95rem;
    }
    
    .rank-sidebar-link {
        padding: 0.5rem 0.75rem;
    }
}

/* ==================== 网盘搜索样式 ==================== */
.pan-search-tip {
    color: #666;
    font-size: 0.95rem;
    margin-bottom: 0.75rem;
    padding: 0.5rem;
    background: #fff8e1;
    border-radius: 8px;
    border: 1px dashed #ffcc02;
}

.pan-search-input-group {
    display: flex;
    gap: 0.5rem;
}

.pan-search-input-group .form-control {
    flex: 1;
    border-radius: 8px;
    border: 2px solid #e0e0e0;
    transition: border-color 0.2s;
}

.pan-search-input-group .form-control:focus {
    border-color: #4a90e2;
    box-shadow: 0 0 0 0.2rem rgba(74, 144, 226, 0.15);
}

.pan-search-input-group .btn {
    border-radius: 8px;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

.pan-search-lines {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.pan-search-lines-label {
    font-size: 0.85rem;
    color: #888;
    white-space: nowrap;
}

.pan-search-lines-btns {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.pan-search-line-btn {
    font-size: 0.8rem;
    padding: 0.3rem 0.75rem;
    border-radius: 20px;
    border: 1px solid #ddd;
    background: #fff;
    color: #555;
    cursor: pointer;
    transition: all 0.2s;
}

.pan-search-line-btn:hover {
    border-color: #4a90e2;
    color: #4a90e2;
}

.pan-search-line-btn.active {
    background: #4a90e2;
    color: #fff;
    border-color: #4a90e2;
}

.pan-search-result {
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    overflow: hidden;
}

.pan-search-result-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.6rem 1rem;
    background: #f5f7fa;
    border-bottom: 1px solid #e8e8e8;
}

.pan-search-result-header > div:first-child {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex: 1;
}

.pan-search-result-title {
    font-weight: 600;
    font-size: 0.9rem;
    color: #333;
}

.pan-search-result-tip {
    color: #d46b08;
    font-size: 0.72rem;
    font-weight: 400;
    background: #fffbe6;
    padding: 0.15rem 0.5rem;
    border-radius: 3px;
    border: 1px solid #ffe58f;
    white-space: nowrap;
    line-height: 1.5;
}

@media (max-width: 768px) {
    .pan-search-result-tip {
        font-size: 0.68rem;
        padding: 0.1rem 0.4rem;
        white-space: normal;
    }
}

.pan-search-summary {
    padding: 0.5rem 0;
    font-size: 0.85rem;
}

.pan-search-cards {
    max-height: 600px;
    overflow-y: auto;
}

.pan-search-card {
    padding: 0.8rem 1rem;
    border-bottom: 1px solid #f0f0f0;
    transition: background 0.15s;
}

.pan-search-card:last-child {
    border-bottom: none;
}

.pan-search-card:hover {
    background: #f8f9fe;
}

.pan-search-card-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.25rem;
    flex-wrap: wrap;
}

.pan-search-card-index {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    background: #4a90e2;
    color: #fff;
    font-size: 0.75rem;
    border-radius: 4px;
    flex-shrink: 0;
    font-weight: 600;
}

.pan-search-card-title a {
    font-size: 0.95rem;
    font-weight: 500;
    color: #1a73e8;
    text-decoration: none;
    word-break: break-all;
}

.pan-search-card-title a:hover {
    color: #d93025;
    text-decoration: underline;
}

.pan-search-card-time {
    font-size: 0.75rem;
    color: #999;
    margin-left: auto;
    flex-shrink: 0;
}

.pan-search-card-desc {
    font-size: 0.8rem;
    color: #777;
    margin-bottom: 0.4rem;
    padding-left: 30px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.5;
}

.pan-search-card-action {
    padding-left: 30px;
}

.pan-search-card-action .btn {
    font-size: 0.75rem;
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
}

@media (max-width: 768px) {
    .pan-search-input-group {
        flex-direction: column;
    }

    .pan-search-input-group .btn {
        width: 100%;
    }

    .pan-search-cards {
        max-height: 500px;
    }

    .pan-search-card-title {
        font-size: 0.85rem;
    }

    .pan-search-card-time {
        font-size: 0.7rem;
        margin-left: 0;
        width: 100%;
        padding-left: 30px;
    }

    .pan-search-card-desc {
        -webkit-line-clamp: 2;
    }
}

/* ==================== 影视相关推荐样式 ==================== */
.video-recommendations {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -8px;
}

.video-recommend-item {
    width: 33.333%;
    padding: 0 8px;
    margin-bottom: 20px;
    box-sizing: border-box;
}

.video-recommend-item a {
    text-decoration: none;
    color: inherit;
}

.video-recommend-poster {
    position: relative;
    width: 100%;
    padding-top: 150%;
    overflow: hidden;
    border-radius: 8px;
    background: #f0f0f0;
}

.video-recommend-poster img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.video-recommend-item:hover .video-recommend-poster img {
    transform: scale(1.05);
}

.video-recommend-play-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.video-recommend-item:hover .video-recommend-play-overlay {
    opacity: 1;
}

.video-recommend-play-overlay i {
    color: #fff;
    font-size: 2rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.video-recommend-score {
    position: absolute;
    top: 8px;
    right: 8px;
    background: #28a745;
    color: #fff;
    font-size: 0.75rem;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: bold;
}

.video-recommend-format {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.65);
    color: #fff;
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: 4px;
}

.video-recommend-title {
    font-size: 0.9rem;
    font-weight: 500;
    margin-top: 8px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    color: #333;
    transition: color 0.2s;
}

.video-recommend-item:hover .video-recommend-title {
    color: #4a90e2;
}

.video-recommend-meta {
    font-size: 0.75rem;
    color: #999;
    margin-top: 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

@media (max-width: 768px) {
    .video-recommend-item {
        width: 33.333%;
        padding: 0 6px;
        margin-bottom: 15px;
    }
    .video-recommend-title {
        font-size: 0.8rem;
    }
    .video-recommend-meta {
        font-size: 0.7rem;
    }
    .video-recommend-play-overlay i {
        font-size: 1.3rem;
    }
    .video-recommend-score {
        font-size: 0.65rem;
        padding: 1px 5px;
        top: 4px;
        right: 4px;
    }
    .video-recommend-format {
        font-size: 0.6rem;
        padding: 1px 4px;
        bottom: 4px;
        right: 4px;
    }
}

@media (max-width: 480px) {
    .video-recommend-item {
        width: 33.333%;
        padding: 0 4px;
        margin-bottom: 12px;
    }
    .video-recommend-title {
        font-size: 0.75rem;
    }
    .video-recommend-meta {
        font-size: 0.65rem;
    }
    .video-recommend-play-overlay i {
        font-size: 1.1rem;
    }
    .video-recommend-score {
        font-size: 0.6rem;
        padding: 1px 4px;
        top: 3px;
        right: 3px;
    }
    .video-recommend-format {
        font-size: 0.55rem;
        padding: 1px 3px;
        bottom: 3px;
        right: 3px; 
    }
}

/* ============================================================
   置顶文章区域 - 精美UI设计
   ============================================================ */
.pinned-articles-section {
    margin-bottom: 1.5rem;
}

.pinned-panel {
    background: linear-gradient(135deg, rgba(255,107,107,0.05) 0%, rgba(78,205,196,0.08) 50%, rgba(167,139,250,0.06) 100%);
    border: 1px solid rgba(255,107,107,0.15);
    border-radius: 16px;
    padding: 1.25rem 1.5rem;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(2px);
}

/* 装饰性背景 */
.pinned-panel::before {
    content: '';
    position: absolute;
    top: -40px;
    right: -40px;
    width: 120px;
    height: 120px;
    background: radial-gradient(circle, rgba(255,107,107,0.08) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.pinned-panel::after {
    content: '';
    position: absolute;
    bottom: -30px;
    left: -30px;
    width: 80px;
    height: 80px;
    background: radial-gradient(circle, rgba(78,205,196,0.08) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

/* 置顶头部 */
.pinned-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}

.pinned-header-left {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.pinned-icon {
    font-size: 1.3rem;
    animation: pinnedPulse 2s ease-in-out infinite;
}

@keyframes pinnedPulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.15); opacity: 0.8; }
}

.pinned-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-color);
    margin: 0;
    background: linear-gradient(135deg, #FF6B6B, #A78BFA);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.pinned-count {
    font-size: 0.8rem;
    color: var(--light-text);
    background: rgba(255,107,107,0.1);
    padding: 0.15rem 0.6rem;
    border-radius: 20px;
    font-weight: 500;
}

/* 分页导航 */
.pinned-nav {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    position: relative;
    z-index: 1;
}

.pinned-nav-btn {
    width: 30px;
    height: 30px;
    border: 1px solid rgba(255,107,107,0.2);
    background: rgba(255,255,255,0.6);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    color: var(--text-color);
    font-size: 0.75rem;
    padding: 0;
}

.pinned-nav-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, rgba(255,107,107,0.15), rgba(167,139,250,0.15));
    border-color: rgba(255,107,107,0.4);
    color: #FF6B6B;
    transform: scale(1.05);
}

.pinned-nav-btn:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

.pinned-page-info {
    font-size: 0.8rem;
    color: var(--light-text);
    font-weight: 500;
    min-width: 3rem;
    text-align: center;
}

/* 置顶文章网格 */
.pinned-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.6rem;
    position: relative;
    z-index: 1;
}

.pinned-card {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 0.75rem;
    background: rgba(255,255,255,0.7);
    border: 1px solid rgba(0,0,0,0.06);
    border-radius: 10px;
    text-decoration: none;
    color: var(--text-color);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    min-width: 0;
    backdrop-filter: blur(4px);
}

.pinned-card:hover {
    background: #fff;
    border-color: rgba(255,107,107,0.3);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(255,107,107,0.12), 0 1px 4px rgba(0,0,0,0.06);
    color: var(--text-color);
    text-decoration: none;
}

.pinned-card:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(255,107,107,0.08);
}

.pinned-card-icon {
    width: 26px;
    height: 26px;
    min-width: 26px;
    border-radius: 7px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    flex-shrink: 0;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

.pinned-card-title {
    font-size: 0.85rem;
    font-weight: 500;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    overflow-wrap: break-word;
    word-break: break-word;
    color: var(--text-color);
}

.pinned-card:hover .pinned-card-title {
    color: #FF6B6B;
}

/* ============================================================
   置顶文章 - 响应式设计
   ============================================================ */

/* 平板端：3列 */
@media (max-width: 992px) {
    .pinned-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.5rem;
    }
    
    .pinned-panel {
        padding: 1rem 1.25rem;
    }
    
    .pinned-card {
        padding: 0.5rem 0.65rem;
    }
    
    .pinned-card-icon {
        width: 24px;
        height: 24px;
        min-width: 24px;
        font-size: 0.65rem;
        border-radius: 6px;
    }
    
    .pinned-card-title {
        font-size: 0.8rem;
    }
}

/* 手机端：2列 */
@media (max-width: 768px) {
    .pinned-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.45rem;
    }
    
    .pinned-panel {
        padding: 0.75rem 0.9rem;
        border-radius: 12px;
    }
    
    .pinned-header {
        margin-bottom: 0.75rem;
    }
    
    .pinned-title {
        font-size: 1rem;
    }
    
    .pinned-card {
        padding: 0.45rem 0.55rem;
        border-radius: 8px;
        gap: 0.4rem;
    }
    
    .pinned-card-icon {
        width: 22px;
        height: 22px;
        min-width: 22px;
        font-size: 0.6rem;
        border-radius: 5px;
    }
    
    .pinned-card-title {
        font-size: 0.75rem;
        -webkit-line-clamp: 1;
    }
}

/* 超小屏：1列 */
@media (max-width: 400px) {
    .pinned-grid {
        grid-template-columns: 1fr;
        gap: 0.35rem;
    }
    
    .pinned-card {
        padding: 0.5rem 0.6rem;
    }
}

/* ==================== 分类说明盒子 ==================== */
.category-desc-box {
    background: linear-gradient(135deg, #f8fbfe 0%, #eef4fb 100%);
    border: 1px solid #d6e4f0;
    border-left: 4px solid #4a90d9;
    border-radius: 8px;
    padding: 10px 14px;
    margin-bottom: 16px;
    position: relative;
    font-size: 0.9rem;
    line-height: 1.65;
    color: #3a5068;
}

.category-desc-box::before {
    content: '\f05a';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    top: -10px;
    left: 12px;
    background: #4a90d9;
    color: #fff;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    font-size: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(74, 144, 217, 0.3);
}

.category-desc-content {
    margin-top: 4px;
}

.category-desc-content a {
    color: #2b6cb0;
    text-decoration: underline;
}

.category-desc-content a:hover {
    color: #1a4972;
    text-decoration: none;
}

.category-desc-content b,
.category-desc-content strong {
    color: #2c5282;
}

.category-desc-content span[style] {
    /* 允许内联样式高亮 */
}

.category-desc-source {
    display: block;
    margin-top: 6px;
    font-size: 0.75rem;
    color: #8ba0b8;
    font-style: italic;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .category-desc-box {
        padding: 8px 12px;
        font-size: 0.85rem;
        border-left-width: 3px;
        margin-bottom: 12px;
    }
    
    .category-desc-box::before {
        width: 20px;
        height: 20px;
        font-size: 10px;
        top: -8px;
        left: 10px;
    }
}
