* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* 头部样式 */
.header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px 30px;
    border-radius: 8px;
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header h1 {
    font-size: 24px;
    font-weight: 600;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.nav {
    display: flex;
    gap: 10px;
}

.nav-btn {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
}

.nav-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

.nav-btn.active {
    background: white;
    color: #667eea;
}

.auth-controls {
    display: flex;
    align-items: center;
    gap: 8px;
}

.auth-status {
    font-weight: 600;
}

.auth-guard {
    display: none;
    align-items: center;
    justify-content: center;
    background: white;
    border: 1px dashed #ccc;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.06);
}

body.locked .auth-guard {
    display: flex;
}

body.locked .page {
    display: none !important;
}

/* 登录弹窗 */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.4);
}

.modal-content {
    background-color: #fff;
    margin: 5% auto;
    padding: 0;
    border: 1px solid #e9ecef;
    width: 90%;
    max-width: 500px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.modal-header {
    padding: 16px 20px;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    margin: 0;
    font-size: 18px;
}

.modal-close {
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    color: #666;
}

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

.modal-body {
    padding: 20px;
}

.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 15px;
}

/* 页面切换 */
.page {
    display: none;
}

.page.active {
    display: block;
}

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding: 15px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.page-header h2 {
    font-size: 20px;
    color: #333;
}

/* 按钮样式 */
.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s;
    margin-left: 10px;
}

.btn-primary {
    background: #667eea;
    color: white;
}

.btn-primary:hover {
    background: #5568d3;
}

.btn-secondary {
    background: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background: #5a6268;
}

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

.btn-success:hover {
    background: #218838;
}

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

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

.table thead {
    background: #f8f9fa;
}

.table th {
    padding: 12px;
    text-align: left;
    font-weight: 600;
    color: #495057;
    border-bottom: 2px solid #dee2e6;
}

.table td {
    padding: 12px;
    border-bottom: 1px solid #dee2e6;
}

.table tbody tr:hover {
    background: #f8f9fa;
}

.text-center {
    text-align: center;
}

/* 表单样式 */
.project-form {
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.form-section {
    margin-bottom: 30px;
}

.section-title {
    font-size: 18px;
    color: #667eea;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #667eea;
}

.data-section {
    margin-bottom: 25px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 6px;
}

.data-section h4 {
    font-size: 16px;
    color: #495057;
    margin-bottom: 15px;
}

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

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    margin-bottom: 8px;
    font-weight: 500;
    color: #495057;
}

.required {
    color: #dc3545;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 10px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.3s;
}

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

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #dee2e6;
}

/* 成本计算结果 */
.result-card {
    background: white;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.result-card h3 {
    color: #667eea;
    margin-bottom: 15px;
}

.result-item {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
}

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

.result-label {
    font-weight: 500;
    color: #6c757d;
}

.result-value {
    font-weight: 600;
    color: #333;
    font-size: 18px;
}

.result-value.total {
    color: #667eea;
    font-size: 24px;
}

/* 图表容器 */
.chart-container {
    background: white;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* 成本构成环形图使用独立限宽容器，避免按整页宽度生成超大正方形画布。 */
.cost-chart-container {
    position: relative;
    width: min(100%, 440px);
    height: 320px;
    margin: 20px auto 0;
}

.cost-chart-container canvas {
    display: block;
    width: 100% !important;
    height: 100% !important;
}

/* 服务等级对比表格 */
.service-comparison-table {
    overflow-x: auto;
    margin-top: 15px;
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

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

.comparison-table th {
    padding: 12px;
    text-align: center;
    font-weight: 600;
    white-space: nowrap;
}

.comparison-table td {
    padding: 12px;
    border-bottom: 1px solid #e9ecef;
    text-align: right;
}

.comparison-table td:first-child {
    text-align: right;
}

.comparison-table th:first-child {
    text-align: right;
}

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

.comparison-table tbody tr.current-level {
    background-color: #e7f3ff;
    border-left: 4px solid #667eea;
}

.current-badge {
    display: inline-block;
    background: #667eea;
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
    margin-left: 8px;
    font-weight: normal;
}

.diff-positive {
    color: #dc3545;
    font-weight: 600;
}

.diff-negative {
    color: #28a745;
    font-weight: 600;
}

/* 差异列样式 */
.comparison-table td > div {
    margin: 2px 0;
    line-height: 1.4;
}

/* 详细成本明细 */
.detail-section {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 2px solid #e9ecef;
}

.detail-section h4 {
    color: #495057;
    margin-bottom: 15px;
    font-size: 16px;
    font-weight: 600;
}

.detail-table {
    font-size: 13px;
}

.detail-table th {
    padding: 10px 8px;
    font-size: 13px;
}

.detail-table th:first-child {
    text-align: right;
}

.detail-table td {
    padding: 10px 8px;
    font-size: 13px;
}

.detail-table td:first-child {
    text-align: right;
}

/* 转置表格样式优化 */
.comparison-table th.current-level {
    background-color: #e3f2fd;
    color: #1976d2;
}

.comparison-table .total-row {
    background-color: #f5f5f5;
    font-weight: 600;
}

.comparison-table .total-row td {
    border-top: 2px solid #ddd;
}

/* 项目标题头部 */
.project-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px 30px;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.project-title {
    margin: 0;
    font-size: 24px;
    font-weight: 600;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* 弹窗样式 */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    overflow: auto;
}

.modal-content {
    background-color: #fff;
    margin: 5% auto;
    padding: 0;
    border-radius: 8px;
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.modal-header {
    padding: 20px 30px;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 8px 8px 0 0;
}

.modal-header h3 {
    margin: 0;
    font-size: 20px;
}

.modal-close {
    background: none;
    border: none;
    color: white;
    font-size: 28px;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    line-height: 30px;
    text-align: center;
    border-radius: 50%;
    transition: background-color 0.3s;
}

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

.modal-body {
    padding: 30px;
}

.modal-body h4 {
    margin-top: 25px;
    margin-bottom: 15px;
    color: #495057;
    font-size: 16px;
    border-bottom: 2px solid #e9ecef;
    padding-bottom: 8px;
}

.modal-body h4:first-child {
    margin-top: 0;
}

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

.form-actions {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e9ecef;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
}

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

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

.btn-info {
    background-color: #17a2b8;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: background-color 0.3s;
}

.btn-info:hover {
    background-color: #138496;
    color: white;
    text-decoration: none;
}

/* 加载提示 */
.loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

.loading-text {
    color: white;
    margin-top: 20px;
    font-size: 16px;
}

/* 消息提示 */
.message {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 20px;
    border-radius: 4px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    z-index: 10000;
    min-width: 300px;
    animation: slideIn 0.3s;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

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

.message.error {
    background: #dc3545;
    color: white;
}

.message.info {
    background: #17a2b8;
    color: white;
}

/* 反推成本页面样式 */
.reverse-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.reverse-section {
    margin-bottom: 30px;
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* 成本分配总览固定在顶部 */
.reverse-summary-sticky {
    position: sticky;
    top: 20px;
    z-index: 100;
    background: #fff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    transition: box-shadow 0.3s;
    padding: 12px 20px !important;
}

.reverse-summary-sticky:hover {
    box-shadow: 0 6px 16px rgba(0,0,0,0.2);
}

/* 压缩成本分配总览的高度 */
.reverse-summary-sticky h3 {
    margin-top: 0;
    margin-bottom: 12px !important;
    padding-bottom: 6px !important;
    font-size: 16px;
}

.reverse-summary-sticky .result-card {
    padding: 12px !important;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px 20px;
}

.reverse-summary-sticky .result-item {
    padding: 4px 0 !important;
    border-bottom: none !important;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.reverse-summary-sticky .result-item:nth-child(odd) {
    border-right: 1px solid #f0f0f0;
    padding-right: 15px;
}

.reverse-summary-sticky .result-label {
    font-size: 12px;
    min-width: auto;
    margin-right: 8px;
}

.reverse-summary-sticky .result-value {
    font-size: 13px !important;
    text-align: right;
}

.reverse-summary-sticky .result-value.total {
    font-size: 16px !important;
    font-weight: 700;
}

.reverse-section h3 {
    margin-top: 0;
    margin-bottom: 20px;
    color: #333;
    border-bottom: 2px solid #667eea;
    padding-bottom: 10px;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 15px;
}

.info-grid h4 {
    grid-column: 1 / -1;
    margin-top: 20px;
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 2px solid #e9ecef;
    font-size: 16px;
    font-weight: 600;
}

.info-grid h4:first-child {
    margin-top: 0;
}

.info-item {
    display: flex;
    align-items: center;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 4px;
}

.info-label {
    font-weight: 600;
    color: #666;
    margin-right: 10px;
    min-width: 120px;
}

.info-value {
    color: #333;
    font-size: 16px;
}

.editable-value {
    display: inline-block;
    min-width: 80px;
    padding: 5px 10px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin: 0 5px;
    text-align: center;
    cursor: text;
    transition: all 0.3s;
}

.editable-value:hover {
    border-color: #667eea;
    background: #f8f9ff;
}

.editable-value:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    background: #fff;
}

.editable-cost {
    display: inline-block;
    min-width: 100px;
    padding: 4px 8px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin: 0 5px;
    cursor: text;
    transition: all 0.3s;
}

.editable-cost:hover {
    border-color: #667eea;
    background: #f8f9ff;
}

.editable-cost:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    background: #fff;
}

.btn-minus, .btn-plus {
    width: 30px;
    height: 30px;
    border: 1px solid #ddd;
    background: #fff;
    border-radius: 4px;
    cursor: pointer;
    font-size: 18px;
    line-height: 1;
    transition: all 0.3s;
}

.btn-minus:hover, .btn-plus:hover {
    background: #667eea;
    color: #fff;
    border-color: #667eea;
}

.btn-edit {
    margin-left: 10px;
    padding: 4px 12px;
    font-size: 12px;
    background: #667eea;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.btn-edit:hover {
    background: #5568d3;
}

.btn-sm {
    padding: 4px 12px;
    font-size: 12px;
}

/* 方案列表样式 */
.plans-list {
    margin-top: 15px;
}

.plans-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
}

.plan-card {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.plan-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transform: translateY(-2px);
    border-color: #667eea;
}

.plan-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e9ecef;
}

.plan-header h4 {
    margin: 0;
    color: #333;
    font-size: 16px;
    font-weight: 600;
}

.plan-date {
    font-size: 12px;
    color: #6c757d;
}

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

.plan-info-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
}

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

.plan-label {
    color: #6c757d;
    font-size: 14px;
}

.plan-value {
    color: #333;
    font-weight: 500;
    font-size: 14px;
}

.plan-value.total {
    color: #667eea;
    font-weight: 600;
    font-size: 16px;
}

.plan-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #e9ecef;
}

/* 文本报告 */
.report-box {
    background: #f8f9fa;
    border: 1px solid #e1e4e8;
    border-radius: 6px;
    padding: 12px;
    white-space: pre-wrap;
    font-family: Menlo, Consolas, 'Courier New', monospace;
    font-size: 13px;
    line-height: 1.6;
}

.provenance-panel {
    border: 1px solid #c7d2fe;
    background: #f5f7ff;
}

.provenance-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 14px;
}

.provenance-heading .section-title {
    margin-bottom: 0;
}

.provenance-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 24px;
}

.provenance-grid > div {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.provenance-grid span {
    color: #667085;
    font-size: 12px;
}

.provenance-title {
    grid-column: 1 / -1;
}

.provenance-note {
    margin: 14px 0;
    color: #475467;
    line-height: 1.6;
}

.provenance-panel details {
    margin-top: 8px;
    border-top: 1px solid #dbe2f5;
    padding-top: 8px;
}

.provenance-panel summary {
    cursor: pointer;
    color: #344054;
    font-weight: 600;
}

.provenance-panel pre {
    margin: 10px 0 0;
    padding: 12px;
    overflow: auto;
    border-radius: 6px;
    background: #fff;
    color: #344054;
    white-space: pre-wrap;
    word-break: break-word;
    font: 13px/1.6 Menlo, Consolas, 'Courier New', monospace;
}

.scenario-controls {
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.scenario-controls select {
    min-width: 72px;
    padding: 8px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    background: #fff;
}

.scenario-llm-option {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
}

.scenario-batch-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.scenario-batch-heading h3,
.scenario-batch-heading p {
    margin: 0 0 6px;
}

.scenario-batch-heading p {
    color: #667085;
}

.scenario-batch-actions,
.scenario-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.scenario-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
}

.scenario-card {
    padding: 18px;
    border: 1px solid #e4e7ec;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 2px 8px rgba(16, 24, 40, 0.06);
}

.scenario-card-header {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.scenario-card h4 {
    margin: 5px 0 0;
}

.scenario-level {
    color: #4f46e5;
    font-size: 12px;
    font-weight: 700;
}

.scenario-score {
    color: #344054;
    font-size: 26px;
}

.scenario-score small {
    color: #98a2b3;
    font-size: 12px;
}

.scenario-metrics {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin: 0;
}

.scenario-metrics div {
    padding: 10px;
    border-radius: 7px;
    background: #f8fafc;
}

.scenario-metrics dt {
    color: #667085;
    font-size: 12px;
}

.scenario-metrics dd {
    margin: 4px 0 0;
    color: #101828;
    font-weight: 700;
}

.scenario-review-status {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    margin-top: 14px;
    font-size: 12px;
}

.status-pass { color: #067647; }
.status-fail { color: #b42318; }

.scenario-verdict {
    margin: 10px 0;
    font-weight: 600;
}

.scenario-market-gap {
    margin: -4px 0 10px;
    color: #b42318;
    font-size: 12px;
    font-weight: 600;
}

.scenario-actions {
    margin: 10px 0;
}

.scenario-review-history {
    margin-top: 10px;
    padding: 10px 12px;
    border-left: 3px solid #6366f1;
    background: #f8fafc;
}

.scenario-review-history ol {
    margin: 0;
    padding-left: 20px;
}

.scenario-review-history li + li {
    margin-top: 10px;
}

.scenario-review-history span {
    display: block;
    color: #667085;
    font-size: 12px;
}

.scenario-review-history p {
    margin: 3px 0 0;
}

.scenario-card details {
    margin-top: 8px;
}

.scenario-card summary {
    cursor: pointer;
    color: #475467;
}

.scenario-review-json {
    max-height: 280px;
    padding: 10px;
    overflow: auto;
    border-radius: 6px;
    background: #f8fafc;
    white-space: pre-wrap;
    word-break: break-word;
    font: 12px/1.55 Menlo, Consolas, monospace;
}

.review-dimensions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 12px 0;
}

.review-dimensions span {
    padding: 6px 9px;
    border-radius: 999px;
    background: #eef2ff;
    color: #3730a3;
    font-size: 12px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .header {
        flex-direction: column;
        gap: 15px;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .provenance-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .provenance-grid {
        grid-template-columns: 1fr;
    }

    .provenance-title {
        grid-column: auto;
    }

    .page-header {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }

    .cost-chart-container {
        height: 260px;
    }
}
