/* 自定义样式 */
.search-highlight {
    background-color: #fef3c7;
    padding: 0 2px;
    border-radius: 2px;
}

/* 优化的高亮样式 - 更好的间距和视觉效果 */
mark {
    /* 重置默认的mark样式 */
    background-color: transparent;
    padding: 0;
    margin: 0;
}

/* 完整词高亮 - 仅红色文字 */
mark.bg-yellow-200 {
    background-color: transparent !important;
    color: #dc2626 !important;
    padding: 0 !important;
    border-radius: 0 !important;
    font-weight: 600 !important;
    line-height: 1.2 !important;
    border: none !important;
}

/* 字符高亮 - 仅红色文字 */
mark.bg-blue-50 {
    background-color: transparent !important;
    color: #dc2626 !important;
    padding: 0 !important;
    margin: 0 !important;
    border-radius: 0 !important;
    line-height: 1.2 !important;
    font-weight: 500 !important;
    border: none !important;
}

/* 确保高亮文本的自然流动 */
mark + mark {
    margin-left: 0 !important;
}

/* 防止高亮破坏文本布局 */
.highlight-container {
    line-height: 1.4;
    word-break: break-word;
}

/* 磁力链接样式 */
.magnet-link {
    word-break: break-all;
    font-family: 'Courier New', Courier, monospace;
    font-size: 12px;
    background-color: #f9fafb;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    padding: 8px;
}

/* 文件大小标签 */
.size-tag {
    background: linear-gradient(45deg, #3b82f6, #1d4ed8);
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 500;
}

/* 动画效果 */
.fade-in {
    animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* 响应式表格 */
@media (max-width: 768px) {
    .table-responsive {
        font-size: 14px;
    }
    
    .table-responsive th,
    .table-responsive td {
        padding: 8px 4px;
    }
}

/* 搜索框焦点效果 */
.search-input:focus {
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
    border-color: #3b82f6;
}

/* 加载动画 */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #3b82f6;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
} 