/* 整体页面样式 */
body {
    background-color: #fafafa;
    color: #333333;
}

.calculator-container {
    position: relative;
    min-height: 100vh;
    overflow: hidden;
    background: #ffffff;
    padding: 20px;
    margin: 20px auto;
    max-width: 1200px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.03);
}

/* 标题样式 */
.page-title {
    text-align: center;
    color: #333333;
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 30px;
    padding: 15px 0;
    border-bottom: 1px solid #e8e8e8;
}

/* 添加 logo 相关样式 */
.header-with-logo {
    text-align: center;
    margin-bottom: 30px;
    padding: 15px 0;
    border-bottom: 1px solid #e8e8e8;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 25px;
}

.law-firm-logo {
    width: 80px;
    height: auto;
    object-fit: contain;
    display: inline-block;
    margin-right: 20px;
}

.page-title {
    margin: 0;
    padding: 0;
    border: none;
    font-size: 28px;  /* 增大标题字号 */
    color: #333333;
    font-weight: 500;
    letter-spacing: 1px;  /* 增加字间距 */
    line-height: 1.4;  /* 调整行高 */
}

/* 确保在打印和导出时显示正确 */
@media print {
    .law-firm-logo {
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
    
    .page-title {
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
}

/* 模块分隔样式 */
.section {
    background: #ffffff;
    border: 1px solid #eeeeee;
    border-radius: 4px;
    margin-bottom: 25px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
    margin-top: 30px;
}

.section-header {
    background: #f5f5f5;
    color: #333333;
    padding: 12px 20px;
    font-size: 16px;
    font-weight: 500;
    border-bottom: 1px solid #eeeeee;
    margin-bottom: 15px;
}

.section-content {
    padding: 20px;
}

/* 表单样式 */
.el-form-item__label {
    color: #333333;
    font-weight: 500;
}

/* 汇总表格样式 */
.summary-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

.summary-table td,
.summary-table th {
    padding: 12px 20px;
    border: 1px solid #e8e8e8;
}

/* 第一列（文字）靠左对齐 */
.summary-table td:first-child {
    width: 120px;
    text-align: left;
    background-color: #fafafa;
}

/* 金额列居中对齐 */
.summary-table .money-column,
.summary-table td:not(:first-child) {
    text-align: center !important;
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    white-space: nowrap;
}

/* 总计行样式 */
.summary-table .total-row {
    background-color: #fafafa;
    font-weight: 500;
}

/* 利息部分样式 */
.summary-table .interest-section {
    border-top: 2px solid #e8e8e8;
}

.summary-table .interest-section td:not(:first-child) {
    color: #f56c6c;
}

/* 确保在打印和导出时显示正确 */
@media print {
    .summary-table .el-input__inner {
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
}

/* 修改月收入输入框样式 */
.analysis-form .el-form-item {
    margin-bottom: 0;
    display: flex;
    align-items: center;
    height: 40px;
}

.analysis-form .el-form-item__label {
    line-height: 40px;
    height: 40px;
    padding-right: 12px;
    color: #606266;
    font-size: 14px;
    text-align: left !important;
    width: 120px !important;
}

.analysis-form .el-form-item__content {
    display: flex;
    align-items: center;
    height: 40px;
    position: relative;
}

.analysis-form .amount-input {
    width: 200px !important;
    position: relative;
}

.analysis-form .el-input-group__prepend {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 35px;
    background-color: #f5f5f5;
    border-color: #dcdfe6;
    color: #909399;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

/* 确保在导出时保持样式 */
@media print {
    .analysis-form .el-form-item__content {
        position: relative !important;
    }

    .analysis-form .el-input__inner {
        font-family: "Helvetica Neue", Helvetica, Arial, sans-serif !important;
    }

    .analysis-form .el-input-group__prepend {
        font-family: "Helvetica Neue", Helvetica, Arial, sans-serif !important;
        position: absolute !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }
}

/* 修改表格第一列（机构名称）的样式 */
.summary-table td:first-child {
    text-align: left !important;  /* 第一列保持左对齐 */
}

/* 修改表头样式 */
.summary-table th {
    text-align: center !important;  /* 表头居中 */
    white-space: nowrap;
}



/* 修改利息部分的样式 */
.summary-table .interest-section td {
    text-align: center !important;
    color: #f56c6c;  /* 红色 */
}

.summary-table .interest-section td:first-child {
    text-align: left !important;
    color: #333333;  /* 保持原色 */
}

/* 预估方案列样式 */
.summary-table .solution-column {
    width: 200px;
    white-space: normal !important;
    line-height: 1.5;
    text-align: left !important;
    padding: 12px 15px !important;
}

/* 金额列居中 */
.money-column,
.total-row td {
    text-align: center !important;
}

/* 总汇总样式 */
.grand-total {
    margin-top: 30px;
}

.grand-total .total-amount {
    text-align: center;
    font-size: 16px;
    color: #333333;
    margin: 10px 0;
}

/* 导出时的样式调整 */
@media print {
    /* 隐藏的元素 */
    .operation-column,
    .export-buttons,
    .el-button,
    .input-section,
    td.operation-column,
    th.operation-column,
    .el-input:not(.analysis-form .el-input),
    .el-select,
    .amount-edit-wrapper {
        display: none !important;
    }

    /* 确保总计行显示 */
    .total-row {
        display: table-row !important;
    }

    /* 确保logo显示 */
    .law-firm-logo {
        display: block !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    /* 确保月收入输入框显示 */
    .analysis-form {
        display: block !important;
        margin-bottom: 20px !important;
    }

    .analysis-form .el-input {
        display: block !important;
    }

    /* 表格样式调整 */
    .summary-table {
        border-collapse: collapse;
    }
    
    .summary-table td,
    .summary-table th {
        border: 1px solid #ddd;
    }
    
    /* 移除操作列的边框 */
    .summary-table tr > td.operation-column,
    .summary-table tr > th.operation-column {
        border: none;
    }
}

/* 债务列表表格样式 */
.el-table {
    margin-top: 15px;
}

.el-table th {
    background-color: #f8f9fa !important;
    color: #34495e;
    font-weight: 500;
}

.el-table--border {
    border-color: #dcdfe6;
}

/* 最终汇总样式 */
.grand-total {
    background: #fafafa;
    padding: 20px;
    margin-top: 25px;
    border-radius: 4px;
    border: 1px solid #eeeeee;
}

.grand-total-title {
    color: #333333;
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eeeeee;
}

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

.grand-total-table th,
.grand-total-table td {
    padding: 12px 15px;
    border: 1px solid #eeeeee;
    color: #333333;
}

.grand-total-table th {
    background: #f5f5f5;
    font-weight: 500;
}

.grand-total-table .money-value {
    text-align: right;
    font-weight: 500;
}

/* 按钮样式 */
.el-button--primary {
    background-color: #f5f5f5;
    border-color: #e8e8e8;
    color: #333333;
}

.el-button--primary:hover,
.el-button--primary:focus {
    background-color: #eeeeee;
    border-color: #e0e0e0;
    color: #333333;
}

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

.debt-list {
    margin-top: 20px;
}

.summary {
    margin-top: 20px;
}

.advantages {
    margin-top: 20px;
}

.advantages ol {
    padding-left: 20px;
}

.advantages li {
    margin-bottom: 10px;
    color: #333;
}

.el-card {
    margin-bottom: 20px;
}

.el-descriptions {
    margin-bottom: 20px;
}

/* 修复金额输入框样式 */
.amount-input {
    width: 200px !important;
}

.amount-input-wrapper {
    display: inline-block;
    position: relative;
}

.amount-input .el-input__inner {
    padding-left: 30px !important;
}

.amount-input .el-input-group__prepend {
    position: absolute;
    left: 1px;
    top: 1px;
    bottom: 1px;
    z-index: 1;
    background: transparent;
    border: none;
    color: #666666;
    padding: 0 8px;
    height: calc(100% - 2px);
    display: flex;
    align-items: center;
}

/* 编辑状态的金额输入框 */
.amount-edit-wrapper {
    display: inline-block;
    position: relative;
}

.amount-edit-wrapper .el-input {
    width: 150px !important;
}

.amount-edit-wrapper .el-input__inner {
    padding-left: 30px !important;
}

.amount-edit-wrapper .el-input-group__prepend {
    position: absolute;
    left: 1px;
    top: 1px;
    bottom: 1px;
    z-index: 1;
    background: transparent;
    border: none;
    color: #666666;
    padding: 0 8px;
    height: calc(100% - 2px);
    display: flex;
    align-items: center;
}

/* 确保输入框内容不被遮挡 */
.el-input__inner {
    position: relative;
    z-index: 0;
}

/* 当输入框获得焦点时的样式 */
.amount-input .el-input__inner:focus,
.amount-edit-wrapper .el-input__inner:focus {
    border-color: #b3b3b3;
}

.currency-symbol {
    margin-left: 5px;
    color: #606266;
}

/* 新的汇总样式 */
.summary-section {
    margin-top: 20px;
    background: linear-gradient(to right, #f8f9fb, #ffffff);
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
    border: 1px solid #ebeef5;
}

.summary-title {
    font-size: 15px;
    color: #303133;
    font-weight: 500;
    margin-bottom: 16px;
    padding-left: 12px;
    border-left: 4px solid #409EFF;
}

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

.summary-item {
    background: #ffffff;
    padding: 16px 20px;
    border-radius: 8px;
    transition: all 0.3s ease;
    border: 1px solid #ebeef5;
}

.summary-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.summary-item-label {
    font-size: 13px;
    color: #909399;
    margin-bottom: 8px;
}

.summary-item-value {
    font-size: 20px;
    color: #303133;
    font-weight: 600;
    font-family: Arial, sans-serif;
}

/* 添加金额显示相关样式 */
.money-value {
    font-family: Arial, sans-serif;
    letter-spacing: 0.5px;
}

.el-input-group__prepend {
    background-color: #f5f7fa;
    color: #909399;
    width: 35px;
    text-align: center;
    font-weight: bold;
}

/* 确保金额符号和数值对齐 */
.summary-item-value,
.grand-total-item-value {
    font-family: Arial, sans-serif;
    letter-spacing: 0.5px;
}

/* 添加编辑相关样式 */
.amount-edit-wrapper {
    position: relative;
    display: inline-block;
}

.el-table .cell .el-input {
    width: 150px;
}

.el-table .el-button+.el-button {
    margin-left: 5px;
}

.el-table .el-button.is-circle {
    padding: 7px;
}

/* 添加响应式布局优化 */
@media screen and (max-width: 768px) {
    .summary-content,
    .grand-total-content {
        grid-template-columns: 1fr;
    }
    
    .summary-item,
    .grand-total-item {
        padding: 15px;
    }
    
    .summary-item-value,
    .grand-total-item-value {
        font-size: 18px;
    }
}

/* 针对不同类型债务的颜色区分 */
.summary-section.credit-card {
    background: linear-gradient(to right, #f8f9fb, #f0f5ff);
}

.summary-section.loan {
    background: linear-gradient(to right, #f8f9fb, #f0f9eb);
}

.summary-section.personal {
    background: linear-gradient(to right, #f8f9fb, #fef0f0);
}

/* 导出按钮样式 */
.export-buttons {
    text-align: center;
    margin: 20px 0;
    padding: 20px;
}

.export-buttons .el-button {
    margin: 0 10px;
    background-color: #f5f5f5;
    border-color: #e8e8e8;
    color: #333333;
}

.export-buttons .el-button:hover {
    background-color: #eeeeee;
    border-color: #e0e0e0;
    color: #333333;
}

.el-input__inner {
    border-color: #e8e8e8;
}

.el-input__inner:focus {
    border-color: #b3b3b3;
}

/* 方案分析部分样式 */
.analysis-section {
    margin-top: 30px;
}

.analysis-subtitle {
    color: #333333;
    font-size: 16px;
    font-weight: 500;
    margin: 20px 0 15px;
    padding-left: 10px;
    border-left: 3px solid #e8e8e8;
}

.debt-structure {
    display: flex;
    gap: 30px;
    margin-bottom: 20px;
}

.structure-item {
    background: #fafafa;
    padding: 15px 20px;
    border-radius: 4px;
    border: 1px solid #eeeeee;
}

.pressure-analysis {
    margin-bottom: 20px;
}

.item-label {
    color: #666666;
    font-size: 14px;
    margin-bottom: 5px;
}

.item-value {
    font-size: 18px;
    font-weight: 500;
    color: #333333;
}

.item-value.safe {
    color: #67c23a;
}

.item-value.warning {
    color: #e6a23c;
}

.item-value.danger {
    color: #f56c6c;
}

.solution-content {
    background: #fafafa;
    padding: 20px;
    border-radius: 4px;
    border: 1px solid #eeeeee;
}

.solution-title {
    font-weight: 500;
    color: #333333;
    margin: 15px 0 10px;
}

.solution-detail {
    margin: 10px 0;
    padding-left: 20px;
}

.solution-detail p {
    margin-bottom: 8px;
    color: #333333;
}

.solution-detail ul {
    padding-left: 20px;
    margin-bottom: 15px;
}

.solution-detail li {
    margin-bottom: 5px;
    color: #666666;
}

.solution-steps {
    padding-left: 20px;
    margin: 15px 0;
}

.solution-steps li {
    margin-bottom: 8px;
    color: #666666;
}

.solution-text {
    line-height: 1.6;
    color: #666666;
    margin-bottom: 15px;
}

.solution-conclusion {
    margin-top: 20px;
    padding: 15px;
    background: #ffffff;
    border-radius: 4px;
    color: #333333;
    line-height: 1.6;
    border: 1px solid #eeeeee;
}

/* 还款压力分析样式补充 */
.pressure-detail {
    margin-top: 15px;
    padding: 15px;
    background: #fafafa;
    border: 1px solid #eeeeee;
    border-radius: 4px;
}

.detail-item {
    margin-bottom: 10px;
    color: #666666;
}

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

.detail-label {
    display: inline-block;
    width: 100px;
    color: #333333;
}

.detail-value {
    font-weight: 500;
}

.detail-value.safe {
    color: #67c23a;
}

.detail-value.warning {
    color: #e6a23c;
}

.detail-value.danger {
    color: #f56c6c;
}

/* 确保输入框样式统一 */
.analysis-form .amount-input {
    width: 200px !important;
}

.analysis-form .amount-input .el-input__inner {
    padding-left: 30px !important;
}

/* 添加水印容器样式 */
.watermark-container {
    position: relative;
}

/* 水印容器基础样式 */
.watermark-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 1;
}

/* 水印文字样式 */
.watermark-text {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    grid-template-rows: repeat(8, 1fr);
    align-items: center;
    justify-items: center;
    pointer-events: none;
    z-index: 2;
}

/* 水印单元格样式 */
.watermark-text span {
    transform: rotate(-30deg);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    font-size: 20px;
    color: rgba(0, 0, 0, 0.06);
    white-space: nowrap;
    user-select: none;
}

/* 确保打印时水印显示 */
@media print {
    .watermark-text {
        position: absolute !important;
        display: grid !important;
        grid-template-columns: repeat(6, 1fr) !important;
        grid-template-rows: repeat(8, 1fr) !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
    
    .watermark-text span {
        color: rgba(0, 0, 0, 0.06) !important;
    }
}

/* 总汇总表格样式 */
.summary-table tr td {
    padding: 12px 20px;
    border: 1px solid #e8e8e8;
}

.summary-table tr td:first-child {
    width: 120px;
    text-align: left;
    background-color: #fafafa;
}

.summary-table .total-row {
    background-color: #fafafa;
}

.summary-table .highlight {
    color: #f56c6c;
    font-weight: 500;
}

/* 确保金额列样式统一 */
.money-column {
    text-align: right !important;
    padding-right: 20px !important;
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    white-space: nowrap;
}

/* 调整总汇总表格样式 */
.section {
    margin-top: 30px;
}

.section-header {
    font-size: 16px;
    font-weight: 500;
    color: #333333;
    margin-bottom: 15px;
}

/* 总汇总表格样式 */
.summary-table tr td {
    padding: 12px 20px;
    border: 1px solid #e8e8e8;
}

.summary-table tr td:first-child {
    width: 120px;
    text-align: left;
    background-color: #fafafa;
}

/* 欠款和利息分组样式 */
.summary-table .interest-section {
    border-top: 2px solid #e8e8e8;  /* 利息部分上方加粗分隔线 */
}

/* 高亮行样式 */
.summary-table .highlight td {
    font-weight: 500;
    color: #f56c6c;
}

/* 金额列样式 */
.money-column {
    text-align: right !important;
    padding-right: 20px !important;
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    white-space: nowrap;
}

/* 修改利息部分的样式 */
.summary-table .interest-section td {
    text-align: center !important;
    color: #f56c6c;  /* 红色 */
}

.summary-table .interest-section td:first-child {
    text-align: left !important;
    color: #333333;  /* 保持原色 */
}

[v-cloak] {
    display: none;
}

/* 输入部分样式 */
.input-section {
    margin-bottom: 20px;
}

.input-container {
    display: flex;
    align-items: flex-start;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
}

.input-content {
    flex: 1;
    padding: 0 20px;
}

/* 导出按钮和输入框容器样式 */
.export-buttons-vertical {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 140px;  /* 设置固定宽度 */
    margin: 0 auto;
    padding: 15px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

/* 导出按钮样式 */
.export-buttons-vertical .el-button {
    width: 100%;
    margin-bottom: 0;
}

/* 顶部姓名输入区域样式 */
.name-input-section {
    max-width: 800px;
    margin: 0 auto 30px;
    padding: 20px;
    background: linear-gradient(135deg, #f8f9fb 0%, #ffffff 100%);
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
    border: 1px solid #ebeef5;
    text-align: center;
    position: relative;
}

/* 输入框容器 */
.name-input-section .el-form {
    width: 280px;
    margin: 0 auto;
}

/* 输入框样式 */
.name-input-section .el-input__inner {
    height: 40px;
    line-height: 40px;
    text-align: center;
    font-size: 14px;
    border-radius: 8px;
    border: 1px solid #dcdfe6;
    background-color: #ffffff;
    transition: all 0.3s ease;
    padding: 0 15px;
}

/* 输入框悬停效果 */
.name-input-section .el-input__inner:hover {
    border-color: #c0c4cc;
}

/* 输入框聚焦效果 */
.name-input-section .el-input__inner:focus {
    border-color: #409EFF;
    box-shadow: 0 0 0 2px rgba(64, 158, 255, 0.1);
}

/* 移除表单项的默认边距 */
.name-input-section .el-form-item {
    margin-bottom: 8px;
}

.name-input-section .el-form-item__content {
    margin-left: 0 !important;
}

/* 提示文字样式 */
.name-input-tip {
    font-size: 13px;
    color: #F56C6C;
    margin-top: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

/* 添加提示图标 */
.name-input-tip::before {
    content: "!";
    display: inline-block;
    width: 16px;
    height: 16px;
    line-height: 16px;
    text-align: center;
    background-color: #F56C6C;
    color: #ffffff;
    border-radius: 50%;
    font-size: 12px;
    font-weight: bold;
}

/* 移动端适配 */
@media screen and (max-width: 768px) {
    .name-input-section {
        margin: 0 15px 20px;
        padding: 15px;
    }

    .name-input-section .el-form {
        width: 100%;
    }

    .name-input-section .el-input__inner {
        height: 36px;
        line-height: 36px;
        font-size: 13px;
    }
}

/* 居中的表单项 */
.centered-form-item {
    display: flex;
    justify-content: flex-start; /* 改为左对齐 */
    margin-bottom: 22px;
    padding-left: 20px; /* 添加左侧内边距 */
}

.centered-form-item .el-form-item__content {
    display: flex;
    justify-content: flex-start; /* 改为左对齐 */
    align-items: center;
}

/* 美化输入框 */
.el-input,
.el-select {
    width: 300px !important;
}

.el-select .el-input {
    width: 100% !important;
}

/* 美化表单标签 */
.el-form-item__label {
    font-size: 15px;
    color: #606266;
    text-align: right !important;
    width: 120px !important;
}

/* 修改添加债务按钮的位置 */
.centered-form-item:last-child {
    margin-left: 120px; /* 与标签宽度对应 */
}

/* 美化标题 */
.section-header {
    text-align: left; /* 改为左对齐 */
    font-size: 20px;
    font-weight: 500;
    color: #303133;
    margin-bottom: 30px;
    padding-bottom: 15px;
    padding-left: 20px; /* 添加左侧内边距 */
    border-bottom: 2px solid #409EFF;
}

/* 美化表单容器 */
.section-content {
    padding: 20px;
    background: #fff;
    border-radius: 4px;
}

/* 调整标签宽度 */
.el-form--label-right .el-form-item__label {
    text-align: right;
    padding-right: 12px;
}

/* 报告内容部分样式 */
.calculator-container {
    background: #ffffff;
    border: 1px solid #eeeeee;
    border-radius: 4px;
    margin-bottom: 25px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

/* 导出时隐藏的元素 */
@media print {
    .export-hide {
        display: none !important;
    }
}

/* 分析表单样式 */
.analysis-form {
    margin-bottom: 20px;
}

.analysis-form .el-form-item {
    margin-bottom: 15px !important;
    display: flex;
    align-items: center;
}

/* 确保月收入在打印和导出时显示 */
@media print {
    .analysis-form {
        display: block !important;
    }
    
    .analysis-form .el-form-item {
        display: flex !important;
    }
    
    .analysis-form .el-input {
        display: block !important;
    }
    
    .analysis-form .el-input__inner {
        color: #606266 !important;
        background-color: transparent !important;
        border: none !important;
    }

    .amount-input-wrapper {
        display: flex !important;
    }

    /* 确保金额前的符号显示 */
    .el-input-group__prepend {
        display: inline-block !important;
        background-color: transparent !important;
        border: none !important;
        padding: 0 5px !important;
    }
}

/* 金额输入框样式 */
.amount-input-wrapper {
    display: flex;
    align-items: center;
}

.amount-input {
    width: 200px !important;
}

.amount-input .el-input__inner {
    text-align: right;
}

.amount-input .el-input-group__prepend {
    padding: 0 10px;
}

/* 移动端响应式样式 */
@media screen and (max-width: 768px) {
    /* 容器宽度调整 */
    .calculator-container {
        margin: 10px;
        padding: 10px;
    }

    /* 标题样式调整 */
    .header-with-logo {
        flex-direction: column;
        gap: 15px;
        padding: 10px 0;
    }

    .law-firm-logo {
        width: 60px;
        margin-right: 0;
    }

    .page-title {
        font-size: 20px;
    }

    /* 输入表单调整 */
    .input-container {
        flex-direction: column;
        padding: 10px;
    }

    .input-content {
        padding: 0;
    }

    .export-buttons-vertical {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid #eee;
        padding: 10px 0;
    }

    /* 表单项调整 */
    .centered-form-item {
        padding-left: 0;
        margin-bottom: 15px;
    }

    .el-form-item {
        margin-bottom: 15px;
    }

    .el-form-item__label {
        width: 90px !important;
        font-size: 14px;
    }

    .el-input,
    .el-select {
        width: 100% !important;
    }

    /* 表格样式调整 */
    .summary-table {
        font-size: 14px;
    }

    .summary-table td,
    .summary-table th {
        padding: 8px 10px;
    }

    /* 方案分析部分调整 */
    .analysis-section {
        margin-top: 20px;
    }

    .debt-structure {
        flex-direction: column;
        gap: 15px;
    }

    .structure-item {
        padding: 10px 15px;
    }

    .solution-content {
        padding: 15px;
    }

    .solution-detail {
        padding-left: 10px;
    }

    /* 月收入输入框调整 */
    .analysis-form {
        padding: 10px;
    }

    .analysis-form .amount-input {
        width: 100% !important;
    }

    /* 总汇总表格调整 */
    .summary-table tr td {
        padding: 8px 10px;
    }

    .summary-table tr td:first-child {
        width: auto;
    }

    /* 按钮样式调整 */
    .el-button {
        width: 100%;
        margin: 5px 0;
    }

    /* 文字大小调整 */
    .item-value {
        font-size: 16px;
    }

    .solution-title {
        font-size: 16px;
    }

    /* 间距调整 */
    .section {
        margin-top: 20px;
        margin-bottom: 20px;
    }

    .section-header {
        font-size: 18px;
        padding: 10px 15px;
    }

    .section-content {
        padding: 15px;
    }
}

/* 超小屏幕设备的额外调整 */
@media screen and (max-width: 375px) {
    .page-title {
        font-size: 18px;
    }

    .law-firm-logo {
        width: 50px;
    }

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

    .summary-table td,
    .summary-table th {
        padding: 6px 8px;
    }
}

/* 名称列样式 */
.name-column {
    position: relative;
    padding-right: 30px !important; /* 为删除按钮留出空间 */
}

/* 删除按钮样式 */
.delete-btn {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0;
    transition: opacity 0.3s;
    padding: 0;
    color: #F56C6C;
    font-size: 16px;
}

.debt-row:hover .delete-btn {
    opacity: 1;
}

.delete-btn:hover {
    color: #ff4d4f;
}

/* 确保删除按钮在打印时不显示 */
@media print {
    .delete-btn {
        display: none !important;
    }
    
    .name-column {
        padding-right: 20px !important;
    }
}

/* 输入提示样式 */
.input-tip {
    margin-left: 10px;
    color: #909399;
    font-size: 13px;
}

/* 确保在打印时不显示提示文字 */
@media print {
    .input-tip {
        display: none !important;
    }
}

/* 方案优势样式优化 */
.advantages-section {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 1px 8px rgba(0, 0, 0, 0.02);
    margin: 15px 0;  /* 减少上方空白 */
    border: 1px solid #ebeef5;
}

.advantages-section .section-header {
    display: flex;
    align-items: center;
    padding: 18px 20px;
    border-bottom: 1px solid #ebeef5;
    background: linear-gradient(135deg, #f8f9fb 0%, #ffffff 100%);
    border-radius: 8px 8px 0 0;
}

.advantages-section .section-header i {
    color: #409EFF;
    font-size: 20px;
    margin-right: 10px;
    background: rgba(64, 158, 255, 0.08);
    padding: 6px;
    border-radius: 6px;
}

.advantages-section .section-header span {
    font-size: 18px;  /* 加大标题字号 */
    font-weight: 600;
    color: #2c3e50;
    letter-spacing: 0.5px;
}

.advantage-item {
    display: flex;
    align-items: center;  /* 改为center，使内容垂直居中 */
    padding: 14px;
    background: #f8f9fb;
    border-radius: 8px;
    transition: all 0.3s ease;
    border: 1px solid #ebeef5;
}

.advantage-item:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
    background: #ffffff;
    border-color: #e4e7ed;
}

.advantage-icon {
    width: 24px;
    height: 24px;
    background: #67C23A;
    border-radius: 50%;
    margin-right: 12px;
    display: flex;
    align-items: center;     /* 确保图标垂直居中 */
    justify-content: center; /* 确保图标水平居中 */
    flex-shrink: 0;         /* 防止图标被压缩 */
}

.advantage-icon i {
    color: #ffffff;
    font-size: 14px;
    line-height: 1;    /* 重置行高 */
    display: flex;     /* 使用flex布局 */
    align-items: center;
    justify-content: center;
}

.advantage-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;  /* 内容垂直居中 */
}

.advantage-title {
    font-size: 15px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 4px;
    letter-spacing: 0.3px;
}

.advantage-desc {
    font-size: 13px;
    color: #5a6d7e;
    line-height: 1.6;
    letter-spacing: 0.2px;
}

/* 移动端适配 */
@media screen and (max-width: 992px) {
    .advantages-list {
        grid-template-columns: 1fr;
        gap: 12px;
        padding: 16px;
    }
}

@media screen and (max-width: 768px) {
    .advantages-section {
        margin: 16px 0;
    }

    .advantages-section .section-header {
        padding: 14px 16px;
    }

    .advantage-item {
        padding: 12px;
    }

    .advantage-icon {
        width: 24px;
        height: 24px;
        margin-right: 10px;
    }

    .advantage-icon i {
        font-size: 14px;
    }

    .advantage-title {
        font-size: 14px;
    }

    .advantage-desc {
        font-size: 12px;
        line-height: 1.5;
    }

    .advantages-section .section-header span {
        font-size: 17px;  /* 移动端稍微调小一点 */
    }
}

/* 确保导出时样式正确 */
@media print {
    .advantages-section {
        page-break-inside: avoid;
        border: 1px solid #ebeef5 !important;
        background: #ffffff !important;
    }

    .advantage-item {
        break-inside: avoid;
        display: flex !important;
        background-color: #f8f9fb !important;
        border: 1px solid #ebeef5 !important;
    }

    .advantage-icon {
        background: #67C23A !important;
        print-color-adjust: exact;
        -webkit-print-color-adjust: exact;
    }

    .advantage-icon i {
        color: #ffffff !important;
    }

    .advantage-title {
        color: #2c3e50 !important;
    }

    .advantage-desc {
        color: #5a6d7e !important;
    }
}

/* 头部布局样式 */
.header-container {
    position: relative;
    padding: 25px 20px 20px;  /* 增加顶部内边距 */
    margin-bottom: 30px;
    text-align: center;
}

.main-title {
    font-size: 28px;  /* 放大标题 */
    font-weight: 600;
    color: #2c3e50;
    letter-spacing: 2px;
    margin-top: 10px;  /* 增加与logo的距离 */
}

/* 角标样式 */
.watermark-logo {
    position: absolute;
    top: 10px;  /* 调整位置更靠上 */
    right: 15px;
    display: flex;
    align-items: center;
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 4px;
}

.law-firm-logo {
    width: 28px;  /* 稍微增大logo */
    height: auto;
    object-fit: contain;
}

.law-firm-name {
    font-size: 14px;  /* 稍微增大字号 */
    color: #606266;
    white-space: nowrap;
    font-weight: 500;
}

/* 确保在打印和导出时显示正确 */
@media print {
    .watermark-logo {
        position: absolute !important;
        top: 10px !important;
        right: 15px !important;
        display: flex !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    .law-firm-logo {
        width: 28px !important;
    }

    .law-firm-name {
        font-size: 14px !important;
        color: #606266 !important;
    }
}

/* 水印样式 */
.watermark-text {
    position: absolute;
    bottom: 20px;
    right: 20px;
    font-size: 12px;
    color: #909399;
    opacity: 0.6;
    transform: rotate(-15deg);
    user-select: none;
    pointer-events: none;
}

/* 确保导出时水印显示正确 */
@media print {
    .watermark-text {
        position: absolute !important;
        bottom: 20px !important;
        right: 20px !important;
        color: #909399 !important;
        opacity: 0.6 !important;
    }
}

/* 个人信息表单样式 */
.input-container {
    margin-bottom: 20px;
}

.input-container .el-form-item {
    margin-bottom: 15px;
}

.input-container .el-input {
    width: 300px;
}

/* 移动端适配 */
@media screen and (max-width: 768px) {
    .input-container .el-input {
        width: 100%;
    }
}

/* 导出对话框样式 */
.el-dialog__body {
    padding: 20px 25px;
}

.el-dialog__footer {
    padding: 15px 25px 20px;
}

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

/* 导出按钮下方的姓名输入框样式 */
.export-name-input {
    margin-top: 10px;
    width: 200px;  /* 减小宽度 */
    margin: 10px auto 0;  /* 居中显示 */
}

.export-name-input .el-form-item {
    margin-bottom: 5px;  /* 减小底部间距 */
}

.export-name-input .el-input__inner {
    text-align: center;
    height: 32px;  /* 减小输入框高度 */
    line-height: 32px;
}

/* 添加提示文字样式 */
.name-input-tip {
    font-size: 12px;
    color: #F56C6C;
    text-align: center;
    margin-top: 5px;
}

/* 移除表单项的默认边距 */
.export-name-input .el-form-item__content {
    margin-left: 0 !important;
}

/* 添加优化后状况的样式 */
.optimized-status {
    margin-top: 10px;
    font-size: 13px;
    color: #67C23A;
    white-space: pre-line;
    line-height: 1.5;
}

.solution-column {
    width: 300px !important;
    white-space: normal !important;
    line-height: 1.5;
    text-align: left !important;
    padding: 12px 15px !important;
}

/* 修改优化对比样式为左右布局 */
.comparison-container {
    display: flex;
    gap: 20px;
    margin: 15px 0;
}

.comparison-column {
    flex: 1;
    border-radius: 4px;
    overflow: hidden;
}

.comparison-column.before {
    background: #fef0f0;
    border: 1px solid #fde2e2;
}

.comparison-column.after {
    background: #f0f9eb;
    border: 1px solid #e1f3d8;
}

.column-header {
    padding: 12px 15px;
    font-size: 16px;
    font-weight: 500;
    border-bottom: 1px solid rgba(0,0,0,0.1);
}

.before .column-header {
    background: #fde2e2;
    color: #f56c6c;
}

.after .column-header {
    background: #e1f3d8;
    color: #67c23a;
}

.column-content {
    padding: 15px;
}

.comparison-item {
    margin-bottom: 15px;
}

.item-label {
    font-weight: 500;
    color: #606266;
    margin-bottom: 8px;
}

.item-value {
    line-height: 1.6;
}

.item-value.danger {
    color: #f56c6c;
}

.item-value.success {
    color: #67c23a;
}

.comparison-risks,
.comparison-benefits {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px dashed rgba(0,0,0,0.1);
}

.risks-title,
.benefits-title {
    font-weight: 500;
    margin-bottom: 10px;
    color: #606266;
}

.risks-list,
.benefits-list {
    margin: 0;
    padding-left: 20px;
    list-style-type: disc;
}

.risks-list li,
.benefits-list li {
    margin-bottom: 8px;
    color: #606266;
}

/* 确保打印时样式正确 */
@media print {
    .comparison-column.before {
        background: #fef0f0 !important;
        border: 1px solid #fde2e2 !important;
    }

    .comparison-column.after {
        background: #f0f9eb !important;
        border: 1px solid #e1f3d8 !important;
    }

    .before .column-header {
        background: #fde2e2 !important;
        color: #f56c6c !important;
    }

    .after .column-header {
        background: #e1f3d8 !important;
        color: #67c23a !important;
    }

    .item-value.danger {
        color: #f56c6c !important;
    }

    .item-value.success {
        color: #67c23a !important;
    }

    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
}

/* 添加建议方案样式 */
.solution-summary {
    margin: 15px 0 25px;
}

.solution-item {
    margin-bottom: 20px;
    padding: 15px;
    background: #f5f7fa;
    border-radius: 4px;
    border: 1px solid #e4e7ed;
}

.solution-title {
    font-size: 15px;
    font-weight: 500;
    color: #303133;
    margin-bottom: 12px;
}

.solution-content {
    color: #606266;
    line-height: 1.6;
}

.solution-content p {
    margin: 0 0 10px;
}

.solution-content ul {
    margin: 0;
    padding-left: 20px;
}

.solution-content li {
    margin-bottom: 8px;
}

/* 移除不需要的样式 */
.debt-structure,
.payment-pressure {
    display: none;
}

/* 确保打印时样式正确 */
@media print {
    .solution-item {
        background: #f5f7fa !important;
        border: 1px solid #e4e7ed !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
}

/* 添加月收入输入框样式 */
.income-input {
    margin-bottom: 20px;
}

.income-input .el-form-item {
    margin-bottom: 15px;  /* 增加表单项之间的间距 */
}

.income-input .el-form-item:last-child {
    margin-bottom: 0;
}

.income-input .amount-input-wrapper {
    width: 300px;
}

/* 移动端适配 */
@media screen and (max-width: 768px) {
    .income-input .amount-input-wrapper {
        width: 100%;
    }
}

/* 调整对比内容样式 */
.comparison-item .item-value div {
    margin-bottom: 5px;
}

.comparison-item .item-value div:last-child {
    margin-bottom: 0;
}

.comparison-item .item-value .danger {
    color: #f56c6c;
    font-weight: 500;
}

.comparison-item .item-value.success div {
    color: #67c23a;
} 