/* AI Mind 简历分析系统 - B端系统样式 */

/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

/* 全局样式 */
* {
    box-sizing: border-box;
}

body {
    font-family: 'Inter', 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
    background: #f8f9fa;
    min-height: 100vh;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    font-size: 14px;
    color: #333;
}

/* 主容器 */
.container {
    position: relative;
    z-index: 1;
}

/* B端内容容器 */
.content-container {
    background: #ffffff;
    border-radius: 8px;
    border: 1px solid #e9ecef;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    margin: 1.5rem 0;
    padding: 1.5rem;
    position: relative;
    z-index: 1;
}

/* 卡片样式 */
.card {
    border: 1px solid #e9ecef;
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: all 0.2s ease;
    font-size: 0.9rem;
}

.card:hover {
    border-color: #dee2e6;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08);
}

.card-header {
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
    border-radius: 8px 8px 0 0 !important;
    padding: 1rem 1.25rem;
    font-weight: 600;
    font-size: 0.9rem;
    color: #495057;
}

.card-body {
    padding: 1rem 1.25rem;
    font-size: 0.85rem;
}

/* 导航栏样式 */
.navbar {
    background: #ffffff !important;
    border-bottom: 1px solid #e9ecef;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.06);
    padding: 0.75rem 0;
    position: relative !important;
    z-index: 9998 !important;
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.3rem;
    color: #495057 !important;
}

.navbar-nav .nav-link {
    color: #6c757d !important;
    font-weight: 500;
    transition: color 0.2s ease;
}

.navbar-nav .nav-link:hover {
    color: #007bff !important;
}

/* 下拉菜单样式 */
.dropdown-menu {
    z-index: 9999 !important;
    border: 1px solid #e9ecef;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 6px;
    padding: 0.5rem 0;
    margin-top: 0.5rem;
    position: absolute !important;
}

.dropdown-item {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 400;
    color: #495057;
    transition: all 0.2s ease;
}

.dropdown-item:hover {
    background-color: #f8f9fa;
    color: #007bff;
}

.dropdown-divider {
    margin: 0.5rem 0;
    border-top-color: #e9ecef;
}

/* 确保下拉菜单在所有场景下都能正确显示 */
.navbar .dropdown-menu.show {
    z-index: 9999;
    position: absolute;
    top: 100%;
    right: 0;
    left: auto;
}

/* 防止模态框和其他高z-index元素遮挡下拉菜单 */
.navbar-nav .dropdown {
    position: relative;
}

/* 强制下拉菜单显示在最顶层 */
.dropdown-toggle::after {
    margin-left: 0.5rem;
}

/* 下拉菜单容器样式 */
.navbar-nav .nav-item.dropdown {
    position: relative;
    z-index: 9999;
}

/* 下拉菜单显示时的样式 */
.dropdown-menu.show {
    display: block;
    z-index: 9999;
    position: absolute;
    will-change: transform;
    top: 100%;
    right: 0;
    left: auto;
}

@media (min-width: 992px) {
    .navbar-nav .dropdown {
        position: relative;
    }
}

/* 修复下拉菜单遮挡问题的特定样式 */
.navbar-nav .dropdown-menu {
    position: absolute !important;
    z-index: 10000 !important;
    top: calc(100% + 5px) !important;
    right: 0 !important;
    left: auto !important;
    min-width: 160px !important;
    background: #ffffff !important;
    border: 1px solid #e9ecef !important;
    border-radius: 6px !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
    padding: 0.5rem 0 !important;
    margin: 0 !important;
}

/* 强制覆盖Bootstrap的默认样式 */
.navbar-expand-lg .navbar-nav .dropdown-menu {
    position: absolute !important;
    z-index: 10000 !important;
}

/* 标题样式 */
.display-4 {
    font-weight: 700;
    font-size: 2.2rem;
    color: #212529;
    margin-bottom: 1rem;
}

.lead {
    color: #6c757d;
    font-weight: 400;
    font-size: 1rem;
    margin-bottom: 0;
}

/* 表单控件样式 */
.form-control {
    border-radius: 6px;
    border: 1px solid #ced4da;
    background: #ffffff;
    color: #495057;
    padding: 10px 14px;
    transition: all 0.2s ease;
    font-size: 14px;
}

.form-control:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.15);
    background: #ffffff;
}

.form-control::placeholder {
    color: #6c757d;
}

.input-group-text {
    background: #f8f9fa;
    border: 1px solid #ced4da;
    border-radius: 6px 0 0 6px;
    color: #6c757d;
    font-weight: 500;
}

/* 按钮样式 */
.btn {
    border-radius: 6px;
    font-weight: 500;
    border: 1px solid transparent;
    position: relative;
    overflow: hidden;
    transition: all 0.2s ease;
    font-size: 0.875rem;
    padding: 8px 16px;
}

.btn-lg {
    padding: 12px 24px;
    font-size: 1rem;
}

.btn-primary {
    background: #007bff;
    border-color: #007bff;
    color: white;
}

.btn-primary:hover {
    background: #0056b3;
    border-color: #0056b3;
    color: white;
}

.btn-primary:active {
    background: #004085;
    border-color: #004085;
}

/* 轮廓按钮优化 */
.btn-outline-primary, .btn-outline-info, .btn-outline-success, 
.btn-outline-warning, .btn-outline-secondary, .btn-outline-danger, .btn-outline-dark {
    border-width: 1px;
    border-radius: 6px;
    font-weight: 500;
    background: transparent;
    transition: all 0.2s ease;
}

/* 优化后的按钮hover效果 - 确保文字清晰可见 */
.btn-outline-primary:hover, .btn-outline-info:hover, .btn-outline-success:hover,
.btn-outline-warning:hover, .btn-outline-secondary:hover, .btn-outline-danger:hover, .btn-outline-dark:hover {
    background: #ffffff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    border-color: currentColor;
    color: inherit;
    transform: translateY(-1px);
}

/* 针对不同颜色的按钮优化hover效果 */
.btn-outline-primary:hover {
    background-color: #ffffff;
    color: #0d6efd;
    border-color: #0d6efd;
}

.btn-outline-success:hover {
    background-color: #ffffff;
    color: #198754;
    border-color: #198754;
}

.btn-outline-info:hover {
    background-color: #ffffff;
    color: #0dcaf0;
    border-color: #0dcaf0;
}

.btn-outline-warning:hover {
    background-color: #ffffff;
    color: #ffc107;
    border-color: #ffc107;
}

.btn-outline-secondary:hover {
    background-color: #ffffff;
    color: #6c757d;
    border-color: #6c757d;
}

.btn-outline-danger:hover {
    background-color: #ffffff;
    color: #dc3545;
    border-color: #dc3545;
}

.btn-outline-dark:hover {
    background-color: #ffffff;
    color: #212529;
    border-color: #212529;
}

/* 加载动画优化 */
.spinner-border {
    width: 2rem;
    height: 2rem;
    border-width: 2px;
    color: #007bff;
}

/* 横向进度条美化 */
.progress {
    height: 8px;
    border-radius: 4px;
    background: #e9ecef;
}

.progress-bar {
    border-radius: 4px;
    background: #007bff;
}

/* 评分卡片样式 */
.card.text-center .card-body {
    padding: 1.5rem 1rem;
}

.card.text-center h2 {
    font-size: 2rem;
    font-weight: 700;
    margin: 0.5rem 0;
}

.card.text-center h5 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.card.text-center p {
    font-size: 0.8rem;
    margin-bottom: 0;
}

/* 徽章样式 */
.badge {
    border-radius: 4px;
    font-weight: 500;
    padding: 0.35rem 0.65rem;
    font-size: 0.75rem;
}

.badge.fs-6 {
    font-size: 0.8rem !important;
    padding: 0.4rem 0.8rem;
}

/* 列表样式 */
.list-unstyled li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #e9ecef;
}

.list-unstyled li:last-child {
    border-bottom: none;
}

.list-unstyled li::before {
    content: "✓";
    color: #198754;
    font-weight: bold;
    margin-right: 0.5rem;
}

/* 统计区域样式 */
.border.rounded {
    border-radius: 6px !important;
    transition: all 0.2s ease;
}

.border.rounded:hover {
    background-color: #f8f9fa;
    border-color: #dee2e6;
}

/* 警告框样式 */
.alert {
    border: 1px solid transparent;
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

/* 页脚样式 */
footer {
    background: #f8f9fa;
    border-top: 1px solid #e9ecef;
    margin-top: 2rem;
}

footer .content-container {
    background: transparent;
    border: none;
    box-shadow: none;
    color: #6c757d;
}

/* 响应式调整 */
@media (max-width: 768px) {
    body {
        font-size: 13px;
    }
    
    .display-4 {
        font-size: 2rem;
    }
    
    .lead {
        font-size: 0.9rem;
    }
    
    .card.text-center h2 {
        font-size: 1.7rem;
    }
    
    .card.text-center .card-body {
        padding: 1.2rem 0.8rem;
    }
    
    .content-container {
        margin: 1rem 0;
        padding: 1rem;
    }
    
    .navbar-brand {
        font-size: 1.2rem;
    }
}

/* 文件上传区域优化 */
.form-control[type="file"] {
    padding: 0.5rem;
}

.input-group-text {
    background-color: #e9ecef;
    border-color: #ced4da;
}

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

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

/* 分数颜色渐变 */
.score-excellent {
    color: #198754 !important;
}

.score-good {
    color: #fd7e14 !important;
}

.score-average {
    color: #ffc107 !important;
}

.score-poor {
    color: #dc3545 !important;
}

/* 自定义滚动条 */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: #0d6efd;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #0b5ed7;
}

/* 明细信息模态框样式 */
.modal-dialog {
    max-width: 900px;
}

.modal-dialog.modal-lg {
    max-width: 1000px;
}

.modal-body {
    max-height: 70vh;
    overflow-y: auto;
}

/* 详细信息按钮样式已整合到通用按钮样式中 */

/* 时间线样式 */
.timeline {
    position: relative;
}

.timeline .d-flex:not(:last-child)::after {
    content: '';
    position: absolute;
    left: 19px;
    top: 50px;
    bottom: -30px;
    width: 2px;
    background: linear-gradient(to bottom, #007bff, #6c757d);
    z-index: -1;
}

/* 徽章样式增强 */
.badge {
    font-size: 0.75em;
    margin: 2px;
}

/* 表格样式增强 */
.table-striped > tbody > tr:nth-of-type(odd) > td {
    background-color: rgba(0,123,255,.05);
}

/* 模态框内容区域样式 */
#detailContent .card {
    border: 1px solid #e9ecef;
    margin-bottom: 1rem;
}

#detailContent .card-header {
    background: linear-gradient(45deg, #f8f9fa, #e9ecef);
    border-bottom: 1px solid #dee2e6;
    font-weight: 600;
}

#detailContent .table th {
    background-color: #f8f9fa;
    font-weight: 600;
    border-top: none;
}

/* 详细信息按钮网格优化 */
.btn-outline-primary,
.btn-outline-info,
.btn-outline-success,
.btn-outline-warning,
.btn-outline-secondary,
.btn-outline-danger,
.btn-outline-dark {
    border-radius: 8px;
    font-weight: 500;
    border-width: 2px;
}

/* 步骤展示样式 */
.steps-container {
    max-height: 300px;
    overflow-y: auto;
}

.step-item {
    display: flex;
    align-items: center;
    padding: 8px 12px;
    margin-bottom: 8px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    background-color: #f8f9fa;
    transition: all 0.3s ease;
    font-size: 0.85rem;
}

.step-item.pending {
    border-color: #e9ecef;
    background-color: #f8f9fa;
    color: #6c757d;
}

.step-item.running {
    border-color: #0d6efd;
    background-color: #e7f1ff;
    color: #0d6efd;
    animation: pulse 2s infinite;
}

.step-item.completed {
    border-color: #198754;
    background-color: #d1e7dd;
    color: #198754;
}

.step-item.error {
    border-color: #dc3545;
    background-color: #f8d7da;
    color: #dc3545;
}

.step-icon {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
    font-size: 10px;
    font-weight: bold;
    flex-shrink: 0;
}

.step-icon.pending {
    background-color: #e9ecef;
    color: #6c757d;
}

.step-icon.running {
    background-color: #0d6efd;
    color: white;
}

.step-icon.completed {
    background-color: #198754;
    color: white;
}

.step-icon.error {
    background-color: #dc3545;
    color: white;
}

.step-text {
    flex-grow: 1;
    font-weight: 500;
}

.step-time {
    font-size: 0.8em;
    opacity: 0.7;
    margin-left: 10px;
}

/* 脉冲动画 */
@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(13, 110, 253, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(13, 110, 253, 0); }
    100% { box-shadow: 0 0 0 0 rgba(13, 110, 253, 0); }
}

/* 当前步骤提示框 */
#currentStepAlert {
    border-width: 2px;
    font-weight: 500;
}

/* 进度条增强 */
.progress {
    border-radius: 6px;
    background-color: #e9ecef;
}

.progress-bar {
    border-radius: 6px;
    transition: width 0.5s ease;
}

/* 响应式优化 */
@media (max-width: 768px) {
    .modal-dialog {
        margin: 10px;
        max-width: calc(100% - 20px);
    }
    
    .btn-outline-primary,
    .btn-outline-info,
    .btn-outline-success,
    .btn-outline-warning,
    .btn-outline-secondary,
    .btn-outline-danger,
    .btn-outline-dark {
        margin-bottom: 10px;
        font-size: 0.9rem;
    }
    
    .modal-body {
        max-height: 60vh;
    }
    
    .step-item {
        padding: 10px 12px;
        font-size: 0.9rem;
    }
    
    .step-icon {
        width: 20px;
        height: 20px;
        font-size: 10px;
        margin-right: 10px;
    }
}

/* B端系统表格样式 */
.table {
    font-size: 0.875rem;
}

.table th {
    background-color: #f8f9fa;
    border-top: none;
    border-bottom: 2px solid #dee2e6;
    font-weight: 600;
    color: #495057;
    padding: 0.75rem;
}

.table td {
    padding: 0.75rem;
    vertical-align: middle;
}

.table-hover tbody tr:hover {
    background-color: rgba(0, 123, 255, 0.05);
}

/* B端系统分页样式 */
.pagination .page-link {
    color: #6c757d;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    margin: 0 2px;
}

.pagination .page-link:hover {
    color: #007bff;
    background-color: #f8f9fa;
    border-color: #dee2e6;
}

.pagination .page-item.active .page-link {
    background-color: #007bff;
    border-color: #007bff;
}

/* B端系统模态框样式 */
.modal-header {
    background-color: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
}

.modal-title {
    color: #495057;
    font-weight: 600;
}

.modal-footer {
    background-color: #f8f9fa;
    border-top: 1px solid #dee2e6;
}

/* B端系统状态标签 */
.status-pending {
    background-color: #ffc107;
    color: #212529;
}

.status-completed {
    background-color: #28a745;
    color: white;
}

.status-failed {
    background-color: #dc3545;
    color: white;
}

.status-processing {
    background-color: #17a2b8;
    color: white;
}

/* B端系统数据卡片 */
.data-card {
    border: 1px solid #e9ecef;
    border-radius: 6px;
    padding: 1.5rem;
    background: #ffffff;
    transition: all 0.2s ease;
}

.data-card:hover {
    border-color: #007bff;
    box-shadow: 0 2px 8px rgba(0, 123, 255, 0.1);
}

.data-card .data-value {
    font-size: 2rem;
    font-weight: 700;
    color: #495057;
    margin: 0.5rem 0;
}

.data-card .data-label {
    color: #6c757d;
    font-size: 0.875rem;
    margin: 0;
}

/* B端系统工具栏 */
.toolbar {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    padding: 0.75rem 1rem;
    margin-bottom: 1rem;
}

.toolbar .btn {
    margin-right: 0.5rem;
}

/* B端系统搜索框 */
.search-box {
    position: relative;
}

.search-box .form-control {
    padding-left: 2.5rem;
}

.search-box .search-icon {
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    color: #6c757d;
    z-index: 5;
}

/* 个人信息管理页面样式 */
/* 个人信息概览区域 */
.profile-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    padding: 2rem;
    color: white;
    position: relative;
    overflow: hidden;
}

.profile-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.profile-header * {
    position: relative;
    z-index: 1;
}

.profile-avatar img {
    border: 4px solid rgba(255, 255, 255, 0.2) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.profile-info h1 {
    color: white !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.profile-info p {
    color: rgba(255, 255, 255, 0.9) !important;
}

/* 统计卡片样式 */
.stats-section {
    margin: -1rem 0 2rem 0;
}

.stat-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    border-color: #dee2e6;
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.stat-icon i {
    font-size: 1.8rem;
}

.stat-content {
    flex: 1;
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: #212529;
    line-height: 1;
}

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

/* 个人信息查看模式样式 */
.info-item {
    margin-bottom: 1.5rem;
}

.info-label {
    display: block;
    font-weight: 600;
    color: #495057;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.info-value {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    background-color: #f8f9fa;
    border-radius: 6px;
    border: 1px solid #e9ecef;
    font-size: 0.9rem;
    color: #495057;
    min-height: 42px;
}

.info-value i {
    flex-shrink: 0;
}

/* 加载状态样式 */
.spinner-border-sm {
    width: 1rem;
    height: 1rem;
}

/* 彩色背景样式 */
.bg-primary-soft {
    background-color: rgba(13, 110, 253, 0.1);
}

.bg-success-soft {
    background-color: rgba(25, 135, 84, 0.1);
}

.bg-info-soft {
    background-color: rgba(13, 202, 240, 0.1);
}

.bg-warning-soft {
    background-color: rgba(255, 193, 7, 0.1);
}

.bg-danger-soft {
    background-color: rgba(220, 53, 69, 0.1);
}

/* 彩色文字样式 */
.text-primary-soft {
    color: #0d6efd;
}

.text-success-soft {
    color: #198754;
}

.text-info-soft {
    color: #0dcaf0;
}

.text-warning-soft {
    color: #ffc107;
}

.text-danger-soft {
    color: #dc3545;
}

/* 账户状态项样式 */
.account-status-item {
    padding: 0.5rem 0;
}

.account-status-item .fw-medium {
    font-weight: 600;
    color: #495057;
}

/* 快捷操作按钮样式 - Profile页面专用 */
.card-body .btn-outline-primary:hover,
.card-body .btn-outline-success:hover,
.card-body .btn-outline-info:hover {
    transform: translateX(4px);
    background-color: #ffffff !important;
    border-color: currentColor !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15) !important;
}

.card-body .btn-outline-primary:hover {
    color: #0d6efd !important;
}

.card-body .btn-outline-success:hover {
    color: #198754 !important;
}

.card-body .btn-outline-info:hover {
    color: #0dcaf0 !important;
}

/* 帮助链接样式 */
.help-links .help-link {
    padding: 0.5rem 0;
    border-radius: 6px;
    transition: all 0.2s ease;
    color: #6c757d;
}

.help-links .help-link:hover {
    background-color: #ffffff;
    padding-left: 0.5rem;
    color: #0d6efd !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(13, 110, 253, 0.2);
}

.help-links .help-link:hover i {
    color: #0d6efd !important;
}

/* 表单样式优化 */
.form-label.fw-medium {
    font-weight: 600;
    color: #495057;
    margin-bottom: 0.5rem;
}

.input-group .input-group-text {
    background-color: #f8f9fa;
    border-color: #dee2e6;
    color: #6c757d;
}

.input-group .form-control:focus {
    border-color: #86b7fe;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

.input-group .form-control:focus + .input-group-text {
    border-color: #86b7fe;
}

/* 密码安全提示样式 */
.alert-info {
    background-color: rgba(13, 202, 240, 0.1);
    border-color: rgba(13, 202, 240, 0.2);
    color: #055160;
}

.alert-info .bi-info-circle-fill {
    color: #0dcaf0;
}

/* 徽章样式 */
.badge.bg-success-soft {
    background-color: rgba(25, 135, 84, 0.1) !important;
    color: #198754 !important;
    border: 1px solid rgba(25, 135, 84, 0.2);
}

.badge.bg-danger-soft {
    background-color: rgba(220, 53, 69, 0.1) !important;
    color: #dc3545 !important;
    border: 1px solid rgba(220, 53, 69, 0.2);
}

.badge.bg-warning-soft {
    background-color: rgba(255, 193, 7, 0.1) !important;
    color: #856404 !important;
    border: 1px solid rgba(255, 193, 7, 0.2);
}

.badge.bg-primary-soft {
    background-color: rgba(13, 110, 253, 0.1) !important;
    color: #0d6efd !important;
    border: 1px solid rgba(13, 110, 253, 0.2);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .profile-header {
        padding: 1.5rem;
    }
    
    .profile-header .col-md-8,
    .profile-header .col-md-4 {
        text-align: center;
    }
    
    .profile-header .col-md-4 {
        margin-top: 1rem;
    }
    
    .stat-card {
        padding: 1rem;
    }
    
    .stat-icon {
        width: 50px;
        height: 50px;
    }
    
    .stat-icon i {
        font-size: 1.5rem;
    }
    
    .stat-number {
        font-size: 1.5rem;
    }
    
    .profile-avatar img {
        width: 60px !important;
        height: 60px !important;
    }
    
    .info-item {
        margin-bottom: 1rem;
    }
    
    .info-value {
        padding: 0.5rem 0.75rem;
    }
}

/* 卡片间距优化 */
.row.g-4 > * {
    padding: 0.75rem;
}

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

.profile-header,
.stat-card {
    animation: slideInUp 0.6s ease-out;
}

.stat-card:nth-child(2) {
    animation-delay: 0.1s;
}

.stat-card:nth-child(3) {
    animation-delay: 0.2s;
}

.stat-card:nth-child(4) {
    animation-delay: 0.3s;
}

/* ==================== 详细分析样式 ==================== */

/* 时间线样式 */
.timeline {
    position: relative;
    padding: 1rem 0;
}

.timeline-item {
    position: relative;
    padding-left: 2rem;
    margin-bottom: 1.5rem;
}

.timeline-item:not(:last-child)::before {
    content: '';
    position: absolute;
    left: 0.5rem;
    top: 1.5rem;
    bottom: -1.5rem;
    width: 2px;
    background: #e9ecef;
}

.timeline-marker {
    position: absolute;
    left: 0;
    top: 0.2rem;
}

.timeline-marker i {
    font-size: 0.75rem;
    color: #007bff;
}

.timeline-content {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 1rem;
    margin-left: 1rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.timeline-header h6 {
    color: #495057;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.timeline-content p {
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    line-height: 1.5;
}

.timeline-content p:last-child {
    margin-bottom: 0;
}

/* 图表容器样式 */
.chart-container {
    position: relative;
    height: 300px;
    margin: 1rem 0;
}

.chart-container canvas {
    max-height: 300px;
}

/* 建议分类样式 */
.recommendation-category {
    border-left: 4px solid #007bff;
    padding-left: 1rem;
    margin-bottom: 1.5rem;
}

.recommendation-category h6 {
    color: #007bff;
    font-weight: 600;
    margin-bottom: 1rem;
}

.recommendation-item {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    padding: 0.75rem;
    margin-bottom: 0.5rem;
    transition: all 0.2s ease;
}

.recommendation-item:hover {
    background: #ffffff;
    border-color: #007bff;
    box-shadow: 0 2px 4px rgba(0, 123, 255, 0.1);
}

.recommendation-item p {
    margin-bottom: 0.5rem;
    color: #495057;
    font-size: 0.9rem;
}

.recommendation-item .badge {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
}

/* 排名显示样式 */
.ranking-display {
    padding: 1.5rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 12px;
    margin: 1rem 0;
}

.ranking-number {
    font-size: 3rem;
    font-weight: 700;
    color: #007bff;
    margin-bottom: 0.5rem;
}

.ranking-display .progress {
    height: 10px;
    background: #e9ecef;
    border-radius: 5px;
}

.ranking-display .progress-bar {
    background: linear-gradient(90deg, #007bff 0%, #0056b3 100%);
    border-radius: 5px;
}

/* 竞争优势样式 */
.advantage-item {
    background: #ffffff;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.advantage-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, #ffc107 0%, #fd7e14 100%);
}

.advantage-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-color: #ffc107;
}

.advantage-item h6 {
    color: #495057;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.advantage-item p {
    color: #6c757d;
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 0.5rem;
}

.advantage-item .badge {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
}

/* 详细分析容器动画 */
#detailedResultsContainer {
    animation: fadeInUp 0.5s ease-out;
}

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

/* 图表加载状态 */
.chart-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 300px;
    background: #f8f9fa;
    border-radius: 8px;
    color: #6c757d;
    font-size: 0.9rem;
}

.chart-loading i {
    margin-right: 0.5rem;
    animation: spin 1s linear infinite;
}

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

/* 详细分析按钮样式增强 */
.btn-outline-info:hover {
    background-color: #0dcaf0;
    border-color: #0dcaf0;
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(13, 202, 240, 0.3);
}

.btn-outline-info:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* PDF导出按钮样式 */
#exportPDFBtn {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    border: none;
    transition: all 0.3s ease;
}

#exportPDFBtn:hover {
    background: linear-gradient(135deg, #218838 0%, #1abc9c 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .timeline-item {
        padding-left: 1.5rem;
    }
    
    .timeline-content {
        margin-left: 0.5rem;
        padding: 0.75rem;
    }
    
    .ranking-number {
        font-size: 2.5rem;
    }
    
    .chart-container {
        height: 250px;
    }
    
    .recommendation-item {
        padding: 0.5rem;
    }
    
    .advantage-item {
        padding: 0.75rem;
    }
    
    .advantage-item h6 {
        font-size: 0.9rem;
    }
    
    .advantage-item p {
        font-size: 0.85rem;
    }
}

/* 详细分析NEW标签样式 */
.badge.bg-light.text-info {
    background-color: rgba(13, 202, 240, 0.1) !important;
    color: #0dcaf0 !important;
    font-size: 0.7rem;
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    font-weight: 500;
    letter-spacing: 0.5px;
}

/* 卡片标题图标样式 */
.card-header .card-title i {
    color: inherit;
    margin-right: 0.5rem;
}

/* 数据加载状态 */
.loading-placeholder {
    background: linear-gradient(90deg, #f0f0f0 25%, transparent 37%, transparent 63%, #f0f0f0 75%);
    background-size: 400% 100%;
    animation: shimmer 1.5s ease-in-out infinite;
    border-radius: 4px;
    height: 1rem;
    margin: 0.5rem 0;
}

@keyframes shimmer {
    0% {
        background-position: 100% 0;
    }
    100% {
        background-position: -100% 0;
    }
}

/* 优化打印样式 */
@media print {
    .btn, .navbar, .footer {
        display: none !important;
    }
    
    .card {
        break-inside: avoid;
        page-break-inside: avoid;
    }
    
    .timeline-item {
        break-inside: avoid;
        page-break-inside: avoid;
    }
    
    .chart-container {
        break-inside: avoid;
        page-break-inside: avoid;
    }
} 