/* 全局样式 - 清新蓝绿色调 */
:root {
    --primary-color: #0891b2;       /* 青色主色 */
    --primary-light: #22d3ee;        /* 浅青色 */
    --primary-dark: #0e7490;         /* 深青色 */
    --secondary-color: #64748b;      /* 灰蓝色 */
    --success-color: #10b981;        /* 绿色 */
    --danger-color: #ef4444;         /* 红色 */
    --warning-color: #f59e0b;        /* 橙色 */
    --info-color: #06b6d4;           /* 青色 */
    --light-bg: #f0fdfa;             /* 浅青背景 */
    --card-bg: #ffffff;              /* 卡片白色 */
    --text-primary: #1e293b;         /* 深灰文字 */
    --text-secondary: #64748b;       /* 浅灰文字 */
    --border-color: #e2e8f0;         /* 边框色 */
}

* {
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: #f8fafc;
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    line-height: 1.6;
}

main {
    flex: 1;
}

/* 导航栏 - 清新青色 */
.navbar {
    background: linear-gradient(135deg, #0891b2 0%, #06b6d4 100%) !important;
    box-shadow: 0 2px 10px rgba(8, 145, 178, 0.15);
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.4rem;
    letter-spacing: -0.5px;
}

.navbar .nav-link {
    color: rgba(255, 255, 255, 0.9) !important;
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.navbar .nav-link:hover {
    color: #ffffff !important;
    background-color: rgba(255, 255, 255, 0.15);
}

.navbar .nav-link.active {
    background-color: rgba(255, 255, 255, 0.2);
}

.navbar .dropdown-menu {
    border: none;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    padding: 0.5rem;
}

.navbar .dropdown-item {
    border-radius: 8px;
    padding: 0.6rem 1rem;
    color: var(--text-primary);
    transition: all 0.2s ease;
}

.navbar .dropdown-item:hover {
    background-color: var(--light-bg);
    color: var(--primary-color);
}

/* 卡片样式 */
.card {
    border: 1px solid var(--border-color);
    border-radius: 16px;
    background: var(--card-bg);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    overflow: hidden;
}

.card:hover {
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

.card-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    border-bottom: none;
    border-radius: 16px 16px 0 0 !important;
    font-weight: 600;
    color: white;
    padding: 1.25rem 1.5rem;
}

.card-header:not(.text-white) {
    background: linear-gradient(135deg, var(--light-bg) 0%, #ffffff 100%);
    color: var(--text-primary);
}

.card-body {
    padding: 1.25rem;
}

.card-body {
    padding: 1.25rem;
}

/* 按钮样式 */
.btn {
    border-radius: 10px;
    font-weight: 600;
    padding: 0.6rem 1.25rem;
    transition: all 0.3s ease;
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(8, 145, 178, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(8, 145, 178, 0.4);
    color: white;
}

.btn-success {
    background: linear-gradient(135deg, #10b981 0%, #34d399 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.btn-success:hover {
    background: linear-gradient(135deg, #059669 0%, #10b981 100%);
    color: white;
    transform: translateY(-2px);
}

.btn-danger {
    background: linear-gradient(135deg, #ef4444 0%, #f87171 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

.btn-danger:hover {
    background: linear-gradient(135deg, #dc2626 0%, #ef4444 100%);
    color: white;
}

.btn-outline-primary {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    background: transparent;
}

.btn-outline-primary:hover {
    background: var(--primary-color);
    color: white;
}

.btn-secondary {
    background: #f1f5f9;
    color: var(--text-secondary);
    border: none;
}

.btn-secondary:hover {
    background: #e2e8f0;
    color: var(--text-primary);
}

/* 表格样式 */
.table {
    background-color: white;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 0;
}

.table thead {
    background: linear-gradient(135deg, var(--light-bg) 0%, #ffffff 100%);
}

.table thead th {
    border-bottom: 2px solid var(--border-color);
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 1rem;
}

.table tbody td {
    padding: 1rem;
    vertical-align: middle;
    border-bottom: 1px solid var(--border-color);
}

.table tbody tr:hover {
    background-color: var(--light-bg);
}

/* 表单样式 */
.form-control, .form-select {
    border: 2px solid var(--border-color);
    border-radius: 10px;
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(8, 145, 178, 0.1);
}

.form-label {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

/* 搜索表单 */
.search-form {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

/* 结果卡片 */
.result-card {
    border-left: 4px solid var(--primary-color);
    background: white;
}

.result-card .card-title {
    color: var(--primary-color);
    font-weight: 600;
}

/* 徽章样式 */
.badge {
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.75rem;
}

.badge-感兴趣 {
    background: linear-gradient(135deg, #10b981 0%, #34d399 100%);
    color: white;
}

.badge-无兴趣 {
    background: #f1f5f9;
    color: var(--text-secondary);
}

/* 状态指示器 */
.status-badge {
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.status-completed {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
}

.status-pending {
    background: rgba(245, 158, 11, 0.1);
    color: #f59e0b;
}

.status-failed {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

/* 警告提示 */
.alert {
    border-radius: 12px;
    border: none;
    padding: 1rem 1.25rem;
}

.alert-success {
    background: rgba(16, 185, 129, 0.1);
    color: #059669;
}

.alert-danger {
    background: rgba(239, 68, 68, 0.1);
    color: #dc2626;
}

.alert-warning {
    background: rgba(245, 158, 11, 0.1);
    color: #d97706;
}

.alert-info {
    background: rgba(6, 182, 212, 0.1);
    color: var(--primary-color);
}

/* 页脚 */
footer {
    margin-top: auto;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-top: 1px solid var(--border-color);
}

footer p {
    color: var(--text-secondary);
}

/* 加载动画 */
.spinner-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 200px;
}

.spinner-border {
    color: var(--primary-color);
}

/* 模态框 */
.modal-content {
    border: none;
    border-radius: 16px;
    overflow: hidden;
}

.modal-header {
    background: linear-gradient(135deg, var(--light-bg) 0%, #ffffff 100%);
    border-bottom: 1px solid var(--border-color);
}

.modal-footer {
    background: var(--light-bg);
    border-top: 1px solid var(--border-color);
}

/* 标签页 */
.nav-tabs {
    border-bottom: 2px solid var(--border-color);
}

.nav-tabs .nav-link {
    border: none;
    color: var(--text-secondary);
    font-weight: 500;
    padding: 0.75rem 1.25rem;
    border-radius: 8px 8px 0 0;
    transition: all 0.3s ease;
}

.nav-tabs .nav-link:hover {
    color: var(--primary-color);
    background: var(--light-bg);
}

.nav-tabs .nav-link.active {
    color: var(--primary-color);
    background: var(--light-bg);
    border-bottom: 3px solid var(--primary-color);
}

/* 进度条 */
.progress {
    border-radius: 10px;
    height: 8px;
    background: var(--border-color);
}

.progress-bar {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    border-radius: 10px;
}

/* 输入组 */
.input-group-text {
    background: var(--light-bg);
    border: 2px solid var(--border-color);
    border-right: none;
    color: var(--text-secondary);
    border-radius: 10px 0 0 10px;
}

.input-group .form-control {
    border-left: none;
    border-radius: 0 10px 10px 0;
}

.input-group .form-control:focus {
    border-left: none;
}

/* 分页 */
.pagination {
    gap: 0.5rem;
}

.pagination .page-link {
    border: none;
    border-radius: 10px;
    padding: 0.6rem 1rem;
    color: var(--text-primary);
    background: white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.pagination .page-link:hover {
    background: var(--light-bg);
    color: var(--primary-color);
}

.pagination .page-item.active .page-link {
    background: var(--primary-color);
    color: white;
}

/* 自定义工具类 */
.rounded-lg {
    border-radius: 12px;
}

.shadow-sm {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.shadow-md {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.shadow-lg {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

/* 响应式调整 */
@media (max-width: 768px) {
    .search-form {
        padding: 1.5rem;
    }
    
    .card {
        margin-bottom: 1rem;
    }
    
    .navbar .nav-link {
        padding: 0.5rem 0.75rem !important;
    }
}

/* 动画效果 */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.3s ease-out;
}

/* 高亮行 */
.high-interest-row {
    background: rgba(16, 185, 129, 0.05) !important;
    border-left: 3px solid #10b981;
}

/* 统计卡片 */
.stat-card {
    border: none;
    border-radius: 12px;
    transition: transform 0.2s;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
}

.stat-card:hover {
    transform: translateY(-2px);
}

.stat-card .card-body {
    padding: 1rem;
}

.stat-card h3 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.stat-card small {
    font-size: 0.8rem;
    opacity: 0.9;
}

/* 列表项 */
.list-group-item {
    border: none;
    border-bottom: 1px solid var(--border-color);
    transition: all 0.2s;
}

.list-group-item:hover {
    background: var(--light-bg);
}

.list-group-item:last-child {
    border-bottom: none;
}
