/* 预产期计算器样式 */

/* 计算方式标签 */
.calc-method-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.method-tab {
    flex: 1;
    padding: 15px 20px;
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 16px;
    font-weight: 500;
}

.method-tab:hover {
    background: #e9ecef;
}

.method-tab.active {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
    border-color: #f5576c;
}

.method-tab i {
    margin-right: 8px;
}

/* 结果网格 */
.result-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-bottom: 20px;
}

.result-card {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.result-card.highlight {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
    border: none;
}

.result-icon {
    font-size: 32px;
    opacity: 0.8;
}

.result-content {
    flex: 1;
}

.result-label {
    font-size: 14px;
    opacity: 0.8;
    margin-bottom: 5px;
}

.result-value {
    font-size: 20px;
    font-weight: bold;
}

/* 孕期进度条 */
.pregnancy-progress {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

.progress-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-weight: 500;
}

.progress {
    height: 30px;
    background: #e9ecef;
    border-radius: 15px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #f093fb 0%, #f5576c 100%);
    transition: width 0.5s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
}

/* 提醒卡片 */
.tips-card {
    background: #fff9e6;
    border: 1px solid #ffe58f;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

.tips-card h4 {
    color: #d48806;
    margin-bottom: 15px;
}

.tips-content {
    line-height: 1.8;
}

.tips-item {
    margin-bottom: 10px;
    padding-left: 20px;
    position: relative;
}

.tips-item:before {
    content: "•";
    position: absolute;
    left: 0;
    color: #d48806;
    font-weight: bold;
}

/* 产检时间表 */
.checkup-schedule {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 20px;
}

.checkup-schedule h4 {
    color: #1890ff;
    margin-bottom: 15px;
}

.schedule-item {
    padding: 12px;
    background: #f0f5ff;
    border-left: 3px solid #1890ff;
    margin-bottom: 10px;
    border-radius: 4px;
}

.schedule-item.completed {
    background: #f6ffed;
    border-left-color: #52c41a;
    opacity: 0.7;
}

.schedule-item.upcoming {
    background: #fff7e6;
    border-left-color: #fa8c16;
}

.schedule-item.current {
    background: #fff1f0;
    border-left-color: #ff4d4f;
}

.schedule-week {
    font-weight: bold;
    color: #1890ff;
    margin-bottom: 5px;
}

.schedule-content {
    font-size: 14px;
    color: #666;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .result-grid {
        grid-template-columns: 1fr;
    }
    
    .calc-method-tabs {
        flex-direction: column;
    }
    
    .result-card {
        padding: 15px;
    }
    
    .result-icon {
        font-size: 24px;
    }
    
    .result-value {
        font-size: 18px;
    }
}

