body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f5f5f5;
    color: #333;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    background-color: white;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    min-height: 100vh;
    box-sizing: border-box;
}

header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

header h1 {
    margin: 0;
    color: #2c3e50;
}

header p {
    margin: 10px 0 0;
    color: #7f8c8d;
}

/* 基本信息行布局 */
.input-row {
    display: flex;
    align-items: center;
    padding: 15px;
    border-bottom: 1px solid #eee;
}

.input-row:last-child {
    border-bottom: none;
}

.input-row label {
    flex: 0 0 200px;
    font-weight: bold;
    color: #495057;
    margin-right: 15px;
}

.input-row .input-container {
    flex: 1;
}

.input-row input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    box-sizing: border-box;
}

.input-row small {
    display: block;
    margin-top: 5px;
    color: #7f8c8d;
    font-size: 14px;
}

/* 提示信息样式 */
.hint {
    margin-top: 5px;
    padding: 10px;
    background-color: #e8f4fc;
    border-radius: 4px;
    color: #3498db;
    font-size: 14px;
}

.calculate-btn {
    width: 200px;
    padding: 15px;
    background-color: #3498db;
    color: white;
    border: none;
    border-radius: 25px;
    font-size: 20px;
    font-weight: bold;
    cursor: pointer;
    margin: 20px auto;
    display: block;
}

.calculate-btn:hover {
    background-color: #2980b9;
}

footer {
    text-align: left;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
    position: relative;
}

footer p {
    font-size: 20px;
    font-weight: bold;
    color: #333;
    margin-bottom: 15px;
    display: inline-block;
    margin-right: 40px; /* 增加文字和按钮之间的间距 */
}

.demo-plans-btn {
    padding: 15px 30px;
    background-color: #f39c12;
    color: white;
    border: none;
    border-radius: 25px;
    font-size: 20px;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    vertical-align: top;
    margin-top: 5px;
}

.demo-plans-btn:hover {
    background-color: #d35400;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.2);
}

/* 结果页面样式 */
.result-container {
    display: none;
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    background-color: white;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    min-height: 100vh;
    box-sizing: border-box;
}

.result-header {
    text-align: center;
    margin-bottom: 30px;
}

/* 结果列表垂直布局 */
.result-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 30px;
}

.result-item {
    display: flex;
    align-items: center;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    background-color: #f8f9fa;
}

.result-item:hover {
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

.result-label {
    flex: 0 0 200px;
    font-size: 18px;
    font-weight: bold;
    color: #2c3e50;
}

.result-content {
    flex: 1;
}

.result-amount {
    font-size: 28px;
    font-weight: bold;
    margin-bottom: 5px;
    color: #3498db;
}

.result-amount.big {
    font-size: 36px;
    color: #e74c3c;
}

.result-description {
    font-size: 14px;
    color: #7f8c8d;
}

/* 基础养老金项 */
.base-pension-item {
    border-left: 5px solid #3498db;
}

/* 个人账户养老金项 */
.personal-account-item {
    border-left: 5px solid #2ecc71;
}

/* 养老金总计项 */
.total-pension-item {
    border-left: 5px solid #f1c40f;
}

/* 响应式设计 - 在小屏幕上调整布局 */
@media (max-width: 768px) {
    .container, .demo-plans-container, .result-container {
        padding: 10px;
    }
    
    .result-item {
        flex-direction: column;
        align-items: stretch;
    }
    
    .result-label {
        flex: 0 0 auto;
        margin-bottom: 10px;
    }
    
    .input-row {
        flex-direction: column;
        align-items: stretch;
    }
    
    .input-row label {
        flex: 0 0 auto;
        margin-right: 0;
        margin-bottom: 8px;
    }
    
    .input-row .input-container {
        flex: 1;
    }
}

/* 参考方案页面样式 */
.demo-plans-container {
    display: none;
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
    background-color: white;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    min-height: 100vh;
    box-sizing: border-box;
}

.user-info-section {
    margin-bottom: 30px;
}

.user-info-section h2 {
    color: #3498db;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.user-info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin: 20px 0;
}

.user-info-item {
    display: flex;
    flex-direction: column;
    padding: 15px;
    border: 1px solid #eee;
    border-radius: 8px;
    background-color: #f8f9fa;
}

.user-info-item:hover {
    background-color: #e9ecef;
}

.user-info-item label {
    font-weight: bold;
    color: #495057;
    margin-bottom: 8px;
}

.user-info-item .value-container {
    display: flex;
    align-items: center;
}

.user-info-item .editable-value {
    border: 1px dashed #3498db;
    padding: 8px;
    outline: none;
    display: inline-block;
    min-width: 100px;
    background-color: white;
    border-radius: 4px;
}

.user-info-item .editable-value:focus {
    background-color: #e8f4fc;
    border: 1px solid #3498db;
}

.user-info-item .unit {
    margin-left: 8px;
    color: #6c757d;
}

/* 响应式设计 - 在小屏幕上改为单列布局 */
@media (max-width: 768px) {
    .user-info-grid {
        grid-template-columns: 1fr;
    }
}

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

.plans-section h2 {
    color: #000000;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
    font-size: 28px;
}

.plans-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.plans-table th,
.plans-table td {
    padding: 12px;
    text-align: center;
    border-bottom: 1px solid #ddd;
}

.plans-table th {
    background-color: #f8f9fa;
    font-weight: bold;
}

.plans-table tr:hover {
    background-color: #f5f5f5;
}

.positive-change {
    color: #27ae60;
    font-weight: bold;
}

.negative-change {
    color: #e74c3c;
    font-weight: bold;
}

/* 重新生成按钮样式 */
.regenerate-btn {
    padding: 10px 20px;
    background-color: #3498db;
    color: white;
    border: none;
    border-radius: 25px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    display: block;
    margin-left: auto;
    margin-right: 0;
}

.regenerate-btn:hover {
    background-color: #2980b9;
}

/* 参考方案对比部分居中 */
.plans-section {
    text-align: center;
}

.plans-section h2 {
    text-align: center;
    margin-bottom: 20px;
}

.baseline-selection-container {
    text-align: left;
    margin: 0 0 20px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.baseline-selection {
    display: flex;
    align-items: center;
    gap: 10px;
    text-align: left;
}

.baseline-selection label {
    font-weight: bold;
    color: #f39c12;
    font-size: 18px;
}

.baseline-selection select {
    padding: 12px 18px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: white;
    font-size: 18px;
    color: #000000;
}

.baseline-selection select:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2);
}

.calculation-method-selection {
    display: flex;
    align-items: center;
    gap: 10px;
    text-align: left;
}

.calculation-method-selection label {
    font-weight: bold;
    color: #f39c12;
    font-size: 18px;
}

.calculation-method-selection select {
    padding: 12px 18px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: white;
    font-size: 18px;
    color: #000000;
}

.calculation-method-selection select:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2);
}

.plans-table {
    margin: 0 auto;
}

/* 问号图标样式 */
.help-icon {
    display: inline-block;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background-color: #3498db;
    color: white;
    font-size: 12px;
    font-weight: bold;
    text-align: center;
    line-height: 16px;
    margin-left: 5px;
    cursor: pointer;
    user-select: none;
}

.help-icon:hover {
    background-color: #2980b9;
}

/* 提示框样式 */
.tooltip {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    padding: 25px;
    z-index: 1000;
    max-width: 90%;
    width: 500px; /* 增加宽度 */
}

.tooltip-content {
    font-size: 18px; /* 增加字体大小，与页面字体一致 */
    color: #333;
    line-height: 1.6;
    text-align: left; /* 左对齐 */
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif; /* 使用与页面一致的字体 */
}

.tooltip-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 28px; /* 增加关闭按钮大小 */
    cursor: pointer;
    color: #999;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.tooltip-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 999;
}

/* 加大加粗的数字样式 */
.highlight-number {
    font-size: 20px;
    font-weight: bold;
    color: #e74c3c;
}

/* 返回按钮样式 */
.back-btn {
    padding: 15px 30px;
    background-color: #3498db;
    color: white;
    border: none;
    border-radius: 25px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    margin: 20px 0;
    float: right;
    clear: both;
}

.back-btn:hover {
    background-color: #2980b9;
}

/* 推荐方案样式 */
#recommendation {
    margin: 20px 0;
    padding: 20px;
    border-radius: 25px;
    background-color: #f39c12;
    border: none;
    font-size: 20px;
    font-weight: bold;
    color: white;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.recommendation-highlight {
    font-weight: bold;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

.recommendation-plan-name {
    color: white;
    font-size: 28px;
}

.recommendation-break-even {
    color: #c0392b;
    font-size: 32px;
}