/* ================================
   事件管理模块样式
   ================================ */

/* 事件容器 */
.events-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* 事件子Tab导航 - 小红书风格 */
.events-sub-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
}

.event-sub-tab {
    flex: 0 0 auto;
    padding: 8px 18px;
    background: #fafafa;
    border: 1px solid transparent;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    color: #666;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.event-sub-tab:hover {
    background: #f5f5f5;
    transform: translateY(-1px);
}

.event-sub-tab.active {
    background: linear-gradient(135deg, #ff2442 0%, #ff6f61 100%);
    color: white;
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 3px 10px rgba(255, 36, 66, 0.25);
}

/* 事件内容区域 */
.events-content {
    background: white;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

/* ================================
   喂奶事件专用样式
   ================================ */

/* 快速记录按钮 */
.feed-quick-action {
    text-align: center;
    margin-bottom: 32px;
}

.feed-start-btn {
    padding: 16px 48px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.4);
}

.feed-start-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(102, 126, 234, 0.5);
}

.feed-start-btn:active {
    transform: translateY(0);
}

/* 仪表盘计时器 */
.feed-timer-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    margin-bottom: 32px;
    padding: 32px 24px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 24px;
    box-shadow: 0 8px 32px rgba(102, 126, 234, 0.3);
}

.circular-timer {
    position: relative;
    width: 100%;
    max-width: 360px;
    padding: 32px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.timer-display {
    text-align: center;
    margin-bottom: 24px;
}

.timer-label {
    font-size: 13px;
    color: #8e8e93;
    font-weight: 500;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.timer-time {
    font-size: 48px;
    font-weight: 700;
    color: #667eea;
    margin: 0;
    line-height: 1.2;
    font-variant-numeric: tabular-nums;
}

.timer-milliseconds {
    font-size: 24px;
    color: #667eea;
    opacity: 0.6;
    font-weight: 600;
}

/* 进度条 */
.timer-progress-bar {
    width: 100%;
    height: 6px;
    background: #f0f0f0;
    border-radius: 3px;
    overflow: hidden;
    position: relative;
}

.timer-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    border-radius: 3px;
    transition: width 0.05s linear;
    box-shadow: 0 0 8px rgba(102, 126, 234, 0.4);
    width: 0%;
}

/* 统计信息 */
.timer-stats {
    display: flex;
    justify-content: space-around;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #f0f0f0;
}

.timer-stat-item {
    text-align: center;
}

.timer-stat-value {
    font-size: 20px;
    font-weight: 700;
    color: #667eea;
    margin-bottom: 4px;
}

.timer-stat-label {
    font-size: 12px;
    color: #8e8e93;
}

/* 结束按钮 */
.feed-end-btn {
    padding: 12px 32px;
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
    border: none;
    border-radius: 24px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(245, 87, 108, 0.3);
    min-width: 100px;
}

.feed-end-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(245, 87, 108, 0.4);
}

.feed-end-btn:active {
    transform: scale(0.98);
}

/* 时间线视图 */
.feed-timeline-container {
    margin-top: 24px;
    margin-bottom: 24px;
}

.feed-timeline-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.feed-timeline-title {
    font-size: 16px;
    font-weight: 600;
    color: #2c3e50;
}

.feed-timeline-toggle {
    padding: 6px 12px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.feed-timeline-toggle:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.feed-timeline-content {
    display: none;
    max-height: 400px;
    overflow-y: auto;
    background: white;
    border-radius: 12px;
    padding: 16px;
    border: 1px solid #e9ecef;
}

.feed-timeline-content.show {
    display: block;
}

.feed-timeline-day {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f0f0f0;
}

.feed-timeline-day:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.feed-timeline-day-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.feed-timeline-date {
    font-size: 15px;
    font-weight: 600;
    color: #2c3e50;
}

.feed-timeline-date-info {
    display: flex;
    align-items: center;
    gap: 8px;
}

.feed-timeline-weekday {
    font-size: 13px;
    color: #8e8e93;
    font-weight: 500;
}

.feed-timeline-count {
    display: inline-block;
    padding: 4px 10px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.feed-timeline-stats {
    display: flex;
    gap: 16px;
    margin-top: 8px;
}

.feed-timeline-stat {
    font-size: 13px;
    color: #6c757d;
}

.feed-timeline-stat-value {
    font-weight: 600;
    color: #667eea;
}

.feed-timeline-records {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.feed-timeline-record {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    border-radius: 8px;
    font-size: 12px;
    color: #495057;
    cursor: pointer;
    transition: all 0.2s ease;
}

.feed-timeline-record:hover {
    background: linear-gradient(135deg, #e0e7ef 0%, #b3c0d1 100%);
    transform: translateY(-1px);
}

.feed-timeline-record-time {
    font-weight: 600;
    color: #667eea;
}

.feed-timeline-record-duration {
    color: #6c757d;
}

/* 记录列表 */
.feed-records-container {
    margin-top: 24px;
}

.feed-records-header {
    margin-bottom: 16px;
    text-align: right;
}

.feed-records-total {
    font-size: 13px;
    color: #8e8e93;
    font-weight: 500;
}

/* 日期分组 */
.feed-date-group {
    margin-bottom: 32px;
}

.feed-date-group:last-child {
    margin-bottom: 0;
}

.feed-date-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 16px;
    padding: 16px 20px;
    margin-bottom: 16px;
    box-shadow: 0 4px 16px rgba(102, 126, 234, 0.2);
}

.feed-date-info {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.feed-date-title {
    font-size: 18px;
    font-weight: 700;
    color: white;
}

.feed-date-weekday {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.85);
    font-weight: 500;
}

.feed-date-stats {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.feed-date-stat {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.feed-stat-label {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.85);
    font-weight: 500;
}

.feed-stat-value {
    font-size: 14px;
    font-weight: 700;
    color: white;
}

.feed-date-records {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.feed-record-item {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 16px;
    padding: 16px;
    margin-bottom: 12px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.feed-record-item:hover {
    border-color: #667eea;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.12);
    transform: translateY(-1px);
}

.feed-record-header {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.feed-record-time {
    flex: 1;
    min-width: 0;
}

.feed-record-duration {
    font-size: 20px;
    color: #667eea;
    font-weight: 700;
    margin-bottom: 8px;
    line-height: 1.2;
}

.feed-record-details {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.feed-record-start {
    font-size: 13px;
    font-weight: 500;
    color: #8e8e93;
    line-height: 1.4;
}

.feed-record-end {
    font-size: 13px;
    font-weight: 500;
    color: #8e8e93;
    line-height: 1.4;
}

.feed-record-actions {
    display: flex;
    gap: 6px;
    justify-content: flex-end;
    align-self: flex-end;
}

.feed-record-btn {
    padding: 6px 14px;
    border: none;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.feed-record-edit {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.feed-record-edit:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.feed-record-delete {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
}

.feed-record-delete:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(245, 87, 108, 0.3);
}

.feed-record-remark {
    font-size: 14px;
    color: #6c757d;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #f0f0f0;
    line-height: 1.6;
}

/* 空状态 */
.feed-empty {
    text-align: center;
    padding: 48px 20px;
    color: #adb5bd;
}

.feed-empty-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.feed-empty-text {
    font-size: 16px;
    color: #6c757d;
}

/* 加载状态 */
.feed-loading {
    text-align: center;
    padding: 24px 20px;
}

.feed-loading-spinner {
    width: 32px;
    height: 32px;
    border: 3px solid #f0f0f0;
    border-top: 3px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 12px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.feed-loading-text {
    font-size: 14px;
    color: #8e8e93;
}

/* 没有更多数据状态 */
.feed-no-more {
    text-align: center;
    padding: 24px 20px;
}

.feed-no-more-text {
    font-size: 14px;
    color: #adb5bd;
}

/* 编辑对话框 */
.feed-edit-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10000;
    justify-content: center;
    align-items: center;
}

.feed-edit-modal.show {
    display: flex;
}

.feed-edit-content {
    background: white;
    border-radius: 16px;
    padding: 24px;
    width: 90%;
    max-width: 500px;
    max-height: 80vh;
    overflow-y: auto;
}

.feed-edit-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.feed-edit-title {
    font-size: 20px;
    font-weight: 600;
    color: #2c3e50;
}

.feed-edit-close {
    background: none;
    border: none;
    font-size: 28px;
    color: #adb5bd;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    width: 32px;
    height: 32px;
}

.feed-edit-close:hover {
    color: #6c757d;
}

.feed-edit-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.feed-edit-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.feed-edit-label {
    font-size: 14px;
    font-weight: 600;
    color: #495057;
}

.feed-edit-input,
.feed-edit-textarea {
    padding: 10px 14px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.2s ease;
    font-family: inherit;
}

.feed-edit-input:focus,
.feed-edit-textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.feed-edit-textarea {
    min-height: 80px;
    resize: vertical;
}

.feed-edit-footer {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 20px;
}

.feed-edit-btn {
    padding: 10px 24px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.feed-edit-cancel {
    background: #f8f9fa;
    color: #6c757d;
}

.feed-edit-cancel:hover {
    background: #e9ecef;
}

.feed-edit-save {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.feed-edit-save:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

/* 移动端响应式 */
@media (max-width: 768px) {
    .events-container {
        padding: 16px;
    }

    .events-content {
        padding: 16px;
    }

    .events-sub-tabs {
        gap: 6px;
    }

    .event-sub-tab {
        padding: 6px 14px;
        font-size: 12px;
    }

    .circular-timer {
        padding: 24px;
    }

    .timer-time {
        font-size: 36px;
    }

    .timer-milliseconds {
        font-size: 20px;
    }

    .timer-label {
        font-size: 12px;
    }


    .timer-stat-value {
        font-size: 18px;
    }

    .timer-stat-label {
        font-size: 11px;
    }

    .feed-start-btn {
        padding: 14px 36px;
        font-size: 16px;
    }

    .feed-end-btn {
        padding: 10px 28px;
        font-size: 14px;
    }

    .feed-record-item {
        padding: 14px;
    }

    .feed-record-duration {
        font-size: 18px;
    }

    .feed-record-start {
        font-size: 12px;
    }

    .feed-record-end {
        font-size: 12px;
    }

    .feed-record-btn {
        padding: 5px 12px;
        font-size: 12px;
    }

    .feed-edit-content {
        width: 95%;
        padding: 20px;
    }

    .feed-timeline-title {
        font-size: 14px;
    }

    .feed-timeline-toggle {
        padding: 5px 10px;
        font-size: 12px;
    }

    .feed-timeline-date {
        font-size: 14px;
    }

    .feed-timeline-weekday {
        font-size: 12px;
    }

    .feed-timeline-count {
        padding: 3px 8px;
        font-size: 11px;
    }

    .feed-timeline-stats {
        flex-direction: column;
        gap: 8px;
    }

    .feed-timeline-stat {
        font-size: 12px;
    }

    .feed-timeline-record {
        padding: 5px 10px;
        font-size: 11px;
    }

    .feed-date-header {
        padding: 14px 16px;
    }

    .feed-date-title {
        font-size: 16px;
    }

    .feed-date-weekday {
        font-size: 13px;
    }

    .feed-date-stats {
        gap: 12px;
    }

    .feed-stat-label {
        font-size: 12px;
    }

    .feed-stat-value {
        font-size: 13px;
    }
}

/* ================================
   大小便事件专用样式
   ================================ */

/* 快速记录按钮 */
.toilet-quick-action {
    text-align: center;
    margin-bottom: 32px;
}

.toilet-add-btn {
    padding: 16px 48px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.4);
}

.toilet-add-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(102, 126, 234, 0.5);
}

.toilet-add-btn:active {
    transform: translateY(0);
}

/* 记录容器 */
.toilet-records-container {
    margin-top: 24px;
}

.toilet-records-header {
    margin-bottom: 16px;
    text-align: right;
}

.toilet-records-total {
    font-size: 13px;
    color: #8e8e93;
    font-weight: 500;
}

/* 日期分组 */
.toilet-date-group {
    margin-bottom: 32px;
}

.toilet-date-group:last-child {
    margin-bottom: 0;
}

.toilet-date-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 16px;
    padding: 16px 20px;
    margin-bottom: 16px;
    box-shadow: 0 4px 16px rgba(102, 126, 234, 0.2);
}

.toilet-date-info {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.toilet-date-title {
    font-size: 18px;
    font-weight: 700;
    color: white;
}

.toilet-date-weekday {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.85);
    font-weight: 500;
}

.toilet-date-stats {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.toilet-date-stat {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.toilet-stat-label {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.85);
    font-weight: 500;
}

.toilet-stat-value {
    font-size: 14px;
    font-weight: 700;
    color: white;
}

.toilet-date-records {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* 记录列表 */
.toilet-record-item {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 12px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.toilet-record-item:hover {
    border-color: #667eea;
    box-shadow: 0 4px 16px rgba(102, 126, 234, 0.15);
    transform: translateY(-2px);
}

/* 异常警告样式 - 黄色醒目提醒 */
.toilet-record-item.toilet-record-warning {
    background: linear-gradient(135deg, #fff9e6 0%, #fff4d4 100%);
    border: 2px solid #ffc107;
    box-shadow: 0 2px 12px rgba(255, 193, 7, 0.2);
}

.toilet-record-item.toilet-record-warning:hover {
    border-color: #ffb300;
    box-shadow: 0 4px 20px rgba(255, 193, 7, 0.3);
}

.toilet-record-item.toilet-record-warning::before {
    content: '⚠️';
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 20px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.7;
        transform: scale(1.1);
    }
}

.toilet-record-item.toilet-record-warning {
    position: relative;
}

.toilet-record-header {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.toilet-record-time {
    flex: 1;
    min-width: 0;
}

.toilet-record-date {
    font-size: 18px;
    color: #667eea;
    font-weight: 700;
    margin-bottom: 12px;
    line-height: 1.3;
}

.toilet-record-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 8px 16px;
}

.toilet-record-amount,
.toilet-record-color,
.toilet-record-texture {
    font-size: 15px;
    font-weight: 600;
    color: #2c3e50;
    line-height: 1.5;
    display: flex;
    align-items: center;
    padding: 6px 12px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 8px;
    border-left: 3px solid #667eea;
}

.toilet-record-actions {
    display: flex;
    gap: 6px;
    justify-content: flex-end;
    align-self: flex-end;
}

.toilet-record-btn {
    padding: 6px 14px;
    border: none;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.toilet-record-edit {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.toilet-record-edit:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.toilet-record-delete {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
}

.toilet-record-delete:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(245, 87, 108, 0.3);
}

.toilet-record-remark {
    font-size: 14px;
    color: #6c757d;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #f0f0f0;
    line-height: 1.6;
}

/* 空状态 */
.toilet-empty {
    text-align: center;
    padding: 48px 20px;
    color: #adb5bd;
}

.toilet-empty-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.toilet-empty-text {
    font-size: 16px;
    color: #6c757d;
}

/* 对话框 */
.toilet-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10000;
    justify-content: center;
    align-items: center;
}

.toilet-modal.show {
    display: flex;
}

.toilet-modal-content {
    background: white;
    border-radius: 16px;
    padding: 24px;
    width: 90%;
    max-width: 500px;
    max-height: 80vh;
    overflow-y: auto;
}

.toilet-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.toilet-modal-title {
    font-size: 20px;
    font-weight: 600;
    color: #2c3e50;
}

.toilet-modal-close {
    background: none;
    border: none;
    font-size: 28px;
    color: #adb5bd;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    width: 32px;
    height: 32px;
}

.toilet-modal-close:hover {
    color: #6c757d;
}

.toilet-modal-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.toilet-form-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.toilet-form-label {
    font-size: 14px;
    font-weight: 600;
    color: #495057;
}

.toilet-form-input,
.toilet-form-textarea {
    padding: 10px 14px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.2s ease;
    font-family: inherit;
}

.toilet-form-input:focus,
.toilet-form-textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.toilet-form-textarea {
    min-height: 80px;
    resize: vertical;
}

/* 单选框 */
.toilet-radio-options {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.toilet-radio-option {
    flex: 1;
    min-width: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.toilet-radio-option:hover {
    border-color: #667eea;
    background: rgba(102, 126, 234, 0.05);
}

.toilet-radio-option input[type="radio"] {
    display: none;
}

.toilet-radio-option input[type="radio"]:checked + span {
    color: white;
}

.toilet-radio-option:has(input[type="radio"]:checked) {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-color: transparent;
}

.toilet-radio-option span {
    font-size: 14px;
    font-weight: 600;
    color: #495057;
}

.toilet-modal-footer {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 20px;
}

.toilet-btn {
    padding: 10px 24px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.toilet-btn-cancel {
    background: #f8f9fa;
    color: #6c757d;
}

.toilet-btn-cancel:hover {
    background: #e9ecef;
}

.toilet-btn-save {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.toilet-btn-save:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

/* 移动端响应式 */
@media (max-width: 768px) {
    .toilet-add-btn {
        padding: 14px 36px;
        font-size: 16px;
    }

    .toilet-record-item {
        padding: 14px;
    }

    .toilet-record-date {
        font-size: 14px;
    }

    .toilet-record-btn {
        padding: 5px 12px;
        font-size: 12px;
    }

    .toilet-modal-content {
        width: 95%;
        padding: 20px;
    }

    .toilet-radio-options {
        gap: 8px;
    }

    .toilet-radio-option {
        padding: 8px;
        min-width: 50px;
    }

    .toilet-radio-option span {
        font-size: 13px;
    }

    .toilet-record-amount,
    .toilet-record-color,
    .toilet-record-texture {
        font-size: 14px;
        padding: 5px 10px;
    }

    .toilet-record-details {
        grid-template-columns: 1fr;
    }

    /* 移动端调整警告图标大小 */
    .toilet-record-item.toilet-record-warning::before {
        font-size: 18px;
    }

    .toilet-date-header {
        padding: 14px 16px;
    }

    .toilet-date-title {
        font-size: 16px;
    }

    .toilet-date-weekday {
        font-size: 13px;
    }

    .toilet-date-stats {
        gap: 12px;
    }

    .toilet-stat-label {
        font-size: 12px;
    }

    .toilet-stat-value {
        font-size: 13px;
    }
}

/* ================================
   黄疸事件专用样式
   ================================ */

/* 快速记录按钮 */
.jaundice-quick-action {
    text-align: center;
    margin-bottom: 32px;
}

.jaundice-add-btn {
    padding: 16px 48px;
    background: linear-gradient(135deg, #ffd89b 0%, #19547b 100%);
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(255, 165, 0, 0.4);
}

.jaundice-add-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(255, 165, 0, 0.5);
}

.jaundice-add-btn:active {
    transform: translateY(0);
}

/* 记录容器 */
.jaundice-records-container {
    margin-top: 24px;
}

.jaundice-records-header {
    margin-bottom: 16px;
    text-align: right;
}

.jaundice-records-total {
    font-size: 13px;
    color: #8e8e93;
    font-weight: 500;
}

/* 日期分组 */
.jaundice-date-group {
    margin-bottom: 32px;
}

.jaundice-date-group:last-child {
    margin-bottom: 0;
}

.jaundice-date-header {
    background: linear-gradient(135deg, #ffd89b 0%, #19547b 100%);
    border-radius: 16px;
    padding: 16px 20px;
    margin-bottom: 16px;
    box-shadow: 0 4px 16px rgba(255, 165, 0, 0.2);
}

.jaundice-date-info {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.jaundice-date-title {
    font-size: 18px;
    font-weight: 700;
    color: white;
}

.jaundice-date-weekday {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.85);
    font-weight: 500;
}

.jaundice-date-stats {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.jaundice-date-stat {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.jaundice-stat-label {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.85);
    font-weight: 500;
}

.jaundice-stat-value {
    font-size: 14px;
    font-weight: 700;
    color: white;
}

.jaundice-date-records {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* 记录列表 */
.jaundice-record-item {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 12px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.jaundice-record-item:hover {
    border-color: #ffa500;
    box-shadow: 0 4px 16px rgba(255, 165, 0, 0.15);
    transform: translateY(-2px);
}

.jaundice-record-header {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.jaundice-record-time {
    flex: 1;
    min-width: 0;
}

.jaundice-record-date {
    font-size: 18px;
    color: #ff8c00;
    font-weight: 700;
    margin-bottom: 12px;
    line-height: 1.3;
}

.jaundice-record-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 8px 16px;
    margin-bottom: 12px;
}

.jaundice-record-value {
    font-size: 15px;
    font-weight: 600;
    color: #2c3e50;
    line-height: 1.5;
    display: flex;
    align-items: center;
    padding: 6px 12px;
    background: linear-gradient(135deg, #fff9e6 0%, #fff4d4 100%);
    border-radius: 8px;
    border-left: 3px solid #ffa500;
}

.jaundice-record-average {
    font-size: 16px;
    color: #2c3e50;
    padding: 10px 16px;
    background: linear-gradient(135deg, #ffe8cc 0%, #ffd89b 100%);
    border-radius: 10px;
    border: 2px solid #ffa500;
    text-align: center;
}

.jaundice-record-average strong {
    font-size: 20px;
    color: #ff8c00;
    font-weight: 700;
}

.jaundice-record-actions {
    display: flex;
    gap: 6px;
    justify-content: flex-end;
    align-self: flex-end;
}

.jaundice-record-btn {
    padding: 6px 14px;
    border: none;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.jaundice-record-edit {
    background: linear-gradient(135deg, #ffd89b 0%, #19547b 100%);
    color: white;
}

.jaundice-record-edit:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(255, 165, 0, 0.3);
}

.jaundice-record-delete {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
}

.jaundice-record-delete:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(245, 87, 108, 0.3);
}

/* 空状态 */
.jaundice-empty {
    text-align: center;
    padding: 48px 20px;
    color: #adb5bd;
}

.jaundice-empty-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.jaundice-empty-text {
    font-size: 16px;
    color: #6c757d;
}

/* 对话框 */
.jaundice-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10000;
    justify-content: center;
    align-items: center;
}

.jaundice-modal.show {
    display: flex;
}

.jaundice-modal-content {
    background: white;
    border-radius: 16px;
    padding: 24px;
    width: 90%;
    max-width: 500px;
    max-height: 80vh;
    overflow-y: auto;
}

.jaundice-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.jaundice-modal-title {
    font-size: 20px;
    font-weight: 600;
    color: #2c3e50;
}

.jaundice-modal-close {
    background: none;
    border: none;
    font-size: 28px;
    color: #adb5bd;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    width: 32px;
    height: 32px;
}

.jaundice-modal-close:hover {
    color: #6c757d;
}

.jaundice-modal-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.jaundice-form-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.jaundice-form-label {
    font-size: 14px;
    font-weight: 600;
    color: #495057;
}

.jaundice-form-input {
    padding: 10px 14px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.2s ease;
    font-family: inherit;
}

.jaundice-form-input:focus {
    outline: none;
    border-color: #ffa500;
    box-shadow: 0 0 0 3px rgba(255, 165, 0, 0.1);
}

.jaundice-average-field {
    background: linear-gradient(135deg, #fff9e6 0%, #ffe8cc 100%);
    padding: 12px 16px;
    border-radius: 12px;
    border: 2px solid #ffd89b;
}

.jaundice-average-value {
    font-size: 24px;
    font-weight: 700;
    color: #ff8c00;
    text-align: center;
}

.jaundice-modal-footer {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 20px;
}

.jaundice-btn {
    padding: 10px 24px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.jaundice-btn-cancel {
    background: #f8f9fa;
    color: #6c757d;
}

.jaundice-btn-cancel:hover {
    background: #e9ecef;
}

.jaundice-btn-save {
    background: linear-gradient(135deg, #ffd89b 0%, #19547b 100%);
    color: white;
}

.jaundice-btn-save:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 165, 0, 0.3);
}

/* 移动端响应式 */
@media (max-width: 768px) {
    .jaundice-add-btn {
        padding: 14px 36px;
        font-size: 16px;
    }

    .jaundice-record-item {
        padding: 14px;
    }

    .jaundice-record-date {
        font-size: 16px;
    }

    .jaundice-record-value {
        font-size: 14px;
        padding: 5px 10px;
    }

    .jaundice-record-details {
        grid-template-columns: 1fr;
    }

    .jaundice-record-btn {
        padding: 5px 12px;
        font-size: 12px;
    }

    .jaundice-modal-content {
        width: 95%;
        padding: 20px;
    }

    .jaundice-date-header {
        padding: 14px 16px;
    }

    .jaundice-date-title {
        font-size: 16px;
    }

    .jaundice-date-weekday {
        font-size: 13px;
    }

    .jaundice-date-stats {
        gap: 12px;
    }

    .jaundice-stat-label {
        font-size: 12px;
    }

    .jaundice-stat-value {
        font-size: 13px;
    }

    .jaundice-average-value {
        font-size: 20px;
    }

    .jaundice-record-average strong {
        font-size: 18px;
    }
}

/* ================================
   测量类事件专用样式（体温、体重、身高）
   ================================ */

/* 快速记录按钮 */
.measure-quick-action {
    text-align: center;
    margin-bottom: 32px;
}

.measure-add-btn {
    padding: 16px 48px;
    background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
    color: #2c3e50;
    border: none;
    border-radius: 50px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(168, 237, 234, 0.4);
}

.measure-add-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(168, 237, 234, 0.5);
}

.measure-add-btn:active {
    transform: translateY(0);
}

/* 记录容器 */
.measure-records-container {
    margin-top: 24px;
}

.measure-records-header {
    margin-bottom: 16px;
    text-align: right;
}

.measure-records-total {
    font-size: 13px;
    color: #8e8e93;
    font-weight: 500;
}

/* 日期分组 */
.measure-date-group {
    margin-bottom: 32px;
}

.measure-date-group:last-child {
    margin-bottom: 0;
}

.measure-date-header {
    background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
    border-radius: 16px;
    padding: 16px 20px;
    margin-bottom: 16px;
    box-shadow: 0 4px 16px rgba(168, 237, 234, 0.2);
}

.measure-date-info {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.measure-date-title {
    font-size: 18px;
    font-weight: 700;
    color: #2c3e50;
}

.measure-date-weekday {
    font-size: 14px;
    color: rgba(44, 62, 80, 0.7);
    font-weight: 500;
}

.measure-date-stats {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.measure-date-stat {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.measure-stat-label {
    font-size: 13px;
    color: rgba(44, 62, 80, 0.7);
    font-weight: 500;
}

.measure-stat-value {
    font-size: 14px;
    font-weight: 700;
    color: #2c3e50;
}

.measure-date-records {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* 记录列表 */
.measure-record-item {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 12px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.measure-record-item:hover {
    border-color: #a8edea;
    box-shadow: 0 4px 16px rgba(168, 237, 234, 0.2);
    transform: translateY(-2px);
}

.measure-record-header {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.measure-record-time {
    flex: 1;
    min-width: 0;
}

.measure-record-date {
    font-size: 18px;
    color: #667eea;
    font-weight: 700;
    margin-bottom: 12px;
    line-height: 1.3;
}

.measure-record-value-display {
    display: flex;
    align-items: baseline;
    gap: 8px;
    padding: 12px 20px;
    background: linear-gradient(135deg, #f0f9ff 0%, #fef3f9 100%);
    border-radius: 12px;
    border: 2px solid #a8edea;
    margin-bottom: 8px;
}

.measure-value-large {
    font-size: 32px;
    font-weight: 700;
    color: #2c3e50;
}

.measure-value-unit {
    font-size: 18px;
    font-weight: 600;
    color: #667eea;
}

.measure-record-remark {
    font-size: 14px;
    color: #6c757d;
    padding: 10px 14px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 3px solid #a8edea;
    line-height: 1.6;
}

.measure-record-actions {
    display: flex;
    gap: 6px;
    justify-content: flex-end;
    align-self: flex-end;
}

.measure-record-btn {
    padding: 6px 14px;
    border: none;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.measure-record-edit {
    background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
    color: #2c3e50;
}

.measure-record-edit:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(168, 237, 234, 0.3);
}

.measure-record-delete {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
}

.measure-record-delete:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(245, 87, 108, 0.3);
}

/* 空状态 */
.measure-empty {
    text-align: center;
    padding: 48px 20px;
    color: #adb5bd;
}

.measure-empty-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.measure-empty-text {
    font-size: 16px;
    color: #6c757d;
}

/* 对话框 */
.measure-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10000;
    justify-content: center;
    align-items: center;
}

.measure-modal.show {
    display: flex;
}

.measure-modal-content {
    background: white;
    border-radius: 16px;
    padding: 24px;
    width: 90%;
    max-width: 500px;
    max-height: 80vh;
    overflow-y: auto;
}

.measure-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.measure-modal-title {
    font-size: 20px;
    font-weight: 600;
    color: #2c3e50;
}

.measure-modal-close {
    background: none;
    border: none;
    font-size: 28px;
    color: #adb5bd;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    width: 32px;
    height: 32px;
}

.measure-modal-close:hover {
    color: #6c757d;
}

.measure-modal-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.measure-form-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.measure-form-label {
    font-size: 14px;
    font-weight: 600;
    color: #495057;
}

.measure-form-input,
.measure-form-textarea {
    padding: 10px 14px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.2s ease;
    font-family: inherit;
}

.measure-form-input:focus,
.measure-form-textarea:focus {
    outline: none;
    border-color: #a8edea;
    box-shadow: 0 0 0 3px rgba(168, 237, 234, 0.1);
}

.measure-form-textarea {
    min-height: 80px;
    resize: vertical;
}

.measure-modal-footer {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 20px;
}

.measure-btn {
    padding: 10px 24px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.measure-btn-cancel {
    background: #f8f9fa;
    color: #6c757d;
}

.measure-btn-cancel:hover {
    background: #e9ecef;
}

.measure-btn-save {
    background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
    color: #2c3e50;
}

.measure-btn-save:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(168, 237, 234, 0.3);
}

/* 移动端响应式 */
@media (max-width: 768px) {
    .measure-add-btn {
        padding: 14px 36px;
        font-size: 16px;
    }

    .measure-record-item {
        padding: 14px;
    }

    .measure-record-date {
        font-size: 16px;
    }

    .measure-value-large {
        font-size: 28px;
    }

    .measure-value-unit {
        font-size: 16px;
    }

    .measure-record-btn {
        padding: 5px 12px;
        font-size: 12px;
    }

    .measure-modal-content {
        width: 95%;
        padding: 20px;
    }

    .measure-date-header {
        padding: 14px 16px;
    }

    .measure-date-title {
        font-size: 16px;
    }

    .measure-date-weekday {
        font-size: 13px;
    }

    .measure-date-stats {
        gap: 12px;
    }

    .measure-stat-label {
        font-size: 12px;
    }

    .measure-stat-value {
        font-size: 13px;
    }
}
