/* 搜索页面专用样式 */
.search-section {
    background: linear-gradient(135deg, 
        rgba(37, 99, 235, 0.1) 0%, 
        rgba(101, 126, 234, 0.1) 50%, 
        rgba(118, 75, 162, 0.1) 100%);
    padding: 80px 0 40px;
    backdrop-filter: blur(10px);
}

.search-header {
    padding: 40px 0;
}

.search-header h1 {
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 20px;
}

.main-search {
    max-width: 800px;
    margin: 0 auto;
}

.search-input {
    border: 2px solid #e2e8f0;
    border-radius: 50px;
    padding: 20px 30px;
    font-size: 1.2rem;
    background: rgba(255, 255, 255, 0.95);
    transition: all 0.3s ease;
}

.search-input:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
    background: rgba(255, 255, 255, 1);
}

.search-btn {
    background: linear-gradient(135deg, #667eea, #764ba2);
    border: none;
    border-radius: 50px;
    padding: 20px 40px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.search-btn:hover {
    background: linear-gradient(135deg, #5a67d8, #6b46c1);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.3);
}

/* 高级搜索面板 */
.advanced-search-panel .card {
    border: none;
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.advanced-search-panel .card-header {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-bottom: 1px solid #dee2e6;
    padding: 20px;
}

.advanced-search-panel .card-body {
    padding: 30px;
}

/* 统计卡片 */
.stats-card {
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: space-around;
    align-items: center;
}

.stat-item {
    text-align: center;
    padding: 0 20px;
}

.stat-item i {
    font-size: 2.5rem;
    color: #667eea;
    margin-bottom: 15px;
    display: block;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2d3748;
    display: block;
    margin-bottom: 5px;
}

.stat-label {
    color: #718096;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* 数据表格卡片 */
.data-table-card {
    border: none;
    border-radius: 15px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.data-table-card .card-header {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 20px 30px;
    border: none;
}

.data-table-card .card-body {
    padding: 0;
}

/* 表格样式 */
.table {
    margin-bottom: 0;
}

.table th {
    background: linear-gradient(135deg, #4a5568, #2d3748);
    color: white;
    font-weight: 600;
    padding: 15px 20px;
    border: none;
    position: sticky;
    top: 0;
}

.table td {
    padding: 12px 20px;
    vertical-align: middle;
    border-color: #e2e8f0;
}

.table-hover tbody tr:hover {
    background-color: rgba(102, 126, 234, 0.05);
    transition: background-color 0.2s ease;
}

/* 响应式表格 */
@media (max-width: 768px) {
    .stats-card {
        flex-direction: column;
        gap: 30px;
    }
    
    .stat-item {
        padding: 20px 0;
    }
    
    .table-responsive {
        border-radius: 10px;
        overflow: hidden;
    }
    
    .data-table-card .card-header {
        padding: 15px 20px;
    }
}

/* 加载状态 */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    backdrop-filter: blur(5px);
}

.loading-content {
    text-align: center;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}

/* 错误提示 */
.error-toast {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #f56565;
    color: white;
    padding: 15px 20px;
    border-radius: 10px;
    box-shadow: 0 10px 25px rgba(245, 101, 101, 0.3);
    z-index: 1000;
    animation: slideInRight 0.3s ease;
}

/* 成功提示 */
.success-toast {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #48bb78;
    color: white;
    padding: 15px 20px;
    border-radius: 10px;
    box-shadow: 0 10px 25px rgba(72, 187, 120, 0.3);
    z-index: 1000;
    animation: slideInRight 0.3s ease;
}

/* 动画 */
@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

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

/* 选择框样式 */
.select2-container--bootstrap-5 .select2-selection {
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    padding: 10px;
    transition: all 0.3s ease;
}

.select2-container--bootstrap-5 .select2-selection:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
}

/* 表格操作按钮 */
.table-actions .btn {
    border-radius: 8px;
    padding: 8px 16px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.table-actions .btn:hover {
    transform: translateY(-2px);
}

/* 重要行样式 */
.important-row {
    background-color: rgba(255, 237, 213, 0.5) !important;
}

.important-row:hover {
    background-color: rgba(255, 237, 213, 0.8) !important;
}

/* 移动端优化 */
@media (max-width: 576px) {
    .search-input {
        font-size: 1rem;
        padding: 15px 20px;
    }
    
    .search-btn {
        padding: 15px 25px;
        font-size: 1rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .table th,
    .table td {
        padding: 10px 15px;
        font-size: 0.9rem;
    }
}

/* 暗色模式支持 */
@media (prefers-color-scheme: dark) {
    .search-section {
        background: linear-gradient(135deg, 
            rgba(37, 99, 235, 0.2) 0%, 
            rgba(101, 126, 234, 0.2) 50%, 
            rgba(118, 75, 162, 0.2) 100%);
    }
    
    .search-input {
        background: rgba(45, 55, 72, 0.9);
        border-color: #4a5568;
        color: white;
    }
    
    .data-table-card {
        background: #2d3748;
    }
    
    .table {
        color: #e2e8f0;
    }
    
    .table td {
        border-color: #4a5568;
    }
}