/* 智策股析 - 自定义样式 */

/* 页面布局优化 */
body {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    min-height: 100vh;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #333;
}

.container-xl {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1rem;
}

@media (min-width: 1400px) {
    .container-xl {
        max-width: 1320px;
    }
}

@media (max-width: 1399.98px) {
    .container-xl {
        max-width: 1140px;
    }
}

@media (max-width: 1199.98px) {
    .container-xl {
        max-width: 960px;
    }
}

@media (max-width: 991.98px) {
    .container-xl {
        max-width: 720px;
    }
}

@media (max-width: 767.98px) {
    .container-xl {
        max-width: 540px;
    }
}

@media (max-width: 575.98px) {
    .container-xl {
        max-width: 100%;
        padding: 0 0.75rem;
    }
}

/* 玻璃效果卡片 */
.glass-effect {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(102, 126, 234, 0.1);
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

/* 渐变文字 */
.gradient-text {
    background: linear-gradient(45deg, #1976d2, #42a5f5);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 600;
}

/* 页面标题图标样式 */
.gradient-text i {
    font-size: 1.2em;
    margin-right: 0.75rem;
    color: #667eea;
    opacity: 0.8;
    -webkit-text-fill-color: #667eea;
    background: none;
    -webkit-background-clip: unset;
    background-clip: unset;
}

.gradient-text:hover i {
    opacity: 1;
    transform: scale(1.05);
    transition: all 0.3s ease;
}

/* 统一高度样式 */
.form-select, .custom-select select, .btn {
    height: 52px !important;
    line-height: 1.5 !important;
}

/* 按钮基础样式 */
.btn {
    border-radius: 12px;
    font-weight: 500;
    font-size: 0.95rem;
    padding: 12px 24px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.btn:active {
    transform: translateY(0);
    transition: transform 0.1s ease;
}

/* 主要按钮样式 */
.btn-primary {
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    color: white;
    border-color: #4f46e5;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #4338ca 0%, #6d28d9 100%);
    border-color: #4338ca;
    color: white;
    box-shadow: 0 4px 16px rgba(79, 70, 229, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(45deg, #1565c0, #1e88e5);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(25, 118, 210, 0.4);
    color: white;
}

/* 成功按钮样式 */
.btn-success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    border-color: #10b981;
}

.btn-success:hover {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    border-color: #059669;
    color: white;
    box-shadow: 0 4px 16px rgba(16, 185, 129, 0.3);
}

/* 危险按钮样式 */
.btn-danger {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    border-color: #ef4444;
}

.btn-danger:hover {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    border-color: #dc2626;
    color: white;
    box-shadow: 0 4px 16px rgba(239, 68, 68, 0.3);
}

/* 警告按钮样式 */
.btn-warning {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
    border-color: #f59e0b;
}

.btn-warning:hover {
    background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
    border-color: #d97706;
    color: white;
    box-shadow: 0 4px 16px rgba(245, 158, 11, 0.3);
}

/* 信息按钮样式 */
.btn-info {
    background: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%);
    color: white;
    border-color: #06b6d4;
}

.btn-info:hover {
    background: linear-gradient(135deg, #0891b2 0%, #0e7490 100%);
    border-color: #0891b2;
    color: white;
    box-shadow: 0 4px 16px rgba(6, 182, 212, 0.3);
}

/* 轮廓按钮样式 */
.btn-outline-primary {
    background: transparent;
    color: #4f46e5;
    border-color: #4f46e5;
    box-shadow: 0 2px 8px rgba(79, 70, 229, 0.1);
}

.btn-outline-primary:hover {
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    color: white;
    border-color: #4f46e5;
    box-shadow: 0 4px 16px rgba(79, 70, 229, 0.3);
}

.btn-outline-success {
    background: transparent;
    color: #10b981;
    border-color: #10b981;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.1);
}

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

.btn-outline-danger {
    background: transparent;
    color: #ef4444;
    border-color: #ef4444;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.1);
}

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

.btn-outline-warning {
    background: transparent;
    color: #f59e0b;
    border-color: #f59e0b;
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.1);
}

.btn-outline-warning:hover {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
    border-color: #f59e0b;
    box-shadow: 0 4px 16px rgba(245, 158, 11, 0.3);
}

.btn-outline-info {
    background: transparent;
    color: #06b6d4;
    border-color: #06b6d4;
    box-shadow: 0 2px 8px rgba(6, 182, 212, 0.1);
}

.btn-outline-info:hover {
    background: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%);
    color: white;
    border-color: #06b6d4;
    box-shadow: 0 4px 16px rgba(6, 182, 212, 0.3);
}

.btn-outline-secondary {
    background: transparent;
    color: #6b7280;
    border-color: #d1d5db;
    box-shadow: 0 2px 8px rgba(107, 114, 128, 0.1);
}

.btn-outline-secondary:hover {
    background: linear-gradient(135deg, #6b7280 0%, #4b5563 100%);
    color: white;
    border-color: #6b7280;
    box-shadow: 0 4px 16px rgba(107, 114, 128, 0.3);
}

/* 小按钮样式 */
.btn-sm {
    height: 40px !important;
    padding: 8px 16px;
    font-size: 0.875rem;
    border-radius: 8px;
}

/* 大按钮样式 */
.btn-lg {
    height: 60px !important;
    padding: 16px 32px;
    font-size: 1.1rem;
    border-radius: 16px;
}

/* 按钮组样式 */
.btn-group .btn {
    border-radius: 0;
}

.btn-group .btn:first-child {
    border-top-left-radius: 12px;
    border-bottom-left-radius: 12px;
}

.btn-group .btn:last-child {
    border-top-right-radius: 12px;
    border-bottom-right-radius: 12px;
}

/* 禁用状态 */
.btn:disabled, .btn.disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08) !important;
}

.btn:disabled:hover, .btn.disabled:hover {
    transform: none !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08) !important;
}

/* 任务管理按钮样式 */
.task-actions {
    display: flex;
    gap: 8px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

.task-actions .btn {
    min-width: 80px;
    height: 36px;
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: 8px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.task-actions .btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.task-actions .btn-outline-primary {
    background: rgba(79, 70, 229, 0.05);
    border: 1px solid rgba(79, 70, 229, 0.2);
    color: #4f46e5;
}

.task-actions .btn-outline-primary:hover {
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    border-color: #4f46e5;
    color: white;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
}

.task-actions .btn-outline-success {
    background: rgba(16, 185, 129, 0.05);
    border: 1px solid rgba(16, 185, 129, 0.2);
    color: #10b981;
}

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

.task-actions .btn-outline-warning {
    background: rgba(245, 158, 11, 0.05);
    border: 1px solid rgba(245, 158, 11, 0.2);
    color: #f59e0b;
}

.task-actions .btn-outline-warning:hover {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    border-color: #f59e0b;
    color: white;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

/* 报告操作按钮样式 */
.report-action-btn {
    min-width: 120px;
    height: 44px;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.report-action-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.report-action-btn:hover::before {
    left: 100%;
}

.report-action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* 批量导出按钮 */
.report-action-btn.btn-outline-primary {
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.05) 0%, rgba(124, 58, 237, 0.05) 100%);
    border-color: rgba(79, 70, 229, 0.2);
    color: #4f46e5;
}

.report-action-btn.btn-outline-primary:hover {
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    border-color: #4f46e5;
    color: white;
    box-shadow: 0 8px 25px rgba(79, 70, 229, 0.3);
}

/* 新建分析按钮 */
.report-action-btn.btn-primary {
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    border-color: #4f46e5;
    color: white;
    box-shadow: 0 4px 15px rgba(79, 70, 229, 0.3);
}

.report-action-btn.btn-primary:hover {
    background: linear-gradient(135deg, #4338ca 0%, #6d28d9 100%);
    border-color: #4338ca;
    color: white;
    box-shadow: 0 8px 25px rgba(79, 70, 229, 0.4);
}

/* 按钮激活状态 */
.report-action-btn:active {
    transform: translateY(0);
    transition: transform 0.1s ease;
}

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

@keyframes gentleSuccess {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

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

.gentle-success {
    animation: gentleSuccess 0.6s ease-in-out;
}

/* 分页样式 */
.pagination {
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.pagination .page-link {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(102, 126, 234, 0.2);
    color: #667eea;
    transition: all 0.3s ease;
    margin: 0 2px;
    border-radius: 8px;
    min-width: 40px;
    text-align: center;
    font-weight: 500;
}

.pagination .page-link:hover {
    background: rgba(102, 126, 234, 0.1);
    border-color: rgba(102, 126, 234, 0.4);
    color: #667eea;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.2);
}

.pagination .page-item.active .page-link {
    background: linear-gradient(45deg, #667eea, #764ba2);
    border-color: transparent;
    color: #fff;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.pagination .page-item.disabled .page-link {
    background: rgba(255, 255, 255, 0.5);
    border-color: rgba(102, 126, 234, 0.1);
    color: rgba(102, 126, 234, 0.5);
    cursor: not-allowed;
}

.pagination .page-item.disabled .page-link:hover {
    transform: none;
    box-shadow: none;
}

/* 分页信息 */
.pagination-info {
    text-align: center;
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

/* 响应式分页 */
@media (max-width: 768px) {
    .pagination .page-link {
        min-width: 35px;
        font-size: 0.9rem;
        padding: 0.5rem 0.75rem;
    }
    
    .pagination .page-item:not(.active):not(:first-child):not(:last-child) .page-link {
        display: none;
    }
    
    .pagination .page-item:first-child .page-link,
    .pagination .page-item:last-child .page-link,
    .pagination .page-item.active .page-link {
        display: block;
    }
}

/* 表格样式优化 */
.table {
    background: rgba(255, 255, 255, 0.98);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

.table thead th {
    background: linear-gradient(45deg, #1976d2, #42a5f5);
    border-bottom: 2px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
}

.table tbody tr {
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.95);
}

.table tbody tr:hover {
    background: rgba(25, 118, 210, 0.08);
    transform: scale(1.005);
}

.table tbody td {
    border-color: rgba(0, 0, 0, 0.05);
    color: #333;
    vertical-align: middle;
}

/* 深色表格的特殊样式 */
.table-dark {
    background: rgba(255, 255, 255, 0.98) !important;
}

.table-dark thead th {
    background: linear-gradient(45deg, #667eea, #764ba2) !important;
    color: #fff !important;
    border-color: rgba(255, 255, 255, 0.2) !important;
}

.table-dark tbody tr {
    background: rgba(255, 255, 255, 0.95) !important;
    color: #333 !important;
}

.table-dark tbody tr:hover {
    background: rgba(102, 126, 234, 0.08) !important;
}

.table-dark tbody td {
    border-color: rgba(0, 0, 0, 0.05) !important;
    color: #333 !important;
}

/* 徽章样式 */
.badge {
    font-size: 0.75rem;
    padding: 0.5em 0.9em;
    border-radius: 8px;
    font-weight: 500;
    border: 1px solid transparent;
    transition: all 0.3s ease;
}

.badge.bg-primary {
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%) !important;
    border-color: #4f46e5;
}

.badge.bg-success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
    border-color: #10b981;
}

.badge.bg-danger {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%) !important;
    border-color: #ef4444;
}

.badge.bg-warning {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%) !important;
    border-color: #f59e0b;
}

.badge.bg-info {
    background: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%) !important;
    border-color: #06b6d4;
}

/* 搜索框样式 */
.form-control, .form-select {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(102, 126, 234, 0.2);
    color: #333;
    transition: all 0.3s ease;
}

.form-control:focus, .form-select:focus {
    background: rgba(255, 255, 255, 1);
    border-color: rgba(102, 126, 234, 0.4);
    color: #333;
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
}

.form-control::placeholder {
    color: #999;
}

/* Toast 消息样式 */
.toast-container {
    z-index: 9999;
}

.toast {
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
}

/* 导航栏样式优化 */
.navbar {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(102, 126, 234, 0.15);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
    padding: 0.75rem 0;
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
}

.navbar-nav .nav-link {
    color: #333 !important;
    font-weight: 500;
    padding: 0.75rem 1rem !important;
    border-radius: 8px;
    margin: 0 0.25rem;
    transition: all 0.3s ease;
    position: relative;
}

.navbar-nav .nav-link:hover {
    color: #1976d2 !important;
    background: rgba(25, 118, 210, 0.1);
    transform: translateY(-1px);
}

.navbar-nav .nav-link.active {
    color: #1976d2 !important;
    background: rgba(25, 118, 210, 0.15);
    font-weight: 600;
}

.navbar-nav .nav-link i {
    font-size: 0.9rem;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.navbar-nav .nav-link:hover i {
    opacity: 1;
}

/* 导航栏图标优化 */
.navbar-nav .nav-link i {
    display: inline-block;
    width: 16px;
    text-align: center;
    margin-right: 0.25rem;
    font-size: 0.9rem;
}

/* 确保Font Awesome图标正确显示 */
.fas, .far, .fab {
    font-family: "Font Awesome 6 Free", "Font Awesome 5 Free", "FontAwesome";
    font-weight: 900;
    font-style: normal;
    font-variant: normal;
    text-rendering: auto;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* 备用图标方案 */
.nav-link[href*="stocks"]::before {
    content: "📊";
    margin-right: 0.25rem;
    font-size: 0.9rem;
}

.nav-link[href*="reports"]::before {
    content: "📄";
    margin-right: 0.25rem;
    font-size: 0.9rem;
}

/* 当Font Awesome加载失败时的备用方案 */
.nav-link i.fas:not([class*="fa-"]) {
    display: none;
}

.nav-link[href*="stocks"] i.fas:not([class*="fa-"]) + span::before {
    content: "📊";
    margin-right: 0.25rem;
}

.nav-link[href*="reports"] i.fas:not([class*="fa-"]) + span::before {
    content: "📄";
    margin-right: 0.25rem;
}

/* 下拉菜单样式 */
.dropdown-menu {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(102, 126, 234, 0.1);
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    padding: 0.5rem 0;
    margin-top: 0.5rem;
}

.dropdown-item {
    color: #333;
    padding: 0.75rem 1.5rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.dropdown-item:hover {
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
    transform: translateX(5px);
}

.dropdown-item i {
    width: 16px;
    text-align: center;
}

/* 导航栏响应式优化 */
@media (max-width: 991.98px) {
    .navbar-nav .nav-link {
        padding: 1rem !important;
        margin: 0.25rem 0;
        border-radius: 8px;
    }
    
    .navbar-nav .nav-link:hover {
        transform: none;
    }
    
    .dropdown-menu {
        border: none;
        box-shadow: none;
        background: rgba(102, 126, 234, 0.05);
    }
}

/* 卡片样式 */
.card {
    border: none;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    transition: all 0.3s ease;
}

.card-body {
    padding: 1.5rem;
}

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

/* 报告卡片特殊样式 */
.report-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 249, 250, 0.98) 100%);
    border: 1px solid rgba(102, 126, 234, 0.1);
}

.report-card:hover {
    border-color: rgba(102, 126, 234, 0.3);
    background: linear-gradient(135deg, rgba(255, 255, 255, 1) 0%, rgba(248, 249, 250, 1) 100%);
}

.report-preview {
    color: #555;
    font-size: 0.85rem;
    line-height: 1.5;
    max-height: 4.5rem;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    background: rgba(102, 126, 234, 0.03);
    padding: 0.6rem;
    border-radius: 6px;
    border-left: 3px solid rgba(102, 126, 234, 0.2);
    text-align: left;
}

.report-card .card-title {
    color: #667eea !important;
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
    line-height: 1.2;
}

.report-card .card-title + p {
    color: #495057 !important;
    font-size: 0.9rem;
    font-weight: 500;
    line-height: 1.3;
    margin-bottom: 0;
}

.report-card .badge {
    font-size: 0.75rem;
    padding: 0.4rem 0.7rem;
    border-radius: 6px;
    line-height: 1.2;
}

.report-card .badge.bg-primary {
    background: linear-gradient(45deg, #667eea, #764ba2) !important;
    border: none;
}

.report-card .badge.bg-info {
    background: linear-gradient(45deg, #17a2b8, #20c997) !important;
    border: none;
    color: white !important;
}

.report-card .btn-primary {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
    border-radius: 6px;
    font-weight: 600;
    background: linear-gradient(45deg, #667eea, #764ba2);
    border: none;
    transition: all 0.3s ease;
}

.report-card .btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.report-card {
    transition: all 0.3s ease;
    border: 1px solid rgba(102, 126, 234, 0.1);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.report-card .card-body {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 1.25rem;
}

.report-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
    border-color: rgba(102, 126, 234, 0.3);
}

/* 筛选器卡片样式 */
.filter-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 249, 250, 0.98) 100%);
    border: 1px solid rgba(102, 126, 234, 0.15);
}

.filter-card .card-title {
    color: #667eea;
    font-weight: 600;
}

.filter-card .form-label {
    color: #495057;
    font-size: 0.9rem;
}

.filter-card .form-label i {
    color: #667eea;
}

.card-header {
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: white;
    border-bottom: none;
    font-weight: 600;
}

/* 面包屑导航 */
.breadcrumb {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 8px;
    padding: 0.75rem 1rem;
}

.breadcrumb-item a {
    color: #667eea;
    text-decoration: none;
}

.breadcrumb-item.active {
    color: #666;
}

/* 进度条样式 */
.progress {
    background: rgba(102, 126, 234, 0.1);
    border-radius: 10px;
    overflow: hidden;
}

.progress-bar {
    background: linear-gradient(45deg, #667eea, #764ba2);
    border-radius: 10px;
}

/* 警告框样式 */
.alert {
    border: none;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.alert-success {
    background: rgba(40, 167, 69, 0.1);
    color: #155724;
    border-left: 4px solid #28a745;
}

.alert-danger {
    background: rgba(220, 53, 69, 0.1);
    color: #721c24;
    border-left: 4px solid #dc3545;
}

.alert-warning {
    background: rgba(255, 193, 7, 0.1);
    color: #856404;
    border-left: 4px solid #ffc107;
}

.alert-info {
    background: rgba(23, 162, 184, 0.1);
    color: #0c5460;
    border-left: 4px solid #17a2b8;
}

/* 列表组样式 */
.list-group-item {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(102, 126, 234, 0.1);
    transition: all 0.3s ease;
}

.list-group-item:hover {
    background: rgba(102, 126, 234, 0.05);
    border-color: rgba(102, 126, 234, 0.2);
}

/* 代码样式 */
code {
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
    padding: 0.2em 0.4em;
    border-radius: 4px;
    font-weight: 500;
}

/* 链接样式 */
a {
    color: #667eea;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #5a6fd8;
    text-decoration: none;
}

/* 文本颜色 */
.text-muted {
    color: #666 !important;
}

.text-primary {
    color: #667eea !important;
}

.text-success {
    color: #28a745 !important;
}

.text-danger {
    color: #dc3545 !important;
}

.text-warning {
    color: #ffc107 !important;
}

.text-info {
    color: #17a2b8 !important;
}

/* 弹窗样式优化 */
.modal-content.glass-effect {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(102, 126, 234, 0.1);
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
}

.modal-header {
    padding: 1.5rem 1.5rem 0.5rem 1.5rem;
}

.modal-body {
    padding: 1rem 1.5rem;
    font-size: 0.95rem;
    line-height: 1.6;
    color: #333;
}

.modal-body p {
    white-space: pre-line;
    margin-bottom: 0;
}

.modal-footer {
    padding: 0.5rem 1.5rem 1.5rem 1.5rem;
}

.modal-title {
    font-weight: 600;
    font-size: 1.1rem;
}

.modal .btn-close {
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.modal .btn-close:hover {
    opacity: 1;
}

/* 确认弹窗特殊样式 */
#confirmModal .modal-content {
    max-width: 500px;
    margin: 0 auto;
}

#confirmModal .modal-body {
    max-height: 400px;
    overflow-y: auto;
}

/* 批量分析确认信息样式 */
.batch-analysis-info {
    background: rgba(102, 126, 234, 0.05);
    border-left: 4px solid #667eea;
    padding: 1rem;
    border-radius: 8px;
    margin: 1rem 0;
}

.batch-analysis-info .stock-list {
    background: rgba(255, 255, 255, 0.8);
    border-radius: 6px;
    padding: 0.75rem;
    margin-top: 0.5rem;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    max-height: 200px;
    overflow-y: auto;
}

/* 快速操作区域样式 - 使用表格结构 */
.quick-actions {
    /* 移除所有样式，使用默认的card样式 */
}

/* 表格响应式优化 */
.table-responsive {
    border-radius: 10px;
    overflow: hidden;
}

.table {
    margin-bottom: 0;
}

.table th {
    border-top: none;
    font-weight: 600;
    color: #495057;
    background: rgba(248, 249, 250, 0.8);
    padding: 1rem 0.75rem;
}

.table td {
    padding: 1rem 0.75rem;
    vertical-align: middle;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

/* 统计卡片优化 */
.stats-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    padding: 1.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stats-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.stats-number {
    font-size: 2rem;
    font-weight: 700;
    color: #667eea;
    margin-bottom: 0.5rem;
}

.stats-label {
    color: #6c757d;
    font-size: 0.9rem;
    font-weight: 500;
}

/* 美观的下拉框样式 */
.custom-select-wrapper {
    position: relative;
    display: inline-block;
    width: 100%;
}

.custom-select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    border: 2px solid #90caf9;
    border-radius: 12px;
    color: #1976d2;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 500;
    padding: 12px 45px 12px 20px;
    transition: all 0.3s ease;
    width: 100%;
    box-shadow: 0 4px 15px rgba(25, 118, 210, 0.15);
}

.custom-select:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(25, 118, 210, 0.25);
}

.custom-select:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(25, 118, 210, 0.2);
}

.select-arrow {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #1976d2;
    pointer-events: none;
    transition: transform 0.3s ease;
}

.custom-select:focus + .select-arrow {
    transform: translateY(-50%) rotate(180deg);
}

/* 美化所有form-select */
.form-select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border: 2px solid #e9ecef;
    border-radius: 15px;
    color: #495057;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 500;
    padding: 15px 50px 15px 20px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    position: relative;
    backdrop-filter: blur(10px);
}

.form-select:hover {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-color: #1976d2;
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(25, 118, 210, 0.2);
}

.form-select:focus {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-color: #1976d2;
    box-shadow: 0 0 0 4px rgba(25, 118, 210, 0.15), 0 8px 30px rgba(25, 118, 210, 0.2);
    outline: none;
    transform: translateY(-1px);
}

/* 添加下拉箭头 */
.form-select::after {
    content: '';
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 6px solid #667eea;
    pointer-events: none;
    transition: transform 0.3s ease;
}

.form-select:focus::after {
    transform: translateY(-50%) rotate(180deg);
}

/* 下拉选项样式 */
.form-select option {
    background: white;
    color: #495057;
    font-weight: 500;
    padding: 15px 20px;
    border-bottom: 1px solid #f8f9fa;
    transition: all 0.2s ease;
}

.form-select option:hover {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.form-select option:checked {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-weight: 600;
}

/* 标签样式 */
.form-label {
    color: #495057;
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 10px;
    display: block;
    transition: color 0.3s ease;
}

.form-label i {
    color: #667eea;
    margin-right: 8px;
    font-size: 1rem;
}

.form-select:focus + .form-label {
    color: #667eea;
}

/* 筛选器卡片样式 */
.filter-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(102, 126, 234, 0.1);
    border-radius: 25px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.filter-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 50%, #667eea 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.filter-card:hover {
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12);
    transform: translateY(-3px);
}

.filter-card:hover::before {
    opacity: 1;
}

/* 按钮组样式 */
.btn-group .form-select {
    border-radius: 12px;
    margin: 0 3px;
}

/* 特殊的下拉框样式 - 带图标 */
.form-select.with-icon {
    padding-left: 50px;
}

.form-select.with-icon::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    background-size: contain;
    background-repeat: no-repeat;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.form-select.with-icon:hover::before {
    opacity: 1;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .form-select {
        font-size: 0.9rem;
        padding: 12px 45px 12px 15px;
        border-radius: 12px;
    }
    
    .custom-select {
        font-size: 0.9rem;
        padding: 12px 45px 12px 15px;
        border-radius: 12px;
    }
    
    .form-label {
        font-size: 0.9rem;
        margin-bottom: 8px;
    }
}

/* 动画效果 */
@keyframes selectPulse {
    0% {
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    }
    50% {
        box-shadow: 0 4px 20px rgba(102, 126, 234, 0.2);
    }
    100% {
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    }
}

.form-select:focus {
    animation: selectPulse 2s infinite;
}

/* 分页组件样式 */
.pagination-container {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(79, 70, 229, 0.1);
}

.pagination-info {
    font-size: 16px;
    color: #6c757d;
    font-weight: 500;
}

.pagination-info small {
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 600;
    font-size: 16px;
}

/* 自定义分页样式 */
.pagination {
    margin: 0;
    gap: 4px;
}

.pagination .page-item .page-link {
    border: none;
    border-radius: 8px;
    padding: 8px 12px;
    font-weight: 500;
    color: #6c757d;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    min-width: 40px;
    text-align: center;
}

.pagination .page-item .page-link:hover {
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(79, 70, 229, 0.3);
}

.pagination .page-item.active .page-link {
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    color: white;
    box-shadow: 0 4px 8px rgba(79, 70, 229, 0.3);
    border: none;
}

.pagination .page-item.disabled .page-link {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    color: #adb5bd;
    cursor: not-allowed;
    box-shadow: none;
}

.pagination .page-item.disabled .page-link:hover {
    transform: none;
    box-shadow: none;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    color: #adb5bd;
}

/* 批量导出多选样式 */
.report-checkbox {
    margin-bottom: 15px;
    padding: 10px;
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.05) 0%, rgba(124, 58, 237, 0.05) 100%);
    border-radius: 8px;
    border: 1px solid rgba(79, 70, 229, 0.1);
}

.report-checkbox .form-check {
    margin: 0;
}

.report-checkbox .form-check-input {
    width: 18px;
    height: 18px;
    margin-right: 8px;
    border: 2px solid #4f46e5;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.report-checkbox .form-check-input:checked {
    background-color: #4f46e5;
    border-color: #4f46e5;
    box-shadow: 0 2px 4px rgba(79, 70, 229, 0.3);
}

.report-checkbox .form-check-input:focus {
    box-shadow: 0 0 0 0.2rem rgba(79, 70, 229, 0.25);
}

.report-checkbox .form-check-label {
    font-size: 14px;
    font-weight: 500;
    color: #4f46e5;
    cursor: pointer;
    margin: 0;
}

/* 报告卡片选中效果 */
.report-card.selected {
    border: 2px solid #4f46e5 !important;
    transform: scale(1.02);
    box-shadow: 0 8px 25px rgba(79, 70, 229, 0.2);
}
