/* 靶场卡片样式 */

/* 靶场列表容器 */
.target-container {
    padding: 2rem; /* 恢复标准内边距 */
    width: 100%;
    max-width: 1400px; /* 参考rankings-container的最大宽度 */
    margin: 0 auto;
}

/* 新的左侧分类布局 */
.target-container.target-layout {
    display: block;
}

.target-wrapper {
    display: flex;
    gap: 1.2rem; /* 适度增加间隔，让布局更平衡 */
    margin-top: 1.5rem;
    overflow: visible; /* 允许内容溢出 */
}

.target-main-content {
    flex: 1;
    min-width: 0; /* 防止flex item溢出 */
    margin-left: 0; /* 恢复居中显示 */
}

.target-section {
    width: 100%;
    display: block;
}

/* 靶场网格特殊布局，优化为一行四个卡片 */
.target-layout .target-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); /* 减少最小宽度，支持一行四个卡片 */
    gap: 1rem; /* 减少网格间距 */
    padding-left: 0; /* 移除左侧内边距，贴近分类区域 */
    margin-left: 0; /* 确保没有额外的左边距 */
}

/* 确保靶场内容区域没有额外的边距 */
.target-layout .target-main-content .target-section {
    margin: 0; /* 移除所有边距 */
    padding: 0; /* 移除所有内边距 */
}

/* 响应式调整 - 确保不同屏幕尺寸下的合理显示 */
@media (max-width: 1200px) {
    .target-layout .target-grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); /* 中等屏幕稍微减少宽度 */
    }
}

@media (max-width: 768px) {
    .target-layout .target-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); /* 移动端恢复较大宽度，一行1-2个 */
    }
}

@media (max-width: 480px) {
    .target-layout .target-grid {
        grid-template-columns: 1fr; /* 小屏幕一行一个 */
    }
}

/* 搜索功能样式 */
.search-section {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(90, 122, 138, 0.2);
}

.search-title {
    margin-bottom: 1rem;
}

.search-title h4 {
    color: var(--text-color);
    font-size: 1rem;
    font-weight: 600;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.search-title h4 i {
    color: var(--primary-color);
    font-size: 0.9rem;
}

/* 排序功能样式 */
.sort-section {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(90, 122, 138, 0.2);
}

.sort-title {
    margin-bottom: 1rem;
}

.sort-title h4 {
    color: #999;
    font-size: 1rem;
    font-weight: 400;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.sort-title h4 i {
    color: #bbb;
    font-size: 0.9rem;
}

.sort-select {
    width: 100%;
    padding: 0.75rem 1rem;
    background: transparent;
    border: 1px solid #ddd;
    border-radius: 6px;
    color: #999;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    outline: none;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23999' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 12px;
    padding-right: 2.5rem;
}

.sort-select:hover {
    border-color: #999;
    background-color: #f5f5f5;
}

.sort-select:focus {
    border-color: #999;
    box-shadow: none;
    background-color: #f5f5f5;
}

.sort-select option {
    background: var(--card-bg);
    color: var(--text-color);
    padding: 0.5rem;
}

.search-box {
    position: relative;
    display: flex;
    align-items: center;
}

.search-input {
    width: 100%;
    padding: 0.75rem 2.5rem 0.75rem 1rem;
    background: rgba(90, 122, 138, 0.1);
    border: 1px solid rgba(90, 122, 138, 0.3);
    border-radius: 6px;
    color: var(--text-color);
    font-size: 0.9rem;
    transition: all 0.3s ease;
    outline: none;
}

.search-input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(0, 198, 255, 0.25);
    background: rgba(0, 198, 255, 0.05);
}

.search-input::placeholder {
    color: var(--text-secondary);
    opacity: 0.8;
}

.search-clear-btn {
    position: absolute;
    right: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(90, 122, 138, 0.2);
    border: none;
    border-radius: 4px;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0.25rem;
    width: 1.8rem;
    height: 1.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    opacity: 0.7;
}

.search-clear-btn:hover {
    background: rgba(255, 56, 96, 0.2);
    color: var(--danger-color);
    opacity: 1;
}

.search-clear-btn i {
    font-size: 0.7rem;
}

/* 搜索状态指示 */
.search-status {
    margin-top: 0.5rem;
    font-size: 0.8rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.search-status i {
    font-size: 0.7rem;
    color: var(--primary-color);
}

/* 搜索结果高亮 */
.search-highlight {
    background: rgba(0, 198, 255, 0.2);
    color: var(--primary-color);
    padding: 0.1rem 0.2rem;
    border-radius: 2px;
    font-weight: 600;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .search-section,
    .sort-section {
        margin-bottom: 1rem;
        padding-bottom: 1rem;
    }
    
    .search-title h4,
    .sort-title h4 {
        font-size: 0.9rem;
    }
    
    .search-input {
        padding: 0.6rem 2.2rem 0.6rem 0.8rem;
        font-size: 0.8rem;
    }
    
    .sort-select {
        padding: 0.6rem 2rem 0.6rem 0.8rem;
        font-size: 0.8rem;
    }
    
    .search-clear-btn {
        width: 1.6rem;
        height: 1.6rem;
    }
}

@media (max-width: 480px) {
    .search-input::placeholder {
        font-size: 0.8rem;
    }
    
    .search-status {
        font-size: 0.75rem;
    }
}

/* 分页跳转功能样式 */
.pagination-jump {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0 1rem;
    padding: 0.5rem;
    background: rgba(26, 31, 54, 0.6);
    border-radius: 6px;
    border: 1px solid rgba(90, 122, 138, 0.2);
}

.pagination-jump span {
    color: var(--text-secondary);
    font-size: 0.9rem;
    white-space: nowrap;
}

.pagination-input {
    width: 60px;
    padding: 0.4rem 0.6rem;
    background: rgba(90, 122, 138, 0.1);
    border: 1px solid rgba(90, 122, 138, 0.3);
    border-radius: 4px;
    color: var(--text-color);
    font-size: 0.9rem;
    text-align: center;
    transition: all 0.3s ease;
}

.pagination-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(0, 198, 255, 0.25);
    background: rgba(0, 198, 255, 0.05);
}

.pagination-input::-webkit-outer-spin-button,
.pagination-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.pagination-input[type=number] {
    -moz-appearance: textfield;
}

.pagination-jump-btn {
    padding: 0.4rem 0.6rem;
    background: var(--primary-color);
    border: none;
    border-radius: 4px;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pagination-jump-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 198, 255, 0.3);
}

.pagination-jump-btn i {
    font-size: 0.8rem;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .pagination-jump {
        margin: 0 0.5rem;
        padding: 0.3rem;
    }
    
    .pagination-jump span {
        font-size: 0.8rem;
    }
    
    .pagination-input {
        width: 50px;
        padding: 0.3rem 0.5rem;
        font-size: 0.8rem;
    }
    
    .pagination-jump-btn {
        padding: 0.3rem 0.5rem;
    }
}

@media (max-width: 480px) {
    .pagination-jump span {
        display: none; /* 小屏幕隐藏"跳转至"文字 */
    }
    
    .pagination-jump {
        margin: 0 0.3rem;
        padding: 0.2rem;
    }
}


/* 靶场卡片基础样式 */
.target-card {
    background: rgba(26, 31, 54, 0.7);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    opacity: 0;
    transform: translateY(20px);
    overflow: hidden;
    border: 1px solid rgba(0, 198, 255, 0.1);
    backdrop-filter: blur(5px);
    position: relative; /* 为通关logo提供定位上下文 */
}

.target-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.target-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--box-shadow-hover);
    border-color: rgba(0, 198, 255, 0.3);
}

/* 卡片内容区域 */
.card-content {
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    gap: 1rem; /* 进一步减少间隙 */
    position: relative;
    z-index: 1;
}

.card-content::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 80px;
    height: 80px;
    background: radial-gradient(circle at top right, rgba(0, 198, 255, 0.1), transparent 70%);
    pointer-events: none;
    z-index: -1;
}

/* 卡片头部 */
.card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.1rem; /* 进一步减少标题和下面区域的间距 */
    min-height: 3.25rem; /* 精确两行高度 */
    gap: 0.75rem;
}

.card-header h3 {
    margin: 0;
    font-size: 1.25rem;
    color: white;
    font-weight: 600;
    text-shadow: 0 0 5px rgba(0, 198, 255, 0.2);
    line-height: 1.3;
    /* 精确两行高度 */
    height: 3.25rem; /* 1.25rem × 1.3 × 2 = 3.25rem */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    word-break: break-word;
    hyphens: auto;
    flex: 1;
}

/* 卡片标签 */
.card-badge {
    font-size: 0.85rem;
    white-space: nowrap;
    flex-shrink: 0;
    line-height: 1.2;
    margin: 0 0.4rem;
}

/* 难度标签颜色 */
.difficulty-novice {
    color: #26d685;
}

.difficulty-standard {
    color: #2ecc71;
}

.difficulty-advanced {
    color: #ffb800;
}

.difficulty-elite {
    color: #ff9800;
}

.difficulty-hell {
    color: #ff5722;
}

/* 难度星星颜色 */
.difficulty-info.difficulty-novice .stars i {
    color: #26d685;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.3);
}

.difficulty-info.difficulty-novice .stars .fa-star-half-alt {
    background: linear-gradient(90deg, #26d685 50%, transparent 50%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    color: #26d685;
    text-shadow: none;
}

.difficulty-info.difficulty-standard .stars i {
    color: #2ecc71;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.3);
}

.difficulty-info.difficulty-standard .stars .fa-star-half-alt {
    background: linear-gradient(90deg, #2ecc71 50%, transparent 50%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    color: #2ecc71;
    text-shadow: none;
}

.difficulty-info.difficulty-advanced .stars i {
    color: #ffb800;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.3);
}

.difficulty-info.difficulty-advanced .stars .fa-star-half-alt {
    background: linear-gradient(90deg, #ffb800 50%, transparent 50%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    color: #ffb800;
    text-shadow: none;
}

.difficulty-info.difficulty-elite .stars i {
    color: #ff9800;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.3);
}

.difficulty-info.difficulty-elite .stars .fa-star-half-alt {
    background: linear-gradient(90deg, #ff9800 50%, transparent 50%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    color: #ff9800;
    text-shadow: none;
}

.difficulty-info.difficulty-hell .stars i {
    color: #ff5722;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.3);
}

.difficulty-info.difficulty-hell .stars .fa-star-half-alt {
    background: linear-gradient(90deg, #ff5722 50%, transparent 50%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    color: #ff5722;
    text-shadow: none;
}

/* 难度星级样式 */
.difficulty-stars {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin: 0.3rem 0 0 0; /* 进一步减少上边距 */
    background: rgba(0, 0, 0, 0.15);
    border-radius: 8px;
    padding: 0.5rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
}


.difficulty-info {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
}

.difficulty-label {
    margin-right: 0.3rem;
    color: var(--text-secondary);
    font-size: 0.85rem;
    white-space: nowrap;
}

.stars {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    margin-right: 0.75rem;
}

.stars i {
    color: var(--warning-color);
    text-shadow: 0 0 5px rgba(255, 184, 0, 0.5);
}

.stars .fa-star-half-alt {
    background: linear-gradient(90deg, var(--warning-color) 50%, transparent 50%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    color: var(--warning-color);
    text-shadow: none;
}

.stars .far.fa-star {
    color: #fff;
    text-shadow: none;
}

/* 通过人数信息样式 */
.solved-count-info {
    display: flex;
    align-items: center;
    padding: 0.2rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    margin-top: 0.1rem;
}

.solved-count-text {
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 500;
    margin-left: 0.5rem;
}

.no-flag-notice {
    color: #888;
    font-size: 0.75rem;
    font-weight: 400;
    margin-left: 0.3rem;
}

/* 时间信息样式 */
.time-info {
    display: flex;
    align-items: center;
    padding: 0.25rem 0 0.1rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    margin-top: 0.2rem;
    gap: 0.4rem;
}

.time-info i {
    color: rgba(0, 198, 255, 0.7);
    font-size: 0.75rem;
    flex-shrink: 0;
}

.time-label {
    color: var(--text-secondary);
    font-size: 0.8rem;
    font-weight: 500;
    flex-shrink: 0;
}

.time-text {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.8rem;
    font-weight: 500;
    margin-left: auto;
    white-space: nowrap;
}

/* 卡片信息区域 */
.card-info {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 0.5rem; /* 减少上边距 */
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.info-item i {
    color: var(--primary-color);
    margin-top: 0.25rem;
    filter: drop-shadow(0 0 3px rgba(0, 198, 255, 0.3));
}

.info-item p {
    margin: 0;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* 卡片操作区域 */
.card-actions {
    margin-top: auto;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    gap: 0.75rem;
    flex-direction: column;
}

/* 桌面端按钮水平布局 */
@media (min-width: 768px) {
    .card-actions {
        flex-direction: row;
        gap: 1rem;
    }
    
    .card-actions .btn {
        flex: 1;
    }
}

/* 服务器状态指示器 */
.server-status {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.server-status.primary {
    background: var(--success-color);
    box-shadow: 0 0 8px rgba(0, 214, 143, 0.3);
}

.server-status.backup {
    background: var(--warning-color);
    box-shadow: 0 0 8px rgba(255, 184, 0, 0.3);
}

/* 分类侧边栏样式 - 左侧竖向布局 */
.category-sidebar {
    width: 180px; /* 进一步减少宽度，让分类区域更紧凑 */
    flex-shrink: 0;
    background: rgba(26, 31, 54, 0.6);
    border: none; /* 移除边框消除间距 */
    border-radius: 8px;
    padding: 0.8rem 0.6rem 0.8rem 0.8rem; /* 减少右内边距，让内容更靠近靶场区域 */
    backdrop-filter: blur(3px);
    max-height: 80vh;
    overflow-y: auto;
    position: sticky;
    top: 1rem;
    z-index: 10;
    transition: all 0.3s ease;
    margin-left: 0; /* 恢复正常位置 */
}

.category-title {
    margin: 0 0 1.5rem 0;
    padding: 0;
    position: relative;
}

.category-title h3 {
    color: var(--text-color);
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.category-title h3 i {
    color: #5a7a8a;
}

.category-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    position: relative;
}

.category-item {
    margin: 0;
    position: relative;
    transition: transform 0.2s ease;
}

.category-item:hover {
    transform: translateX(5px);
}

.category-btn {
    width: 100%;
    padding: 0.8rem 1rem;
    background: rgba(90, 122, 138, 0.1);
    border: 1px solid rgba(90, 122, 138, 0.15); /* 减少边框透明度 */
    border-radius: 6px;
    color: var(--text-color);
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 500;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    text-align: left;
    backdrop-filter: blur(5px);
}

.category-btn::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(120deg, 
        rgba(0, 198, 255, 0) 0%, 
        rgba(0, 198, 255, 0.03) 40%,
        rgba(0, 198, 255, 0.05) 60%, 
        rgba(0, 198, 255, 0) 100%);
    opacity: 0;
    transition: all 0.3s ease-out;
    border-radius: 30px;
}

.category-btn::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, 
        transparent,
        var(--primary-color),
        transparent);
    opacity: 0;
    transform: scaleX(0.6);
    transition: all 0.3s ease;
}

.category-btn:hover {
    background: rgba(0, 198, 255, 0.1);
    border-color: rgba(0, 198, 255, 0.3);
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15), 0 0 5px rgba(0, 198, 255, 0.2);
    color: white;
}

.category-btn:hover::before {
    opacity: 1;
    transform: translateX(0);
}

.category-btn.active {
    background: rgba(90, 122, 138, 0.1);
    border-color: rgba(90, 122, 138, 0.3);
    color: white;
    font-weight: 600;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    letter-spacing: 0.03em;
}

.category-btn.active::before {
    opacity: 1;
    background: linear-gradient(120deg, 
        rgba(0, 198, 255, 0.05) 0%, 
        rgba(0, 198, 255, 0.1) 50%,
        rgba(127, 0, 255, 0.05) 100%);
}

.category-btn.active::after {
    opacity: 0.8;
    transform: scaleX(0.85);
}

.category-count {
    background: rgba(0, 198, 255, 0.1);
    color: rgba(255, 255, 255, 0.85);
    padding: 0.15rem 0.5rem;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 500;
    min-width: 1.4rem;
    text-align: center;
    margin-left: 0.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s cubic-bezier(0.19, 1, 0.22, 1);
    border: 1px solid rgba(0, 198, 255, 0.15);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    position: relative;
    height: 20px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    transform-origin: center;
}

.category-btn:hover .category-count {
    background: rgba(0, 198, 255, 0.15);
    border-color: rgba(0, 198, 255, 0.25);
    transform: scale(1.05);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
}

.category-btn.active .category-count {
    background: var(--primary-color);
    color: white;
    transform: scale(1.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 2px 8px rgba(0, 198, 255, 0.3);
}

.target-main-content {
    width: 100%;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .target-container {
        gap: 0.4rem;
        padding: 1rem; /* 移动端适当减少padding */
    }
    
    .target-wrapper {
        flex-direction: column;
        gap: 0.8rem; /* 移动端也适度增加间距 */
    }
    
    .category-sidebar {
        width: 100%;
        position: relative;
        max-height: none;
        margin-bottom: 0.4rem;
        padding: 1rem;
        top: auto;
        position: static;
        margin-left: 0; /* 移动端取消左边距 */
    }
    
    .target-main-content {
        width: 100%;
        margin-left: 0; /* 移动端取消左边距 */
    }
    
    .category-list {
        gap: 0.5rem;
        padding: 0;
        margin: 0;
    }
    
    .category-item {
        margin: 0;
    }
    
    .category-btn {
        padding: 0.5rem 1.1rem;
        font-size: 0.88rem;
        min-width: 90px;
        height: 38px;
    }
    
    .category-count {
        font-size: 0.65rem;
        padding: 0.1rem 0.4rem;
        margin-left: 0.4rem;
        height: 18px;
        min-width: 1.3rem;
    }
    
    .category-btn.active,
    .category-btn:hover {
        transform: translateY(-1px);
    }
}

@media (max-width: 480px) {
    .target-container {
        padding: 0.8rem; /* 小屏幕保持合适的padding */
    }
    
    .category-sidebar {
        padding: 0.3rem 0.5rem;
        margin: 0 0 0.3rem 0;
    }
    
    .category-list {
        gap: 0.4rem 0.35rem;
        flex-wrap: wrap;
        justify-content: center;
        padding: 0;
        margin: 0;
    }
    
    .category-item {
        margin: 0;
    }
    
    .category-btn {
        padding: 0.45rem 0.85rem;
        font-size: 0.82rem;
        min-width: 80px;
        height: 36px;
        border-radius: 25px;
    }
    
    .category-count {
        font-size: 0.65rem;
        padding: 0.1rem 0.3rem;
        margin-left: 0.25rem;
        height: 16px;
        min-width: 1.2rem;
    }
    
    .category-btn.active, 
    .category-btn:hover,
    .category-item:hover {
        transform: none;
    }
    
    .category-btn.active {
        box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15), 0 0 5px rgba(0, 198, 255, 0.2);
    }
    
    .card-header {
        min-height: 2.86rem; /* 1.1rem × 1.3 × 2 = 2.86rem */
        gap: 0.5rem;
    }

    .card-header h3 {
        font-size: 1.1rem;
        height: 2.86rem; /* 精确两行高度 */
        line-height: 1.3;
        -webkit-line-clamp: 2;
    }
    
    .card-badge {
        font-size: 0.7rem;
        padding: 0.2rem 0.6rem;
    }
}

/* 中等屏幕适配 */
@media (min-width: 769px) and (max-width: 1024px) {
    .category-sidebar {
        padding: 0.5rem 0.7rem;
        margin-left: 0; /* 中等屏幕恢复正常位置 */
    }
    
    .category-btn {
        padding: 0.55rem 1.2rem;
        font-size: 0.9rem;
        height: 40px;
        min-width: 95px;
    }
    
    .category-count {
        height: 19px;
        font-size: 0.68rem;
    }
    
    .category-list {
        gap: 0.5rem;
        padding: 0;
        margin: 0;
    }
    
    .card-header {
        min-height: 2.875rem; /* 1.15rem × 1.25 × 2 = 2.875rem */
    }

    .card-header h3 {
        font-size: 1.15rem;
        height: 2.875rem; /* 精确两行高度 */
        line-height: 1.25;
        -webkit-line-clamp: 2;
    }
}

/* 分类组件滚动条样式 */
.category-sidebar::-webkit-scrollbar {
    width: 4px;
}

.category-sidebar::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
}

.category-sidebar::-webkit-scrollbar-thumb {
    background: linear-gradient(to bottom, rgba(0, 198, 255, 0.3), rgba(127, 0, 255, 0.3));
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.category-sidebar::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(to bottom, rgba(0, 198, 255, 0.4), rgba(127, 0, 255, 0.4));
    box-shadow: 0 0 5px rgba(0, 198, 255, 0.3);
}

/* 通关水印印章样式 */
.cleared-stamp {
    position: absolute;
    top: 35%;
    right: 10px;
    width: 120px;
    height: 120px;
    transform: translateY(-50%) rotate(-15deg);
    pointer-events: none;
    z-index: 8;
    opacity: 0.15;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.cleared-card .cleared-stamp {
    opacity: 0.25;
}

.cleared-card:hover .cleared-stamp {
    opacity: 0.35;
    transform: translateY(-50%) rotate(-12deg) scale(1.05);
}

.stamp-inner {
    width: 100%;
    height: 100%;
    border: 4px solid #00df77;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: 
        radial-gradient(circle at 30% 30%, rgba(0, 168, 112, 0.4), transparent 70%),
        radial-gradient(circle at 70% 70%, rgba(0, 133, 89, 0.3), transparent 60%),
        linear-gradient(45deg, rgba(0, 168, 112, 0.2), rgba(0, 133, 89, 0.3));
    position: relative;
    overflow: hidden;
}

.stamp-inner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border: 2px dashed rgba(0, 168, 112, 0.8);
    border-radius: 50%;
    margin: 8px;
}


.stamp-inner i {
    font-size: 32px;
    color: #00df77;
    margin-bottom: 4px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
    z-index: 2;
}

.stamp-text {
    font-size: 14px;
    font-weight: 900;
    color: #00a85a;
    text-shadow: 
        0 1px 2px rgba(0, 0, 0, 0.3),
        0 0 10px rgba(0, 168, 112, 0.4);
    letter-spacing: 1px;
    z-index: 2;
    text-transform: uppercase;
}

/* 已通关卡片样式增强 */
.cleared-card {
    border-color: rgba(0, 214, 143, 0.3) !important;
    background: 
        rgba(26, 31, 54, 0.7),
        linear-gradient(135deg, rgba(0, 214, 143, 0.03), transparent 60%);
    position: relative;
}

.cleared-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        135deg,
        rgba(0, 214, 143, 0.05) 0%,
        transparent 30%,
        transparent 70%,
        rgba(0, 168, 112, 0.05) 100%
    );
    border-radius: inherit;
    pointer-events: none;
    z-index: 1;
}

.cleared-card .card-content {
    position: relative;
    z-index: 2;
}

.cleared-card:hover {
    border-color: rgba(0, 214, 143, 0.5) !important;
    box-shadow: 
        var(--box-shadow-hover),
        0 0 20px rgba(0, 214, 143, 0.15) !important;
}

/* 响应式适配 */
@media (max-width: 768px) {
    .cleared-stamp {
        width: 100px;
        height: 100px;
        right: 8px;
        top: 30%;
    }
    
    .stamp-inner i {
        font-size: 26px;
    }
    
    .stamp-text {
        font-size: 12px;
    }
    
    .stamp-inner::before {
        margin: 6px;
    }
    
    /* 通过人数信息平板端适配 */
    .solved-count-info {
        padding: 0.18rem 0;
    }
    
    .solved-count-text {
        font-size: 0.8rem;
    }
    
    /* 时间信息平板端适配 */
    .time-info {
        padding: 0.2rem 0 0.1rem 0;
        gap: 0.3rem;
    }
    
    .time-info i {
        font-size: 0.7rem;
    }
    
    .time-label {
        font-size: 0.75rem;
    }
    
    .time-text {
        font-size: 0.75rem;
    }
}

@media (max-width: 480px) {
    .cleared-stamp {
        width: 85px;
        height: 85px;
        right: 6px;
        top: 25%;
        opacity: 0.12;
    }
    
    .cleared-card .cleared-stamp {
        opacity: 0.2;
    }
    
    .stamp-inner i {
        font-size: 22px;
        margin-bottom: 2px;
    }
    
    .stamp-text {
        font-size: 10px;
        letter-spacing: 0.5px;
    }
    
    .stamp-inner::before {
        margin: 5px;
        border-width: 1px;
    }
    
    .stamp-inner {
        border-width: 3px;
    }
    
    /* 通过人数信息移动端适配 */
    .solved-count-info {
        padding: 0.15rem 0;
    }
    
    .solved-count-text {
        font-size: 0.75rem;
    }
    
    /* 时间信息移动端适配 */
    .time-info {
        padding: 0.18rem 0 0.1rem 0;
        gap: 0.25rem;
    }
    
    .time-info i {
        font-size: 0.65rem;
    }
    
    .time-label {
        font-size: 0.7rem;
    }
    
    .time-text {
        font-size: 0.7rem;
    }
}
