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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Microsoft YaHei', sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 20px;
    line-height: 1.6;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

/* 头部样式 */
header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 40px 30px;
    text-align: center;
}

header h1 {
    font-size: 2em;
    margin-bottom: 10px;
    font-weight: 700;
}

.subtitle {
    font-size: 1.1em;
    opacity: 0.95;
    font-weight: 300;
}

/* 主内容区域 */
main {
    padding: 40px 30px;
}

/* 输入表单区域 */
.input-section {
    margin-bottom: 30px;
}

.input-section h2 {
    color: #333;
    margin-bottom: 25px;
    font-size: 1.5em;
    font-weight: 600;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #555;
    font-weight: 500;
    font-size: 1em;
}

.label-icon {
    margin-right: 5px;
}

.form-group input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1em;
    transition: all 0.3s ease;
}

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

.form-group input::placeholder {
    color: #aaa;
}

/* 按钮样式 */
.btn-calculate {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1.2em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.btn-calculate:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.4);
}

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

/* 报告区域 */
.report-section {
    animation: fadeIn 0.5s ease-in;
}

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

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

.report-header h2 {
    color: #667eea;
    font-size: 1em;
    margin: 5px 0;
    font-weight: 400;
}

.report-title {
    font-size: 1.8em !important;
    font-weight: 700 !important;
    color: #333 !important;
    margin: 15px 0 !important;
}

/* 报告块 */
.report-block {
    margin-bottom: 25px;
    padding: 25px;
    background: #f8f9fa;
    border-radius: 12px;
}

.report-block h3 {
    color: #333;
    font-size: 1.3em;
    margin-bottom: 20px;
    font-weight: 600;
}

.report-block.highlight {
    background: linear-gradient(135deg, #fff5f5 0%, #ffe5e5 100%);
    border-left: 5px solid #ff6b6b;
}

.report-block.total-block {
    background: linear-gradient(135deg, #fff9e6 0%, #ffe6b3 100%);
    border: 3px solid #ffa500;
}

/* 基础信息网格 */
.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.info-item {
    display: flex;
    justify-content: space-between;
    padding: 10px;
    background: white;
    border-radius: 8px;
}

.info-label {
    color: #666;
    font-weight: 500;
}

.info-value {
    color: #333;
    font-weight: 700;
}

/* 金额显示 */
.amount-display {
    text-align: center;
    padding: 20px;
    margin: 20px 0;
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.amount-display .currency {
    font-size: 1.5em;
    color: #666;
    margin-right: 5px;
}

.amount-display .amount {
    font-size: 2.5em;
    font-weight: 700;
    color: #ff6b6b;
}

.amount-display .unit {
    font-size: 1.2em;
    color: #666;
    margin-left: 5px;
}

.total-amount .amount {
    font-size: 3em;
    color: #ff4500;
}

/* 解读区域 */
.interpretation {
    margin-top: 15px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 8px;
}

.interpretation-title {
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
}

.interpretation-text {
    color: #555;
    line-height: 1.8;
}

/* 列表样式 */
.breakdown-list,
.equivalent-list {
    list-style: none;
    margin: 10px 0;
}

.breakdown-list li,
.equivalent-list li {
    padding: 8px 0;
    color: #555;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.breakdown-amount {
    font-weight: 700;
    color: #ff6b6b;
}

/* 分隔线 */
.divider {
    text-align: center;
    color: #667eea;
    margin: 25px 0;
    font-size: 0.9em;
    opacity: 0.6;
}

/* 报告底部 */
.report-footer {
    text-align: center;
    margin-top: 30px;
}

.btn-recalculate {
    padding: 12px 40px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-recalculate:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4);
}

/* 页脚 */
footer {
    background: #f8f9fa;
    padding: 20px;
    text-align: center;
    color: #666;
    font-size: 0.9em;
}

/* 响应式设计 */
@media (max-width: 768px) {
    body {
        padding: 10px;
    }

    .container {
        border-radius: 15px;
    }

    header {
        padding: 30px 20px;
    }

    header h1 {
        font-size: 1.5em;
    }

    .subtitle {
        font-size: 1em;
    }

    main {
        padding: 25px 20px;
    }

    .amount-display .amount {
        font-size: 2em;
    }

    .total-amount .amount {
        font-size: 2.3em;
    }

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

@media (max-width: 480px) {
    header h1 {
        font-size: 1.3em;
    }

    .subtitle {
        font-size: 0.9em;
    }

    .report-title {
        font-size: 1.3em !important;
    }

    .amount-display .amount {
        font-size: 1.8em;
    }

    .total-amount .amount {
        font-size: 2em;
    }
}
