/* 
 * 热血传奇官网 - 公共样式表
 * 包含头部、导航、底部等公共样式
 */

/* 头部样式 */
.header-top {
    background: linear-gradient(90deg, #1a1a2e 0%, #16213e 100%);
}

.nav-bg {
    background: linear-gradient(90deg, #c0392b 0%, #e74c3c 50%, #c0392b 100%);
}

.nav-item:hover {
    background: rgba(0, 0, 0, 0.2);
}

/* 移动端搜索表单样式 */
.mobile-search-form {
    display: block !important;
    width: 100%;
}

.mobile-search-form .relative {
    display: flex !important;
    width: 100%;
}

.mobile-search-form input[type="text"] {
    flex: 1 !important;
    min-width: 0;
}

.mobile-search-form button[type="submit"] {
    flex-shrink: 0;
}

/* 二维码弹窗 */
.mobile-qr-trigger {
    position: relative;
}

.mobile-qr-popup {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: 100%;
    margin-top: 8px;
    background: white;
    padding: 10px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    width: 140px;
    height: 156px;
}

.mobile-qr-trigger:hover .mobile-qr-popup {
    opacity: 1;
    visibility: visible;
}

.mobile-qr-popup img {
    width: 120px;
    height: 120px;
}

.mobile-qr-popup::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 8px solid white;
}

/* 滚动通知 */
.marquee-container {
    background: #333;
    overflow: hidden;
    white-space: nowrap;
    height: 48px;
}

.marquee-content {
    display: inline-block;
    animation: marquee 20s linear infinite;
    color: white;
    padding: 0.5rem 0;
}

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

/* 自定义layui抽屉样式 - 去掉圆角和边框，靠左对齐 */
.layui-layer-drawer-skin {
    border-radius: 0 !important;
    box-shadow: none !important;
    border: none !important;
    left: 0 !important;
}

.layui-layer-drawer-skin .layui-layer-content {
    padding: 0 !important;
    border-radius: 0 !important;
}

/* 通用样式 */
.container {
    max-width: 1200px !important;
}

.section-title {
    border-left: 4px solid #c0392b;
    padding-left: 15px;
}

/* 卡片样式 */
.news-card {
    transition: transform 0.3s, box-shadow 0.3s;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.game-card {
    transition: transform 0.3s;
}

.game-card:hover {
    transform: scale(1.05);
}

/* 游戏卡片悬浮层样式 - PC端 */
.game-card-overlay {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    background: rgba(0, 0, 0, 0.75) !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    padding: 0.75rem !important;
    opacity: 0 !important;
    transition: opacity 0.3s ease !important;
    border-radius: 0.5rem !important;
}

.game-card:hover .game-card-overlay {
    opacity: 1 !important;
}

.game-card-overlay .overlay-heat {
    font-size: 12px !important;
    color: #ef4444 !important;
    font-weight: bold !important;
    margin-bottom: 0.5rem !important;
    text-align: center !important;
}

.game-card-overlay .overlay-desc {
    font-size: 11px !important;
    color: #d1d5db !important;
    text-align: center !important;
    line-height: 1.5 !important;
    margin-bottom: 0.5rem !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 3 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
}

.game-card-overlay .overlay-tags {
    font-size: 10px !important;
    color: #9ca3af !important;
    margin-bottom: 0.5rem !important;
    gap: 0.25rem !important;
}

/* 动态标签 - 竖线分隔样式 */
.game-card-overlay .overlay-tags .tag-item,
.topic-tag-keyword .overlay-tags .tag-item {
    color: #9ca3af !important;
}

.game-card-overlay .overlay-tags .tag-item:not(:last-child)::after,
.topic-tag-keyword .overlay-tags .tag-item:not(:last-child)::after {
    content: "|" !important;
    margin-left: 0.25rem !important;
    color: #6b7280 !important;
}

.game-card-overlay .overlay-download {
    background: #dc2626 !important;
    color: white !important;
    padding: 0.25rem 1rem !important;
    border-radius: 0.25rem !important;
    font-size: 12px !important;
}

.video-card {
    border-radius: 8px;
    overflow: hidden;
}

.topic-card {
    transition: transform 0.3s;
}

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

/* 游戏专题悬浮蒙层样式 */
.topic-card-overlay {
    display: none !important;
    background: rgba(0, 0, 0, 0.6) !important;
}

.topic-card:hover .topic-card-overlay {
    display: flex !important;
}

.topic-card-overlay .topic-tag-keyword {
    font-size: 10px !important;
    padding: 2px 6px !important;
}

.topic-card-overlay .overlay-download {
    background: #dc2626 !important;
    color: white !important;
    padding: 6px 16px !important;
    border-radius: 4px !important;
    font-size: 12px !important;
    cursor: pointer;
    transition: all 0.3s ease;
}

.topic-card-overlay .overlay-download:hover {
    background: #b91c1c !important;
}

.topic-title {
    background-color: rgba(0, 0, 0, 0.6);
    text-align: center;
}

/* 排行榜样式 */
.rank-item {
    border-bottom: 1px solid #eee;
    transition: all 0.3s;
}

.rank-item:hover {
    background: #fef2f2;
}

/* 友情链接样式 */
.friend-link {
    padding: 10px 20px;
    border: 1px solid #ddd;
    border-radius: 4px;
    transition: all 0.3s;
}

.friend-link:hover {
    border-color: #c0392b;
    color: #c0392b;
}

/* 文本截断 */
.news-title {
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-desc {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Line Clamp Utility Classes */
.line-clamp-1 {
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.text-12px {
    font-size: 12px;
}
.pc-game-topic-grid {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 1.17rem !important;
}
.pc-game-strategy-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 1rem !important;
}

.pc-game-strategy-grid .news-card {
    border: 1px solid #e5e7eb !important;
    transition: all 0.3s ease !important;
}

.pc-game-strategy-grid .news-card:hover {
    border-color: #f87171 !important;
    box-shadow: 0 4px 6px -1px rgba(248, 113, 113, 0.1), 0 2px 4px -1px rgba(248, 113, 113, 0.06) !important;
}

/* PC端游戏攻略在移动端隐藏 */
@media (max-width: 768px) {
    .pc-game-strategy-grid {
        display: none !important;
    }
}

/* 移动端游戏攻略列表在PC端隐藏 */
@media (min-width: 769px) {
    .mobile-strategy-list {
        display: none !important;
    }
}

/* Swiper轮播样式 */
.swiper {
    width: 100%;
    height: 320px;
    border-radius: 8px;
    overflow: hidden;
}

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

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

.swiper-pagination-bullet-active {
    background: #c0392b !important;
}

.swiper-button-next,
.swiper-button-prev {
    color: white !important;
    width: 40px !important;
    height: 40px !important;
}

.swiper-button-next:after,
.swiper-button-prev:after {
    font-size: 18px !important;
}

.slider-img {
    width: 100%;
    height: 320px;
    object-fit: cover;
}

/* 特色新闻项目样式 */
.featured-news-item {
    background: linear-gradient(135deg, #fef7f7 0%, #ffffff 100%);
    border-left: 4px solid #ef4444;
    padding-left: 8px;
    margin-left: -8px;
    border-radius: 4px 0 0 4px;
}

/* 移动端抽屉菜单样式 */
.drawer-skin .layui-layer-content {
    padding: 0 !important;
}

.drawer-menu li:hover {
    background-color: #f8f9fa;
}

.drawer-menu .menu-toggle:hover {
    background-color: #f8f9fa;
}

.drawer-menu .submenu li:hover {
    background-color: #e9ecef;
}

.drawer-menu .submenu a:hover {
    color: #007bff !important;
}

/* 响应式样式 - 移动端 */
@media (max-width: 768px) {
    .slider-img {
        height: 100%
    }

    .mobile-full {
        width: 100% !important;
    }

    .mobile-p-2 {
        padding: 0.5rem !important;
    }

    .mobile-text-sm {
        font-size: 0.875rem !important;
    }

    .mobile-grid-1 {
        grid-template-columns: 1fr !important;
    }
    
    .mobile-grid-2 {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    .mobile-flex-col {
        flex-direction: column !important;
    }

    /* 移动端滚动通知和菜单 */
    .marquee-container button {
        padding: 0.75rem !important;
        background: #333;
        position: relative !important;
        z-index: 100;
        left: 0;
        top: 0;
        height: 46px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .marquee-container button i {
        font-size: 1.55rem !important;
    }

    .mobile-hide-hot {
        font-size: 0 !important;
    }
    
    .mobile-hide-hot::first-letter {
        font-size: 0.75rem !important;
    }
    
    .mobile-hide-hot::after {
        content: attr(data-stars);
        font-size: 0.75rem !important;
    }
    
    /* 移动端输入框字体 */
    .md\:hidden input {
        font-size: 0.875rem !important;
    }
    
    /* 移动端轮播图高度 */
    .swiper {
        height: 200px !important;
    }
    
    /* 移动端视频卡片高度 */
    .video-card .w-full.h-40 {
        height: 96px !important;
    }
    .video-card .text-5xl {
        font-size: 2.5rem !important;
    }

    /* 移动端游戏专题高度 */
    .topic-card .w-full.h-32 {
        height: 120px !important;
    }

    /* 移动端热门推荐 - 3列 */
    .grid-cols-6 {
        grid-template-columns: repeat(3, 1fr) !important;
    }
    
    /* 移动端传奇下载 - 4列 */
    .grid-cols-10 {
        grid-template-columns: repeat(4, 1fr) !important;
    }
    
    .rank-item {
        padding: 0.75rem 0.5rem !important;
    }

    .rank-item img {
        width: 3rem !important;
        height: 3rem !important;
    }
    
    #footer-menu {
        gap: 0.5rem !important;
    }

    #footer-menu li a {
        font-size: 0.75rem !important;
    }
    
    .container {
        padding-left: 0.75rem !important;
        padding-right: 0.75rem !important;
    }

    section {
        padding-top: 1rem !important;
        padding-bottom: 1rem !important;
    }

    .game-card {
        padding: 0.5rem !important;
    }

    .game-card img {
        width: 3rem !important;
        height: 3rem !important;
    }
    
    /* 移动端游戏专题横向滚动 */
    .mobile-topic-scroll {
        margin-top: 1rem;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
        padding-bottom: 0.5rem;
    }
    
    .mobile-topic-scroll::-webkit-scrollbar {
        display: none;
    }
    
    .topic-scroll-inner {
        display: flex;
        gap: 0.75rem;
        padding: 0 0.25rem;
    }
    
    .topic-scroll-card {
        width: 14rem;
        flex-shrink: 0;
    }
    
    .mobile-strategy-list {
        display: flex !important;
        flex-direction: column !important;
        gap: 0.5rem !important;
    }
    
    .mobile-strategy-item {
        display: flex !important;
        flex-direction: row !important;
        border-bottom: 1px solid #eee !important;
        padding-bottom: 0.5rem !important;
        margin-bottom: 0.5rem !important;
    }
    
    .mobile-strategy-item:last-child {
        border-bottom: none !important;
        margin-bottom: 0 !important;
        padding-bottom: 0 !important;
    }
    
    .mobile-strategy-item img {
        width: 100px !important;
        height: 70px !important;
        flex-shrink: 0 !important;
        border-radius: 6px !important;
    }
    
    .mobile-strategy-item .strategy-content {
        padding: 0 0.5rem !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: space-between !important;
        flex: 1 !important;
        overflow: hidden !important;
    }
    
    .mobile-strategy-item .strategy-meta {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        margin-top: auto !important;
    }
    
    .mobile-strategy-item .news-desc {
        display: block !important;
        font-size: 0.75rem !important;
        color: #6b7280 !important;
        line-height: 1.4 !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        white-space: nowrap !important;
    }
}

/* LayUI Tab样式 - 全局生效 */
.layui-tab {
    margin-bottom: 0;
}
.layui-tab-brief .layui-tab-title li {
    color: #374151 !important;
    border: none !important;
}

.layui-tab-brief .layui-tab-title li.layui-this {
    color: #dc2626 !important;
    background-color: #fef2f2 !important;
}

.layui-tab-brief .layui-tab-title li.layui-this::after {
    border-bottom: 2px solid #dc2626 !important;
}

.layui-tab-brief .layui-tab-title li:hover {
    color: #dc2626 !important;
}

.layui-tab-brief .layui-tab-content {
    padding: 1rem 0 !important;
}

/* 响应式样式 - 中等屏幕 */
@media (min-width: 769px) and (max-width: 1200px) {
    .slider-img {
        height: 280px;
    }
}

/* PC端更多链接样式 - 字体小一点，不要加粗 */
.pc-more-link {
    font-size: 12px !important;
    font-weight: normal !important;
    color: #9ca3af !important;
    transition: color 0.3s;
}

.pc-more-link:hover {
    color: #dc2626 !important;
}

.sidebar-grid-2 {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 0.75rem !important;
}

.sidebar-grid-2 .sidebar-item {
    display: flex !important;
    flex-direction: column !important;
}

.sidebar-grid-2 .sidebar-item img {
    width: 100% !important;
    height: 80px !important;
    object-fit: cover !important;
    border-radius: 6px !important;
    margin-bottom: 0.5rem !important;
}

.sidebar-large {
    display: flex !important;
    flex-direction: column !important;
    gap: 0.75rem !important;
}

.sidebar-large .sidebar-item {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
}

.sidebar-large .sidebar-item img {
    width: 80px !important;
    height: 60px !important;
    object-fit: cover !important;
    border-radius: 6px !important;
    flex-shrink: 0 !important;
}

.sidebar-large .sidebar-item .sidebar-info {
    flex: 1 !important;
    margin-left: 0.75rem !important;
    min-width: 0 !important;
}

.sidebar-rank {
    display: flex !important;
    flex-direction: column !important;
    gap: 0.75rem !important;
}

.sidebar-rank .sidebar-item {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    padding: 0.5rem !important;
    background: #f9fafb !important;
    border-radius: 8px !important;
    position: relative !important;
}

.sidebar-rank .sidebar-item img {
    width: 80px !important;
    height: 60px !important;
    object-fit: cover !important;
    border-radius: 6px !important;
    flex-shrink: 0 !important;
}

.sidebar-rank .rank-num {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 20px !important;
    height: 20px !important;
    line-height: 20px !important;
    text-align: center !important;
    border-radius: 6px 0 0 0 !important;
    font-size: 11px !important;
    font-weight: bold !important;
    z-index: 10 !important;
}

.sidebar-rank .rank-num.red {
    background: #fee2e2 !important;
    color: #dc2626 !important;
}

.sidebar-rank .rank-num.orange {
    background: #ffedd5 !important;
    color: #ea580c !important;
}

.sidebar-rank .rank-num.yellow {
    background: #fef9c3 !important;
    color: #ca8a04 !important;
}

.sidebar-rank .rank-num.gray {
    background: #f3f4f6 !important;
    color: #6b7280 !important;
}

.sidebar-rank .sidebar-info {
    flex: 1 !important;
    min-width: 0 !important;
    margin-left: 0.75rem !important;
}

.sidebar-rank .sidebar-info h4 {
    font-size: 14px !important;
    font-weight: 500 !important;
    color: #1f2937 !important;
    line-height: 1.4 !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
}

.sidebar-rank .sidebar-meta {
    font-size: 12px !important;
    color: #9ca3af !important;
    margin-top: 2px !important;
}

.sidebar-rank .sidebar-heat {
    font-size: 16px !important;
    font-weight: 600 !important;
    color: #dc2626 !important;
    flex-shrink: 0 !important;
    margin-left: 0.5rem !important;
}
.rank-heat {
    flex-shrink: 0 !important;
    margin-left: 0.5rem !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    color: #dc2626 !important;
}

.sidebar-rank .sidebar-item:hover .rank-heat {
    display: none !important;
}

.sidebar-rank .overlay-download {
    display: none !important;
    flex-shrink: 0 !important;
    margin-left: 0.5rem !important;
    background: #dc2626 !important;
    color: white !important;
    padding: 0.25rem 1rem !important;
    border-radius: 0.25rem !important;
    font-size: 12px !important;
}

/* 鼠标悬停时显示下载按钮 */
.sidebar-rank .sidebar-item:hover .overlay-download {
    display: inline-flex !important;
}

.sidebar-rank .sidebar-meta {
    font-size: 11px !important;
    color: #9ca3af !important;
    margin-top: 2px !important;
}

.sidebar-video {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 0.75rem !important;
}

.sidebar-video .sidebar-item {
    position: relative !important;
    min-width: 0 !important;
    max-width: 100% !important;
}

.sidebar-video .sidebar-item > div {
    position: relative !important;
}

.sidebar-video .sidebar-item > div img {
    width: 100% !important;
    height: 90px !important;
    object-fit: cover !important;
    border-radius: 6px !important;
}

.sidebar-video .video-duration {
    position: absolute !important;
    bottom: 4px !important;
    right: 4px !important;
    background: rgba(0, 0, 0, 0.7) !important;
    color: white !important;
    font-size: 10px !important;
    padding: 2px 6px !important;
    border-radius: 4px !important;
}

.sidebar-video .sidebar-info h4 {
    font-size: 12px !important;
    font-weight: 500 !important;
    color: #374151 !important;
    margin-top: 4px !important;
    line-height: 1.4 !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
}

.sidebar-topic {
    display: flex !important;
    flex-direction: column !important;
    gap: 1rem !important;
}

.sidebar-topic .sidebar-item {
    display: block !important;
    padding: 0 !important;
    background: transparent !important;
    border-radius: 0 !important;
}

.sidebar-topic .sidebar-item img {
    width: 100% !important;
    height: 160px !important;
    object-fit: cover !important;
    border-radius: 8px !important;
    flex-shrink: 0 !important;
}

.sidebar-topic .sidebar-info {
    flex: 1 !important;
    margin: 0.75rem 0 0 0 !important;
    min-width: 0 !important;
}

.sidebar-topic .sidebar-info p {
    font-size: 12px !important;
    color: #9ca3af !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
    margin-bottom: 0.5rem !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 1 !important;
    -webkit-box-orient: vertical !important;
}

/* 专题标签颜色 - 自动轮换 */
.sidebar-topic .sidebar-item .sidebar-info .flex span:nth-child(1),
.tag-dynamic:nth-child(1) { background: #fee2e2 !important; color: #dc2626 !important; }
.sidebar-topic .sidebar-item .sidebar-info .flex span:nth-child(2),
.tag-dynamic:nth-child(2) { background: #ffedd5 !important; color: #ea580c !important; }
.sidebar-topic .sidebar-item .sidebar-info .flex span:nth-child(3),
.tag-dynamic:nth-child(3) { background: #fef9c3 !important; color: #ca8a04 !important; }
.sidebar-topic .sidebar-item .sidebar-info .flex span:nth-child(4),
.tag-dynamic:nth-child(4) { background: #dcfce7 !important; color: #16a34a !important; }
.sidebar-topic .sidebar-item .sidebar-info .flex span:nth-child(5),
.tag-dynamic:nth-child(5) { background: #dbeafe !important; color: #2563eb !important; }
.sidebar-topic .sidebar-item .sidebar-info .flex span:nth-child(6),
.tag-dynamic:nth-child(6) { background: #f3e8ff !important; color: #9333ea !important; }
.sidebar-topic .sidebar-item .sidebar-info .flex span:nth-child(7),
.tag-dynamic:nth-child(7) { background: #fee2e2 !important; color: #be123c !important; }
.sidebar-topic .sidebar-item .sidebar-info .flex span:nth-child(8),
.tag-dynamic:nth-child(8) { background: #e0f2fe !important; color: #0287eb !important; }
.sidebar-topic .sidebar-item .sidebar-info .flex span:nth-child(9),
.tag-dynamic:nth-child(9) { background: #f1f5f9 !important; color: #475569 !important; }
.sidebar-topic .sidebar-item .sidebar-info .flex span:nth-child(10),
.tag-dynamic:nth-child(10) { background: #f0fdf4 !important; color: #15803d !important; }
.sidebar-topic .sidebar-item .sidebar-info .flex span:nth-child(11),
.tag-dynamic:nth-child(11) { background: #fff7ed !important; color: #c2410c !important; }
.sidebar-topic .sidebar-item .sidebar-info .flex span:nth-child(12),
.tag-dynamic:nth-child(12) { background: #fdf4ff !important; color: #a21caf !important; }
/* 专题标签单行显示，超出省略号 */
.sidebar-topic .sidebar-item .sidebar-info .flex {
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
    flex-wrap: nowrap !important;
    gap: 0.25rem !important;
}

/* 专题排行标签样式 */
.topic-tag-keyword {
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 14px !important;
    color: #6b7280 !important;
    transition: all 0.3s ease !important;
    overflow: hidden !important;
    max-width: 100% !important;
}

.topic-tag-keyword:hover {
    opacity: 0.8 !important;
}
.index-rank-container .topic-tag-keyword{
    align-items: flex-start!important;
}
.index-rank-container .topic-tag-keyword:hover {
    transform: translateY(-4px) !important;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05) !important;
}   
.topic-tag-keyword:nth-child(10n+1) { background: #fee2e2 !important; color: #dc2626 !important; }
.topic-tag-keyword:nth-child(10n+2) { background: #ffedd5 !important; color: #ea580c !important; }
.topic-tag-keyword:nth-child(10n+3) { background: #fef9c3 !important; color: #ca8a04 !important; }
.topic-tag-keyword:nth-child(10n+4) { background: #dcfce7 !important; color: #16a34a !important; }
.topic-tag-keyword:nth-child(10n+5) { background: #dbeafe !important; color: #2563eb !important; }
.topic-tag-keyword:nth-child(10n+6) { background: #f3e8ff !important; color: #9333ea !important; }
.topic-tag-keyword:nth-child(10n+7) { background: #fee2e2 !important; color: #be123c !important; }
.topic-tag-keyword:nth-child(10n+8) { background: #e0f2fe !important; color: #0287eb !important; }
.topic-tag-keyword:nth-child(10n+9) { background: #f1f5f9 !important; color: #475569 !important; }
.topic-tag-keyword:nth-child(10n+10) { background: #f0fdf4 !important; color: #15803d !important; }

/* 响应式调整 */
@media (max-width: 1024px) {
    .sidebar-grid-2 {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    
    .sidebar-large .sidebar-item img {
        width: 60px !important;
        height: 50px !important;
    }
    
    .sidebar-video .sidebar-item img {
        height: 60px !important;
    }
}

@media (max-width: 768px) {
    .sidebar-grid-2 .sidebar-item img {
        height: 70px !important;
    }
    
    .sidebar-rank .sidebar-item {
        padding: 0.5rem !important;
    }
}
.screenshot-item .screenshot-overlay{
    background: rgba(0, 0, 0, 0.6);
}

/* 分页样式 */
.pagination,
.mt-6.flex.justify-center {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    padding: 20px 0;
}
.pagination .pageinfo {
    display: none;
}
.pageinfo {
    display: none;
}
.pagination a,
.mt-6.flex.justify-center a {
    display: inline-block;
    padding: 8px 16px;
    background: #fff;
    color: #4b5563;
    border-radius: 6px;
    font-size: 14px;
    transition: all 0.3s;
    text-decoration: none;
}
.pagination a:hover,
.mt-6.flex.justify-center a:hover {
    background: #ef4444;
    color: #fff;
    text-decoration: none;
}
.pagination a.curpage,
.mt-6.flex.justify-center a.curpage {
    background: #e5e7eb;
    color: #4b5563;
    font-weight: 600;
}
.pagination a.curpage:hover,
.mt-6.flex.justify-center a.curpage:hover {
    background: #ef4444;
    color: #fff;
}
.pagination a.homepage,
.mt-6.flex.justify-center a.homepage {
    background: #f3f4f6;
    color: #6b7280;
}
.pagination a.homepage:hover,
.mt-6.flex.justify-center a.homepage:hover {
    background: #ef4444;
    color: #fff;
}
.pagination a.nopage {
    cursor: not-allowed;
    color: #d1d5db;
    background: #f9fafb;
}
.pagination a.nopage:hover {
    background: #f9fafb;
    color: #d1d5db;
}
@media (max-width: 768px) {
    .pagination a,
    .mt-6.flex.justify-center a {
        padding: 6px 10px;
        font-size: 12px;
    }
}
