/* ==================== 确认弹窗（防呆设计） ==================== */
.confirm-modal {
    position: fixed;
    inset: 0;
    z-index: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.2s ease;
}

.confirm-modal-bg {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
}

.confirm-modal-card {
    position: relative;
    background: #fff;
    border-radius: 16px;
    padding: 24px 20px 20px;
    width: 88vw;
    max-width: 320px;
    z-index: 1;
    box-shadow: 0 8px 32px rgba(0,0,0,0.25);
    animation: slideUp 0.25s ease;
    text-align: center;
}

.confirm-modal-icon {
    font-size: 40px;
    margin-bottom: 10px;
}

.confirm-modal-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 6px;
}

.confirm-modal-desc {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 20px;
    line-height: 1.5;
}

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

.confirm-modal-actions .btn {
    flex: 1;
}

.btn-cancel {
    background: var(--bg);
    color: var(--text-secondary);
    border: 1px solid var(--border);
    padding: 11px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
    min-height: var(--touch-target);
}

.btn-cancel:active {
    background: #e0e0e8;
}

.btn-danger {
    background: var(--danger);
    color: #fff;
    border: none;
    padding: 11px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.2s;
    min-height: var(--touch-target);
}

.btn-danger:active {
    background: #d9534f;
}

/* ==================== 积分不足警示弹窗 ==================== */
.alert-modal {
    position: fixed;
    inset: 0;
    z-index: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.2s ease;
}

.alert-modal-bg {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
}

.alert-modal-card {
    position: relative;
    background: #fff;
    border-radius: 16px;
    padding: 28px 20px 20px;
    width: 88vw;
    max-width: 320px;
    z-index: 1;
    box-shadow: 0 8px 32px rgba(0,0,0,0.25);
    animation: slideUp 0.25s ease;
    text-align: center;
}

.alert-modal-icon {
    font-size: 44px;
    margin-bottom: 10px;
}

.alert-modal-title {
    font-size: 17px;
    font-weight: 600;
    color: var(--danger);
    margin-bottom: 8px;
}

.alert-modal-desc {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 22px;
    line-height: 1.6;
    white-space: pre-line;
}

.alert-modal-actions {
    display: flex;
    justify-content: center;
}

.alert-modal-actions .btn-primary {
    width: 100%;
    padding: 12px;
    border-radius: var(--radius-sm);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    background: var(--primary);
    color: #fff;
    min-height: var(--touch-target);
    transition: all 0.2s;
}

.alert-modal-actions .btn-primary:active {
    background: var(--primary-dark);
}

/* ==================== 目标设置 ==================== */
.target-settings-panel {
    margin-bottom: 12px;
}

.target-settings-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
}

.target-settings-header h3 {
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
}

.target-status {
    font-size: 11px;
    padding: 3px 10px;
    border-radius: 10px;
    font-weight: 500;
    background: #f5f5f5;
    color: var(--text-muted);
}

.target-status.set {
    background: #e8f5e9;
    color: #2e7d32;
}

.target-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.target-row {
    display: flex;
    gap: 8px;
}

.target-field {
    flex: 1;
    min-width: 0;
}

.target-field label {
    display: block;
    font-size: 11px;
    color: var(--text-secondary);
    margin-bottom: 4px;
    font-weight: 500;
}

.target-field .text-input {
    text-align: center;
    font-size: 14px;
}

/* 营养目标展示（统计面板中） */
.macro-target-row {
    display: flex;
    gap: 8px;
    margin: 6px 0 8px;
    padding: 8px 10px;
    background: #f8f9fc;
    border-radius: var(--radius-sm);
    font-size: 11px;
}

.macro-target-item {
    flex: 1;
    text-align: center;
}

.macro-target-item .mt-val {
    font-weight: 600;
    color: var(--text);
    font-size: 12px;
    white-space: nowrap;
}

.macro-target-item .mt-lbl {
    color: var(--text-muted);
    font-size: 10px;
}

/* ==================== 头像选择弹窗 ==================== */
.avatar-modal {
    position: fixed;
    inset: 0;
    z-index: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.2s ease;
}

.avatar-modal-bg {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
}

.avatar-modal-card {
    position: relative;
    background: #fff;
    border-radius: 16px;
    padding: 20px;
    width: 92vw;
    max-width: 400px;
    max-height: 80vh;
    overflow-y: auto;
    z-index: 1;
    box-shadow: 0 8px 32px rgba(0,0,0,0.25);
    animation: slideUp 0.25s ease;
}

.avatar-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
    gap: 8px;
}

