* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    background: white;
    color: #333;
    line-height: 1.6;
}

.container {
    max-width: 400px;
    margin: 0 auto;
    background: white;
    min-height: 100vh;
    box-shadow: 0 0 20px rgba(0,0,0,0.1);
    position: relative;
    overflow-x: hidden;
}
/* 登录注册页面样式 */
.login-header {
    text-align: center;
    padding: 40px 20px 20px;
}

.login-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 10px;
}

.login-logo i {
    font-size: 36px;
    color: #f97316;
}

.login-logo h1 {
    font-size: 28px;
    color: #2d3436;
    margin: 0;
}

.login-subtitle {
    color: #636e72;
    font-size: 14px;
    margin-top: 5px;
}

.login-main {
    padding: 20px;
}

.login-form, .forgot-form, .register-form {
    background: white;
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.checkbox-container {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 14px;
    color: #636e72;
}

.checkbox-container input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.checkmark {
    width: 18px;
    height: 18px;
    border: 2px solid #ddd;
    border-radius: 4px;
    margin-right: 8px;
    position: relative;
    transition: all 0.3s ease;
}

.checkbox-container input:checked ~ .checkmark {
    background-color: #f97316;
    border-color: #f97316;
}

.checkbox-container input:checked ~ .checkmark:after {
    content: '';
    position: absolute;
    left: 5px;
    top: 1px;
    width: 6px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.forgot-password {
    color: #f97316;
    text-decoration: none;
    font-size: 14px;
}

.forgot-password:hover {
    text-decoration: underline;
}

.login-btn, .next-btn, .prev-btn, .reset-btn {
    background: linear-gradient(135deg, #f97316, #ea580c);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    width: 100%;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.login-btn:hover, .next-btn:hover, .reset-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(249, 115, 22, 0.4);
}

.prev-btn {
    background: #f1f2f6;
    color: #636e72;
}

.prev-btn:hover {
    background: #e9ecef;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.register-link {
    text-align: center;
    margin-top: 20px;
    color: #636e72;
    font-size: 14px;
}

.register-link a {
    color: #f97316;
    text-decoration: none;
    font-weight: bold;
}

.register-link a:hover {
    text-decoration: underline;
}

.quick-login {
    background: white;
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.quick-login-title {
    text-align: center;
    margin-bottom: 20px;
    color: #636e72;
    position: relative;
}

.quick-login-title span {
    background: white;
    padding: 0 10px;
    position: relative;
    z-index: 1;
}

.quick-login-title:before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: #f1f2f6;
}

.quick-login-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.quick-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px;
    border: 2px solid #f1f2f6;
    border-radius: 10px;
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
}

.quick-btn:hover {
    border-color: #f97316;
    transform: translateY(-2px);
}

.family-btn i {
    color: #78e08f;
}

.guest-btn {
    background: white;
}

.guest-btn i {
    color: #f97316;
}

.login-footer {
    text-align: center;
    padding: 20px;
    color: #636e72;
    font-size: 12px;
}

.agreement-link {
    color: #f97316;
    text-decoration: none;
}

.agreement-link:hover {
    text-decoration: underline;
}

/* 注册步骤指示器 */
.register-steps {
    display: flex;
    justify-content: space-between;
    margin-bottom: 30px;
    position: relative;
}

.register-steps:before {
    content: '';
    position: absolute;
    top: 14px;
    left: 10%;
    right: 10%;
    height: 2px;
    background: #f1f2f6;
    z-index: 0;
}

.step {
    position: relative;
    z-index: 1;
    text-align: center;
    flex: 1;
    color: #b2bec3;
    font-size: 12px;
    padding: 5px 0;
}

.step.active {
    color: #f97316;
    font-weight: bold;
}

.step:before {
    content: '';
    width: 10px;
    height: 10px;
    background: #b2bec3;
    border-radius: 50%;
    display: block;
    margin: 0 auto 5px;
}

.step.active:before {
    background: #f97316;
    transform: scale(1.2);
}

/* 性别选择 */
.gender-select {
    display: flex;
    gap: 20px;
}

.gender-option {
    flex: 1;
    border: 2px solid #f1f2f6;
    border-radius: 10px;
    padding: 12px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.gender-option input {
    display: none;
}

.gender-label {
    display: block;
    color: #636e72;
    font-weight: bold;
}

.gender-option input:checked + .gender-label {
    color: #f97316;
}

.gender-option input:checked ~ .gender-label {
    color: #f97316;
}

.gender-option:hover {
    border-color: #f97316;
}

.gender-option input:checked {
    border-color: #f97316;
    background: #fff5eb;
}

/* 健康问题选择 */
.health-issues {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.form-textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #f1f2f6;
    border-radius: 10px;
    font-size: 16px;
    transition: border-color 0.3s ease;
    min-height: 80px;
    resize: vertical;
    font-family: inherit;
}

.form-textarea:focus {
    outline: none;
    border-color: #f97316;
}

.form-buttons {
    display: flex;
    gap: 10px;
}

.form-buttons .prev-btn,
.form-buttons .next-btn {
    flex: 1;
}

/* 注册成功页面 */
.success-icon {
    text-align: center;
    margin-bottom: 20px;
}

.success-icon i {
    font-size: 60px;
    color: #4CAF50;
}

.success-title {
    text-align: center;
    font-size: 24px;
    font-weight: bold;
    color: #2d3436;
    margin-bottom: 15px;
}

.success-message {
    text-align: center;
    color: #636e72;
    line-height: 1.6;
    margin-bottom: 30px;
}

/* 验证码输入 */
.verification-code {
    display: flex;
    gap: 10px;
}

.verification-code .form-input {
    flex: 1;
}

.code-btn {
    background: #f97316;
    color: white;
    border: none;
    padding: 0 15px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 14px;
    white-space: nowrap;
    transition: all 0.3s ease;
}

.code-btn:hover {
    background: #ea580c;
}

.code-btn:disabled {
    background: #b2bec3;
    cursor: not-allowed;
}

/* 返回链接 */
.back-link {
    text-align: center;
    margin-top: 20px;
}

.back-link a {
    color: #f97316;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.back-link a:hover {
    text-decoration: underline;
}

/* 隐藏页面 */
.register-form {
    display: none;
}

.register-form.active {
    display: block;
    animation: fadeIn 0.5s ease;
}
/* 页面样式 */
.page {
    display: none;
    padding: 20px;
    padding-bottom: 80px;
}

.page.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* 头部样式 */
header {
    background: linear-gradient(135deg, #f97316, #ea580c);
    color: white;
    padding: 20px;
    border-radius: 15px;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(249, 115, 22, 0.3);
}

.user-info {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.user-avatar {
    width: 60px;
    height: 60px;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    border: 3px solid rgba(255,255,255,0.3);
}

.user-avatar i {
    font-size: 24px;
    color: white;
}

.user-details {
    flex: 1;
}

.user-name {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 5px;
}

.user-status {
    font-size: 14px;
    opacity: 0.9;
}

.pet-status {
    text-align: center;
}

.pet-icon {
    width: 50px;
    height: 50px;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 5px;
    border: 2px solid rgba(255,255,255,0.3);
    overflow: hidden;
}

.pet-icon i {
    font-size: 20px;
    color: white;
}

.voice-btn {
    background: rgba(255,255,255,0.2);
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    cursor: pointer;
    transition: all 0.3s ease;
}

.voice-btn:hover {
    background: rgba(255,255,255,0.3);
    transform: scale(1.05);
}

.voice-icon {
    font-size: 24px;
    color: white;
}

.voice-text {
    text-align: center;
    margin-top: 10px;
    font-size: 14px;
    opacity: 0.9;
}

/* 主内容区域 */
main {
    padding: 0 5px;
}

.section-title {
    display: flex;
    align-items: center;
    margin: 25px 0 15px 0;
    font-size: 18px;
    font-weight: bold;
    color: #2d3436;
}

.section-title i {
    margin-right: 10px;
    color: #f97316;
    font-size: 20px;
}

/* 功能卡片 */
.task-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 10px;
}

.task-card {
    background: white;
    padding: 20px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.task-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.task-card.cognition {
    border-color: #f97316;
}

.task-card.health {
    border-color: #e55039;
}

.task-card.pet {
    border-color: #fad390;
}

.task-card.data {
    border-color: #78e08f;
}

.task-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #f97316, #ea580c);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 10px;
}

.task-card.health .task-icon {
    background: linear-gradient(135deg, #e55039, #eb2f06);
}

.task-card.pet .task-icon {
    background: linear-gradient(135deg, #fad390, #f6b93b);
}

.task-card.data .task-icon {
    background: linear-gradient(135deg, #78e08f, #38ada9);
}

.task-icon i {
    font-size: 20px;
    color: white;
}

.task-title {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 5px;
    color: #2d3436;
}

.task-desc {
    font-size: 12px;
    color: #636e72;
}

/* 任务列表样式 */
.today-tasks {
    background: white;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    overflow: hidden;
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
}

.task-item {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid #f1f2f6;
    cursor: pointer;
    transition: background-color 0.3s ease;
    position: relative;
}

.task-item:hover {
    background-color: #f8f9fa;
}

.task-item:last-child {
    border-bottom: none;
}

.task-checkbox {
    width: 24px;
    height: 24px;
    border: 2px solid #ddd;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.task-checkbox.completed {
    background: #4CAF50;
    border-color: #4CAF50;
}

.task-checkbox i {
    font-size: 12px;
    color: white;
}

.task-checkbox:not(.completed) i {
    color: #ddd;
}

.task-content {
    flex: 1;
    cursor: pointer;
}

.task-name {
    font-weight: bold;
    margin-bottom: 5px;
    color: #2d3436;
}

.task-time {
    font-size: 12px;
    color: #636e72;
}

.task-reward {
    background: #ffeaa7;
    padding: 5px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: bold;
    color: #e17055;
    transition: opacity 0.2s ease;
    flex-shrink: 0;
    margin-right: 10px;
}

/* 体检计划状态标签样式 */
.exam-status {
    background: #ffeaa7; 
    padding: 4px 12px;
    border-radius: 12px;   
    font-size: 12px;
    font-weight: bold;  
    color: #e17055; 
    transition: all 0.3s ease;
    flex-shrink: 0;
    margin-right: 10px;
}

.exam-status.upcoming {
    background: #ffeaa7;
    color: #e17055;
}

.exam-status.completed {
    background: #78e08f;
    color: white;
}

/* 条目操作按钮样式 - 悬停时显示 */
.task-actions {
    display: none;
    gap: 8px;
    flex-shrink: 0;
}

/* 悬停时隐藏奖励/状态标签，显示操作按钮（训练成就页面除外） */
.task-item:hover .task-reward,
.task-item:hover .exam-status {
    display: none;
}

/* 训练成就页面的 task-reward 悬停时不隐藏 */
#training .task-item:hover .task-reward {
    display: block;
}

.task-item:hover .task-actions {
    display: flex;
}

.task-edit-btn, .task-delete-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px 8px;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.task-edit-btn {
    color: #6a89cc;
}

.task-edit-btn:hover {
    background: #e8f0fe;
    transform: scale(1.05);
}

.task-delete-btn {
    color: #e55039;
}

.task-delete-btn:hover {
    background: #ffe8e5;
    transform: scale(1.05);
}

/* 已完成任务的样式 */
.completed-task {
    opacity: 0.7;
    background-color: #f8f9fa;
}

.completed-task .task-name,
.completed-task .task-time,
.completed-task .task-reward {
    color: #95a5a6 !important;
}

.completed-task .task-checkbox.completed {
    background: rgba(76, 175, 80, 0.6) !important;
    border-color: rgba(76, 175, 80, 0.6) !important;
    position: relative;
}

.completed-task .task-checkbox.completed::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(149, 165, 166, 0.3);
    border-radius: 50%;
}

.completed-task .task-checkbox.completed i {
    position: relative;
    z-index: 1;
    color: rgba(255, 255, 255, 0.8);
}

/* 任务列表排序样式 */
.today-tasks {
    display: flex;
    flex-direction: column;
}

/* 所有任务项按原始顺序排列，不强制排序 */
.task-item {
    order: 0;
}

.completed-task {
    order: 0;
}

/* 宠物区域 */
.pet-section {
    background: white;
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    margin-bottom: 20px;
    text-align: center;
}

.pet-display {
    margin-bottom: 20px;
}

.pet-avatar {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, #fad390, #f6b93b);
    border-radius: 50%;
    margin: 0 auto 15px;
    position: relative;
    border: 4px solid #f6b93b;
    overflow: hidden;
}

.pet-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pet-clothing {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.pet-name {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 10px;
    color: #2d3436;
}

.pet-growth {
    width: 100%;
    height: 8px;
    background: #f1f2f6;
    border-radius: 4px;
    margin: 10px 0;
    overflow: hidden;
}

.pet-growth-fill {
    height: 100%;
    background: linear-gradient(90deg, #78e08f, #38ada9);
    border-radius: 4px;
    transition: width 0.5s ease;
}

.pet-actions {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.pet-btn {
    background: linear-gradient(135deg, #f97316, #ea580c);
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 5px;
}

.pet-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(249, 115, 22, 0.4);
}
/* 缺失的图标样式 */
.fa-scarf:before {
    content: "\f7e4";  /* FontAwesome 围巾图标代码 */
}

/* 宠物服饰装备样式 */
.pet-clothing {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.clothing-equipped {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.clothing-equipped i {
    font-size: 40px;
    filter: drop-shadow(2px 2px 4px rgba(0,0,0,0.2));
}
/* 升级庆祝动画 */
@keyframes celebrate {
    0% { 
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255, 215, 0, 0.5);
    }
    50% { 
        transform: scale(1.1);
        box-shadow: 0 0 0 15px rgba(255, 215, 0, 0.2);
    }
    100% { 
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255, 215, 0, 0);
    }
}

/* 宠物头像过渡效果 */
.pet-avatar {
    transition: all 0.3s ease;
}

.pet-avatar img {
    transition: transform 0.3s ease;
}

.pet-avatar img:hover {
    transform: scale(1.05);
}

/* 语音提示 */
/* 语音按钮样式 - 修改为宠物图片背景 */
.voice-btn {
    background: none;
    border: 3px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    padding: 0;
}

/* 语音按钮宠物背景-由JS动态设置 */
.voice-pet-bg {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.voice-btn:hover {
    border-color: rgba(255,255,255,0.5);
    transform: scale(1.05);
}

.voice-btn.listening {
    border-color: #3b82f6;
    animation: pulse 1s infinite;
}

.voice-btn.listening .voice-pet-bg {
    filter: brightness(1.2);
}

@keyframes pulse {
    0% { 
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.7);
    }
    50% { 
        transform: scale(1.05);
        box-shadow: 0 0 0 10px rgba(59, 130, 246, 0);
    }
    100% { 
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(59, 130, 246, 0);
    }
}

.voice-text {
    text-align: center;
    margin-top: 10px;
    font-size: 14px;
    opacity: 0.9;
}
.voice-tips {
    background: white;
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

.tip-title {
    font-weight: bold;
    margin-bottom: 10px;
    color: #2d3436;
}

.tip-content {
    font-size: 14px;
    color: #636e72;
    margin-bottom: 15px;
}

.command-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.command-item {
    background: #f8f9fa;
    padding: 8px 12px;
    border-radius: 10px;
    font-size: 12px;
    text-align: center;
    color: #636e72;
    border: 1px solid #e9ecef;
}

/* 训练卡片 */
.training-cards {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 20px;
}

.training-card {
    background: white;
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.training-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.training-icon {
    width: 60px;
    height: 60px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
}

.training-icon i {
    font-size: 24px;
    color: white;
}

.training-info {
    flex: 1;
}

.training-title {
    font-weight: bold;
    margin-bottom: 5px;
    color: #2d3436;
}

.training-desc {
    font-size: 12px;
    color: #636e72;
    margin-bottom: 10px;
}

.training-progress {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 12px;
    color: #636e72;
}

.training-progress-bar {
    flex: 1;
    height: 6px;
    background: #f1f2f6;
    border-radius: 3px;
    overflow: hidden;
}

.training-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #78e08f, #38ada9);
    border-radius: 3px;
}
/* 语音提示图标样式 - 适度动态 */
.voice-tips {
    background: white;
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.voice-tips:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.voice-tips .tip-icon {
    text-align: center;
    margin-bottom: 10px;
}

.voice-tips .tip-icon i {
    font-size: 40px;
    color: #f97316;
    transition: transform 0.3s ease;
}

/* 只在悬停时弹跳，平时静止（更适合老年人） */
.voice-tips:hover .tip-icon i {
    animation: bounce 0.5s ease-in-out;
}

.voice-tips .tip-icon .tip-secret {
    display: inline-block;
    font-size: 14px;
    color: #e55039;
    background: #fff0e6;
    padding: 4px 12px;
    border-radius: 20px;
    margin-left: 10px;
    vertical-align: middle;
}

.voice-tips .tip-content {
    font-size: 14px;
    color: #636e72;
    text-align: center;
    line-height: 1.5;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

/* 游戏页面 */
.game-container {
    background: white;
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    text-align: center;
}

.game-title {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 15px;
    color: #2d3436;
}

.game-instructions {
    font-size: 16px;
    color: #636e72;
    margin-bottom: 20px;
    line-height: 1.5;
}

.game-area {
    margin: 30px 0;
}

.number-display {
    font-size: 32px;
    font-weight: bold;
    color: #f97316;
    margin-bottom: 20px;
    min-height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.number-highlight {
    animation: pulse 1s ease-in-out;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

.game-result {
    font-size: 18px;
    font-weight: bold;
    margin: 15px 0;
    min-height: 30px;
}

.game-score {
    font-size: 20px;
    font-weight: bold;
    color: #e55039;
    margin-bottom: 20px;
}

.number-buttons {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    max-width: 300px;
    margin: 0 auto;
}

.number-btn {
    background: linear-gradient(135deg, #f97316, #ea580c);
    color: white;
    border: none;
    padding: 20px;
    border-radius: 15px;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.number-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(249, 115, 22, 0.4);
}

.item-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    max-width: 300px;
    margin: 0 auto;
}

.item-btn {
    background: white;
    border: 2px solid #f1f2f6;
    padding: 20px;
    border-radius: 15px;
    font-size: 32px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.item-btn:hover {
    transform: scale(1.05);
    border-color: #f97316;
}

.item-btn.correct {
    background: #78e08f;
    border-color: #38ada9;
}

.item-btn.incorrect {
    background: #e55039;
    border-color: #eb2f06;
}

.game-controls {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 20px;
}

.game-btn {
    background: linear-gradient(135deg, #f97316, #ea580c);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s ease;
}

.game-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(249, 115, 22, 0.4);
}

/* 健康统计 */
.health-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 20px;
}

.health-stat {
    background: white;
    border-radius: 15px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.health-value {
    font-size: 24px;
    font-weight: bold;
    color: #f97316;
    margin: 10px 0 5px 0;
}

.health-label {
    font-size: 12px;
    color: #636e72;
}

/* 记录表单 */
.record-form {
    background: white;
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 15px;
}

.form-label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #2d3436;
}

.form-select, .form-input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #f1f2f6;
    border-radius: 10px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.form-select:focus, .form-input:focus {
    outline: none;
    border-color: #f97316;
}

.submit-btn {
    background: linear-gradient(135deg, #f97316, #ea580c);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    width: 100%;
    transition: all 0.3s ease;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(249, 115, 22, 0.4);
}
/* 健康记录备注样式 */
.task-note {
    font-size: 11px;
    color: #95a5a6;
    margin-top: 4px;
    font-style: italic;
}

.note-item {
    background: #f8f9fa;
    color: #636e72;
    font-size: 12px;
    text-align: center;
    justify-content: center;
    cursor: default;
}

.note-item:hover {
    background: #f8f9fa;
}
/* 添加表单切换样式 */
.add-form {
    display: none;
}

.add-form.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

/* 查看更多按钮样式 */
.view-more-section {
    margin: 15px 0;
}

/* 查看更多按钮样式 - 默认橙色 */
.view-more-btn {
    background: linear-gradient(135deg, #f97316, #ea580c);
    color: white;
    border: none;
    padding: 12px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 14px;
    width: calc(100% - 40px);
    margin: 10px 20px;
    transition: all 0.3s ease;
    order: 999; /* 确保按钮在最后 */
}

.view-more-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(249, 115, 22, 0.4);
}

/* 点击后的状态 */
.view-more-btn.clicked {
    background: #f1f2f6;
    color: #636e72;
    box-shadow: none;
    transform: none;
}

.view-more-btn.clicked:hover {
    background: #e9ecef;
    transform: none;
    box-shadow: none;
    cursor: default;
}

/* 任务容器折叠样式 */
.task-container {
    max-height: 400px;
    overflow-y: auto;
    transition: max-height 0.3s ease;
}

.task-container.collapsed {
    max-height: 300px;
    overflow-y: hidden;
    position: relative;
}

.task-container.collapsed::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: linear-gradient(to bottom, transparent, white);
    pointer-events: none;
}

/* 今日任务完成奖励样式 */
.task-reward {
    background: #ffeaa7;
    padding: 5px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: bold;
    color: #e17055;
}

/* 服饰网格 */
.clothing-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-bottom: 20px;
}

.clothing-item {
    background: white;
    border-radius: 15px;
    padding: 15px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    cursor: pointer;
    transition: all 0.3s ease;
}

.clothing-item.unlocked:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.clothing-item.locked {
    opacity: 0.6;
    cursor: not-allowed;
}

.clothing-icon {
    font-size: 32px;
    margin-bottom: 10px;
}

.clothing-name {
    font-weight: bold;
    margin-bottom: 5px;
    color: #2d3436;
}

.clothing-status {
    font-size: 12px;
    color: #636e72;
}

.clothing-item.unlocked .clothing-status {
    color: #4CAF50;
    font-weight: bold;
}

/* 图表容器 */
.chart-container {
    background: white;
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    margin-bottom: 20px;
    text-align: center;
}

.chart-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 150px;
    background: #f8f9fa;
    border-radius: 10px;
    margin-bottom: 15px;
    color: #636e72;
    font-size: 18px;
}
/* 服饰选中状态样式 */
.clothing-item.selected {
    background-color: #e8f5e9 !important;
    border: 2px solid #4CAF50 !important;
    box-shadow: 0 2px 8px rgba(76, 175, 80, 0.3);
    transform: scale(1.02);
}

.clothing-item {
    transition: all 0.3s ease;
}

.clothing-item.unlocked:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

/* 个人资料部分 */
.profile-section {
    background: white;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    overflow: hidden;
    margin-bottom: 20px;
}

.profile-item {
    display: flex;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #f1f2f6;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.profile-item:hover {
    background-color: #f8f9fa;
}

.profile-item:last-child {
    border-bottom: none;
}

.profile-icon {
    width: 40px;
    height: 40px;
    background: #f1f2f6;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
}

.profile-icon i {
    color: #f97316;
    font-size: 18px;
}

.profile-text {
    flex: 1;
    font-weight: bold;
    color: #2d3436;
}

.profile-arrow i {
    color: #b2bec3;
    font-size: 14px;
}

/* 个人信息页面 */
.personal-info-section {
    background: white;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    overflow: hidden;
    margin-bottom: 20px;
}

.info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #f1f2f6;
}

.info-item:last-child {
    border-bottom: none;
}

.info-label {
    font-weight: bold;
    color: #2d3436;
    flex: 1;
}

.info-value {
    color: #636e72;
    text-align: right;
    flex: 2;
}

.edit-info-btn {
    background: linear-gradient(135deg, #f97316, #ea580c);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    width: 100%;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.edit-info-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(249, 115, 22, 0.4);
}

/* 编辑表单样式 */
.edit-form-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    padding: 20px;
}

.edit-form-container {
    background: white;
    border-radius: 15px;
    width: 100%;
    max-width: 400px;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.edit-form-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #f1f2f6;
}

.edit-form-header h3 {
    margin: 0;
    color: #2d3436;
    font-size: 18px;
}

.close-btn {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #636e72;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-btn:hover {
    color: #e55039;
}

.edit-form-body {
    padding: 20px;
}

.edit-form-body .form-group {
    margin-bottom: 15px;
}

.edit-form-body .form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #2d3436;
}

.edit-form-body .form-input,
.edit-form-body .form-select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #f1f2f6;
    border-radius: 10px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.edit-form-body .form-input:focus,
.edit-form-body .form-select:focus {
    outline: none;
    border-color: #f97316;
}

.edit-form-footer {
    display: flex;
    gap: 10px;
    padding: 20px;
    border-top: 1px solid #f1f2f6;
}

.cancel-btn {
    flex: 1;
    background: #f1f2f6;
    color: #636e72;
    border: none;
    padding: 12px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    transition: all 0.3s ease;
}

.cancel-btn:hover {
    background: #e9ecef;
}

.save-btn {
    flex: 1;
    background: linear-gradient(135deg, #f97316, #ea580c);
    color: white;
    border: none;
    padding: 12px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    transition: all 0.3s ease;
}

.save-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(249, 115, 22, 0.4);
}

/* 当前角色显示样式优化 */
.current-role {
    background: white;
    border-radius: 15px;
    padding: 15px 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.role-badge {
    background: #f97316;
    color: white;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: bold;
}

.role-badge.family {
    background: #78e08f;
}

.role-badge.elder {
    background: #fad390;
    color: #2d3436;
}

/* 家庭协同页面样式 */
.role-selection {
    background: white;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    overflow: hidden;
    margin-bottom: 20px;
}

.role-option {
    display: flex;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #f1f2f6;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.role-option:hover {
    background-color: #f8f9fa;
}

.role-option:last-child {
    border-bottom: none;
}

.role-option.selected {
    background-color: #fff5eb;
    border-left: 4px solid #f97316;
}

.role-icon {
    width: 50px;
    height: 50px;
    background: #f1f2f6;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
}

.role-icon i {
    color: #f97316;
    font-size: 20px;
}

.role-info {
    flex: 1;
}

.role-title {
    font-weight: bold;
    margin-bottom: 5px;
    color: #2d3436;
    font-size: 16px;
}

.role-desc {
    font-size: 12px;
    color: #636e72;
    line-height: 1.4;
}

.role-checkbox i {
    color: #ddd;
    font-size: 20px;
}

.role-option.selected .role-checkbox i {
    color: #4CAF50;
}

.role-description {
    background: white;
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

.description-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
}

.description-item:last-child {
    margin-bottom: 0;
}

.description-item i {
    color: #f97316;
    margin-right: 10px;
    margin-top: 2px;
    font-size: 16px;
}

.description-item span {
    flex: 1;
    font-size: 14px;
    color: #636e72;
    line-height: 1.4;
}

.confirm-role-btn {
    background: linear-gradient(135deg, #f97316, #ea580c);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    width: 100%;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.confirm-role-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(249, 115, 22, 0.4);
}

.confirm-role-btn:disabled {
    background: #b2bec3;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* 字体大小设置页面样式 */
.font-size-options {
    background: white;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    overflow: hidden;
    margin-bottom: 20px;
}

.font-option {
    padding: 20px;
    border-bottom: 1px solid #f1f2f6;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.font-option:hover {
    background-color: #f8f9fa;
}

.font-option:last-child {
    border-bottom: none;
}

.font-sample {
    margin-bottom: 10px;
    color: #2d3436;
    line-height: 1.5;
}

.font-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.font-name {
    font-weight: bold;
    color: #2d3436;
}

.font-checkbox i {
    font-size: 18px;
    color: #ddd;
}

.font-option.selected .font-checkbox i {
    color: #4CAF50;
}

.save-font-btn {
    background: linear-gradient(135deg, #f97316, #ea580c);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    width: 100%;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.save-font-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(249, 115, 22, 0.4);
}

/* 字体大小类 */
.font-small {
    font-size: 14px;
}

.font-medium {
    font-size: 16px;
}

.font-large {
    font-size: 18px;
}

.font-xlarge {
    font-size: 20px;
}

/* 响应式字体大小调整 */
.font-small .section-title {
    font-size: 16px;
}

.font-medium .section-title {
    font-size: 18px;
}

.font-large .section-title {
    font-size: 20px;
}

.font-xlarge .section-title {
    font-size: 22px;
}

.font-small .task-title,
.font-small .task-name,
.font-small .training-title {
    font-size: 14px;
}

.font-medium .task-title,
.font-medium .task-name,
.font-medium .training-title {
    font-size: 16px;
}

.font-large .task-title,
.font-large .task-name,
.font-large .training-title {
    font-size: 18px;
}

.font-xlarge .task-title,
.font-xlarge .task-name,
.font-xlarge .training-title {
    font-size: 20px;
}

/* 语音设置页面样式 */
.voice-settings-section {
    background: white;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    overflow: hidden;
    margin-bottom: 20px;
}

.setting-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #f1f2f6;
}

.setting-item:last-child {
    border-bottom: none;
}

.setting-label {
    font-weight: bold;
    color: #2d3436;
    flex: 1;
}

.setting-control {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* 开关样式 */
.switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
}

.slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
}

input:checked + .slider {
    background-color: #f97316;
}

input:checked + .slider:before {
    transform: translateX(26px);
}

.slider.round {
    border-radius: 24px;
}

.slider.round:before {
    border-radius: 50%;
}

/* 音量滑块样式 */
.volume-slider {
    width: 120px;
    height: 6px;
    border-radius: 3px;
    background: #f1f2f6;
    outline: none;
}

.volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #f97316;
    cursor: pointer;
}

.volume-slider::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #f97316;
    cursor: pointer;
    border: none;
}

.volume-value {
    font-weight: bold;
    color: #f97316;
    min-width: 40px;
    text-align: right;
}

.setting-description {
    background: white;
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

.description-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
}

.description-item:last-child {
    margin-bottom: 0;
}

.description-item i {
    color: #f97316;
    margin-right: 10px;
    margin-top: 2px;
    font-size: 16px;
}

.description-item span {
    flex: 1;
    font-size: 14px;
    color: #636e72;
    line-height: 1.4;
}

.save-voice-btn {
    background: linear-gradient(135deg, #f97316, #ea580c);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    width: 100%;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.save-voice-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(249, 115, 22, 0.4);
}

/* 提醒设置页面样式 */
.reminder-list {
    background: white;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    overflow: hidden;
    margin-bottom: 20px;
}

.no-reminders {
    padding: 40px 20px;
    text-align: center;
    color: #636e72;
    font-size: 16px;
}

.reminder-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #f1f2f6;
}

.reminder-item:last-child {
    border-bottom: none;
}

.reminder-content {
    flex: 1;
}

.reminder-text {
    font-weight: bold;
    margin-bottom: 5px;
    color: #2d3436;
}

.reminder-details {
    font-size: 12px;
    color: #636e72;
}

.reminder-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.switch.small {
    width: 40px;
    height: 20px;
}

.switch.small .slider:before {
    height: 12px;
    width: 12px;
    left: 4px;
    bottom: 4px;
}

.switch.small input:checked + .slider:before {
    transform: translateX(20px);
}

.edit-reminder-btn, .delete-reminder-btn {
    background: none;
    border: none;
    color: #636e72;
    cursor: pointer;
    padding: 5px;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.edit-reminder-btn:hover {
    color: #f97316;
    background: #f1f2f6;
}

.delete-reminder-btn:hover {
    color: #e55039;
    background: #f1f2f6;
}

.reminder-form {
    background: white;
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

.add-reminder-btn {
    background: linear-gradient(135deg, #f97316, #ea580c);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    width: 100%;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.add-reminder-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(249, 115, 22, 0.4);
}
/* 今日提醒列表样式（只展示，不可交互） */
.health-tasks {
    background: white;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    overflow: hidden;
    margin-bottom: 20px;
}
/* 原有的提醒区域样式保持不变 */
.health-tasks {
    background: white;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    overflow: hidden;
    margin-bottom: 20px;
}

/* 提醒任务不可点击 */
.health-tasks .task-item {
    cursor: default;
}

.health-tasks .task-item:hover {
    background-color: transparent;
}

/* 隐藏提醒任务的复选框 */
.health-tasks .task-checkbox {
    display: none;
}

/* 新增：健康记录区域样式 - 不隐藏复选框 */
.health-records-list {
    background: white;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    overflow: hidden;
    margin-bottom: 20px;
}

/* 健康记录区域的复选框正常显示 */
.health-records-list .task-checkbox {
    display: flex;  /* 覆盖原有的 display: none */
}
/* 提醒任务不可点击 */
.health-tasks .task-item {
    cursor: default;
}

.health-tasks .task-item:hover {
    background-color: transparent;
}

/* 隐藏提醒任务的复选框 */
.health-tasks .task-checkbox {
    display: none;
}

/* 调整提醒任务内容的间距 */
.health-tasks .task-content {
    margin-left: 0;
}
/* 提醒通知样式 */
@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.reminder-notification {
    animation: slideIn 0.5s ease;
}

.notification-content {
    display: flex;
    align-items: center;
    padding: 15px;
    gap: 15px;
}

.notification-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #f97316, #ea580c);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.notification-icon i {
    color: white;
    font-size: 18px;
}

.notification-text {
    flex: 1;
}

.notification-title {
    font-weight: bold;
    margin-bottom: 5px;
    color: #2d3436;
}

.notification-message {
    color: #636e72;
    font-size: 14px;
}

.notification-close {
    background: none;
    border: none;
    color: #636e72;
    cursor: pointer;
    padding: 5px;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.notification-close:hover {
    color: #e55039;
    background: #f1f2f6;
}
/* 查看更多提醒按钮样式 */
.view-more-reminder {
    background: linear-gradient(135deg, #f97316, #ea580c);
    color: white;
    border: none;
    padding: 12px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 14px;
    width: calc(100% - 40px);
    margin: 10px 20px;
    transition: all 0.3s ease;
    order: 999;
    text-align: center;
}

.view-more-reminder:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(249, 115, 22, 0.4);
}

/* 提醒模态框样式 */
.reminder-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    padding: 20px;
}

.reminder-modal-container {
    background: white;
    border-radius: 20px;
    width: 100%;
    max-width: 350px;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 35px rgba(0, 0, 0, 0.3);
    animation: fadeIn 0.3s ease;
}

.reminder-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid #f1f2f6;
}

.reminder-modal-header h3 {
    margin: 0;
    color: #2d3436;
    font-size: 18px;
}

.reminder-modal-header h3 i {
    color: #f97316;
    margin-right: 8px;
}

.reminder-modal-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #636e72;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.reminder-modal-close:hover {
    background: #f1f2f6;
    color: #e55039;
}

.reminder-modal-body {
    flex: 1;
    overflow-y: auto;
    padding: 10px 0;
}

.reminder-modal-item {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid #f8f9fa;
}

.reminder-modal-item:last-child {
    border-bottom: none;
}

.reminder-modal-icon {
    width: 40px;
    height: 40px;
    background: #f1f2f6;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
}

.reminder-modal-icon i {
    color: #f97316;
    font-size: 18px;
}

.reminder-modal-content {
    flex: 1;
}

.reminder-modal-name {
    font-weight: bold;
    color: #2d3436;
    margin-bottom: 4px;
}

.reminder-modal-time {
    font-size: 12px;
    color: #636e72;
}

.reminder-modal-status {
    font-size: 12px;
    padding: 4px 10px;
    border-radius: 20px;
    font-weight: bold;
}

.reminder-modal-status.enabled {
    background: #e8f5e9;
    color: #4CAF50;
}

.reminder-modal-status.disabled {
    background: #f1f2f6;
    color: #b2bec3;
}

.reminder-modal-footer {
    padding: 15px 20px;
    border-top: 1px solid #f1f2f6;
}

.reminder-modal-btn {
    width: 100%;
    background: linear-gradient(135deg, #f97316, #ea580c);
    color: white;
    border: none;
    padding: 12px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    transition: all 0.3s ease;
}

.reminder-modal-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(249, 115, 22, 0.4);
}
/* 响应式调整 */
@media (max-width: 400px) {
    .setting-control {
        flex-direction: column;
        align-items: flex-end;
        gap: 10px;
    }
    
    .volume-slider {
        width: 100px;
    }
    
    .reminder-actions {
        flex-direction: column;
        gap: 5px;
    }
    
    .reminder-notification {
        right: 10px;
        left: 10px;
        max-width: none;
    }
}


/* 反馈页面 */
.feedback-scenarios {
    background: white;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    overflow: hidden;
    margin-bottom: 20px;
}

.scenario-option {
    display: flex;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #f1f2f6;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.scenario-option:hover {
    background-color: #f8f9fa;
}

.scenario-option:last-child {
    border-bottom: none;
}

.scenario-icon {
    width: 40px;
    height: 40px;
    background: #f1f2f6;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
}

.scenario-icon i {
    color: #f97316;
    font-size: 18px;
}

.scenario-text {
    flex: 1;
    font-weight: bold;
    color: #2d3436;
}

.scenario-checkbox i {
    color: #ddd;
    font-size: 18px;
}

.feedback-description {
    background: white;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    overflow: hidden;
    margin-bottom: 20px;
}

.feedback-textarea {
    width: 100%;
    height: 150px;
    border: none;
    padding: 20px;
    font-size: 16px;
    resize: none;
    outline: none;
    font-family: inherit;
}

.submit-feedback-btn {
    background: linear-gradient(135deg, #f97316, #ea580c);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    width: 100%;
    transition: all 0.3s ease;
}

.submit-feedback-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(249, 115, 22, 0.4);
}

/* 底部导航 */
footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    max-width: 400px;
    margin: 0 auto;
    background: white;
    display: flex;
    justify-content: space-around;
    padding: 15px 0;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    z-index: 100;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 5px 15px;
    border-radius: 15px;
}

.nav-item.active {
    background: linear-gradient(135deg, #f97316, #ea580c);
    color: white;
}

.nav-item.active .nav-icon {
    color: white;
}

.nav-icon {
    font-size: 20px;
    margin-bottom: 5px;
    color: #B8A070;
    transition: all 0.3s ease;
}

.nav-text {
    font-size: 12px;
    font-weight: bold;
}

.nav-item:not(.active):hover {
    transform: translateY(-2px);
}

.nav-item:not(.active):hover .nav-icon {
    color: #f97316;
}

/* 高亮动画 */
@keyframes highlight {
    0% { background-color: transparent; }
    50% { background-color: #fff8e1; }
    100% { background-color: transparent; }
}

/* 响应式设计 */
@media (max-width: 400px) {
    .container {
        box-shadow: none;
    }
    
    .page {
        padding: 15px;
        padding-bottom: 70px;
    }
    
    header {
        padding: 15px;
    }
    
    .task-cards {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }
    
    .task-card {
        padding: 15px;
    }
    
    .health-stats {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }
    
    .health-stat {
        padding: 15px;
    }
    
    .pet-actions {
        flex-wrap: wrap;
    }
    
    .command-list {
        grid-template-columns: 1fr;
    }
    
    footer {
        padding: 10px 0;
    }
    
    .nav-item {
        padding: 5px 10px;
    }
    
    .nav-icon {
        font-size: 18px;
    }
    
    .nav-text {
        font-size: 11px;
    }
}
/* 编辑按钮样式 */
.edit-info-btn {
    background: linear-gradient(135deg, #f97316, #ea580c);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    width: 100%;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

.edit-info-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(249, 115, 22, 0.4);
}

/* 老人模式下的查看按钮样式 */
.edit-info-btn:disabled {
    background: #f97316;
    cursor: pointer;
}

.edit-info-btn:disabled:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(249, 115, 22, 0.4);
}


/* 绘画游戏页面样式补充 */
.drawing-area {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin: 20px 0;
    justify-content: center;
}

.drawing-section {
    flex: 1;
    min-width: 250px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.canvas-container {
    margin: 0 auto;
    display: flex;
    justify-content: center;
}

.reference-section {
    flex: 1;
    min-width: 250px;
    text-align: center;
}

.reference-title, .drawing-title {
    font-weight: bold;
    margin-bottom: 10px;
    color: #2d3436;
}

.reference-canvas {
    width: 280px;
    height: 280px;
    margin: 0 auto;
    background: white;
    border: 2px solid #f1f2f6;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.reference-canvas svg {
    width: 100%;
    height: 100%;
}

.canvas-container {
    margin: 0 auto;
}

#drawingCanvas {
    border: 2px solid #f1f2f6;
    border-radius: 15px;
    cursor: crosshair;
    background: white;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    display: block;
    margin: 0 auto;
}

.drawing-controls {
    margin-top: 15px;
}

/* 画笔粗细控制栏 */
.brush-size-control {
    background: #f8f9fa;
    padding: 10px 15px;
    border-radius: 30px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.brush-size-control i {
    color: #f97316;
    font-size: 16px;
}

.brush-size-label {
    font-size: 14px;
    color: #636e72;
}

#brushSizeSlider {
    width: 150px;
    height: 4px;
    border-radius: 2px;
    background: #dfe6e9;
    outline: none;
    -webkit-appearance: none;
}

#brushSizeSlider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #f97316;
    cursor: pointer;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

#brushSizeSlider::-moz-range-thumb {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #f97316;
    cursor: pointer;
    border: none;
}

.brush-size-value {
    font-size: 13px;
    font-weight: bold;
    color: #f97316;
    background: white;
    padding: 2px 8px;
    border-radius: 15px;
    min-width: 45px;
    text-align: center;
}

/* 操作按钮组 */
.action-buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-bottom: 12px;
}

.drawing-btn {
    background: #f1f2f6;
    border: none;
    padding: 8px 16px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #2d3436;
}

.drawing-btn:hover {
    background: #e9ecef;
    transform: translateY(-1px);
}

.drawing-btn:active {
    transform: translateY(1px);
}

/* 调色盘切换按钮 */
.palette-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #f1f2f6;
    padding: 8px 16px;
    border-radius: 30px;
    margin-bottom: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    color: #2d3436;
}

.palette-toggle:hover {
    background: #e9ecef;
}

.palette-toggle i:first-child {
    color: #f97316;
    font-size: 16px;
}

.palette-toggle span {
    display: flex;
    align-items: center;
    gap: 6px;
}

#paletteArrow {
    transition: transform 0.3s ease;
    font-size: 12px;
}

#paletteArrow.rotated {
    transform: rotate(180deg);
}

/* 调色盘内容 - 默认展开 */
.color-controls {
    display: flex;
    gap: 8px;
    justify-content: center;
    flex-wrap: wrap;
    padding: 10px 0;
    margin-bottom: 10px;
    transition: all 0.3s ease;
}

/* 收起状态 */
.color-controls.collapsed {
    display: none;
}

/* 颜色选项样式 - 稍大一点方便点击 */
.color-option {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.color-option.active {
    border-color: #2d3436;
    transform: scale(1.1);
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.color-option:hover {
    transform: scale(1.08);
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

/* 颜色选择栏 */
.color-controls {
    display: flex;
    gap: 8px;
    justify-content: center;
    flex-wrap: wrap;
    padding: 5px 0;
}

.color-option {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.color-option.active {
    border-color: #2d3436;
    transform: scale(1.1);
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.color-option[style*="background-color: #ffffff"]:hover {
    border-color: #636e72;
}

.similarity {
    font-size: 18px;
    font-weight: bold;
    text-align: center;
    margin: 15px 0;
}

.similarity-details {
    font-size: 12px;
    color: #636e72;
    text-align: center;
    margin-top: 5px;
}

.game-result {
    text-align: center;
    font-weight: bold;
    margin: 10px 0;
    padding: 8px;
    border-radius: 10px;
}

.game-result.success {
    background: #e8f5e9;
    color: #2e7d32;
}

.game-result.fail {
    background: #ffebee;
    color: #c62828;
}

.game-controls {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 15px;
}

.game-btn {
    background: linear-gradient(135deg, #f97316, #ea580c);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
    transition: all 0.3s ease;
}

.game-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(249, 115, 22, 0.4);
}

#resubmitDrawingBtn {
    background: linear-gradient(135deg, #6c5ce7, #5b4bc4);
}

#resubmitDrawingBtn:hover {
    box-shadow: 0 4px 12px rgba(108, 92, 231, 0.4);
}

@media (max-width: 600px) {
    .drawing-area {
        flex-direction: column;
        align-items: center;
    }
    
    .reference-canvas, #drawingCanvas {
        width: 250px;
        height: 250px;
    }
    
    .color-option {
        width: 28px;
        height: 28px;
    }
    
    .brush-size-control {
        padding: 8px 12px;
    }
    
    #brushSizeSlider {
        width: 120px;
    }
    
    .drawing-btn {
        padding: 6px 12px;
        font-size: 12px;
    }
}

/* 家人照片页面样式 */
.family-photos-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 20px;
}

/* 照片卡片样式 - 自适应屏幕 */
.photo-card {
    background: white;
    border-radius: 16px;
    padding: 12px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    overflow: hidden;
}

.photo-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}

/* 图片容器 - 固定宽高比，适应屏幕 */
.photo-img-container {
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: 12px;
    background: #f0f2f5;
    cursor: pointer;
}

.photo-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.photo-card:hover .photo-img {
    transform: scale(1.02);
}

.photo-name {
    font-weight: bold;
    margin: 10px 0 5px;
    color: #2d3436;
    font-size: 14px;
    word-break: break-word;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.delete-photo-btn {
    background: none;
    border: none;
    color: #e55039;
    cursor: pointer;
    margin-top: 5px;
    font-size: 12px;
    padding: 6px 12px;
    border-radius: 20px;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.delete-photo-btn:hover {
    background: #ffe8e5;
}

/* 上传区域样式 */
.upload-area {
    background: #f8f9fa;
    border: 2px dashed #f97316;
    border-radius: 16px;
    padding: 25px 20px;
    text-align: center;
    margin: 15px 0;
    cursor: pointer;
    transition: all 0.3s ease;
}

.upload-area:hover {
    background: #fff5eb;
    border-color: #ea580c;
    transform: translateY(-2px);
}

.upload-area i {
    font-size: 42px;
    color: #f97316;
    margin-bottom: 10px;
    display: block;
}

.upload-area div {
    color: #636e72;
    font-size: 14px;
}

/* 空状态样式 */
.empty-state {
    grid-column: span 2;
    text-align: center;
    padding: 50px 20px;
    background: #f8f9fa;
    border-radius: 16px;
}

.empty-state i {
    font-size: 48px;
    color: #f97316;
    margin-bottom: 15px;
}

.empty-state .empty-title {
    font-size: 16px;
    color: #636e72;
    margin-bottom: 8px;
}

.empty-state .empty-desc {
    font-size: 13px;
    color: #b2bec3;
}

/* 大图查看遮罩层 */
.photo-viewer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    animation: fadeIn 0.3s ease;
}

.photo-viewer-container {
    max-width: 90%;
    max-height: 90%;
    text-align: center;
}

.photo-viewer-img {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.photo-viewer-title {
    color: white;
    margin-top: 15px;
    font-size: 16px;
}

.photo-viewer-close {
    color: rgba(255,255,255,0.6);
    margin-top: 15px;
    font-size: 12px;
}

/* 照片配对挑战按钮样式 */
.add-demo-btn {
    background: linear-gradient(135deg, #78e08f, #38ada9);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
    width: 100%;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 15px;
}

.add-demo-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(120, 224, 143, 0.4);
}

/* 照片配对小游戏样式 */
.pair-game-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.pair-game-container {
    background: white;
    border-radius: 28px;
    width: 100%;
    max-width: 360px;
    max-height: 85vh;
    overflow-y: auto;
    padding: 20px;
    text-align: center;
    box-shadow: 0 20px 35px rgba(0, 0, 0, 0.3);
}

.pair-game-title {
    font-size: 24px;
    font-weight: bold;
    color: #2d3436;
    margin-bottom: 8px;
}

.pair-game-sub {
    color: #636e72;
    margin-bottom: 20px;
    font-size: 14px;
}

.pair-score-board {
    display: flex;
    justify-content: space-between;
    background: #dfe6e9;
    padding: 10px 15px;
    border-radius: 30px;
    margin-bottom: 15px;
    font-weight: bold;
}

.pair-question {
    background: #f8f9fa;
    border-radius: 20px;
    padding: 15px;
    margin: 15px 0;
}

.pair-photo-preview {
    width: 150px;
    height: 150px;
    margin: 0 auto 15px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.pair-photo-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pair-question-text {
    font-weight: bold;
    margin-bottom: 10px;
    color: #2d3436;
}

.pair-options-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 20px 0;
}

.pair-option-btn {
    background: #f1f2f6;
    padding: 14px;
    border-radius: 40px;
    font-size: 16px;
    font-weight: bold;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.2s;
    color: #2d3436;
}

.pair-option-btn:hover {
    background: #e9ecef;
    transform: scale(0.98);
}

.pair-option-btn.pair-correct {
    background: #78e08f;
    border-color: #38ada9;
    color: white;
}

.pair-feedback {
    margin: 15px 0;
    font-weight: bold;
    min-height: 50px;
}

.pair-next-btn, .pair-close-btn {
    background: linear-gradient(135deg, #f97316, #ea580c);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 40px;
    font-weight: bold;
    margin-top: 10px;
    width: 100%;
    cursor: pointer;
}

.pair-close-btn {
    background: #b2bec3;
    margin-top: 8px;
}

/* 响应式：小屏幕时适当缩小间距 */
@media (max-width: 380px) {
    .family-photos-grid {
        gap: 10px;
    }
    
    .photo-card {
        padding: 10px;
    }
    
    .photo-name {
        font-size: 12px;
        margin: 8px 0 3px;
    }
    
    .delete-photo-btn {
        font-size: 11px;
        padding: 4px 10px;
    }
}
/* 添加表单切换样式 */
.add-form {
    display: none;
}

.add-form.active {
    display: block;
    animation: fadeIn 0.3s ease;
}


/* 任务容器折叠样式 */
.task-container {
    max-height: 400px;
    overflow-y: auto;
    transition: max-height 0.3s ease;
}

.task-container.collapsed {
    max-height: 300px;
    overflow-y: hidden;
    position: relative;
}

.task-container.collapsed::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: linear-gradient(to bottom, transparent, white);
    pointer-events: none;
}

/* 健康记录备注样式 */
.task-note {
    font-size: 11px;
    color: #95a5a6;
    margin-top: 4px;
    font-style: italic;
}

.note-item {
    background: #f8f9fa;
    color: #636e72;
    font-size: 12px;
    text-align: center;
    justify-content: center;
    cursor: default;
}

.note-item:hover {
    background: #f8f9fa;
}
/* 模态框样式 */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3000;
    animation: fadeIn 0.3s ease;
}

.modal-content {
    background: white;
    border-radius: 20px;
    width: 90%;
    max-width: 350px;
    max-height: 80vh;
    overflow-y: auto;
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid #f1f2f6;
}

.modal-header h3 {
    margin: 0;
    color: #2d3436;
    font-size: 18px;
}

.modal-header h3 i {
    color: #f97316;
    margin-right: 8px;
}

.modal-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #636e72;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: #f1f2f6;
    color: #e55039;
}

.modal-body {
    padding: 20px;
}

.modal-footer {
    display: flex;
    gap: 10px;
    padding: 15px 20px;
    border-top: 1px solid #f1f2f6;
}

.modal-footer .cancel-btn,
.modal-footer .save-btn {
    flex: 1;
    padding: 12px;
    border-radius: 25px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.modal-footer .cancel-btn {
    background: #f1f2f6;
    border: none;
    color: #636e72;
}

.modal-footer .cancel-btn:hover {
    background: #e9ecef;
}

.modal-footer .save-btn {
    background: linear-gradient(135deg, #f97316, #ea580c);
    border: none;
    color: white;
}

.modal-footer .save-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(249, 115, 22, 0.4);
}

/* 区域添加按钮样式 */
.add-task-btn {
    font-size: 14px;
    padding: 5px 10px;
    border-radius: 20px;
    transition: all 0.3s ease;
}

.add-task-btn:hover {
    background: #fff5eb;
    transform: scale(1.02);
}
/* 模态框样式 - 修复居中显示 */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3000;
    animation: fadeIn 0.3s ease;
}

.modal-content {
    background: white;
    border-radius: 20px;
    width: 90%;
    max-width: 350px;
    max-height: 80vh;
    overflow-y: auto;
    animation: slideUp 0.3s ease;
    box-shadow: 0 20px 35px rgba(0, 0, 0, 0.3);
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid #f1f2f6;
}

.modal-header h3 {
    margin: 0;
    color: #2d3436;
    font-size: 18px;
}

.modal-header h3 i {
    color: #f97316;
    margin-right: 8px;
}

.modal-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #636e72;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: #f1f2f6;
    color: #e55039;
}

.modal-body {
    padding: 20px;
}

.modal-body .form-group {
    margin-bottom: 15px;
}

.modal-body .form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #2d3436;
}

.modal-body .form-input,
.modal-body .form-select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #f1f2f6;
    border-radius: 10px;
    font-size: 16px;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
}

.modal-body .form-input:focus,
.modal-body .form-select:focus {
    outline: none;
    border-color: #f97316;
}

.modal-footer {
    display: flex;
    gap: 10px;
    padding: 15px 20px;
    border-top: 1px solid #f1f2f6;
}

.modal-footer .cancel-btn,
.modal-footer .save-btn {
    flex: 1;
    padding: 12px;
    border-radius: 25px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    font-size: 14px;
}

.modal-footer .cancel-btn {
    background: #f1f2f6;
    color: #636e72;
}

.modal-footer .cancel-btn:hover {
    background: #e9ecef;
}

.modal-footer .save-btn {
    background: linear-gradient(135deg, #f97316, #ea580c);
    color: white;
}

.modal-footer .save-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(249, 115, 22, 0.4);
}

/* 区域添加按钮样式 */
.add-task-btn {
    font-size: 14px;
    padding: 5px 10px;
    border-radius: 20px;
    transition: all 0.3s ease;
}

.add-task-btn:hover {
    background: #fff5eb;
    transform: scale(1.02);
}
/* 查看更多弹窗样式 */
.more-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3000;
    padding: 20px;
}

.more-modal-container {
    background: white;
    border-radius: 20px;
    width: 100%;
    max-width: 380px;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 35px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s ease;
}

.more-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid #f1f2f6;
}

.more-modal-header h3 {
    margin: 0;
    color: #2d3436;
    font-size: 18px;
}

.more-modal-header h3 i {
    color: #f97316;
    margin-right: 8px;
}

.more-modal-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #636e72;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.more-modal-close:hover {
    background: #f1f2f6;
    color: #e55039;
}

.more-modal-body {
    flex: 1;
    overflow-y: auto;
    padding: 10px 0;
}

.more-modal-item {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid #f8f9fa;
}

.more-modal-item:last-child {
    border-bottom: none;
}

.more-modal-icon {
    width: 40px;
    height: 40px;
    background: #f1f2f6;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
}

.more-modal-icon i {
    color: #f97316;
    font-size: 18px;
}

.more-modal-content {
    flex: 1;
}

.more-modal-name {
    font-weight: bold;
    color: #2d3436;
    margin-bottom: 4px;
}

.more-modal-time {
    font-size: 12px;
    color: #636e72;
}

.more-modal-status {
    font-size: 12px;
    padding: 4px 10px;
    border-radius: 20px;
    font-weight: bold;
}

.more-modal-status.completed {
    background: #e8f5e9;
    color: #4CAF50;
}

.more-modal-status.pending {
    background: #fff3e0;
    color: #f97316;
}

.more-modal-footer {
    padding: 15px 20px;
    border-top: 1px solid #f1f2f6;
}

.more-modal-btn {
    width: 100%;
    background: linear-gradient(135deg, #f97316, #ea580c);
    color: white;
    border: none;
    padding: 12px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    transition: all 0.3s ease;
}

.more-modal-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(249, 115, 22, 0.4);
}

/* 列表项最大高度限制 */
.task-list-container {
    max-height: 300px;
    overflow-y: auto;
}

.task-list-container.collapsed {
    max-height: 300px;
    overflow-y: auto;
    position: relative;
}
/* 条目操作按钮样式 */
.task-item {
    position: relative;
}

.task-actions {
    display: none;
    gap: 8px;
    flex-shrink: 0;
}

.task-item:hover .task-actions {
    display: flex;
}



.task-edit-btn, .task-delete-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px 8px;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.task-edit-btn {
    color: #6a89cc;
}

.task-edit-btn:hover {
    background: #e8f0fe;
    transform: scale(1.05);
}

.task-delete-btn {
    color: #e55039;
}

.task-delete-btn:hover {
    background: #ffe8e5;
    transform: scale(1.05);
}

/* 健康记录备注样式优化 */
.task-note {
    font-size: 11px;
    color: #95a5a6;
    margin-top: 4px;
    font-style: italic;
}

/* 编辑模态框样式 */
.edit-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 4000;
    padding: 20px;
}

.edit-modal-container {
    background: white;
    border-radius: 20px;
    width: 100%;
    max-width: 350px;
    max-height: 80vh;
    overflow-y: auto;
    animation: slideUp 0.3s ease;
    box-shadow: 0 20px 35px rgba(0, 0, 0, 0.3);
}

.edit-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid #f1f2f6;
}

.edit-modal-header h3 {
    margin: 0;
    color: #2d3436;
    font-size: 18px;
}

.edit-modal-header h3 i {
    color: #f97316;
    margin-right: 8px;
}

.edit-modal-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #636e72;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.edit-modal-close:hover {
    background: #f1f2f6;
    color: #e55039;
}

.edit-modal-body {
    padding: 20px;
}

.edit-modal-footer {
    display: flex;
    gap: 10px;
    padding: 15px 20px;
    border-top: 1px solid #f1f2f6;
}

.edit-modal-footer button {
    flex: 1;
    padding: 12px;
    border-radius: 25px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    font-size: 14px;
}

.edit-cancel-btn {
    background: #f1f2f6;
    color: #636e72;
}

.edit-cancel-btn:hover {
    background: #e9ecef;
}

.edit-save-btn {
    background: linear-gradient(135deg, #f97316, #ea580c);
    color: white;
}

.edit-save-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(249, 115, 22, 0.4);
}
/* ==================== 空状态美化样式 ==================== */

/* 通用空状态样式 */
.no-data {
    text-align: center;
    padding: 60px 20px !important;
    color: #b2bec3;
    font-size: 16px;
    background: #fafbfc;
    border-radius: 15px;
    margin: 10px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 200px;
}

/* 通用图标样式 - 使用 Font Awesome 5（与你的 CDN 版本匹配） */
.no-data:before {
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    font-size: 56px;
    margin-bottom: 20px;
    color: #dfe6e9;
    display: inline-block;
    content: "\f07c";
}

/* 今日提醒空状态专属图标 - 铃铛 */
.health-tasks .no-data:before {
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    content: "\f0f3";
}

/* 今日任务空状态专属图标 - 清单/任务 */
.today-tasks .no-data:before {
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    content: "\f0ae";
}

/* 体检计划空状态专属图标 - 日历 */
#examList .no-data:before {
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    content: "\f0f8";
}

/* 健康记录空状态专属图标 - 医疗记录 */
#healthRecordsList .no-data:before {
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    content: "\f4bd";
}

/* 空状态辅助文字样式 */
.no-data .empty-title {
    font-size: 18px;
    font-weight: 500;
    color: #a4b0be;
    margin-bottom: 8px;
}

.no-data .empty-desc {
    font-size: 13px;
    color: #c8d6e5;
    margin-top: 5px;
}

/* 确保空状态在任务容器内正确显示 */
.today-tasks .no-data,
.health-tasks .no-data,
#examList .no-data,
#healthRecordsList .no-data {
    width: 100%;
    box-sizing: border-box;
}

/* 让空状态在grid布局中正确显示 */
#examList,
#healthRecordsList {
    min-height: 120px;
}

/* 空状态点击添加按钮的提示样式（可选） */
.no-data .add-hint {
    margin-top: 15px;
    font-size: 12px;
    color: #c8d6e5;
}

.no-data .add-hint i {
    margin-right: 5px;
    color: #f97316;
}