/* 风险分析系统样式 */

/* 基础变量 */
:root {
    --primary-color: #1a5fb4;
    --primary-light: #3584e4;
    --primary-dark: #15437f;
    --secondary-color: #26a269;
    --secondary-light: #33d17a;
    --secondary-dark: #1b7a4d;
    --warning-color: #e5a50a;
    --danger-color: #c01c28;
    --danger-light: #e01b24;
    --success-color: #2ec27e;
    --info-color: #3584e4;
    --gray-100: #f6f5f4;
    --gray-200: #deddda;
    --gray-300: #c0bfbc;
    --gray-400: #9a9996;
    --gray-500: #77767b;
    --gray-600: #5e5c64;
    --gray-700: #3d3846;
    --gray-800: #241f31;
    --gray-900: #000000;
    --white: #ffffff;
    --border-radius: 4px;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
    --font-family: "Microsoft YaHei", SimSun, sans-serif;
    --transition-speed: 0.3s;
}

/* 全局样式 */
.app-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background-color: var(--gray-100);
}

/* 顶部导航栏 */
.risk-header {
    background-color: var(--white);
    box-shadow: var(--shadow-sm);
    padding: 1rem 0;
    border-bottom: 1px solid var(--gray-200);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.text-logo {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin: 0;
}

.nav-list {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-link {
    color: var(--gray-700);
    text-decoration: none;
    padding: 0.5rem 1rem;
    margin: 0 0.25rem;
    border-radius: var(--border-radius);
    transition: all var(--transition-speed);
}

.nav-link:hover {
    background-color: var(--gray-100);
    color: var(--primary-color);
}

.nav-link.active {
    background-color: var(--primary-color);
    color: var(--white);
}

/* 主内容区 */
.risk-main {
    flex: 1;
    padding: 2rem 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.risk-content {
    display: flex;
    gap: 2rem;
}

/* 左侧边栏 */
.risk-sidebar {
    flex: 0 0 260px;
    background-color: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.sidebar-section {
    margin-bottom: 1.5rem;
}

.section-title {
    padding: 1rem;
    margin: 0;
    background-color: var(--gray-100);
    color: var(--gray-700);
    font-size: 1rem;
    font-weight: 600;
    border-bottom: 1px solid var(--gray-200);
}

.feature-menu,
.template-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.feature-item,
.template-item {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    cursor: pointer;
    transition: all var(--transition-speed);
    border-left: 3px solid transparent;
}

.feature-item:hover,
.template-item:hover {
    background-color: var(--gray-100);
}

.feature-item.active,
.template-item.active {
    background-color: var(--primary-light);
    color: var(--white);
    border-left-color: var(--primary-dark);
}

.feature-icon,
.template-icon {
    display: inline-block;
    width: 20px;
    height: 20px;
    margin-right: 0.75rem;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.icon-upload {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='currentColor'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M7 16a4 4 0 01-.88-7.903A5 5 0 1115.9 6L16 6a5 5 0 011 9.9M15 13l-3-3m0 0l-3 3m3-3v12'%3E%3C/path%3E%3C/svg%3E");
}

.icon-analysis {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='currentColor'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M9 19v-6a2 2 0 00-2-2H5a2 2 0 00-2 2v6a2 2 0 002 2h2a2 2 0 002-2zm0 0V9a2 2 0 012-2h2a2 2 0 012 2v10m-6 0a2 2 0 002 2h2a2 2 0 002-2m0 0V5a2 2 0 012-2h2a2 2 0 012 2v14a2 2 0 01-2 2h-2a2 2 0 01-2-2z'%3E%3C/path%3E%3C/svg%3E");
}

.icon-report {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='currentColor'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M9 12h6m-6 4h6m2 5H7a2 2 0 01-2-2V5a2 2 0 012-2h5.586a1 1 0 01.707.293l5.414 5.414a1 1 0 01.293.707V19a2 2 0 01-2 2z'%3E%3C/path%3E%3C/svg%3E");
}

.icon-history {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='currentColor'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M12 8v4l3 3m6-3a9 9 0 11-18 0 9 9 0 0118 0z'%3E%3C/path%3E%3C/svg%3E");
}

.icon-template {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='currentColor'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M4 5a1 1 0 011-1h14a1 1 0 011 1v2a1 1 0 01-1 1H5a1 1 0 01-1-1V5zM4 13a1 1 0 011-1h6a1 1 0 011 1v6a1 1 0 01-1 1H5a1 1 0 01-1-1v-6zM16 13a1 1 0 011-1h2a1 1 0 011 1v6a1 1 0 01-1 1h-2a1 1 0 01-1-1v-6z'%3E%3C/path%3E%3C/svg%3E");
}

/* 右侧工作区 */
.risk-workspace {
    flex: 1;
    background-color: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    padding: 1.5rem;
}

.workspace-section {
    display: none;
}

.workspace-section.active {
    display: block;
}

.section-header {
    margin-bottom: 2rem;
}

.workspace-title {
    font-size: 1.5rem;
    color: var(--gray-800);
    margin: 0 0 0.5rem;
}

.workspace-desc {
    color: var(--gray-600);
    margin: 0;
}

/* 上传区域样式 */
.upload-container {
    margin-bottom: 2rem;
}

.upload-area {
    border: 2px dashed var(--gray-300);
    border-radius: var(--border-radius);
    padding: 2rem;
    text-align: center;
    transition: all var(--transition-speed);
    cursor: pointer;
}

.upload-area:hover,
.upload-area.dragover {
    border-color: var(--primary-light);
    background-color: rgba(53, 132, 228, 0.05);
}

.upload-icon {
    margin-bottom: 1rem;
}

.icon-excel-large {
    display: inline-block;
    width: 64px;
    height: 64px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%232CA05A'%3E%3Cpath d='M21.71,3.29l-3-3A1,1,0,0,0,18,0H8A3,3,0,0,0,5,3V6H6V3A2,2,0,0,1,8,1h9V5a1,1,0,0,0,1,1h4V21a2,2,0,0,1-2,2H8a2,2,0,0,1-2-2V19H5v2a3,3,0,0,0,3,3h12a3,3,0,0,0,3-3V4A1,1,0,0,0,21.71,3.29Z'/%3E%3Cpath d='M16.17,17.76L14,15H10a1,1,0,0,1-1-1V8a1,1,0,0,1,1-1h11a1,1,0,0,1,1,1v6a1,1,0,0,1-1,1H17.91Z'/%3E%3Cpath d='M14,12.5v4.17L15.17,15H19V12.5Z'/%3E%3Cpath d='M14,10V7h6v3Z'/%3E%3Cpath d='M10,7v3h3v2H10v3h3V12.5h1V15h5V12.5h1V7Z'/%3E%3Cpath d='M0,8v8a1,1,0,0,0,1,1H9a1,1,0,0,0,1-1V8a1,1,0,0,0-1-1H1A1,1,0,0,0,0,8ZM5.91,14.58,5,15.92l-.91-1.34L3.17,16H6.83ZM8,8.5v7H7.18L5,13.08,2.82,15.5H2v-7H8Z'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.upload-title {
    font-size: 1.25rem;
    color: var(--gray-700);
    margin: 0 0 0.5rem;
}

.upload-desc {
    color: var(--gray-500);
    margin: 0 0 1.5rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-speed);
    border: none;
    outline: none;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
}

.btn-outline {
    background-color: transparent;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

.upload-tips {
    margin-top: 1.5rem;
    background-color: var(--gray-100);
    border-radius: var(--border-radius);
    padding: 1rem;
}

.tips-title {
    font-size: 1rem;
    color: var(--gray-700);
    margin: 0 0 0.5rem;
}

.tips-list {
    color: var(--gray-600);
    margin: 0;
    padding-left: 1.5rem;
}

.tips-list li {
    margin-bottom: 0.25rem;
}

/* 文件预览区域 */
.file-preview {
    background-color: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-200);
    overflow: hidden;
}

.preview-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    border-bottom: 1px solid var(--gray-200);
}

.preview-title {
    font-size: 1.25rem;
    color: var(--gray-800);
    margin: 0;
}

.preview-content {
    padding: 1rem;
}

.file-info {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.file-icon {
    margin-right: 1rem;
}

.icon-excel {
    display: inline-block;
    width: 48px;
    height: 48px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%232CA05A'%3E%3Cpath d='M21.71,3.29l-3-3A1,1,0,0,0,18,0H8A3,3,0,0,0,5,3V6H6V3A2,2,0,0,1,8,1h9V5a1,1,0,0,0,1,1h4V21a2,2,0,0,1-2,2H8a2,2,0,0,1-2-2V19H5v2a3,3,0,0,0,3,3h12a3,3,0,0,0,3-3V4A1,1,0,0,0,21.71,3.29Z'/%3E%3Cpath d='M16.17,17.76L14,15H10a1,1,0,0,1-1-1V8a1,1,0,0,1,1-1h11a1,1,0,0,1,1,1v6a1,1,0,0,1-1,1H17.91Z'/%3E%3Cpath d='M14,12.5v4.17L15.17,15H19V12.5Z'/%3E%3Cpath d='M14,10V7h6v3Z'/%3E%3Cpath d='M10,7v3h3v2H10v3h3V12.5h1V15h5V12.5h1V7Z'/%3E%3Cpath d='M0,8v8a1,1,0,0,0,1,1H9a1,1,0,0,0,1-1V8a1,1,0,0,0-1-1H1A1,1,0,0,0,0,8ZM5.91,14.58,5,15.92l-.91-1.34L3.17,16H6.83ZM8,8.5v7H7.18L5,13.08,2.82,15.5H2v-7H8Z'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.file-details {
    flex: 1;
}

.file-name {
    font-size: 1.1rem;
    color: var(--gray-800);
    margin: 0 0 0.25rem;
}

.file-meta {
    color: var(--gray-500);
    font-size: 0.9rem;
    margin: 0;
}

.sheet-tabs {
    margin-top: 1rem;
}

.tabs-header {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
}

.tabs-title {
    font-size: 1rem;
    color: var(--gray-700);
    margin: 0 1rem 0 0;
    white-space: nowrap;
}

.tab-list {
    display: flex;
    overflow-x: auto;
    padding-bottom: 0.5rem;
}

.sheet-preview {
    border: 1px solid var(--gray-200);
    border-radius: var(--border-radius);
    overflow: auto;
    max-height: 400px;
}

/* 分析设置部分样式 */
.analysis-container {
    margin-bottom: 2rem;
}

.analysis-form {
    background-color: var(--white);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border: 1px solid var(--gray-200);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    font-weight: 500;
    color: var(--gray-700);
    margin-bottom: 0.5rem;
}

.form-select {
    width: 100%;
    padding: 0.5rem;
    border-radius: var(--border-radius);
    border: 1px solid var(--gray-300);
    background-color: var(--white);
    color: var(--gray-700);
    transition: all var(--transition-speed);
}

.form-select:focus {
    border-color: var(--primary-light);
    outline: none;
    box-shadow: 0 0 0 2px rgba(53, 132, 228, 0.25);
}

.year-selector {
    display: flex;
    align-items: center;
}

.form-input {
    padding: 0.5rem;
    border-radius: var(--border-radius);
    border: 1px solid var(--gray-300);
    background-color: var(--white);
    color: var(--gray-700);
    transition: all var(--transition-speed);
    max-width: 100px;
}

.form-input:focus {
    border-color: var(--primary-light);
    outline: none;
    box-shadow: 0 0 0 2px rgba(53, 132, 228, 0.25);
}

.year-range {
    margin-left: 1rem;
    display: flex;
    align-items: center;
}

.form-checkbox {
    margin-right: 0.5rem;
}

.dimension-options {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 0.75rem;
}

.dimension-option {
    display: flex;
    align-items: center;
}

.depth-slider {
    margin-top: 0.5rem;
}

.form-slider {
    width: 100%;
    margin-bottom: 0.5rem;
}

.depth-labels {
    display: flex;
    justify-content: space-between;
    color: var(--gray-600);
    font-size: 0.875rem;
}

.format-options {
    display: flex;
    gap: 1.5rem;
}

.format-option {
    display: flex;
    align-items: center;
}

.form-radio {
    margin-right: 0.5rem;
}

.analysis-actions {
    display: flex;
    justify-content: space-between;
}

/* 报告生成部分样式 */
.report-container {
    margin-bottom: 2rem;
}

.analysis-progress {
    background-color: var(--white);
    border-radius: var(--border-radius);
    padding: 2rem;
    text-align: center;
    border: 1px solid var(--gray-200);
}

.progress-status {
    display: flex;
    align-items: center;
    max-width: 500px;
    margin: 0 auto 1rem;
}

.progress-bar {
    flex: 1;
    height: 8px;
    background-color: var(--gray-200);
    border-radius: 4px;
    overflow: hidden;
    margin-right: 1rem;
}

.progress-fill {
    height: 100%;
    background-color: var(--primary-color);
    border-radius: 4px;
    transition: width 0.5s ease;
}

.progress-percentage {
    font-weight: 500;
    color: var(--gray-700);
    min-width: 40px;
    text-align: right;
}

.progress-message {
    color: var(--gray-600);
}

.report-result {
    background-color: var(--white);
    border-radius: var(--border-radius);
    border: 1px solid var(--gray-200);
    overflow: hidden;
}

.result-header {
    display: flex;
    align-items: center;
    padding: 1.5rem;
    background-color: var(--gray-100);
    border-bottom: 1px solid var(--gray-200);
}

.result-icon {
    margin-right: 1rem;
}

.icon-success {
    display: inline-block;
    width: 48px;
    height: 48px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%232EC27E'%3E%3Cpath d='M12,0A12,12,0,1,0,24,12,12,12,0,0,0,12,0Zm6.93,8.2-6.85,9.29a1,1,0,0,1-1.43.19L5.76,13.77a1,1,0,0,1-.15-1.41A1,1,0,0,1,7,12.21l4.08,3.26L17.64,7a1,1,0,0,1,1.39-.21A1,1,0,0,1,18.93,8.2Z'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.result-info {
    flex: 1;
}

.result-title {
    font-size: 1.25rem;
    color: var(--gray-800);
    margin: 0 0 0.25rem;
}

.result-desc {
    color: var(--gray-600);
    margin: 0;
}

.report-preview {
    display: flex;
    padding: 1.5rem;
    border-bottom: 1px solid var(--gray-200);
}

.report-thumbnail {
    flex: 0 0 200px;
    margin-right: 1.5rem;
}

.report-thumbnail img {
    width: 100%;
    height: auto;
    border: 1px solid var(--gray-300);
    border-radius: var(--border-radius);
}

.report-info {
    flex: 1;
}

.report-title {
    font-size: 1.25rem;
    color: var(--gray-800);
    margin: 0 0 0.25rem;
}

.report-meta {
    color: var(--gray-500);
    font-size: 0.9rem;
    margin: 0 0 1rem;
}

.report-summary {
    margin-bottom: 1.5rem;
}

.summary-title {
    font-size: 1rem;
    color: var(--gray-700);
    margin: 0 0 0.5rem;
}

.summary-content {
    color: var(--gray-600);
    margin: 0;
}

.report-actions {
    display: flex;
    gap: 1rem;
}

.icon-preview,
.icon-download {
    display: inline-block;
    width: 16px;
    height: 16px;
    margin-right: 0.5rem;
}

.icon-preview {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='currentColor'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M15 12a3 3 0 11-6 0 3 3 0 016 0z'%3E%3C/path%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2.458 12C3.732 7.943 7.523 5 12 5c4.478 0 8.268 2.943 9.542 7-1.274 4.057-5.064 7-9.542 7-4.477 0-8.268-2.943-9.542-7z'%3E%3C/path%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.icon-download {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='currentColor'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M4 16v1a3 3 0 003 3h10a3 3 0 003-3v-1m-4-4l-4 4m0 0l-4-4m4 4V4'%3E%3C/path%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

/* 风险摘要部分 */
.risk-summary {
    padding: 1.5rem;
}

.summary-header {
    font-size: 1.25rem;
    color: var(--gray-800);
    margin: 0 0 1rem;
}

.risk-chart {
    height: 300px;
    margin-bottom: 1.5rem;
}

.risk-levels {
    display: flex;
    justify-content: space-around;
}

.risk-level {
    display: flex;
    align-items: center;
}

.level-indicator {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-right: 0.5rem;
}

.risk-level.high .level-indicator {
    background-color: var(--danger-color);
}

.risk-level.medium .level-indicator {
    background-color: var(--warning-color);
}

.risk-level.low .level-indicator {
    background-color: var(--success-color);
}

.level-name {
    color: var(--gray-700);
    margin-right: 0.5rem;
}

.level-count {
    font-weight: 500;
}

/* 历史报告部分样式 */
.history-container {
    margin-bottom: 2rem;
}

.history-filters {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    background-color: var(--white);
    border-radius: var(--border-radius);
    padding: 1rem;
    border: 1px solid var(--gray-200);
}

.filter-group {
    display: flex;
    align-items: center;
    margin-right: 1.5rem;
}

.filter-label {
    color: var(--gray-700);
    margin-right: 0.5rem;
    white-space: nowrap;
}

.filter-select {
    padding: 0.25rem 0.5rem;
    border-radius: var(--border-radius);
    border: 1px solid var(--gray-300);
    background-color: var(--white);
    color: var(--gray-700);
}

.filter-search {
    display: flex;
    align-items: center;
    margin-left: auto;
}

.search-input {
    padding: 0.25rem 0.5rem;
    border-radius: var(--border-radius) 0 0 var(--border-radius);
    border: 1px solid var(--gray-300);
    background-color: var(--white);
    color: var(--gray-700);
    min-width: 200px;
}

.search-btn {
    padding: 0.25rem 0.5rem;
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
    border: 1px solid var(--gray-300);
    border-left: none;
    background-color: var(--gray-100);
    cursor: pointer;
}

.icon-search {
    display: inline-block;
    width: 16px;
    height: 16px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='currentColor'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z'%3E%3C/path%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.history-list {
    background-color: var(--white);
    border-radius: var(--border-radius);
    border: 1px solid var(--gray-200);
    overflow: hidden;
    margin-bottom: 1rem;
}

.history-table {
    width: 100%;
    border-collapse: collapse;
}

.history-table th {
    padding: 0.75rem 1rem;
    text-align: left;
    font-weight: 500;
    color: var(--gray-700);
    background-color: var(--gray-100);
    border-bottom: 1px solid var(--gray-200);
}

.history-table td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--gray-200);
    color: var(--gray-600);
}

.history-item:last-child td {
    border-bottom: none;
}

.item-title {
    color: var(--gray-800);
    font-weight: 500;
}

.item-actions {
    display: flex;
    gap: 0.5rem;
}

.action-btn {
    background: transparent;
    border: none;
    padding: 0.25rem;
    cursor: pointer;
    border-radius: var(--border-radius);
    transition: all var(--transition-speed);
}

.action-btn:hover {
    background-color: var(--gray-100);
}

.preview-btn .icon-preview,
.download-btn .icon-download,
.delete-btn .icon-delete {
    margin-right: 0;
}

.icon-delete {
    display: inline-block;
    width: 16px;
    height: 16px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='currentColor'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 7l-.867 12.142A2 2 0 0116.138 21H7.862a2 2 0 01-1.995-1.858L5 7m5 4v6m4-6v6m1-10V4a1 1 0 00-1-1h-4a1 1 0 00-1 1v3M4 7h16'%3E%3C/path%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.history-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
}

.pagination-btn {
    padding: 0.25rem 0.75rem;
    border-radius: var(--border-radius);
    border: 1px solid var(--gray-300);
    background-color: var(--white);
    color: var(--gray-700);
    cursor: pointer;
    transition: all var(--transition-speed);
}

.pagination-btn:hover:not(:disabled) {
    background-color: var(--primary-light);
    color: var(--white);
    border-color: var(--primary-light);
}

.pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.pagination-pages {
    margin: 0 1rem;
    color: var(--gray-700);
}

/* 页脚样式 */
.risk-footer {
    padding: 1.5rem 0;
    background-color: var(--white);
    border-top: 1px solid var(--gray-200);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.copyright {
    color: var(--gray-600);
    font-size: 0.9rem;
}

.footer-links {
    display: flex;
    gap: 1.5rem;
}

.footer-links a {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 0.9rem;
}

.footer-links a:hover {
    text-decoration: underline;
}

/* 模态弹窗样式 */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    overflow: auto;
}

.modal-content {
    position: relative;
    background-color: var(--white);
    margin: 2rem auto;
    width: 90%;
    max-width: 1000px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    max-height: calc(100vh - 4rem);
    display: flex;
    flex-direction: column;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--gray-200);
}

.modal-title {
    font-size: 1.25rem;
    color: var(--gray-800);
    margin: 0;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--gray-500);
    cursor: pointer;
}

.modal-body {
    padding: 1.5rem;
    overflow: auto;
    flex: 1;
}

.report-viewer {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.viewer-toolbar {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--gray-200);
}

.page-navigation {
    display: flex;
    align-items: center;
    margin-right: 2rem;
}

.nav-btn {
    background: none;
    border: 1px solid var(--gray-300);
    border-radius: var(--border-radius);
    padding: 0.25rem 0.5rem;
    cursor: pointer;
}

.icon-prev,
.icon-next {
    display: inline-block;
    width: 16px;
    height: 16px;
}

.icon-prev {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='currentColor'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M15 19l-7-7 7-7'%3E%3C/path%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.icon-next {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='currentColor'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M9 5l7 7-7 7'%3E%3C/path%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.page-info {
    margin: 0 0.5rem;
    color: var(--gray-700);
}

.zoom-controls {
    display: flex;
    align-items: center;
    margin-right: 2rem;
}

.zoom-btn {
    background: none;
    border: 1px solid var(--gray-300);
    border-radius: var(--border-radius);
    padding: 0.25rem 0.5rem;
    cursor: pointer;
}

.icon-zoom-in,
.icon-zoom-out {
    display: inline-block;
    width: 16px;
    height: 16px;
}

.icon-zoom-in {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='currentColor'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0zm-7-3v6m-3-3h6'%3E%3C/path%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.icon-zoom-out {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='currentColor'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0zm-7-3h6'%3E%3C/path%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.zoom-select {
    margin: 0 0.5rem;
    padding: 0.25rem 0.5rem;
    border-radius: var(--border-radius);
    border: 1px solid var(--gray-300);
}

.viewer-content {
    flex: 1;
    overflow: auto;
    text-align: center;
}

.report-page {
    display: inline-block;
    background-color: var(--white);
    box-shadow: var(--shadow-sm);
    margin: 0 auto;
}

.report-page img {
    display: block;
    max-width: 100%;
    height: auto;
}