/* ========================================
   BabyLog - 移动端样式
   ======================================== */

/* --- Reset & Base --- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    -webkit-tap-highlight-color: transparent;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    background: #FFF5F7;
    color: #333;
    min-height: 100vh;
    min-height: 100dvh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

input, button {
    font-family: inherit;
    font-size: inherit;
}

/* --- Login Page --- */
.login-body {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #FFB6C1 0%, #FFD1D8 50%, #FFF5F7 100%);
}

.login-container {
    width: 100%;
    max-width: 360px;
    /* 顶部留出刘海/灵动岛安全区 */
    padding: calc(32px + env(safe-area-inset-top, 0px)) 24px 32px;
    text-align: center;
}

.login-logo {
    margin-bottom: 12px;
}

.login-title {
    font-size: 1.8rem;
    color: #FF69B4;
    font-weight: 800;
    letter-spacing: 2px;
}

.login-subtitle {
    font-size: 0.9rem;
    color: #D4869C;
    margin-bottom: 28px;
}

.login-form {
    background: #fff;
    border-radius: 20px;
    padding: 28px 20px;
    box-shadow: 0 8px 30px rgba(255, 105, 180, 0.15);
}

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

.form-group input {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #FDDDE6;
    border-radius: 12px;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.2s;
    background: #FFFBFD;
}

.form-group input:focus {
    border-color: #FF69B4;
}

.login-error {
    color: #E74C3C;
    font-size: 0.85rem;
    margin-bottom: 10px;
    text-align: center;
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 24px;
    border: none;
    border-radius: 14px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s;
    -webkit-user-select: none;
    user-select: none;
}

.btn:active {
    transform: scale(0.96);
}

.btn-primary {
    background: linear-gradient(135deg, #FF69B4, #FF85C2);
    color: #fff;
    box-shadow: 0 4px 15px rgba(255, 105, 180, 0.3);
}

.btn-secondary {
    background: #F0F0F0;
    color: #666;
}

.btn-outline {
    background: #fff;
    color: #FF69B4;
    border: 2px solid #FFB6C1;
}

.btn-full {
    width: 100%;
}

/* --- App Layout --- */
.app-body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    min-height: 100dvh;
    padding-bottom: calc(70px + env(safe-area-inset-bottom, 0px));
    background: #FFF5F7;
}

.app-content {
    flex: 1;
    overflow-y: auto;
    /* 顶部留出刘海/灵动岛安全区，避免标题被遮挡 */
    padding: calc(16px + env(safe-area-inset-top, 0px)) 16px 16px;
}

/* --- Page Header --- */
.page-header {
    text-align: center;
    margin-bottom: 20px;
}

.page-header h2 {
    font-size: 1.4rem;
    color: #FF69B4;
    font-weight: 700;
}

.page-subtitle {
    font-size: 0.85rem;
    color: #C495A5;
    margin-top: 4px;
}

/* --- History Date Picker --- */
.history-date-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 8px;
}

.date-arrow {
    width: 36px;
    height: 36px;
    border: 2px solid #FDDDE6;
    border-radius: 50%;
    background: #fff;
    color: #FF69B4;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s;
    flex-shrink: 0;
}

.date-arrow:active {
    background: #FFF0F5;
    border-color: #FF69B4;
}

.date-input {
    max-width: 160px;
    text-align: center;
}

/* --- Tab Pages --- */
.tab-page {
    display: none;
}

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

/* --- Action Buttons Grid --- */
.actions-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.action-btn {
    display: flex;
    align-items: center;
    gap: 16px;
    width: 100%;
    padding: 20px 22px;
    border: none;
    border-radius: 18px;
    font-size: 1.15rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.12s;
    color: #fff;
    -webkit-user-select: none;
    user-select: none;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.08);
}

.action-btn:active {
    transform: scale(0.97);
    opacity: 0.9;
}

.action-icon {
    font-size: 1.6rem;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 14px;
    flex-shrink: 0;
}

.formula-btn { background: linear-gradient(135deg, #FF9A9E, #FFB6C1); }
.solid-btn   { background: linear-gradient(135deg, #FF8C42, #F05F0E); }
.sleep-btn   { background: linear-gradient(135deg, #A18CD1, #C4B5E0); }
.wake-btn    { background: linear-gradient(135deg, #FAD961, #F7B733); }
.poop-btn    { background: linear-gradient(135deg, #A8D8B9, #7EC8A0); }
.pee-btn     { background: linear-gradient(135deg, #7EC8E3, #4FB3D9); }

/* --- Bottom Nav --- */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    background: #fff;
    border-top: 1px solid #FDE4EC;
    padding: 6px 0 env(safe-area-inset-bottom, 8px);
    z-index: 100;
    box-shadow: 0 -2px 12px rgba(255, 105, 180, 0.06);
}

.nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    padding: 6px 2px;
    border: none;
    background: none;
    color: #B0B0B0;
    cursor: pointer;
    transition: color 0.15s;
    -webkit-user-select: none;
    user-select: none;
}

.nav-item.active {
    color: #FF69B4;
}

.nav-icon {
    font-size: 1.4rem;
}

.nav-label {
    font-size: 0.7rem;
    font-weight: 500;
}

/* --- Stats Grid --- */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 20px;
}

.stat-card {
    background: #fff;
    border-radius: 16px;
    padding: 16px 12px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(255, 105, 180, 0.06);
}

.stat-card.highlight {
    background: linear-gradient(135deg, #FFF0F5, #FFE4EC);
    border: 2px solid #FFB6C1;
}

.stat-icon {
    font-size: 1.5rem;
    margin-bottom: 4px;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #FF69B4;
    margin-bottom: 2px;
}

.stat-card.sleep-stat {
    background: linear-gradient(135deg, #F3E8FF, #EDE0FF);
    border: 2px solid #C4B5E0;
}

.stat-card.sleep-stat .stat-value {
    color: #8B7EC8;
}

.stat-card.sleep-stat .stat-label {
    color: #A998D0;
}

.stat-card.add-card {
    background: #FAFAFA;
    border: 2px dashed #E8D5E0;
    cursor: pointer;
    transition: all 0.15s;
}

.stat-card.add-card:active {
    background: #FFF0F5;
    border-color: #FFB6C1;
    transform: scale(0.96);
}

.stat-card.add-card .stat-icon {
    font-size: 1.8rem;
    color: #D0C0D0;
}

.stat-card.growth-card {
    background: linear-gradient(135deg, #E8F7FF, #DDF2FF);
    border: 2px solid #A8D8F0;
    cursor: pointer;
    transition: all 0.15s;
}

.stat-card.growth-card:active {
    transform: scale(0.96);
    background: #DDF2FF;
}

.stat-card.growth-card .stat-value {
    color: #4A9ACB;
    font-size: 1.05rem;
    line-height: 1.35;
    word-break: break-word;
}

.stat-card.growth-card .stat-label {
    color: #7FB4D8;
}

.growth-sub {
    font-size: 0.72rem;
    color: #7FB4D8;
    margin-top: 2px;
}

/* --- 今日育儿小知识卡片 --- */
.tip-card {
    background: linear-gradient(135deg, #FFF8E1, #FFECB3);
    border: 2px solid #FFD54F;
    border-radius: 14px;
    padding: 9px 14px;
    margin-top: 12px;
    margin-bottom: 12px;
}

.tip-card-header {
    font-size: 0.88rem;
    font-weight: 700;
    color: #E6A700;
    margin-bottom: 4px;
}

.tip-stage {
    font-size: 0.74rem;
    color: #B8860B;
    margin-bottom: 4px;
    font-weight: 600;
}

.tip-text {
    font-size: 0.84rem;
    color: #6D5B2F;
    line-height: 1.5;
}

.tip-text.tip-empty {
    color: #AAA;
}

.tip-special {
    margin-top: 6px;
    font-size: 0.88rem;
    font-weight: 700;
    color: #E91E63;
    text-align: center;
}

/* --- 辅食餐次选择 --- */
.solid-meal-picker {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 10px 0;
    flex-wrap: wrap;
}

.solid-meal-label {
    font-size: 0.8rem;
    color: #B8860B;
    font-weight: 600;
    margin-right: 2px;
}

.meal-opt {
    padding: 6px 14px;
    border: 2px solid #FDDDE6;
    border-radius: 20px;
    background: #FFFBFD;
    color: #D4869C;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s;
    -webkit-user-select: none;
    user-select: none;
}

.meal-opt.active {
    background: #FF69B4;
    border-color: #FF69B4;
    color: #fff;
}

.meal-opt:active {
    transform: scale(0.95);
}

/* --- 安装指引弹窗 --- */
.guide-modal .modal-box {
    max-width: 340px;
}

.guide-body {
    max-height: 62vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    text-align: center;
    padding-top: 6px;
}

.guide-text {
    font-size: 0.95rem;
    color: #6D5B2F;
    line-height: 1.7;
    margin-bottom: 12px;
    text-align: left;
}

.guide-img {
    width: 100%;
    max-width: 300px;
    height: auto;
    border-radius: 12px;
    margin: 0 auto 6px;
    display: block;
    box-shadow: 0 4px 16px rgba(255, 105, 180, 0.18);
}

.export-tip {
    font-size: 0.82rem;
    color: #AAA;
    margin-bottom: 12px;
    text-align: left;
}

/* --- Records List --- */
.records-list {
    background: #fff;
    border-radius: 16px;
    padding: 16px;
    box-shadow: 0 2px 10px rgba(255, 105, 180, 0.06);
}

.records-list h3 {
    font-size: 0.95rem;
    color: #FF69B4;
    margin-bottom: 12px;
    font-weight: 600;
}

.record-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid #FFF0F5;
    font-size: 0.9rem;
}

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

.record-icon {
    font-size: 1.2rem;
    width: 28px;
    text-align: center;
}

.record-label {
    flex: 1;
    color: #555;
}

.record-detail {
    font-weight: 600;
    color: #FF69B4;
}

.record-time-btn {
    background: none;
    border: 1px solid #FDDDE6;
    color: #FF69B4;
    font-size: 0.8rem;
    font-weight: 500;
    padding: 4px 10px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.15s;
    white-space: nowrap;
}

.record-time-btn:active {
    background: #FFF0F5;
    border-color: #FF69B4;
}

.record-del-btn {
    background: none;
    border: none;
    color: #D0D0D0;
    font-size: 0.9rem;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 6px;
    transition: all 0.15s;
    flex-shrink: 0;
}

.record-del-btn:active {
    background: #FFE4E4;
    color: #E74C3C;
}

.empty-msg {
    text-align: center;
    color: #CCC;
    padding: 20px 0;
    font-size: 0.9rem;
}

/* --- User Card --- */
.user-card {
    background: #fff;
    border-radius: 20px;
    padding: 32px 24px;
    text-align: center;
    box-shadow: 0 2px 15px rgba(255, 105, 180, 0.08);
}

.user-avatar {
    margin-bottom: 12px;
}

.user-name {
    font-size: 1.3rem;
    font-weight: 700;
    color: #FF69B4;
    margin-bottom: 20px;
}

/* --- Export Card --- */
.export-card {
    background: #fff;
    border-radius: 20px;
    padding: 24px;
    margin-top: 16px;
    box-shadow: 0 2px 15px rgba(255, 105, 180, 0.08);
}

.export-title {
    font-size: 1rem;
    font-weight: 600;
    color: #FF69B4;
    margin-bottom: 16px;
    text-align: center;
}

.export-row {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
}

.export-field {
    flex: 1;
}

.export-field .input-label {
    font-size: 0.8rem;
    color: #999;
    margin-bottom: 4px;
}

.export-field .input-md {
    width: 100%;
}

.export-mode {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
}

.export-mode-btn {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid #FDDDE6;
    border-radius: 10px;
    background: #FFF5F7;
    color: #C495A5;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.export-mode-btn.active {
    background: #FF69B4;
    color: #fff;
    border-color: #FF69B4;
}

/* --- Modal (奶粉量输入) --- */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 200;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s;
    padding: 24px;
    overflow-y: auto;
}

.modal-overlay.show {
    opacity: 1;
    pointer-events: auto;
}

.modal-box {
    background: #fff;
    border-radius: 22px;
    width: 100%;
    max-width: 340px;
    max-height: 92vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.2);
    transform: translateY(20px);
    transition: transform 0.2s;
}

.modal-overlay.show .modal-box {
    transform: translateY(0);
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 20px 10px;
}

.modal-header h3 {
    font-size: 1.1rem;
    color: #333;
}

.modal-close {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: #F5F5F5;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
}

.modal-body {
    padding: 8px 20px 20px;
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.input-label {
    display: block;
    font-size: 0.85rem;
    color: #888;
    margin-bottom: 8px;
}

.input-lg {
    width: 100%;
    padding: 16px;
    font-size: 1.5rem;
    font-weight: 600;
    text-align: center;
    border: 2px solid #FDDDE6;
    border-radius: 14px;
    outline: none;
    transition: border-color 0.2s;
    background: #FFFBFD;
    color: #FF69B4;
}

.input-lg:focus {
    border-color: #FF69B4;
}

.form-error {
    color: #E74C3C;
    font-size: 0.8rem;
    margin-top: 6px;
    text-align: center;
}

/* --- Type Picker (手动添加) --- */
.type-picker {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 14px;
}

.type-option {
    flex: 1 1 calc(50% - 4px);
    padding: 10px 8px;
    border: 2px solid #F0E0E8;
    border-radius: 12px;
    background: #FFFBFD;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.15s;
    text-align: center;
    min-width: calc(50% - 4px);
}

.type-option:active {
    transform: scale(0.96);
}

.type-option.selected {
    border-color: #FF69B4;
    background: #FFF0F5;
    color: #FF69B4;
    font-weight: 600;
}

/* --- Date/Time Fields --- */
.add-datetime {
    display: flex;
    gap: 10px;
    margin-top: 12px;
}

.datetime-field {
    flex: 1;
}

.add-formula-group {
    margin-bottom: 10px;
}

.input-md {
    width: 100%;
    padding: 12px;
    font-size: 0.95rem;
    border: 2px solid #FDDDE6;
    border-radius: 12px;
    outline: none;
    background: #FFFBFD;
    color: #333;
}

.input-md:focus {
    border-color: #FF69B4;
}

/* --- 下拉框统一样式（去原生箭头 + 自定义粉色箭头） --- */
select.input-md {
    appearance: none;
    -webkit-appearance: none;
    background-color: #FFFBFD;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23E6A0B8' d='M6 8 0 0h12z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 12px 8px;
    padding-right: 34px;
}

.input-sm {
    padding: 12px;
    font-size: 1.2rem;
}

.modal-footer {
    display: flex;
    gap: 10px;
    padding: 0 20px 20px;
}

.modal-footer .btn {
    flex: 1;
}

/* --- Global Toast --- */
.toast-global {
    position: fixed;
    top: 120px;
    left: 50%;
    transform: translateX(-50%) translateY(-100px);
    background: #333;
    color: #fff;
    padding: 14px 28px;
    border-radius: 14px;
    font-size: 0.95rem;
    font-weight: 600;
    z-index: 9999;
    opacity: 0;
    transition: all 0.3s;
    pointer-events: none;
    white-space: nowrap;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.28);
    border: 2px solid #FF69B4;
}

.toast-global.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
    pointer-events: auto;
}

.toast-global.error {
    background: #E74C3C;
    border-color: #E74C3C;
}

.toast-global .toast-undo {
    text-decoration: none;
    cursor: pointer;
    margin-left: 8px;
    padding: 3px 14px;
    border-radius: 20px;
    background: #FF69B4;
    color: #fff;
    font-weight: 700;
    opacity: 1;
    transition: all 0.2s;
}

.toast-global .toast-undo:hover {
    background: #FF4FA3;
}

/* --- Login Switch (登录/注册切换) --- */
.login-switch {
    margin-top: 16px;
    font-size: 0.85rem;
    color: #999;
}

.link-btn {
    background: none;
    border: none;
    color: #FF69B4;
    font-weight: 600;
    cursor: pointer;
    padding: 0 2px;
}

/* --- 用户角色徽章 --- */
.user-role {
    display: inline-block;
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 16px;
}

.role-admin {
    background: #FFF0F5;
    color: #E34E8C;
    border: 1px solid #FFB6C1;
}

.role-user {
    background: #F0F0F5;
    color: #7B7B9B;
    border: 1px solid #D8D8E8;
}

/* --- 管理员：用户管理 --- */
.admin-panel {
    margin-top: 16px;
}

.admin-user-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 4px;
    border-bottom: 1px solid #FFF0F5;
}

.admin-user-row:last-child {
    border-bottom: none;
}

.admin-user-info {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    min-width: 0;
}

.admin-user-name {
    font-weight: 600;
    color: #444;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.admin-user-role {
    font-size: 0.7rem;
    padding: 2px 8px;
    border-radius: 10px;
    font-weight: 500;
    flex-shrink: 0;
}

.admin-user-role.role-admin {
    background: #FFF0F5;
    color: #E34E8C;
}

.admin-user-role.role-user {
    background: #F0F0F5;
    color: #7B7B9B;
}

.admin-user-del {
    background: none;
    border: 1px solid #FDDDE6;
    color: #E74C3C;
    font-size: 0.78rem;
    padding: 5px 12px;
    border-radius: 10px;
    cursor: pointer;
    flex-shrink: 0;
    transition: all 0.15s;
}

.admin-user-del:active {
    background: #FFE4E4;
    border-color: #E74C3C;
}

/* --- 用户身份显示（xx的爸爸） --- */
.user-identity {
    font-size: 0.95rem;
    color: #C495A5;
    margin-bottom: 14px;
    font-weight: 600;
}

/* --- 我的身份设置卡片 --- */
.profile-card .form-group {
    text-align: left;
}

/* --- 管理员：宝宝管理 --- */
.admin-baby-add {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
}

.admin-baby-add .input-md {
    flex: 1;
}

.admin-baby-add-btn {
    padding: 12px 18px;
    flex-shrink: 0;
}

.admin-user-add {
    margin-bottom: 12px;
}

.admin-user-add-inputs {
    display: flex;
    gap: 8px;
    margin-bottom: 8px;
}

.admin-user-add-inputs .input-md {
    flex: 1;
}

.admin-user-add-btn {
    width: 100%;
    padding: 12px;
}

/* 用户列表：绑定宝宝徽章 */
.admin-user-baby {
    display: inline-block;
    margin-top: 4px;
    padding: 2px 10px;
    border-radius: 999px;
    background: #FFF0F5;
    color: #FF69B4;
    font-size: 0.8rem;
    font-weight: 600;
    width: fit-content;
}

.admin-user-baby-none {
    background: #F5F5F5;
    color: #AAA;
}

/* 宝宝列表：家人数 */
.admin-baby-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.admin-baby-users {
    font-size: 0.8rem;
    color: #999;
}

/* 用户管理分组标题 */
.admin-group-header {
    font-size: 0.9rem;
    font-weight: 700;
    color: #FF69B4;
    padding: 10px 4px 6px;
    margin-top: 6px;
    border-bottom: 2px solid #FFE4EC;
}

.admin-group-header-none {
    color: #AAA;
    border-bottom-color: #F0F0F0;
}

/* 设置身份弹窗：当前绑定提示 */
.admin-set-current {
    padding: 10px;
    border-radius: 10px;
    background: #FFF0F5;
    color: #FF69B4;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 12px;
    text-align: center;
}

.admin-set-current-none {
    background: #F5F5F5;
    color: #999;
}

.admin-baby-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 4px;
    border-bottom: 1px solid #FFF0F5;
}

.admin-baby-row:last-child {
    border-bottom: none;
}

.admin-baby-name {
    font-weight: 600;
    color: #444;
}

.admin-baby-del {
    background: none;
    border: 1px solid #FDDDE6;
    color: #E74C3C;
    font-size: 0.78rem;
    padding: 4px 12px;
    border-radius: 10px;
    cursor: pointer;
    flex-shrink: 0;
}

.admin-user-title {
    margin-top: 16px;
}

/* --- 管理员：用户管理（身份标签 + 操作按钮） --- */
.admin-user-identity {
    font-size: 0.7rem;
    color: #C495A5;
    background: #FFF5F7;
    border: 1px solid #FDE4EC;
    padding: 2px 8px;
    border-radius: 10px;
    flex-shrink: 0;
}

.admin-user-actions {
    display: flex;
    gap: 6px;
    flex-shrink: 0;
}

.admin-user-set {
    background: none;
    border: 1px solid #FDDDE6;
    color: #FF69B4;
    font-size: 0.78rem;
    padding: 5px 12px;
    border-radius: 10px;
    cursor: pointer;
    flex-shrink: 0;
    transition: all 0.15s;
}

.admin-user-set:active {
    background: #FFF0F5;
    border-color: #FF69B4;
}

/* --- 事件确认弹窗（左侧行为 / 右侧时间） --- */
.confirm-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.confirm-action {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
}

.confirm-icon {
    font-size: 1.7rem;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #FFF0F5;
    border-radius: 12px;
    flex-shrink: 0;
}

.confirm-label {
    font-size: 1.15rem;
    font-weight: 700;
    color: #FF69B4;
}

.confirm-time {
    text-align: center;
    flex-shrink: 0;
}

.confirm-time .input-label {
    font-size: 0.8rem;
    color: #999;
    margin-bottom: 4px;
}

.confirm-time input {
    width: 120px;
    text-align: center;
    padding: 10px;
    font-size: 1.1rem;
}

.confirm-formula {
    margin-top: 8px;
}

/* --- 通用确认弹窗文字 --- */
.confirm-text {
    font-size: 0.95rem;
    color: #555;
    text-align: center;
    line-height: 1.6;
    padding: 8px 0;
}

/* --- 我的宝宝（只读显示） --- */
.profile-baby {
    padding: 12px;
    background: #FFFBFD;
    border: 2px solid #FDDDE6;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 600;
    color: #FF69B4;
    text-align: center;
}

.profile-baby-empty {
    color: #E74C3C;
    border-color: #F8C9C9;
    background: #FFF5F5;
}

.amount-quick {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}

.amount-option {
    flex: 0 0 auto;
    width: 62px;
    padding: 11px 4px;
    border: 2px solid #F0E0E8;
    border-radius: 13px;
    background: #FFFBFD;
    font-size: 1.05rem;
    font-weight: 700;
    color: #FF69B4;
    cursor: pointer;
    transition: all 0.15s;
    text-align: center;
    box-shadow: 0 2px 8px rgba(255, 105, 180, 0.08);
    -webkit-user-select: none;
    user-select: none;
}

.amount-option.active {
    border-color: #FF69B4;
    background: linear-gradient(135deg, #FF69B4, #FF85C2);
    color: #fff;
    box-shadow: 0 4px 12px rgba(255, 105, 180, 0.35);
    font-weight: 800;
}

.amount-option:active {
    transform: scale(0.96);
}

/* --- 辅食选择（分类多选 + 常用） --- */
.confirm-solid {
    margin-top: 4px;
}

.solid-selected {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    min-height: 34px;
    margin-bottom: 12px;
}

.solid-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 12px;
    background: #FFF0F5;
    border: 1px solid #FFB6C1;
    border-radius: 16px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #FF69B4;
    cursor: pointer;
    -webkit-user-select: none;
    user-select: none;
}

.solid-tag-x {
    background: none;
    border: none;
    color: #E74C3C;
    font-size: 0.9rem;
    cursor: pointer;
    padding: 0 2px;
    line-height: 1;
}

.solid-cat {
    margin-bottom: 8px;
}

.solid-cat-title {
    font-size: 0.8rem;
    color: #999;
    margin-bottom: 4px;
    font-weight: 600;
}

.solid-cat-options {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.solid-opt {
    flex: 0 0 auto;
    min-width: 52px;
    padding: 7px 10px;
    border: 2px solid #F0E0E8;
    border-radius: 10px;
    background: #FFFBFD;
    font-size: 0.85rem;
    font-weight: 600;
    color: #555;
    cursor: pointer;
    transition: all 0.15s;
    text-align: center;
    -webkit-user-select: none;
    user-select: none;
}

.solid-opt.active {
    border-color: #FF69B4;
    background: linear-gradient(135deg, #FF69B4, #FF85C2);
    color: #fff;
    font-weight: 700;
}

.solid-opt:active {
    transform: scale(0.96);
}

.solid-common {
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px solid #FFF0F5;
}

.solid-common-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.solid-input-row {
    display: flex;
    gap: 8px;
    margin-top: 12px;
}

.solid-input-row .input-md {
    flex: 1;
}

.solid-save-btn {
    padding: 12px 14px;
    font-size: 0.85rem;
    flex-shrink: 0;
}

/* --- Utility --- */
.hidden {
    display: none !important;
}
