/* 育儿补贴计算器 - 仅保留工具专属样式，通用样式复用 common.css */

/* 结果区（与上方表单分隔） */
.result-section {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #e5e7eb;
}

.result-summary {
    display: flex;
    gap: 16px;
    margin-bottom: 16px;
}

.summary-item {
    flex: 1;
    padding: 16px;
    background: rgba(139, 92, 246, 0.05);
    border: 1.5px solid rgba(139, 92, 246, 0.2);
    border-radius: 8px;
    text-align: center;
}

.summary-value {
    font-size: 28px;
    font-weight: bold;
    color: #8b5cf6;
    margin-bottom: 4px;
}

.summary-label {
    font-size: 13px;
    color: #6b7280;
}

/* 快速月份按钮组 */
.quick-months {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

/* 申领计划 */
.apply-plan {
    margin-top: 16px;
}

.plan-title {
    font-size: 15px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 12px;
}

.plan-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.plan-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px 15px;
    background: #f9fafb;
    border-radius: 6px;
}

.plan-index {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #8b5cf6;
    color: #fff;
    border-radius: 50%;
    font-size: 13px;
    font-weight: 600;
    flex-shrink: 0;
}

.plan-info {
    flex: 1;
}

.plan-amount {
    font-size: 14px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 4px;
}

.plan-deadline {
    font-size: 13px;
    color: #ef4444;
}

/* 特别提醒（黄色警示框） */
.tips-section {
    margin-top: 16px;
    padding: 15px;
    background: #fef3c7;
    border: 1.5px solid #fcd34d;
    border-radius: 8px;
    display: flex;
    gap: 12px;
}

.tips-icon {
    font-size: 24px;
    flex-shrink: 0;
}

.tips-content {
    flex: 1;
}

.tips-content h4 {
    margin: 0 0 8px 0;
    color: #92400e;
    font-size: 14px;
}

.tips-content p {
    margin: 0;
    color: #b45309;
    font-size: 13px;
    line-height: 1.5;
}

/* 政策卡片 */
.policy-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
}

.policy-card {
    padding: 15px;
    background: #f3e8ff;
    border: 1.5px solid #e9d5ff;
    border-radius: 8px;
    text-align: center;
}

.policy-year {
    font-size: 14px;
    font-weight: 600;
    color: #6b21a8;
    margin-bottom: 8px;
}

.policy-formula {
    font-size: 13px;
    color: #7e22ce;
    margin-bottom: 6px;
    font-family: 'Courier New', monospace;
}

.policy-count {
    font-size: 12px;
    color: #9333ea;
    background: rgba(139, 92, 246, 0.1);
    padding: 4px 10px;
    border-radius: 4px;
    display: inline-block;
}

/* 结果区标题与复制按钮 */
.result-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
}

.result-title {
    font-size: 16px;
    font-weight: 600;
    color: #1f2937;
}

/* 平均每月补贴 */
.monthly-avg {
    margin: 14px 0 4px;
    font-size: 14px;
    color: #6b7280;
}

.monthly-avg strong {
    color: #8b5cf6;
    font-size: 16px;
}

/* 申领时间轴 */
.claim-timeline {
    display: flex;
    margin: 18px 0 4px;
}

.timeline-step {
    flex: 1;
    position: relative;
    text-align: center;
    padding: 0 4px;
}

.timeline-step:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 17px;
    left: 50%;
    width: 100%;
    height: 2px;
    background: #e5e7eb;
    z-index: 0;
}

.timeline-dot {
    position: relative;
    z-index: 1;
    width: 36px;
    height: 36px;
    margin: 0 auto 8px;
    border-radius: 50%;
    background: #8b5cf6;
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
}

.timeline-amount {
    font-size: 13px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 2px;
}

.timeline-deadline {
    font-size: 12px;
    color: #ef4444;
}

/* ============ 深色模式 ============ */
body.dark .result-section {
    border-top-color: #495057;
}

body.dark .summary-item {
    background: rgba(139, 92, 246, 0.1);
    border-color: #3a2f5c;
}

body.dark .summary-value {
    color: #c4b5fd;
}

body.dark .summary-label {
    color: #9aa0a6;
}

body.dark .plan-item {
    background: #212529;
}

body.dark .plan-amount {
    color: #e0e0e0;
}

body.dark .tips-section {
    background: rgba(252, 211, 77, 0.12);
    border-color: #7f6011;
}

body.dark .tips-content h4 {
    color: #fcd34d;
}

body.dark .tips-content p {
    color: #fbbf24;
}

body.dark .policy-card {
    background: rgba(139, 92, 246, 0.12);
    border-color: #3a2f5c;
}

body.dark .policy-year {
    color: #c4b5fd;
}

body.dark .policy-formula {
    color: #d8b4fe;
}

body.dark .policy-count {
    color: #d8b4fe;
    background: rgba(139, 92, 246, 0.2);
}

body.dark .result-title {
    color: #e0e0e0;
}

body.dark .monthly-avg {
    color: #9aa0a6;
}

body.dark .monthly-avg strong {
    color: #c4b5fd;
}

body.dark .timeline-step:not(:last-child)::after {
    background: #495057;
}

body.dark .timeline-amount {
    color: #e0e0e0;
}
