/* 分类页面 */
.filter-section {
    background-color: #fff;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.filter-row {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.filter-row:last-of-type {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.filter-label {
    width: 60px;
    font-size: 14px;
    color: #333;
    font-weight: bold;
    flex-shrink: 0;
    padding-top: 5px;
}

.filter-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    flex: 1;
}

.filter-list li a {
    display: block;
    padding: 5px 15px;
    font-size: 14px;
    color: #666;
    border-radius: 15px;
    transition: all 0.3s;
}

.filter-list li a:hover,
.filter-list li a.active {
    background-color: #ff6b35;
    color: #fff;
}

.filter-toggle {
    text-align: center;
    padding-top: 15px;
    color: #999;
    font-size: 14px;
    cursor: pointer;
    border-top: 1px solid #eee;
}

.filter-section.collapsed .filter-row {
    display: none;
}

/* 结果区域 */
.result-section {
    background-color: #fff;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.result-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.sort-tabs {
    display: flex;
    gap: 20px;
}

.sort-tabs a {
    font-size: 14px;
    color: #666;
    padding: 5px 0;
    position: relative;
}

.sort-tabs a.active {
    color: #ff6b35;
}

.sort-tabs a.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background-color: #ff6b35;
}

.result-count {
    font-size: 14px;
    color: #999;
}

/* 漫画网格 - 横向排列 */
.comic-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
}

.comic-grid-item {
    display: block;
    transition: transform 0.3s;
}

.comic-grid-item:hover {
    transform: translateY(-5px);
}

.grid-cover {
    position: relative;
    padding-top: 133%; /* 3:4 竖向比例 */
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 10px;
}

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

.grid-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 10px;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
}

.grid-desc {
    font-size: 12px;
    color: rgba(255,255,255,0.9);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.grid-title {
    font-size: 14px;
    font-weight: bold;
    color: #333;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.grid-update {
    font-size: 12px;
    color: #666;
    margin-bottom: 3px;
}

.grid-update span {
    color: #ff6b35;
}

.grid-hits {
    font-size: 12px;
    color: #999;
}

@media (max-width: 1200px) {
    .comic-grid {
        grid-template-columns: repeat(5, 1fr);
    }
}

@media (max-width: 1024px) {
    .comic-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 768px) {
    .comic-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 480px) {
    .comic-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* 漫画详情提示框 */
.comic-tooltip {
    position: absolute;
    display: none;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
    padding: 15px;
    z-index: 9999;
    width: 320px;
    flex-direction: row;
    gap: 15px;
}

.tooltip-cover {
    width: 100px;
    height: 130px;
    border-radius: 4px;
    overflow: hidden;
    flex-shrink: 0;
}

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

.tooltip-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

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

.tooltip-author {
    font-size: 12px;
    color: #666;
    margin-bottom: 5px;
}

.tooltip-author span {
    color: #1890ff;
}

.tooltip-desc {
    font-size: 12px;
    color: #999;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.tooltip-update {
    font-size: 12px;
    color: #666;
    margin-bottom: 3px;
}

.tooltip-update span {
    color: #ff6b35;
}

.tooltip-hits {
    font-size: 12px;
    color: #999;
}
