/* 页面容器基础样式 */
.record-container {
    text-align: center;
    padding: 40px 20px;
    background: linear-gradient(135deg, #e8f5e9 0%, #f1f8e9 100%);
    min-height: 600px;
    border-radius: 15px;
    position: relative;
    overflow: hidden;
}

.record-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #4CAF50, #45a049, #8BC34A);
}

/* 标题通用样式 */
.record-container h2 {
    margin-bottom: 30px;
    color: #2e7d32;
    font-size: 2rem;
    font-weight: 600;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
    position: relative;
    display: inline-block;
}

.record-container h2::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #4CAF50, #8BC34A);
    border-radius: 2px;
}

/* 记录按钮容器 */
.record-btn-container {
    margin-bottom: 30px;
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: center;
}

/* 记录按钮通用样式 */
.record-btn {
    padding: 14px 40px;
    font-size: 1.1rem;
    font-weight: 600;
    color: white;
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
    border: none;
    border-radius: 28px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 
        0 6px 20px rgba(76, 175, 80, 0.4),
        0 2px 4px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
    margin-bottom: 30px;
}

.record-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.record-btn:hover::before {
    left: 100%;
}

.record-btn:hover {
    transform: translateY(-4px) scale(1.06);
    box-shadow: 
        0 20px 50px rgba(76, 175, 80, 0.5),
        0 4px 12px rgba(0, 0, 0, 0.2);
}

.record-btn:active {
    transform: translateY(-2px) scale(0.97);
    box-shadow: 
        0 8px 25px rgba(76, 175, 80, 0.4),
        0 2px 4px rgba(0, 0, 0, 0.1);
}

/* 记录列表容器通用样式 */
.records-list {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 25px;
}

/* 记录卡片通用样式 */
.record-item {
    background: white;
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 0;
    box-shadow: 
        0 4px 20px rgba(0, 0, 0, 0.08),
        0 1px 3px rgba(0, 0, 0, 0.05);
    text-align: left;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(76, 175, 80, 0.1);
}

.record-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 0;
}

.record-item:hover {
    transform: translateY(-5px);
    box-shadow: 
        0 15px 48px rgba(0, 0, 0, 0.15),
        0 3px 12px rgba(0, 0, 0, 0.1);
}

/* 编辑按钮通用样式 */
.edit-btn {
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
    color: white;
    border: none;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    box-shadow: 0 2px 6px rgba(76, 175, 80, 0.3);
    z-index: 10;
    outline: none;
    padding: 0;
    margin: 0 0 0 8px;
    flex-shrink: 0;
}

.edit-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.4);
}

/* 时间戳通用样式 */
.record-time {
    font-size: 0.8rem;
    color: #6c757d;
    font-weight: 500;
    letter-spacing: 0.2px;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 6px;
    justify-content: space-between;
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 1px solid #f8f9fa;
}

.record-time::before {
    content: '📅';
    font-size: 0.9rem;
}

/* 弹窗通用样式 */
.modal {
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    padding: 20px;
}

.modal .modal-content {
    background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
    border-radius: 20px;
    padding: 0;
    box-shadow: 
        0 25px 60px rgba(76, 175, 80, 0.3),
        0 5px 15px rgba(0, 0, 0, 0.2);
    max-width: 400px;
    width: 95%;
    max-height: 90vh;
    overflow-x: hidden;
    overflow-y: auto;
    animation: modalSlideIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 2px solid #4CAF50;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* 弹窗头部通用样式 */
.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0;
    padding: 20px 25px 15px;
    border-bottom: 2px solid #c8e6c9;
    background: linear-gradient(135deg, #c8e6c9 0%, #a5d6a7 100%);
    border-radius: 20px 20px 0 0;
}

.modal-header h3 {
    margin: 0;
    color: #2e7d32;
    font-size: 1.2rem;
    font-weight: 700;
}

/* 关闭按钮通用样式 */
.close {
    font-size: 2.2rem;
    font-weight: 300;
    color: #bdc3c7;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.05);
}

.close:hover {
    color: #e74c3c;
    background: rgba(231, 76, 60, 0.1);
    transform: rotate(90deg);
}

/* 弹窗主体通用样式 */
.modal-body {
    margin-bottom: 0;
    padding: 20px 25px;
}

/* 输入组通用样式 */
.modal-body .input-group {
    margin-bottom: 15px;
    position: relative;
    display: flex;
    align-items: center;
    gap: 15px;
}

.modal-body .input-group:last-child {
    margin-bottom: 0;
}

.modal-body label {
    display: block;
    color: #2c3e50;
    font-weight: 600;
    font-size: 0.95rem;
    min-width: 80px;
    text-align: right;
}

.modal-body input {
    flex: 1;
    padding: 10px 15px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #f8f9fa;
    -moz-appearance: textfield;
}

.modal-body input::-webkit-outer-spin-button,
.modal-body input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.modal-body input:focus {
    outline: none;
    border-color: #4CAF50;
    background: white;
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.1);
}

.modal-body input::placeholder {
    color: #bdc3c7;
    font-style: italic;
}

/* 确保文本域和输入框宽度一致 */
.modal-body textarea,
.modal-body input[type="number"] {
    width: 100%;
    padding: 10px 15px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
    background: #f8f9fa;
}

.modal-body textarea {
    resize: vertical;
    min-height: 80px;
}

/* 胸围输入组特殊样式 */
.chest-input-group {
    cursor: pointer;
    user-select: none;
}

.chest-input-group label {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 5px;
}

.chest-input-group label::after {
    content: '▼';
    font-size: 0.7rem;
    transition: transform 0.3s ease;
}

.chest-input-group.collapsed label::after {
    transform: rotate(-90deg);
}

.split-chest-input {
    margin-top: 10px;
    margin-left: 95px;
    margin-bottom: 20px;
    display: none;
}

.split-chest-input.show {
    display: block;
}

.chest-inputs-row {
    display: flex;
    gap: 15px;
}

.chest-input-half {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 10px;
}

.chest-input-half label {
    min-width: 60px;
    font-size: 0.85rem;
}

.chest-input-half input {
    flex: 1;
    padding: 10px 15px;
    font-size: 1rem;
    -moz-appearance: textfield;
}

.chest-input-half input::-webkit-outer-spin-button,
.chest-input-half input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* 文本域通用样式 */
textarea {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    font-size: 1rem;
    font-family: inherit;
    resize: vertical;
    min-height: 80px;
    transition: all 0.3s ease;
    background: #f8f9fa;
}

textarea:focus {
    outline: none;
    border-color: #4CAF50;
    background: white;
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.1);
}

textarea::placeholder {
    color: #bdc3c7;
    font-style: italic;
}

/* 弹窗底部通用样式 */
.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 15px 25px 20px;
    border-top: 2px solid #f8f9fa;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 0 0 20px 20px;
}

/* 按钮通用样式 */
.btn {
    padding: 12px 30px;
    border: none;
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.btn:hover::before {
    left: 100%;
}

/* 取消按钮通用样式 */
.btn-cancel {
    background: linear-gradient(135deg, #95a5a6 0%, #7f8c8d 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(149, 165, 166, 0.3);
}

.btn-cancel:hover {
    background: linear-gradient(135deg, #7f8c8d 0%, #6c7a7a 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(149, 165, 166, 0.4);
}

/* 确认按钮通用样式 */
.btn-confirm {
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.3);
}

.btn-confirm:hover {
    background: linear-gradient(135deg, #45a049 0%, #3d8b40 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(76, 175, 80, 0.4);
}

.btn:active {
    transform: translateY(0);
}

/* 无数据状态通用样式 */
.no-data {
    background: white;
    border-radius: 20px;
    padding: 60px 30px;
    text-align: center;
    color: #7f8c8d;
    font-size: 1.1rem;
    font-weight: 500;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    border: 2px dashed rgba(76, 175, 80, 0.3);
}

.no-data::before {
    content: '📊';
    font-size: 3rem;
    display: block;
    margin-bottom: 15px;
    opacity: 0.5;
}

/* ============================================
   个人档案健康计算卡片样式
   ============================================ */

.profile-calculation-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    width: 100%;
}

/* 今日热量统计样式 */
.today-calories-section {
    margin-bottom: 30px;
}

.today-calories-card {
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
    color: white;
    border-radius: 20px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(76, 175, 80, 0.3);
    max-width: 900px;
    margin: 0 auto;
}

.today-calories-card h4 {
    margin: 0 0 15px 0;
    font-size: 1.2rem;
    font-weight: 600;
    opacity: 0.9;
}

.today-calories-display {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 10px;
    margin-bottom: 10px;
}

/* 数据统计页面样式 */
/* 子导航样式 */
.sub-nav {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 30px;
    background-color: #f8f9fa;
    padding: 10px;
    border-radius: 10px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.sub-nav-btn {
    padding: 10px 20px;
    border: none;
    background-color: transparent;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
    color: #666;
}

.sub-nav-btn:hover {
    background-color: #e9ecef;
}

.sub-nav-btn.active {
    background-color: #4CAF50;
    color: white;
}

/* 统计页面通用样式 */
.stats-page {
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 统计卡片容器 */
.stats-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    max-width: 1000px;
    margin: 0 auto;
}

/* 统计卡片样式 */
.stat-card {
    background: white;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(76, 175, 80, 0.1);
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.stat-card h3 {
    color: #4CAF50;
    margin-bottom: 20px;
    font-size: 1.3rem;
    font-weight: 600;
}

/* 统计项目样式 */
.stat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #f1f1f1;
}

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

.stat-label {
    color: #666;
    font-weight: 500;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: bold;
    color: #333;
}

.stat-unit {
    color: #999;
    font-size: 0.9rem;
    margin-left: 5px;
}

/* 视图切换按钮样式 */
.view-toggle {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 30px;
    position: sticky;
    top: 20px;
    z-index: 10;
    background-color: rgba(255, 255, 255, 0.9);
    padding: 10px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.view-btn {
    padding: 8px 20px;
    border: 1px solid #ddd;
    background-color: white;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    color: #666;
}

.view-btn:hover {
    background-color: #f8f9fa;
}

.view-btn.active {
    background-color: #4CAF50;
    color: white;
    border-color: #4CAF50;
}

/* 图表容器 */
.charts-container {
    display: flex;
    flex-direction: column;
    gap: 30px;
    max-width: 600px;
    margin: 0 auto;
}

/* 图表卡片样式 */
.chart-card {
    background: white;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(76, 175, 80, 0.1);
}

.chart-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.chart-card h3 {
    color: #4CAF50;
    margin-bottom: 20px;
    font-size: 1.3rem;
    font-weight: 600;
    text-align: center;
}

/* 图表包装器 */
.chart-wrapper {
    position: relative;
    height: 300px;
}

/* 数据管理页面样式 */
.data-card {
    background: white;
    border-radius: 15px;
    padding: 40px;
    margin-bottom: 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    text-align: center;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.data-card h3 {
    color: #2e7d32;
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 15px;
    text-align: center;
}

.data-action {
    margin-bottom: -15px;
    text-align: center;
}

.data-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    max-width: 600px;
    margin: 0 auto;
}

.data-grid-btn {
    padding: 10px 16px;
    font-size: 0.9rem;
    font-weight: 500;
    color: white;
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
    border: none;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 
        0 3px 12px rgba(76, 175, 80, 0.3),
        0 1px 2px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
    text-align: center;
}

.data-grid-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.data-grid-btn:hover::before {
    left: 100%;
}

.data-grid-btn:hover {
    transform: translateY(-2px) scale(1.03);
    box-shadow: 
        0 10px 30px rgba(76, 175, 80, 0.4),
        0 2px 8px rgba(0, 0, 0, 0.2);
}

.data-grid-btn:active {
    transform: translateY(-1px) scale(0.98);
    box-shadow: 
        0 4px 15px rgba(76, 175, 80, 0.3),
        0 1px 2px rgba(0, 0, 0, 0.1);
}

.data-grid-btn.danger {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    color: white;
    box-shadow: 
        0 4px 15px rgba(231, 76, 60, 0.3),
        0 1px 3px rgba(0, 0, 0, 0.1);
}

.data-grid-btn.danger:hover {
    box-shadow: 
        0 15px 40px rgba(231, 76, 60, 0.4),
        0 3px 10px rgba(0, 0, 0, 0.2);
}

/* 清空数据按钮特殊样式 */
#clear-all-data {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    color: white;
    box-shadow: 
        0 4px 15px rgba(231, 76, 60, 0.3),
        0 1px 3px rgba(0, 0, 0, 0.1);
}

#clear-all-data:hover {
    box-shadow: 
        0 15px 40px rgba(231, 76, 60, 0.4),
        0 3px 10px rgba(0, 0, 0, 0.2);
}

/* 返回主页按钮样式 */
#back-btn {
    background: linear-gradient(135deg, #95a5a6 0%, #7f8c8d 100%);
    color: white;
    box-shadow: 
        0 4px 15px rgba(149, 165, 166, 0.3),
        0 1px 3px rgba(0, 0, 0, 0.1);
}

#back-btn:hover {
    box-shadow: 
        0 15px 40px rgba(149, 165, 166, 0.4),
        0 3px 10px rgba(0, 0, 0, 0.2);
}

.data-hint {
    text-align: center;
    color: #6c757d;
    font-size: 0.9rem;
    margin-top: 8px;
}

.back-container {
    text-align: center;
    margin-top: 30px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .data-grid {
        grid-template-columns: 1fr;
    }
    
    .data-card {
        padding: 20px;
    }
    
    .record-container {
        padding: 20px 15px;
    }
}
}

.today-calories-number {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1;
}

.today-calories-unit {
    font-size: 1.2rem;
    opacity: 0.8;
}

.today-calories-info {
    font-size: 0.9rem;
    opacity: 0.7;
}

/* 详细饮食记录区样式 */
.dietary-records-section {
    margin-top: 30px;
}

.dietary-records-section h3 {
    color: #2e7d32;
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 20px;
    text-align: center;
    position: relative;
    padding-bottom: 10px;
}

.dietary-records-section h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 2px;
    background: linear-gradient(90deg, #4CAF50, #8BC34A);
    border-radius: 1px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .dietary-filter-controls {
        flex-direction: column;
        gap: 10px;
    }
    
    .dietary-filter-controls input[type="date"] {
        width: 100%;
    }
    
    .daily-summary-card {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    .today-calories-number {
        font-size: 2.5rem;
    }
}

.calculation-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.calculation-card {
    background: white;
    border-radius: 15px;
    padding: 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.calculation-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.card-header {
    background: white;
    color: #2c3e50;
    padding: 25px;
    text-align: center;
    border-bottom: 2px solid #e9ecef;
}

.card-header h3 {
    margin: 0 0 8px 0;
    font-size: 1.5rem;
    font-weight: 600;
}

.card-subtitle {
    font-size: 0.9rem;
    opacity: 0.9;
    font-weight: 400;
}

.card-body {
    padding: 30px;
}

.value-display {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
}

.value-number {
    font-size: 3.5rem;
    font-weight: 700;
    color: #2c3e50;
    line-height: 1;
}

.value-unit {
    font-size: 1.2rem;
    color: #6c757d;
    font-weight: 500;
}

.status-display {
    margin-bottom: 25px;
}

.status-text {
    font-size: 1.3rem;
    font-weight: 600;
    padding: 8px 20px;
    border-radius: 25px;
    background: #e9ecef;
    color: #495057;
}

.standard-info {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.standard-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #dee2e6;
}

.standard-range {
    font-weight: 600;
    color: #495057;
}

.standard-label {
    font-weight: 500;
    color: #6c757d;
}

.bmr-description {
    color: #6c757d;
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #28a745;
}

/* BMI状态背景色 */
.bmi-underweight {
    background: linear-gradient(135deg, #cce7ff 0%, #99d6ff 100%);
    border-color: #007bff;
}

.bmi-normal {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    border-color: #28a745;
}

.bmi-overweight {
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
    border-color: #ffc107;
}

.bmi-obese {
    background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
    border-color: #dc3545;
}

/* BMR状态背景色 */
.bmr-low {
    background: linear-gradient(135deg, #cce7ff 0%, #99d6ff 100%);
    border-color: #007bff;
}

.bmr-normal {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    border-color: #28a745;
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .calculator-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .calculation-cards {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .value-number {
        font-size: 3rem;
    }
}

@media (max-width: 768px) {
    .calculator-container {
        padding: 30px 15px;
    }
    
    .input-section {
        padding: 25px 20px;
    }
    
    .card-body {
        padding: 25px 20px;
    }
    
    .value-number {
        font-size: 2.5rem;
    }
    
    .card-header {
        padding: 20px;
    }
    
    .card-header h3 {
        font-size: 1.3rem;
    }
}

@media (max-width: 480px) {
    .calculator-content {
        gap: 20px;
    }
    
    .input-fields {
        gap: 20px;
    }
    
    .calculation-cards {
        gap: 20px;
    }
    
    .value-number {
        font-size: 2rem;
    }
    
    .value-unit {
        font-size: 1rem;
    }
    
    .status-text {
        font-size: 1.1rem;
        padding: 6px 16px;
    }
}

/* ============================================
   个人档案页面特定样式
   ============================================ */

.profile-container {
    text-align: center;
    padding: 40px 20px;
    background: linear-gradient(135deg, #e8f5e9 0%, #f1f8e9 100%);
    min-height: 600px;
    border-radius: 15px;
    position: relative;
    overflow: hidden;
}

.profile-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #4CAF50, #45a049, #8BC34A);
}

.profile-info {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.profile-section {
    background: white;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 
        0 4px 20px rgba(0, 0, 0, 0.08),
        0 1px 3px rgba(0, 0, 0, 0.05);
    text-align: left;
    border: 1px solid rgba(76, 175, 80, 0.1);
}

.profile-section h3 {
    margin: 0 0 20px 0;
    color: #2e7d32;
    font-size: 1.3rem;
    font-weight: 600;
    text-align: center;
    position: relative;
    padding-bottom: 10px;
}

.profile-section h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 2px;
    background: linear-gradient(90deg, #4CAF50, #8BC34A);
    border-radius: 1px;
}

.profile-fields {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.profile-field {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 10px;
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
}

.profile-field:hover {
    background: #ffffff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transform: translateY(-2px);
}

.profile-field label {
    font-weight: 600;
    color: #495057;
    font-size: 0.95rem;
}

.profile-field span {
    font-weight: 500;
    color: #2c3e50;
    font-size: 1rem;
    flex: 1;
    text-align: right;
    margin-left: 10px;
}

.edit-small-btn {
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
    color: white;
    border: none;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    margin-left: 8px;
    flex-shrink: 0;
}

.edit-small-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 2px 8px rgba(76, 175, 80, 0.3);
}

/* 性别选择样式 */
.gender-options {
    display: flex;
    gap: 15px;
    margin-top: 8px;
}

.gender-option {
    flex: 1;
    position: relative;
    cursor: pointer;
}

.gender-option input[type="radio"] {
    display: none;
}

.gender-label {
    display: block;
    padding: 12px 20px;
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    text-align: center;
    font-weight: 500;
    transition: all 0.3s ease;
}

.gender-option input[type="radio"]:checked + .gender-label {
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
    color: white;
    border-color: #4CAF50;
    box-shadow: 0 2px 8px rgba(76, 175, 80, 0.3);
}

.gender-option:hover .gender-label {
    border-color: #4CAF50;
    background: #e8f5e9;
}

/* ============================================
   身材记录页面特定样式
   ============================================ */

/* 身材记录卡片特定样式 */
.body-record-item {
    background: white;
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 0;
    box-shadow: 
        0 4px 20px rgba(0, 0, 0, 0.08),
        0 1px 3px rgba(0, 0, 0, 0.05);
    text-align: left;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    border: 1px solid #e9ecef;
}

/* 身材记录编辑按钮样式 */
.edit-body-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 10;
}

/* 身材记录时间戳特定样式 */
.body-record-time {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: #6c757d;
    font-weight: 700;
    letter-spacing: 0.2px;
    text-transform: uppercase;
    margin-bottom: 20px;
    padding-bottom: 8px;
    border-bottom: 1px solid #f8f9fa;
}

.body-record-time::before {
    content: '📅';
    font-size: 0.9rem;
}

/* 身材数据网格布局 */
.body-record-data {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 15px;
    padding: 0;
}

/* 身材数据字段样式 */
.body-record-field {
    display: flex;
    flex-direction: column;
    background: #f8f9fa;
    padding: 12px;
    border-radius: 6px;
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
    text-align: center;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    min-height: 60px;
}

.body-record-field:hover {
    background: #ffffff;
    transform: translateY(-1px);
    border-color: #4CAF50;
    box-shadow: 0 2px 6px rgba(76, 175, 80, 0.1);
}

/* 身材数据字段标签 */
.body-record-label {
    font-size: 0.7rem;
    color: #868e96;
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    font-weight: 500;
}

/* 身材数据字段值 */
.body-record-value {
    font-size: 1rem;
    font-weight: 600;
    color: #2c3e50;
    margin-top: 4px;
}

/* ============================================
   饮食记录页面特定样式
   ============================================ */

/* 饮食记录卡片特定样式 */
.dietary-record-item {
    background: white;
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 0;
    box-shadow: 
        0 4px 20px rgba(0, 0, 0, 0.08),
        0 1px 3px rgba(0, 0, 0, 0.05);
    text-align: left;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    border: 1px solid #e9ecef;
}

.dietary-record-item:hover {
    transform: translateY(-5px);
    box-shadow: 
        0 15px 48px rgba(0, 0, 0, 0.15),
        0 3px 12px rgba(0, 0, 0, 0.1);
}

/* 饮食记录头部样式 */
.dietary-record-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #f8f9fa;
    position: relative;
}

/* 饮食记录时间戳样式 */
.dietary-record-time {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: #6c757d;
    font-weight: 700;
    letter-spacing: 0.2px;
    text-transform: uppercase;
    flex: 1;
}

/* 编辑按钮样式 */
.edit-dietary-btn {
    margin-left: auto;
    flex-shrink: 0;
}

.dietary-record-time::before {
    content: '📅';
    font-size: 0.9rem;
}

/* 饮食时段标签样式 */
.meal-time-badge {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.meal-time-badge.breakfast {
    background: linear-gradient(135deg, #FF9800 0%, #F57C00 100%);
}

.meal-time-badge.lunch {
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
}

.meal-time-badge.dinner {
    background: linear-gradient(135deg, #2196F3 0%, #1976D2 100%);
}

.meal-time-badge.snack {
    background: linear-gradient(135deg, #9C27B0 0%, #7B1FA2 100%);
}

/* 饮食记录内容样式 */
.dietary-record-content {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* 食物描述样式 */
.food-description {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 10px;
    border-left: 4px solid #4CAF50;
    font-size: 1.1rem;
    line-height: 1.5;
    color: #2c3e50;
    font-style: normal;
}

/* 热量信息样式 */
.calories-info {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 15px;
    background: linear-gradient(135deg, #fff3e0 0%, #ffe0b2 100%);
    border-radius: 10px;
    border: 1px solid #ffcc80;
    margin-bottom: 0;
}

.calories-icon {
    font-size: 1.2rem;
}

.calories-value {
    font-size: 1.1rem;
    font-weight: 700;
    color: #e65100;
    letter-spacing: 0.5px;
}

/* 饮食记录头部信息 */
.dietary-record-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    position: relative;
    flex-wrap: wrap;
    gap: 10px;
}

/* 饮食记录时间戳特定样式 */
.dietary-record-time {
    flex: 1;
    min-width: 120px;
}

/* 时段标签基础样式 */
.meal-time-badge {
    color: white;
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    margin-right: 0;
    z-index: 1;
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
    box-shadow: 0 2px 6px rgba(76, 175, 80, 0.2);
}

/* 早餐标签 - 浅绿色 */
.meal-time-badge.breakfast {
    background: linear-gradient(135deg, #8BC34A 0%, #689F38 100%);
    box-shadow: 0 2px 8px rgba(139, 195, 74, 0.3);
}

/* 午餐标签 - 中绿色 */
.meal-time-badge.lunch {
    background: linear-gradient(135deg, #4CAF50 0%, #388E3C 100%);
    box-shadow: 0 2px 8px rgba(76, 175, 80, 0.3);
}

/* 加餐标签 - 深绿色 */
.meal-time-badge.snack {
    background: linear-gradient(135deg, #388E3C 0%, #2E7D32 100%);
    box-shadow: 0 2px 8px rgba(56, 142, 60, 0.3);
}

/* 晚餐标签 - 暗绿色 */
.meal-time-badge.dinner {
    background: linear-gradient(135deg, #2E7D32 0%, #1B5E20 100%);
    box-shadow: 0 2px 8px rgba(46, 125, 50, 0.3);
}

/* 记录内容 */
.dietary-record-content {
    margin-bottom: 20px;
}

/* 食物描述 */
.food-description {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 12px;
    border-left: 3px solid #4CAF50;
    font-size: 0.9rem;
    line-height: 1.5;
    color: #2c3e50;
}

.food-description:empty {
    display: none;
}

/* 热量信息 */
.calories-info {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #fff3cd;
    padding: 12px 15px;
    border-radius: 8px;
    border: 1px solid #ffeeba;
}

.calories-icon {
    font-size: 1.2rem;
}

.calories-value {
    font-size: 1.1rem;
    font-weight: 700;
    color: #856404;
}

/* 时段选择样式 */
.meal-time-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 15px;
    margin-top: 10px;
}

.meal-option {
    position: relative;
    cursor: pointer;
}

.meal-option input[type="radio"] {
    position: absolute;
    opacity: 0;
}

.meal-label {
    display: block;
    padding: 15px 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 2px solid #dee2e6;
    border-radius: 12px;
    text-align: center;
    font-weight: 600;
    color: #495057;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.meal-option input[type="radio"]:checked + .meal-label {
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
    color: white;
    border-color: #4CAF50;
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.3);
    transform: translateY(-2px);
}

.meal-option:hover .meal-label {
    background: linear-gradient(135deg, #e9ecef 0%, #dee2e6 100%);
    border-color: #adb5bd;
}

.meal-option input[type="radio"]:checked:hover + .meal-label {
    background: linear-gradient(135deg, #45a049 0%, #3d8b40 100%);
}

/* 响应式设计 */

@media (max-width: 768px) {
    .record-container {
        padding: 30px 15px;
    }

    .record-container h2 {
        font-size: 2rem;
    }

    .record-btn {
        padding: 15px 40px;
        font-size: 1.1rem;
    }

    .record-item {
        padding: 25px 20px;
    }

    .body-record-data {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .body-record-field {
        padding: 15px;
    }

    .body-record-value {
        font-size: 1.3rem;
    }

    .dietary-record-header {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }

    .meal-time-options {
        grid-template-columns: repeat(2, 1fr);
    }

    .modal .modal-content {
        width: 95%;
    }

    .modal-header,
    .modal-body,
    .modal-footer {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .record-container {
        padding: 20px 10px;
    }

    .record-container h2 {
        font-size: 1.8rem;
    }

    .record-btn {
        padding: 12px 30px;
        font-size: 1rem;
    }

    .records-list {
        gap: 20px;
    }

    .record-item {
        padding: 20px 15px;
    }

    .body-record-data {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .body-record-field {
        padding: 12px;
    }

    .body-record-value {
        font-size: 1.2rem;
    }

    .meal-time-options {
        grid-template-columns: 1fr;
    }

    .modal-footer {
        flex-direction: column;
        gap: 10px;
    }

    .btn {
        width: 100%;
        padding: 15px;
    }

    .modal-header h3 {
        font-size: 1.2rem;
    }

    .edit-btn {
        top: 15px;
        right: 15px;
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
}
