/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f7fa;
}

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

/* 头部样式 */
header {
    text-align: center;
    margin-bottom: 40px;
    padding: 30px 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    position: relative;
}

/* 语言选择器样式 */
.language-selector {
    position: absolute;
    top: 20px;
    right: 30px;
    display: flex;
    gap: 5px;
}

.lang-btn {
    padding: 8px 16px;
    border: 2px solid rgba(255,255,255,0.3);
    background: rgba(255,255,255,0.1);
    color: white;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.lang-btn:hover {
    background: rgba(255,255,255,0.2);
    border-color: rgba(255,255,255,0.5);
    transform: translateY(-1px);
}

.lang-btn.active {
    background: rgba(255,255,255,0.9);
    color: #667eea;
    border-color: white;
    font-weight: 600;
}

header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    font-weight: 700;
}

.subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
    font-weight: 300;
}

/* Profile管理区域 */
.profile-section {
    background: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

.profile-section h2 {
    color: #667eea;
    margin-bottom: 20px;
    font-size: 1.5rem;
    border-bottom: 2px solid #e9ecef;
    padding-bottom: 10px;
}

.profile-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.profile-selector {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
}

.profile-selector label {
    font-weight: 600;
    color: #495057;
    white-space: nowrap;
}

.profile-selector select {
    flex: 1;
    padding: 10px;
    border: 2px solid #e9ecef;
    border-radius: 6px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

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

.profile-actions {
    display: flex;
    gap: 10px;
}

.profile-btn {
    padding: 10px 15px;
    border: none;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.profile-btn:not(.delete-btn) {
    background: #667eea;
    color: white;
}

.profile-btn:not(.delete-btn):hover {
    background: #5a6fd8;
    transform: translateY(-1px);
}

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

.profile-btn.delete-btn:hover {
    background: #c82333;
    transform: translateY(-1px);
}

.profile-btn.example-btn {
    background: #17a2b8;
    color: white;
}

.profile-btn.example-btn:hover {
    background: #138496;
    transform: translateY(-1px);
}

.profile-btn.export-btn {
    background: #6f42c1;
    color: white;
}

.profile-btn.export-btn:hover {
    background: #5a32a3;
    transform: translateY(-1px);
}

.profile-btn.import-btn {
    background: #fd7e14;
    color: white;
}

.profile-btn.import-btn:hover {
    background: #e8690b;
    transform: translateY(-1px);
}

/* 主要内容区域 */
.main-content {
    max-width: 800px;
    margin: 0 auto;
}

/* 输入区域样式 */
.input-section {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    height: fit-content;
}

.input-section h2 {
    color: #667eea;
    margin-bottom: 25px;
    font-size: 1.8rem;
    border-bottom: 2px solid #e9ecef;
    padding-bottom: 10px;
}

.form-group {
    margin-bottom: 30px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #667eea;
}

.form-group h3 {
    color: #495057;
    margin-bottom: 20px;
    font-size: 1.3rem;
}

.input-row {
    margin-bottom: 15px;
}

.input-row label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #495057;
}

.input-row input,
.input-row select {
    width: 100%;
    padding: 12px;
    border: 2px solid #e9ecef;
    border-radius: 6px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

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

.calculate-btn {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.calculate-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.3);
}

.calculate-btn:active {
    transform: translateY(0);
}

/* 结果区域样式 */
.results-section {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    width: 100%;
    margin-top: 30px;
}

.results-section h2 {
    color: #667eea;
    margin-bottom: 25px;
    font-size: 1.8rem;
    border-bottom: 2px solid #e9ecef;
    padding-bottom: 10px;
}

.result-group {
    margin-bottom: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #28a745;
}

.result-group h3 {
    color: #495057;
    margin-bottom: 15px;
    font-size: 1.2rem;
}

/* 概览网格 */
.overview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
}

.overview-item {
    display: flex;
    flex-direction: column;
    padding: 12px;
    background: white;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    min-height: 70px;
    justify-content: center;
}

.overview-item .label {
    font-size: 0.85rem;
    color: #6c757d;
    margin-bottom: 4px;
    line-height: 1.2;
}

.overview-item .value {
    font-size: 1.1rem;
    font-weight: 700;
    color: #28a745;
    line-height: 1.2;
}

/* 回报分析网格 */
.return-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
}

.return-item {
    display: flex;
    flex-direction: column;
    padding: 12px;
    background: white;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    min-height: 70px;
    justify-content: center;
}

.return-item .label {
    font-size: 0.85rem;
    color: #6c757d;
    margin-bottom: 4px;
    line-height: 1.2;
}

.return-item .value {
    font-size: 1.1rem;
    font-weight: 700;
    color: #667eea;
    line-height: 1.2;
}

/* 可点击项目样式 */
.clickable-item {
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.clickable-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

.item-content {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.clickable-item .detail-icon {
    position: absolute;
    top: 8px;
    right: 8px;
    font-size: 1rem;
    opacity: 0.6;
    transition: all 0.2s ease;
    color: #667eea;
}

.clickable-item:hover .detail-icon {
    opacity: 1;
    transform: scale(1.1);
}

/* 税务优惠详情样式 */
.tax-benefits-item {
    position: relative;
}

.tax-benefits-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 4px;
    border-radius: 4px;
}

.tax-benefits-header:hover {
    background-color: rgba(102, 126, 234, 0.1);
    transform: translateY(-1px);
}

.tax-benefits-main {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.detail-icon {
    font-size: 1.2rem;
    margin-left: 10px;
    opacity: 0.7;
    transition: opacity 0.2s ease;
}

.tax-benefits-header:hover .detail-icon {
    opacity: 1;
}

/* 弹窗样式 */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    background: white;
    border-radius: 12px;
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s ease-out;
}

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

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

.modal-header h3 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 600;
}

.close-btn {
    font-size: 2rem;
    cursor: pointer;
    color: white;
    opacity: 0.8;
    transition: opacity 0.2s ease;
    line-height: 1;
}

.close-btn:hover {
    opacity: 1;
}

.modal-body {
    padding: 0;
    overflow-y: auto;
    max-height: calc(90vh - 80px);
}

.modal-summary {
    padding: 25px;
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
}

.summary-card {
    text-align: center;
    padding: 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.summary-card h4 {
    margin: 0 0 15px 0;
    color: #495057;
    font-size: 1.2rem;
}

.summary-amount {
    font-size: 2.5rem;
    font-weight: 700;
    color: #28a745;
    margin-bottom: 15px;
}

.summary-details {
    display: flex;
    justify-content: space-around;
    gap: 20px;
}

.summary-details span {
    color: #6c757d;
    font-size: 0.9rem;
}

.summary-details strong {
    color: #495057;
}

/* 标签页样式 */
.modal-tabs {
    display: flex;
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
}

.tab-btn {
    flex: 1;
    padding: 15px 20px;
    border: none;
    background: transparent;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    color: #6c757d;
    transition: all 0.2s ease;
    border-bottom: 3px solid transparent;
}

.tab-btn:hover {
    background: rgba(102, 126, 234, 0.1);
    color: #495057;
}

.tab-btn.active {
    color: #667eea;
    border-bottom-color: #667eea;
    background: white;
}

.tab-content {
    padding: 25px;
}

.tab-pane {
    display: none;
}

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

/* 年度明细样式 */
.year-detail-card {
    margin-bottom: 20px;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    overflow: hidden;
}

.year-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: #f8f9fa;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.year-header:hover {
    background: #e9ecef;
}

.year-title {
    font-weight: 600;
    color: #495057;
}

.year-benefit-amount {
    font-weight: 700;
    font-size: 1.1rem;
}

.year-benefit-amount.positive {
    color: #28a745;
}

.year-benefit-amount.zero {
    color: #6c757d;
}

.year-details {
    padding: 20px;
    background: white;
    border-top: 1px solid #e9ecef;
}

.detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.detail-section {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 6px;
}

.detail-section h6 {
    margin: 0 0 10px 0;
    color: #495057;
    font-size: 0.9rem;
    font-weight: 600;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 0.85rem;
}

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

.detail-label {
    color: #6c757d;
}

.detail-value {
    font-weight: 600;
    color: #495057;
}

.calculation-summary {
    background: #e3f2fd;
    padding: 15px;
    border-radius: 6px;
    border-left: 4px solid #2196f3;
}

/* 税务说明样式 */
.tax-explanation-detailed {
    line-height: 1.6;
}

.tax-explanation-detailed h5 {
    color: #495057;
    margin-bottom: 20px;
    font-size: 1.3rem;
    text-align: center;
    padding-bottom: 10px;
    border-bottom: 2px solid #e9ecef;
}

.explanation-section {
    margin-bottom: 25px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #667eea;
}

.explanation-section h6 {
    color: #495057;
    margin-bottom: 12px;
    font-size: 1.1rem;
    font-weight: 600;
}

.explanation-section p {
    margin-bottom: 12px;
    color: #495057;
}

.explanation-section ul {
    margin: 0;
    padding-left: 20px;
}

.explanation-section li {
    margin-bottom: 8px;
    color: #495057;
}

.tax-brackets {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 10px;
    margin-top: 15px;
}

.bracket {
    padding: 10px;
    background: white;
    border-radius: 6px;
    text-align: center;
    font-weight: 600;
    color: #495057;
    border: 2px solid #e9ecef;
}

/* 抵扣分解样式 */
.breakdown-summary h5 {
    text-align: center;
    color: #495057;
    margin-bottom: 25px;
    font-size: 1.3rem;
    border-bottom: 2px solid #e9ecef;
    padding-bottom: 10px;
}

.breakdown-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.category-card {
    background: white;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    border-left: 4px solid #667eea;
}

.category-card h6 {
    margin: 0 0 15px 0;
    color: #495057;
    font-size: 1rem;
    font-weight: 600;
}

.category-amount {
    font-size: 1.8rem;
    font-weight: 700;
    color: #667eea;
    margin-bottom: 8px;
}

.category-percentage {
    font-size: 1.1rem;
    font-weight: 600;
    color: #28a745;
    margin-bottom: 8px;
}

.category-card small {
    color: #6c757d;
    font-size: 0.85rem;
}

.breakdown-details,
.depreciation-details {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.breakdown-details h6,
.depreciation-details h6 {
    margin: 0 0 15px 0;
    color: #495057;
    font-size: 1.1rem;
    font-weight: 600;
}

.detail-breakdown {
    display: grid;
    gap: 8px;
}

.breakdown-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #e9ecef;
    font-size: 0.9rem;
}

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

.breakdown-item span:first-child {
    color: #6c757d;
}

.breakdown-item span:last-child {
    font-weight: 600;
    color: #495057;
}

.depreciation-info p {
    margin-bottom: 8px;
    font-size: 0.9rem;
    color: #495057;
}

.depreciation-info strong {
    color: #343a40;
}

/* IRR弹窗特殊样式 */
.calculation-formula {
    background: #e3f2fd;
    padding: 15px;
    border-radius: 6px;
    margin: 15px 0;
    border-left: 4px solid #2196f3;
}

.calculation-formula h6 {
    margin-bottom: 8px;
    color: #1976d2;
}

.calculation-formula p {
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    margin-bottom: 5px;
}

.calculation-formula small {
    color: #666;
    font-style: italic;
}

/* 现金流解释样式 */
.cash-flow-explanation {
    background: #e3f2fd;
    padding: 15px;
    border-radius: 6px;
    margin-bottom: 20px;
    border-left: 4px solid #2196f3;
}

.cash-flow-explanation h6 {
    margin-bottom: 12px;
    color: #1976d2;
    font-size: 1rem;
}

.explanation-grid {
    display: grid;
    gap: 8px;
}

.explanation-item {
    padding: 8px 12px;
    background: white;
    border-radius: 4px;
    font-size: 0.9rem;
    color: #495057;
}

.explanation-item strong {
    color: #1976d2;
}

/* 计算验证样式 */
.calculation-verification {
    background: #f0fff4;
    padding: 15px;
    border-radius: 6px;
    margin-top: 20px;
    border-left: 4px solid #38a169;
}

.calculation-verification h6 {
    margin-bottom: 10px;
    color: #2f855a;
    font-size: 1rem;
}

.calculation-verification p {
    margin-bottom: 8px;
    font-size: 0.9rem;
    color: #495057;
}

.calculation-verification strong {
    color: #2f855a;
}

/* 现金流表格样式 */
.cash-flow-table {
    background: white;
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.table-header,
.table-row,
.table-footer {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: 10px;
    padding: 12px 15px;
    align-items: center;
}

.table-header {
    background: #667eea;
    color: white;
    font-weight: 600;
    font-size: 0.9rem;
}

.table-row {
    border-bottom: 1px solid #e9ecef;
    font-size: 0.85rem;
}

.table-row.negative {
    background: #fff5f5;
    color: #c53030;
}

.table-row.positive {
    background: #f0fff4;
    color: #38a169;
}

.table-footer {
    background: #f8f9fa;
    font-weight: 700;
    border-top: 2px solid #667eea;
}

/* 警告和成功区域 */
.alert-section {
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 25px;
}

.negative-irr {
    background: #fff5f5;
    border-left: 4px solid #e53e3e;
}

.positive-irr {
    background: #f0fff4;
    border-left: 4px solid #38a169;
}

.alert-section h6 {
    margin-bottom: 12px;
    font-size: 1.1rem;
}

.reason-analysis {
    margin: 20px 0;
}

.reason-item {
    background: white;
    padding: 15px;
    margin-bottom: 15px;
    border-radius: 6px;
    border-left: 3px solid #e53e3e;
}

.reason-item h6 {
    color: #c53030;
    margin-bottom: 8px;
    font-size: 1rem;
}

.reason-item p {
    margin-bottom: 5px;
    font-size: 0.9rem;
    color: #495057;
}

.improvement-suggestions {
    background: white;
    padding: 15px;
    border-radius: 6px;
    border-left: 3px solid #3182ce;
}

.improvement-suggestions h6 {
    color: #3182ce;
    margin-bottom: 10px;
}

.improvement-suggestions ul {
    margin: 0;
    padding-left: 20px;
}

.improvement-suggestions li {
    margin-bottom: 8px;
    font-size: 0.9rem;
    color: #495057;
}

/* 基准对比网格 */
.benchmark-comparison-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin: 20px 0;
}

.current-irr-display {
    text-align: center;
    padding: 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 10px;
    margin-bottom: 20px;
}

.irr-value {
    font-size: 2.5rem;
    font-weight: bold;
    margin: 10px 0;
}

.irr-value.positive {
    color: #28a745;
}

.irr-value.negative {
    color: #dc3545;
}

.benchmark-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin: 20px 0;
}

.benchmark-item {
    padding: 15px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    text-align: center;
    transition: all 0.3s ease;
    background: white;
}

.benchmark-item.current {
    border-color: #667eea;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.benchmark-label {
    display: block;
    font-weight: 600;
    margin-bottom: 5px;
}

.benchmark-value {
    display: block;
    font-size: 1.2rem;
    font-weight: bold;
    margin: 8px 0;
    color: #667eea;
}

.benchmark-item.current .benchmark-value {
    color: white;
}

.benchmark-description {
    display: block;
    font-size: 0.85rem;
    opacity: 0.8;
    margin-top: 5px;
}

.market-comparison {
    margin: 30px 0;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 10px;
}

.market-rates {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.rate-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    background: white;
    border-radius: 6px;
    border-left: 4px solid #e9ecef;
}

.rate-label {
    font-weight: 500;
    flex: 1;
}

.rate-value {
    font-weight: 600;
    color: #495057;
    margin: 0 15px;
}

.rate-comparison {
    font-size: 1.2rem;
}

.rate-comparison.better {
    color: #28a745;
}

.rate-comparison.worse {
    color: #dc3545;
}

.investment-recommendation {
    margin: 30px 0;
    padding: 20px;
    border-radius: 10px;
}

.recommendation {
    padding: 15px;
    border-radius: 8px;
    border-left: 5px solid;
}

.recommendation.excellent {
    background: #d4edda;
    border-color: #28a745;
    color: #155724;
}

.recommendation.good {
    background: #d1ecf1;
    border-color: #17a2b8;
    color: #0c5460;
}

.recommendation.average {
    background: #fff3cd;
    border-color: #ffc107;
    color: #856404;
}

.recommendation.low {
    background: #f8d7da;
    border-color: #fd7e14;
    color: #721c24;
}

.recommendation.loss {
    background: #f8d7da;
    border-color: #dc3545;
    color: #721c24;
}

/* CGT情景分析样式 */
.scenario-analysis {
    margin: 25px 0;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 12px;
    border: 1px solid #e9ecef;
}

.scenario-analysis h6 {
    color: #495057;
    margin-bottom: 15px;
    font-weight: 600;
    border-bottom: 2px solid #667eea;
    padding-bottom: 8px;
}

.scenarios-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin: 20px 0;
}

.scenario-item {
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    padding: 15px;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

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

.scenario-item.current {
    border-color: #667eea;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.3);
}

.scenario-item.current::before {
    content: attr(data-current-label);
    position: absolute;
    top: 5px;
    right: 5px;
    background: rgba(255,255,255,0.2);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: bold;
}

.scenario-period {
    font-size: 1.1rem;
    font-weight: bold;
    margin-bottom: 8px;
    color: #667eea;
}

.scenario-item.current .scenario-period {
    color: white;
}

.scenario-discount {
    font-size: 0.9rem;
    margin-bottom: 8px;
    opacity: 0.8;
}

.scenario-cgt {
    font-size: 1.2rem;
    font-weight: bold;
    margin: 8px 0;
    color: #dc3545;
}

.scenario-item.current .scenario-cgt {
    color: #fff;
}

.scenario-savings {
    font-size: 0.85rem;
    color: #28a745;
    font-weight: 600;
}

.scenario-item.current .scenario-savings {
    color: #d4edda;
}

/* 收入情景分析样式 */
.income-scenarios {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 20px 0;
}

.income-scenario {
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 20px;
    align-items: center;
    padding: 15px 20px;
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.income-scenario:hover {
    border-color: #667eea;
    transform: translateX(5px);
}

.income-scenario.current {
    border-color: #667eea;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    transform: scale(1.02);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.income-label {
    font-weight: 600;
    font-size: 1.1rem;
}

.tax-rate {
    background: #f8f9fa;
    padding: 6px 12px;
    border-radius: 20px;
    font-weight: bold;
    color: #495057;
    min-width: 60px;
    text-align: center;
}

.income-scenario.current .tax-rate {
    background: rgba(255,255,255,0.2);
    color: white;
}

.cgt-amount {
    font-weight: bold;
    font-size: 1.1rem;
    color: #dc3545;
    min-width: 100px;
    text-align: right;
}

.income-scenario.current .cgt-amount {
    color: white;
}

/* 影响分析样式 */
.impact-comparison {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 20px 0;
    padding: 20px;
    background: white;
    border-radius: 10px;
    border: 1px solid #e9ecef;
}

.impact-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    border-radius: 8px;
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
}

.impact-item.current {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-color: #667eea;
    transform: scale(1.02);
}

.impact-item.savings {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    border-color: #28a745;
    transform: scale(1.02);
}

.impact-label {
    font-weight: 600;
    flex: 1;
}

.impact-value {
    font-weight: bold;
    font-size: 1.1rem;
    min-width: 120px;
    text-align: right;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .scenarios-grid {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
        gap: 10px;
    }
    
    .scenario-item {
        padding: 12px;
    }
    
    .income-scenario {
        grid-template-columns: 1fr;
        gap: 10px;
        text-align: center;
    }
    
    .tax-rate, .cgt-amount {
        min-width: auto;
        text-align: center;
    }
    
    .impact-item {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }
    
    .impact-value {
        min-width: auto;
        text-align: center;
    }
}

/* 动画效果 */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.scenario-analysis {
    animation: slideInUp 0.5s ease-out;
}

.scenario-item, .income-scenario, .impact-item {
    animation: slideInUp 0.3s ease-out;
}

/* 工具提示样式 */
.scenario-item:hover::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0,0,0,0.8);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.7rem;
    white-space: nowrap;
    z-index: 1000;
}
.benchmark-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 10px;
    margin: 15px 0;
}

.benchmark-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 12px;
    background: white;
    border-radius: 6px;
    border: 2px solid #e9ecef;
    transition: all 0.2s ease;
}

.benchmark-item.current {
    border-color: #667eea;
    background: #f0f4ff;
    transform: scale(1.05);
}

.benchmark-label {
    font-size: 0.8rem;
    color: #6c757d;
    margin-bottom: 5px;
    text-align: center;
}

.benchmark-value {
    font-weight: 700;
    color: #495057;
    font-size: 0.9rem;
}

.benchmark-item.current .benchmark-value {
    color: #667eea;
}

/* 敏感性分析 */
.sensitivity-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 10px;
    margin-top: 15px;
}

.sensitivity-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    background: white;
    border-radius: 6px;
    border-left: 3px solid #28a745;
}

.sensitivity-item span:first-child {
    font-weight: 600;
    color: #495057;
}

.sensitivity-item .positive {
    color: #28a745;
    font-weight: 600;
    font-size: 0.9rem;
}

/* 比较分析 */
.comparison-analysis {
    margin: 25px 0;
}

.comparison-analysis h6 {
    margin-bottom: 15px;
    color: #495057;
    font-size: 1.1rem;
}

/* 响应式优化 */
@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        max-height: 95vh;
    }
    
    .modal-header {
        padding: 15px 20px;
    }
    
    .modal-header h3 {
        font-size: 1.3rem;
    }
    
    .tab-content {
        padding: 15px;
    }
    
    .detail-grid {
        grid-template-columns: 1fr;
    }
    
    .breakdown-categories {
        grid-template-columns: 1fr;
    }
    
    .summary-details {
        flex-direction: column;
        gap: 10px;
    }
    
    .table-header,
    .table-row,
    .table-footer {
        grid-template-columns: 1fr 1fr;
        gap: 5px;
        padding: 8px 10px;
        font-size: 0.8rem;
    }
    
    .table-header span:nth-child(3),
    .table-row span:nth-child(3),
    .table-footer span:nth-child(3) {
        display: none;
    }
    
    .benchmark-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .sensitivity-grid {
        grid-template-columns: 1fr;
    }
}

/* 税务总结 */
.tax-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
}

.tax-item {
    display: flex;
    flex-direction: column;
    padding: 12px;
    background: white;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    min-height: 70px;
    justify-content: center;
}

.tax-item .label {
    font-size: 0.85rem;
    color: #6c757d;
    margin-bottom: 4px;
    line-height: 1.2;
}

.tax-item .value {
    font-size: 1.1rem;
    font-weight: 700;
    color: #dc3545;
    line-height: 1.2;
}

/* 建议区域 */
.recommendation {
    padding: 15px;
    background: white;
    border-radius: 6px;
    border-left: 4px solid #ffc107;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.recommendation h4 {
    color: #856404;
    margin-bottom: 8px;
    font-size: 1.1rem;
}

.recommendation p {
    color: #495057;
    line-height: 1.5;
    font-size: 0.95rem;
    margin-bottom: 8px;
}

/* 图表容器 */
.chart-section {
    margin-top: 10px;
}

.chart-container {
    background: white;
    border-radius: 6px;
    padding: 15px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    height: 300px;
    position: relative;
}

#cashFlowChart {
    width: 100% !important;
    height: 100% !important;
}

/* 页脚样式 */
footer {
    margin-top: 50px;
    padding: 30px 0;
    text-align: center;
}

.disclaimer {
    background: #fff3cd;
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid #ffc107;
    max-width: 800px;
    margin: 0 auto;
}

.disclaimer h4 {
    color: #856404;
    margin-bottom: 10px;
}

.disclaimer p {
    color: #856404;
    font-size: 0.9rem;
    line-height: 1.6;
}

/* 响应式设计 */
@media (max-width: 768px) {
    header h1 {
        font-size: 2rem;
    }
    
    .profile-controls {
        flex-direction: column;
        gap: 15px;
        align-items: stretch;
    }
    
    .profile-selector {
        flex-direction: column;
        align-items: stretch;
        gap: 5px;
    }
    
    .profile-actions {
        justify-content: center;
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .profile-btn {
        font-size: 0.8rem;
        padding: 8px 12px;
    }
    
    .overview-grid,
    .return-grid,
    .tax-summary {
        grid-template-columns: 1fr;
    }
    
    .container {
        padding: 10px;
    }
    
    .input-section,
    .results-section,
    .profile-section {
        padding: 20px;
    }
    
    .chart-container {
        height: 250px;
        padding: 10px;
    }
    
    .result-group {
        margin-bottom: 15px;
        padding: 12px;
    }
    
    .result-group h3 {
        font-size: 1.1rem;
        margin-bottom: 12px;
    }
}

@media (max-width: 480px) {
    header {
        padding: 20px 0;
    }
    
    header h1 {
        font-size: 1.8rem;
    }
    
    .subtitle {
        font-size: 1rem;
    }
    
    .language-selector {
        position: static;
        justify-content: center;
        margin-bottom: 15px;
        top: auto;
        right: auto;
    }
    
    .lang-btn {
        padding: 6px 12px;
        font-size: 0.8rem;
    }
    
    .form-group,
    .result-group {
        padding: 15px;
    }
}

/* 动画效果 */
.results-section {
    animation: fadeInUp 0.5s ease-out;
}

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

/* 加载状态 */
.calculating {
    opacity: 0.7;
    pointer-events: none;
}

.calculating .calculate-btn {
    background: #6c757d;
    cursor: not-allowed;
}

.calculating .calculate-btn::after {
    content: " 计算中...";
}

/* 错误状态 */
.error {
    border-color: #dc3545 !important;
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1) !important;
}

.error-message {
    color: #dc3545;
    font-size: 0.875rem;
    margin-top: 5px;
}

/* 成功状态 */
.success {
    border-color: #28a745 !important;
    box-shadow: 0 0 0 3px rgba(40, 167, 69, 0.1) !important;
}

/* 工具提示 */
.tooltip {
    position: relative;
    cursor: help;
}

.tooltip::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: #333;
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 0.8rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
    z-index: 1000;
}

.tooltip:hover::after {
    opacity: 1;
}