/* DHL命理预测系统样式文件 */

/* 全局样式 */
* {
    margin: 0;
    padding: 0;
}

html {
    overflow-x: hidden;
    width: 100%;
    position: relative;
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: rgba(0, 0, 0, 0.8);
    color: #333;
    overflow-x: hidden;
    width: 100%;
    position: relative;
    touch-action: pan-y;
}

/* 导航栏 */
.navbar {
    position: fixed;
    left: 0;
    right: 0;
    color: white;
    padding-top: 1rem;
    position: sticky;
    z-index: 100;
    max-width: 1200px;
    margin: 0 auto;
}

.nav-container {
    max-width: 1500px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-title {
    font-size: 1.5rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}


.nav-link {
    color: white;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-link:hover {
    background-color: rgba(255,255,255,0.1);
    transform: translateY(-2px);
}

.nav-link.active {
    background-color: rgba(255,255,255,0.2);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* 主内容区域 */
.main-content {
    max-width: 1500px;
    margin: 0 auto;
    padding: 2rem;
}

/* 选项卡内容 */
.tab-content {
    display: none;
    animation: fadeIn 0.3s ease-in;
}

.tab-content.active {
    display: block;
}

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

/* 页面头部 */
.dashboard-header,
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #e0e0e0;
}

.dashboard-header h2,
.page-header h2 {
    color: #333;
    font-size: 2rem;
    font-weight: 600;
}

/* 按钮样式 */
.btn {
    padding: 0.4rem 0.5rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 500;
    transition: all 0.3s ease;
    align-items: center;
    gap: 0.2rem;
    text-decoration: none;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

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

.btn-primary:hover {
    transform: translateY(0px);
}

.btn-secondary {
    background-color: #6c757d5e;
    color: white;
    border: 1px solid #d2d2d287;
}

.btn-secondary:hover {
    background-color: #5a6268;
    transform: translateY(-2px);
}

.btn-danger {
    background-color: #dc3545;
    color: white;
}

.btn-danger:hover {
    background-color: #c82333;
    transform: translateY(-2px);
}

.btn-success {
    background-color: #28a745;
    color: white;
}

.btn-success:hover {
    background-color: #218838;
    transform: translateY(-2px);
}

/* 仪表板主要布局 */
.dashboard-main {
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 1.5rem;
    height: calc(100vh - 200px);
}

/* 左侧EC文件面板 */
.ec-files-panel {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    padding: 1.5rem;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.ec-files-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #667eea;
}

.ec-files-header h3 {
    color: #333;
    margin: 0;
}

.ec-files-controls {
    display: flex;
    gap: 0.5rem;
}

/* 组管理面板 */
.group-management {
    background: #f8f9fa;
    border-radius: 6px;
    padding: 1rem;
    margin-bottom: 1rem;
    border: 1px solid #e0e0e0;
}

.group-controls {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.group-input {
    flex: 1;
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 0.9rem;
    min-width: 120px;
}

.group-input:focus {
    outline: none;
    border-color: #667eea;
}

.existing-groups {
    max-height: 100px;
    overflow-y: auto;
}

.group-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem;
    background: white;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-bottom: 0.25rem;
    font-size: 0.9rem;
}

.group-item:last-child {
    margin-bottom: 0;
}

.group-item .group-name {
    flex: 1;
    font-weight: 500;
}

.group-item .group-count {
    color: #666;
    margin-right: 0.5rem;
}

.no-groups {
    color: #999;
    font-style: italic;
    text-align: center;
    margin: 0;
    padding: 0.5rem;
}

/* 视图切换标签 */
.view-tabs {
    display: flex;
    margin-bottom: 1rem;
    border-bottom: 1px solid #e0e0e0;
}

.view-tab {
    background: none;
    border: none;
    padding: 0.5rem 1rem;
    cursor: pointer;
    color: #666;
    font-size: 0.9rem;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
}

.view-tab:hover {
    color: #667eea;
}

.view-tab.active {
    color: #667eea;
    border-bottom-color: #667eea;
    font-weight: 600;
}

.ec-files-list {
    flex: 1;
    overflow-y: auto;
    padding-right: 0.5rem;
}

.ec-file-item {
    padding: 1rem;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.ec-file-checkbox {
    display: none;
}

.group-mode .ec-file-checkbox {
    display: block;
}

.ec-file-content {
    flex: 1;
}

.ec-file-item:hover {
    background: #e9ecef;
    border-color: #667eea;
    transform: translateX(5px);
}

.ec-file-item.selected {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-color: #667eea;
}

.ec-file-name {
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.ec-file-info {
    font-size: 0.8rem;
    color: #666;
    display: flex;
    justify-content: space-between;
}

.ec-file-item.selected .ec-file-info {
    color: rgba(255,255,255,0.8);
}

/* 月份组织样式 */
.month-group {
    margin-bottom: 1rem;
}

.month-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.month-header:hover {
    background: linear-gradient(135deg, #5a67d8 0%, #6b46c1 100%);
}

.month-files {
    margin-left: 1rem;
    transition: max-height 0.3s ease, opacity 0.3s ease;
}

.month-files.collapsed {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
}

.month-toggle {
    transition: transform 0.3s ease;
}

.month-toggle.rotated {
    transform: rotate(180deg);
}

/* 中间分析类型面板 */
.analysis-types-panel {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    padding: 1.5rem;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.analysis-types-panel h3 {
    color: #333;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #667eea;
}

.analysis-category {
    margin-bottom: 1.5rem;
}

.category-title {
    color: #333;
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
    padding: 0.5rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    justify-content: space-between;
}

.category-title.collapsible {
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.category-title.collapsible:hover {
    background: linear-gradient(135deg, #5a67d8 0%, #6b46c1 100%);
}

.category-title.disabled {
    background: #ccc;
    color: #666;
}

.category-title.disabled:hover {
    background: #ccc;
}

.toggle-icon {
    transition: transform 0.3s ease;
    font-size: 0.9rem;
}

.toggle-icon.rotated {
    transform: rotate(180deg);
}

.analysis-options {
    max-height: 650px;
    overflow-y: auto;
    padding-right: 0.5rem;
    transition: max-height 0.3s ease, opacity 0.3s ease;
}

.analysis-options.collapsed {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    padding: 0;
}

/* 自定义滚动条样式 */
.analysis-options::-webkit-scrollbar {
    width: 8px;
}

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

.analysis-options::-webkit-scrollbar-thumb {
    background: #667eea;
    border-radius: 4px;
}

.analysis-options::-webkit-scrollbar-thumb:hover {
    background: #5a67d8;
}

.analysis-options.disabled {
    opacity: 0.6;
    pointer-events: none;
}

.coming-soon {
    text-align: center;
    color: #999;
    font-style: italic;
    padding: 1rem;
}

.option-group {
    margin-bottom: 1rem;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
}

.option-header {
    background: #f8f9fa;
    padding: 0.75rem;
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.option-title {
    font-weight: 600;
    color: #333;
    cursor: pointer;
    flex: 1;
    margin: 0;
}

.analysis-checkbox {
    cursor: pointer;
}

.sub-options {
    padding: 0.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.sub-options label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.25rem;
    font-size: 0.9rem;
    color: #555;
    cursor: pointer;
    border-radius: 4px;
    transition: background-color 0.2s;
}

.sub-options label:hover {
    background-color: #f8f9fa;
}

.sub-options input[type="checkbox"] {
    cursor: pointer;
}

.year-option {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.year-select {
    padding: 0.25rem 0.5rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 0.8rem;
    margin-left: auto;
    min-width: 80px;
}

.year-select:focus {
    outline: none;
    border-color: #667eea;
}

/* 选择总结 */
.selection-summary {
    border-top: 2px solid #e0e0e0;
    padding-top: 1rem;
}

.summary-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.summary-header h5 {
    color: #333;
    margin: 0;
    font-size: 1rem;
}

.selected-items {
    overflow-y: auto;
    background: #f8f9fa;
    border-radius: 6px;
    padding: 0.75rem;
}

.no-selection {
    color: #999;
    font-style: italic;
    text-align: center;
    margin: 0;
}

.selected-item {
    background: #667eea;
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.8rem;
    margin: 0.25rem 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.selected-item .remove-item {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    padding: 0;
    margin-left: 0.5rem;
    font-size: 0.9rem;
}

.selected-item .remove-item:hover {
    opacity: 0.7;
}

/* 右侧分析面板 */
.analysis-panel {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    padding: 0.3rem;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.analysis-header {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #e0e0e0;
}

.analysis-header h3 {
    color: #333;
    font-size: 1.3rem;
}

/* 分析步骤 */
.analysis-steps {
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.step-card {
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    background: #f8f9fa;
    transition: all 0.3s ease;
}

.step-card:hover {
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.step-card.completed {
    border-color: #28a745;
    background: #d4edda;
}

.step-card.processing {
    border-color: #ffc107;
    background: #fff3cd;
}

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

.step-header {
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    border-bottom: 1px solid #e0e0e0;
}

.step-number {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.9rem;
}

.step-card.completed .step-number {
    background: #28a745;
}

.step-card.processing .step-number {
    background: #ffc107;
}

.step-card.error .step-number {
    background: #dc3545;
}

.step-header h4 {
    flex: 1;
    color: #333;
    margin: 0;
    font-size: 1.1rem;
}

.step-status {
    font-size: 0.9rem;
    color: #666;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.step-card.completed .step-status {
    color: #155724;
}

.step-card.processing .step-status {
    color: #856404;
}

.step-card.error .step-status {
    color: #721c24;
}

.step-content {
    padding: 0.2rem 0.1rem;
}

.step-description {
    color: #666;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.step-actions {
    display: flex;
    gap: 0.5rem;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
}

.step-result {
    margin-top: 1rem;
    padding: 1rem;
    background: white;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    max-height: 200px;
    overflow-y: auto;
}

.step-result pre {
    margin: 0;
    font-size: 0.8rem;
    line-height: 1.4;
}

/* 用户反馈区域 */
.user-feedback-section {
    margin: 0.1rem 0;
    padding: 0.1rem;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #667eea;
}

.user-feedback-section h5 {
    color: #333;
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.user-feedback-input {
    width: 100%;
    padding: 0.05rem;
    border: 2px solid #e0e0e0;
    background-color: #ededed;
    border-radius: 8px;
    font-size: 0.9rem;
    font-family: inherit;
    line-height: 1.4;
    resize: vertical;
    min-height: 200px;
    transition: border-color 0.3s ease;
}

.user-feedback-input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.feedback-info {
    margin-top: 0.5rem;
    color: #666;
}

.feedback-info small {
    font-style: italic;
}

/* 步骤总结预览 */
.step-summary-preview {
    margin-top: 1rem;
    padding: 1rem;
    background: white;
    border: 2px solid #667eea;
    border-radius: 8px;
}

.step-summary-preview h6 {
    color: #333;
    margin-bottom: 1rem;
    font-size: 1rem;
    font-weight: 600;
}

.summary-content {
    font-size: 0.9rem;
}

.summary-section {
    margin-bottom: 1rem;
    padding: 0.75rem;
    background: #f8f9fa;
    border-radius: 6px;
}

.summary-section:last-child {
    margin-bottom: 0;
}

.summary-section strong {
    color: #333;
    display: block;
    margin-bottom: 0.5rem;
}

.ai-instruction {
    color: #666;
    font-style: italic;
    padding: 0.5rem;
    background: #e9ecef;
    border-radius: 4px;
    border-left: 3px solid #667eea;
}

#keywords-summary,
#feedback-summary {
    color: #555;
    line-height: 1.4;
    white-space: pre-wrap;
}

#feedback-summary {
    min-height: 20px;
}

#feedback-summary:empty::before {
    content: "无用户反馈";
    color: #999;
    font-style: italic;
}

/* 搜索和过滤 */
.search-filter {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.search-input,
.filter-select {
    padding: 0.75rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 0.9rem;
    transition: border-color 0.3s ease;
}

.search-input {
    flex: 1;
    min-width: 300px;
}

.search-input:focus,
.filter-select:focus {
    outline: none;
    border-color: #667eea;
}

/* 表格样式 */
.objects-table {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

table {
    width: 100%;
    border-collapse: collapse;
}

thead {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

th,
td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #e0e0e0;
}

th {
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

tbody tr:hover {
    background-color: #f8f9fa;
}

.status-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
}

.status-pending {
    background-color: #fff3cd;
    color: #856404;
}

.status-completed {
    background-color: #d4edda;
    color: #155724;
}

.status-bazi_generated {
    background-color: #d1ecf1;
    color: #0c5460;
}

/* 操作按钮 */
.action-buttons {
    display: flex;
    gap: 0.5rem;
}

.btn-small {
    padding: 0.25rem 0.5rem;
    font-size: 0.8rem;
}

/* 文件网格 */
.files-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.file-card {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.file-card:hover {
    transform: translateY(-5px);
}

.file-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.file-name {
    font-weight: 600;
    color: #333;
}

.file-size {
    color: #666;
    font-size: 0.8rem;
}

.file-actions {
    margin-top: 1rem;
    display: flex;
    gap: 0.5rem;
}

/* 模态框 */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    animation: fadeIn 0.3s ease;
}

.modal-content {
    position: relative;
    margin: 5% auto;
    padding: 0;
    border-radius: 12px;
    width: 90%;
    max-width: 600px;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from { transform: translateY(-50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.modal-header {
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: white;
    border-radius: 12px 12px 0 0;
}

.modal-header h3 {
    margin: 0;
}

.close {
    color: white;
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
}

.close:hover {
    opacity: 0.7;
}

.modal-body {
    padding: 2rem;
}

/* 表单样式 */
.form-group {
    margin-bottom: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #333;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 0.75rem;
    border-radius: 8px;
    font-size: 0.9rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #667eea;
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid #e0e0e0;
}

/* 加载指示器 */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
}

.loading-spinner {
    background: rgba(255, 255, 255, 0);
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
}

.loading-spinner i {
    font-size: 3rem;
    color: #a4b5ff;
    margin-bottom: 1rem;
}

.loading-spinner p {
    font-weight: 500;
    font-size: 1.1rem;
    background: linear-gradient(
        90deg,
        #6b6b6b 0%,
        #d4d4d4 25%,
        #ffffff 50%,
        #d4d4d4 75%,
        #6b6b6b 100%
    );
    background-size: 200% auto;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shimmer 2s linear infinite;
}

/* 流光动画 */
@keyframes shimmer {
    0% {
        background-position: -200% center;
    }
    100% {
        background-position: 200% center;
    }
}

/* 通知组件 */
.notification {
    position: fixed;
    top: 100px;
    right: 20px;
    z-index: 1500;
    max-width: 400px;
    animation: slideInRight 0.3s ease;
}

@keyframes slideInRight {
    from { transform: translateX(100%); }
    to { transform: translateX(0); }
}

.notification-content {
    background: rgba(0, 0, 0, 0.3);
    color: rgb(148, 230, 255);
    backdrop-filter: blur(10px);
    font-size: 13px;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    border-left: 4px solid #667eea;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.notification.success .notification-content {
    border-left-color: #28a745;
}

.notification.error .notification-content {
    border-left-color: #dc3545;
}

.notification.warning .notification-content {
    border-left-color: #ffc107;
}

.notification-close {
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    color: #666;
}

.notification-close:hover {
    color: #333;
}

/* 分析内容 */
.analysis-content {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    min-height: 400px;
}

.analysis-section {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e0e0e0;
}

.analysis-section:last-child {
    border-bottom: none;
}

.analysis-section h3 {
    color: #333;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #667eea;
    display: inline-block;
}

/* 无数据提示 */
.no-data {
    text-align: center;
    color: #666;
    font-style: italic;
    padding: 2rem;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        gap: 1rem;
    }
    
    .main-content {
        padding: 1rem;
    }
    
    .dashboard-header,
    .page-header {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
    
    .dashboard-main {
        grid-template-columns: 1fr;
        gap: 1rem;
        height: auto;
    }
    
    .ec-files-panel {
        max-height: 250px;
    }
    
    .analysis-panel {
        min-height: 500px;
    }
    
    .search-filter {
        flex-direction: column;
    }
    
    .search-input {
        min-width: auto;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .modal-content {
        width: 95%;
    }
    
    .action-buttons {
        flex-direction: column;
    }
    
    .notification {
        right: 10px;
        left: 10px;
        max-width: none;
    }

    .step-header {
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    
    .step-actions {
        flex-direction: column;
    }
}

/* 步骤3专用样式 */
.current-file-info {
    margin: 1rem 0;
    padding: 0.75rem 1rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 8px;
    color: white;
}

.current-file-display {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
}

.current-file-display i {
    color: #ffffff;
    opacity: 0.9;
}

.current-file-name {
    font-weight: 600;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.2);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
}

.document-status-section {
    margin: 1rem 0;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.loaded-documents {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.document-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem;
    background: white;
    border-radius: 6px;
    border: 1px solid #dee2e6;
}

.document-item i {
    color: #6c757d;
    width: 16px;
}

.status-indicator {
    margin-left: auto;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 500;
}

.status-indicator.loaded {
    background: #d1e7dd;
    color: #0f5132;
}

.status-indicator.error {
    background: #f8d7da;
    color: #721c24;
}

.user-feedback-management {
    margin: 1rem 0;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.feedback-controls {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.feedback-files-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.feedback-file-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem;
    background: white;
    border-radius: 6px;
    border: 1px solid #dee2e6;
}

.feedback-file-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.feedback-file-actions {
    display: flex;
    gap: 0.25rem;
}

/* 用户反馈模态对话框样式 */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    border-radius: 12px;
    max-width: 400px;
    width: 90%;
    overflow: hidden;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
}

.modal-header h3 {
    margin: 0;
    color: #ffffff;
    font-size: 1.25rem;
}

.modal-close {
    background: none;
    border: none;
    font-size: 2rem;
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

.modal-body {
    padding: 15px;
    max-height: 85vh;
    overflow-y: auto;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
}

.input {
    width: 100%;
    padding: 10px 12px;
    border: 1.5px solid #474747;
    border-radius: 8px;
    font-size: 0.9rem;
    box-sizing: border-box;
    transition: border 0.2s, box-shadow 0.2s;
}

.input:focus {
    border: 1.5px solid #2d2e2e;
    box-shadow: 0 0 0 2.5px rgba(45, 46, 46, 0.2);
    outline: none;
}

.btn-nav {
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1.5px solid #4c4e4e;
    background: rgba(179, 179, 179, 0.13);
    color: #eaf7e1;
}

.btn-nav:hover {
    background: linear-gradient(90deg, #5b5c5c 20%, #555757 100%);
    color: #fff;
    border-color: #2d2e2e;
}

.btn-primary {
    background: linear-gradient(90deg, #5b5c5c 20%, #555757 100%);
    color: #fff !important;
    border-color: #2d2e2e;
}

.btn-full {
    width: 100%;
}

.modal-footer {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    background: transparent;
}

.modal-footer p {
    margin: 0;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.85rem;
}

.modal-footer a {
    color: #4d7c7eab;
    text-decoration: none;
}

.modal-footer a:hover {
    text-decoration: underline;
}

.form-text {
    display: block;
    margin-top: 5px;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
}

.text-muted {
    color: rgba(255, 255, 255, 0.5);
}

.feedback-input-section label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #333;
}

.feedback-textarea {
    width: 100%;
    min-height: 200px;
    padding: 1rem;
    border: 1px solid #ced4da;
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.9rem;
    line-height: 1.5;
    resize: vertical;
    transition: border-color 0.2s ease;
}

.feedback-textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.1);
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    padding: 1.5rem;
}

/* 预览文档区域样式 */
.document-preview {
    margin-top: 1rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
    max-height: 400px;
    overflow-y: auto;
}

.document-section {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #dee2e6;
}

.document-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

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

.document-content {
    background: white;
    padding: 1rem;
    border-radius: 6px;
    border-left: 3px solid #667eea;
    font-family: monospace;
    font-size: 0.85rem;
    white-space: pre-wrap;
    max-height: 200px;
    overflow-y: auto;
}

/* AI分析相关样式 */
.ai-service-selection {
    margin-bottom: 20px;
}

.service-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 10px;
}

.service-option {
    display: flex;
    align-items: center;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    background: #f9f9f9;
}

.service-option input[type="radio"] {
    margin-right: 10px;
}

.service-option label {
    display: flex;
    align-items: center;
    flex: 1;
    cursor: pointer;
    margin: 0;
}

.service-option label i {
    margin-right: 8px;
    color: #007bff;
}

.service-status {
    margin-left: auto;
    padding: 2px 8px;
    border-radius: 3px;
    font-size: 0.8rem;
    font-weight: bold;
}

.service-status.available {
    background: #d4edda;
    color: #155724;
}

.service-status.unavailable {
    background: #f8d7da;
    color: #721c24;
}

.model-select {
    margin-top: 5px;
    margin-left: 25px;
    padding: 5px;
    border: 1px solid #ccc;
    border-radius: 3px;
    background: white;
}

.ai-status-info {
    margin-bottom: 20px;
}

.status-display {
    padding: 10px;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 5px;
    min-height: 60px;
}

.service-status-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
}

.service-item {
    padding: 5px 0;
    border-bottom: 1px solid #eee;
}

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

.analysis-result {
    margin-top: 20px;
    padding: 15px;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 5px;
}

.result-info {
    margin-bottom: 15px;
}

.result-info p {
    margin: 5px 0;
}

.result-info span {
    font-weight: normal;
    margin-left: 5px;
}

.result-preview {
    margin-top: 15px;
}

.preview-content {
    max-height: 200px;
    overflow-y: auto;
    padding: 10px;
    background: white;
    border: 1px solid #ddd;
    border-radius: 3px;
    font-family: monospace;
    font-size: 0.9rem;
    line-height: 1.4;
    white-space: pre-wrap;
}

.error {
    color: #dc3545;
    font-weight: bold;
}

/* 年份分组样式 */
.year-group {
    margin-bottom: 1rem;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    overflow: hidden;
}

.year-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 0.75rem 1rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.3s;
}

.year-header:hover {
    background: linear-gradient(135deg, #5a67d8 0%, #6b46c1 100%);
}

.year-files {
    padding: 0.5rem;
    background: #f8f9fa;
}

.year-toggle {
    transition: transform 0.3s;
}

.year-toggle.rotated {
    transform: rotate(-90deg);
}

/* 新增AI服务选择样式 */
.auto-select-option {
    margin-top: 15px;
    padding: 10px;
    background: linear-gradient(135deg, #e8f4fd 0%, #c3e5ff 100%);
    border: 1px solid #b3d9ff;
    border-radius: 8px;
}

.auto-select-option label {
    display: flex;
    align-items: center;
    font-weight: 500;
    color: #1e40af;
    cursor: pointer;
    margin: 0;
}

.auto-select-option input[type="radio"] {
    margin-right: 8px;
}

.auto-select-option i {
    margin-right: 8px;
    color: #3b82f6;
}

.service-option.unavailable {
    opacity: 0.6;
    background: #f5f5f5;
}

.service-option.unavailable input[type="radio"] {
    cursor: not-allowed;
}

.service-option.unavailable label {
    cursor: not-allowed;
    color: #666;
}

.loading-services {
    text-align: center;
    padding: 20px;
    color: #b8b8b8;
}

.loading-services i {
    margin-right: 8px;
}

.service-status-grid {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.service-item {
    padding: 8px 12px;
    background: white;
    border-radius: 5px;
    border-left: 4px solid #007bff;
}

.error {
    color: #dc3545;
    font-weight: 500;
    text-align: center;
    padding: 10px;
}

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

.text-danger {
    color: #dc3545;
}

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