/* 基础样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: linear-gradient(135deg, #ffeaa7 0%, #fab1a0 50%, #fd79a8 100%);
    color: #2d3436;
    line-height: 1.6;
    padding-bottom: 80px;
    min-height: 100vh;
}

.container {
    max-width: 414px;
    margin: 0 auto;
    background-color: rgba(255, 255, 255, 0.95);
    min-height: 100vh;
    position: relative;
    border-radius: 20px 20px 0 0;
    box-shadow: 0 -5px 30px rgba(0,0,0,0.1);
    backdrop-filter: blur(10px);
}

/* 头部样式 */
.header {
    background: linear-gradient(135deg, #ff9ff3 0%, #f368e0 50%, #ff6b9d 100%);
    color: white;
    padding: 25px 20px;
    text-align: center;
    border-radius: 20px 20px 0 0;
    box-shadow: 0 8px 25px rgba(255, 107, 157, 0.3);
    position: relative;
    overflow: hidden;
    min-height: 80px;
}

.baby-profile {
    display: flex;
    align-items: center;
    gap: 12px;
    position: absolute;
    top: 50%;
    left: 20px;
    transform: translateY(-50%);
    z-index: 10;
}

.baby-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.baby-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.default-avatar {
    font-size: 24px;
    color: rgba(255, 255, 255, 0.8);
}

.baby-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.baby-name {
    font-size: 16px;
    font-weight: 600;
    color: white;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.baby-age {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 400;
}

.header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 100px;
    height: 100px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
}

.header::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    animation: float 8s ease-in-out infinite reverse;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(180deg); }
}

.header h1 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 8px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: relative;
    z-index: 1;
}

.header .date {
    font-size: 16px;
    opacity: 0.95;
    font-weight: 500;
    position: relative;
    z-index: 1;
}

/* 今日统计 */
.today-stats {
    display: flex;
    justify-content: space-around;
    padding: 25px 15px;
    background: linear-gradient(135deg, #fff 0%, #f8f9ff 100%);
    margin: 15px;
    border-radius: 20px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
    border: 1px solid rgba(255, 182, 193, 0.2);
}

.stat-item {
    text-align: center;
    flex: 1;
    position: relative;
}

.stat-item::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 3px;
    background: linear-gradient(90deg, #ff9ff3, #f368e0);
    border-radius: 2px;
    opacity: 0.6;
}

.stat-icon {
    font-size: 28px;
    margin-bottom: 12px;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

.stat-number {
    font-size: 24px;
    font-weight: 800;
    color: #2d3436;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.stat-label {
    font-size: 13px;
    color: #636e72;
    margin-top: 4px;
    font-weight: 500;
}

/* 快速添加按钮 */
.quick-add {
    display: flex;
    justify-content: space-around;
    padding: 0 15px;
    margin: 25px 0;
    gap: 12px;
}

.quick-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 25px 15px;
    background: linear-gradient(135deg, #fff 0%, #ffeaa7 100%);
    border-radius: 25px;
    text-decoration: none;
    color: #2d3436;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    flex: 1;
    position: relative;
    overflow: hidden;
    border: 2px solid transparent;
}

.quick-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.3) 0%, rgba(255,255,255,0.1) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.quick-btn:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
}

.quick-btn:hover::before {
    opacity: 1;
}

.quick-btn .btn-icon {
    font-size: 36px;
    margin-bottom: 12px;
    filter: drop-shadow(0 3px 6px rgba(0,0,0,0.1));
    position: relative;
    z-index: 1;
}

.quick-btn .btn-text {
    font-size: 15px;
    font-weight: 600;
    position: relative;
    z-index: 1;
}

.feeding-btn {
    background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 100%);
    border-color: #ff6b9d;
}

.feeding-btn:hover {
    border-color: #ff6b9d;
    box-shadow: 0 15px 35px rgba(255, 107, 157, 0.3);
}

.diaper-btn {
    background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
    border-color: #00cec9;
}

.diaper-btn:hover {
    border-color: #00cec9;
    box-shadow: 0 15px 35px rgba(0, 206, 201, 0.3);
}

.sleep-btn {
    background: linear-gradient(135deg, #d299c2 0%, #fef9d7 100%);
    border-color: #a29bfe;
}

.sleep-btn:hover {
    border-color: #a29bfe;
    box-shadow: 0 15px 35px rgba(162, 155, 254, 0.3);
}

/* 记录区域 */
.records-section {
    margin: 25px 15px;
}

.records-section h2 {
    font-size: 20px;
    margin-bottom: 18px;
    color: #2d3436;
    font-weight: 700;
    text-align: center;
    position: relative;
}

.records-section h2::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, #ff9ff3, #f368e0);
    border-radius: 2px;
}

.records-list {
    background: linear-gradient(135deg, #fff 0%, #f8f9ff 100%);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
    border: 1px solid rgba(255, 182, 193, 0.2);
    margin-top: 30px;
    padding: 0 20px;
    transform: scale(0.95);
    transform-origin: top center;
}

/* 统计页面样式 */
.stats-content {
    padding: 20px;
    margin-bottom: 80px;
}

.stats-section {
    margin-bottom: 40px;
}

.stats-section h2 {
    color: #333;
    margin-bottom: 20px;
    font-size: 1.2em;
    font-weight: 600;
}

.stats-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

@media (min-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .stats-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.stat-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    border: 1px solid #f0f0f0;
}

.stat-card h3 {
    color: #333;
    margin-bottom: 15px;
    font-size: 1em;
    font-weight: 600;
    text-align: center;
}

.stat-card canvas {
    max-height: 200px;
}

.time-selector {
    display: flex;
    align-items: center;
    gap: 10px;
}

.time-selector label {
    font-size: 14px;
    color: #666;
}

.time-selector select {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: white;
    font-size: 14px;
    color: #333;
    cursor: pointer;
}

.time-selector select:focus {
    outline: none;
    border-color: #4ECDC4;
    box-shadow: 0 0 0 2px rgba(78, 205, 196, 0.2);
}

.growth-btn {
    display: flex;
    align-items: center;
}

.growth-btn button {
    padding: 10px 16px;
    background: linear-gradient(135deg, #4ECDC4, #44A08D);
    color: white;
    border: none;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(78, 205, 196, 0.3);
}

.growth-btn button:hover {
    background: linear-gradient(135deg, #44A08D, #4ECDC4);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(78, 205, 196, 0.4);
}

.growth-btn button:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(78, 205, 196, 0.3);
}

/* 生长发育页面样式 */
.growth-content {
    padding: 20px;
    max-width: 800px;
    margin: 0 auto;
}



.growth-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.growth-options {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

.record-list-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.option-card {
    background: white;
    border-radius: 15px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid #f0f0f0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.option-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    border-color: #4a90e2;
}

.option-card.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-color: #667eea;
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.option-title {
    font-size: 16px;
    font-weight: 600;
    margin: 0;
}

.growth-data {
    position: relative;
}

.data-section {
    display: none;
}

.data-section.active {
    display: block;
}

.data-card {
    background: white;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
    min-height: 300px;
}

.data-card h3 {
    margin: 0 0 20px 0;
    color: #333;
    font-size: 20px;
    font-weight: 600;
}

.no-data {
    text-align: center;
    padding: 40px 20px;
    color: #666;
}

.no-data-icon {
    font-size: 48px;
    margin-bottom: 16px;
    opacity: 0.6;
}

.no-data-text {
    font-size: 16px;
    margin-bottom: 20px;
    color: #999;
}

.bmi-info {
    font-size: 14px;
    color: #666;
    margin-top: 10px;
    font-style: italic;
}

.add-data-btn {
    background: linear-gradient(135deg, #4ECDC4, #44A08D);
    color: white;
    border: none;
    border-radius: 25px;
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(78, 205, 196, 0.3);
    margin-right: 10px;
}

.add-data-btn:hover {
    background: linear-gradient(135deg, #44A08D, #4ECDC4);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(78, 205, 196, 0.4);
}

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

.record-list-btn {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    color: white;
    border: none;
    border-radius: 25px;
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(79, 172, 254, 0.3);
}

.record-list-btn:hover {
    background: linear-gradient(135deg, #00f2fe, #4facfe);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(79, 172, 254, 0.4);
}

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

.back-btn {
    display: flex;
    align-items: center;
}

.back-btn button {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    padding: 8px 16px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.back-btn button:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
}

/* 弹窗样式 */
.modal {
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: white;
    border-radius: 12px;
    width: 90%;
    max-width: 400px;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    animation: modalSlideIn 0.3s ease-out;
}

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

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #eee;
}

.modal-header h3 {
    margin: 0;
    color: #333;
    font-size: 18px;
}

.close {
    font-size: 24px;
    font-weight: bold;
    color: #999;
    cursor: pointer;
    line-height: 1;
}

.close:hover {
    color: #333;
}

.modal-form {
    padding: 20px;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #333;
    font-weight: 500;
    font-size: 14px;
}

.form-group input {
    width: 100%;
    padding: 12px;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s;
    box-sizing: border-box;
}

.form-group input:focus {
    outline: none;
    border-color: #4CAF50;
}

.form-buttons {
    display: flex;
    gap: 12px;
    margin-top: 30px;
}

.btn-cancel, .btn-submit {
    flex: 1;
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-cancel {
    background-color: #f5f5f5;
    color: #666;
}

.btn-cancel:hover {
    background-color: #e9e9e9;
}

.btn-submit {
    background: linear-gradient(135deg, #4CAF50, #45a049);
    color: white;
}

.btn-submit:hover {
    background: linear-gradient(135deg, #45a049, #3d8b40);
    transform: translateY(-1px);
}

/* 响应式设计 */
@media (max-width: 480px) {
    .growth-content {
        padding: 10px;
    }
    
    .growth-options {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .option-card {
        padding: 12px;
    }
    
    .option-title {
        font-size: 14px;
    }
    
    .option-subtitle {
        font-size: 11px;
    }
}

@media (max-width: 768px) {
    .growth-content {
        gap: 15px;
        padding: 15px;
    }
    
    .growth-options {
        grid-template-columns: 1fr 1fr;
    }
    
    .record-list-buttons {
        gap: 10px;
    }
    
    .option-card {
        padding: 15px;
    }
}

/* 记录列表页面样式 */
.record-list-content {
    padding: 20px;
    max-width: 800px;
    margin: 0 auto;
}

.record-summary {
    margin-bottom: 25px;
}

.summary-card {
    background: white;
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border: 1px solid #f0f0f0;
}

.summary-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
    text-align: center;
}

.summary-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.stat-item {
    text-align: center;
    padding: 15px;
    background: linear-gradient(135deg, #f8f9ff 0%, #f0f4ff 100%);
    border-radius: 10px;
    border: 1px solid #e8f0ff;
}

.stat-label {
    font-size: 12px;
    color: #666;
    margin-bottom: 5px;
}

.stat-value {
    font-size: 20px;
    font-weight: 600;
    color: #4a90e2;
}

.bmi-info-section {
    margin-bottom: 25px;
}

.info-card {
    background: linear-gradient(135deg, #fff9e6 0%, #fff3d4 100%);
    border-radius: 15px;
    padding: 20px;
    border: 1px solid #ffe4a3;
}

.info-title {
    font-size: 16px;
    font-weight: 600;
    color: #d4a574;
    margin-bottom: 10px;
}

.info-content {
    color: #8b6914;
    line-height: 1.6;
}

.info-content p {
    margin: 8px 0;
    font-size: 14px;
}

.record-list {
    background: white;
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border: 1px solid #f0f0f0;
}

.list-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #f0f0f0;
}

.list-header h3 {
    margin: 0;
    font-size: 18px;
    color: #333;
}

.add-record-btn {
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 20px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(76, 175, 80, 0.3);
}

.add-record-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.4);
}

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

.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: #999;
}

.empty-icon {
    font-size: 48px;
    margin-bottom: 15px;
}

.empty-text {
    font-size: 18px;
    font-weight: 500;
    margin-bottom: 8px;
    color: #666;
}

.empty-subtitle {
    font-size: 14px;
    color: #999;
    line-height: 1.5;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .record-list-content {
        padding: 15px;
    }
    
    .summary-stats {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .list-header {
        flex-direction: column;
        gap: 15px;
        align-items: stretch;
    }
    
    .add-record-btn {
        width: 100%;
    }
}

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

.header-content h1 {
    margin: 0;
    color: #333;
    font-size: 1.5em;
}

/* 统计页面选项卡样式 */
.stats-tabs {
    display: flex;
    margin: 20px 0;
    border-bottom: 2px solid #f0f0f0;
}

.tab-btn {
    background: none;
    border: none;
    padding: 12px 24px;
    font-size: 16px;
    color: #666;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
}

.tab-btn:hover {
    color: #4CAF50;
    background-color: #f8f9fa;
}

.tab-btn.active {
    color: #4CAF50;
    border-bottom-color: #4CAF50;
    font-weight: bold;
}

.tab-content {
    display: none;
}

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

/* 子选项卡样式 */
.sub-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    border-bottom: 1px solid #e0e0e0;
    padding-bottom: 10px;
}

.sub-tab-btn {
    background: none;
    border: none;
    padding: 8px 16px;
    cursor: pointer;
    border-radius: 20px;
    font-size: 14px;
    color: #666;
    transition: all 0.3s ease;
}

.sub-tab-btn:hover {
    background-color: #f0f0f0;
    color: #333;
}

.sub-tab-btn.active {
    background-color: #4CAF50;
    color: white;
    font-weight: bold;
}

/* 子内容样式 */
.sub-content {
    display: none;
}

.sub-content.active {
    display: block;
}

/* 统计网格布局 */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

/* 统计卡片样式优化 */
.stat-card {
    background: white;
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    border: 1px solid #e0e0e0;
    min-height: 400px;
    width: 100%;
}

.stat-card h3 {
    margin: 0 0 15px 0;
    color: #333;
    font-size: 16px;
    text-align: center;
}

.stat-card canvas {
    width: 100% !important;
    height: 450px !important;
}

/* 无记录状态 */
.no-records {
    text-align: center;
    padding: 50px 25px;
    color: #636e72;
}



.no-records-icon {
    font-size: 64px;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #ff9ff3, #f368e0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 3px 6px rgba(0,0,0,0.1));
    animation: gentle-bounce 3s ease-in-out infinite;
}

@keyframes gentle-bounce {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.no-records-text {
    font-size: 18px;
    margin-bottom: 8px;
    font-weight: 600;
    color: #2d3436;
}

.no-records-sub {
    font-size: 15px;
    color: #636e72;
    font-weight: 500;
    opacity: 0.8;
}

/* 记录项 */
.record-item {
    display: flex;
    align-items: center;
    padding: 18px 25px;
    border-bottom: 1px solid rgba(255, 182, 193, 0.1);
    transition: all 0.3s ease;
    position: relative;
}

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

.record-item:hover {
    background: linear-gradient(135deg, rgba(255, 159, 243, 0.05) 0%, rgba(243, 104, 224, 0.05) 100%);
    transform: translateX(5px);
}

.record-time {
    font-size: 15px;
    color: #636e72;
    font-weight: 600;
    min-width: 55px;
    max-width: 80px;
    margin-right: 15px;
    margin-left: -5px;
    background: linear-gradient(135deg, #ff9ff3, #f368e0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex-shrink: 0;
}

.next-feeding-time {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(0, 123, 255, 0.1);
    color: #007bff;
    font-size: 10px;
    padding: 4px 6px;
    border-radius: 6px;
    text-align: center;
    line-height: 1.2;
    border: 1px solid rgba(0, 123, 255, 0.2);
    backdrop-filter: blur(4px);
    font-weight: 500;
    z-index: 10;
}

.record-content {
    display: flex;
    align-items: center;
    flex: 1;
}

.record-icon {
    font-size: 24px;
    margin-right: 15px;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

.record-details {
    flex: 1;
}

.record-title {
    font-size: 16px;
    font-weight: 600;
    color: #2d3436;
    margin-bottom: 4px;
}

.record-subtitle {
    font-size: 14px;
    color: #636e72;
    font-weight: 500;
}

/* 记录类型颜色 */
.feeding-record {
    border-left: 5px solid #ff9a9e;
    background: linear-gradient(90deg, rgba(255, 154, 158, 0.1) 0%, transparent 20%);
}

.diaper-record {
    border-left: 5px solid #a8edea;
    background: linear-gradient(90deg, rgba(168, 237, 234, 0.1) 0%, transparent 20%);
}

.sleep-record {
    border-left: 5px solid #d299c2;
    background: linear-gradient(90deg, rgba(210, 153, 194, 0.1) 0%, transparent 20%);
}

/* 底部导航 */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 414px;
    background: linear-gradient(135deg, rgba(255,255,255,0.95) 0%, rgba(248,249,255,0.95) 100%);
    display: flex;
    justify-content: center;
    gap: 20px;
    padding: 15px 20px 20px 20px;
    box-shadow: 0 -8px 25px rgba(0,0,0,0.1);
    border-top: 2px solid rgba(255, 182, 193, 0.3);
    backdrop-filter: blur(10px);
    border-radius: 25px 25px 0 0;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #636e72;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    padding: 8px 15px;
    border-radius: 15px;
    position: relative;
}

.nav-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #ff9ff3 0%, #f368e0 100%);
    border-radius: 15px;
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.3s ease;
}

.nav-item.active {
    color: white;
    transform: translateY(-2px);
}

.nav-item.active::before {
    opacity: 1;
    transform: scale(1);
}

.nav-item:hover {
    color: #ff6b9d;
    transform: translateY(-1px);
}

.nav-item.add-btn {
    background: #667eea;
    color: white;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    margin: -10px auto 0;
    justify-content: center;
    align-items: center;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.nav-item.add-btn .nav-icon {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 0;
}

.nav-icon {
    font-size: 22px;
    margin-bottom: 6px;
    position: relative;
    z-index: 1;
    filter: drop-shadow(0 1px 2px rgba(0,0,0,0.1));
}

.nav-text {
    font-size: 11px;
    font-weight: 600;
    position: relative;
    z-index: 1;
}

/* 表单样式 */
.form-container {
    padding: 20px;
}

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

.form-label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #333;
    margin-bottom: 8px;
}

.form-input, .form-select, .form-textarea {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid rgba(255, 182, 193, 0.3);
    border-radius: 20px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: linear-gradient(135deg, #fff 0%, #fef9ff 100%);
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
    outline: none;
    border-color: #ff9ff3;
    box-shadow: 0 6px 20px rgba(255, 159, 243, 0.2);
    transform: translateY(-1px);
}

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

/* 按钮样式 */
.btn {
    display: inline-block;
    padding: 15px 30px;
    background: linear-gradient(135deg, #ff9ff3 0%, #f368e0 100%);
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-align: center;
    width: 100%;
    box-shadow: 0 8px 25px rgba(255, 107, 157, 0.3);
    position: relative;
    overflow: hidden;
}

.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.6s ease;
}

.btn:hover {
    background: linear-gradient(135deg, #f368e0 0%, #ff6b9d 100%);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 12px 35px rgba(255, 107, 157, 0.4);
}

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

.btn-secondary {
    background: linear-gradient(135deg, #ddd6fe 0%, #e0e7ff 100%);
    color: #5b21b6;
    box-shadow: 0 8px 25px rgba(139, 92, 246, 0.2);
}

.btn-secondary:hover {
    background: linear-gradient(135deg, #c4b5fd 0%, #ddd6fe 100%);
    box-shadow: 0 12px 35px rgba(139, 92, 246, 0.3);
}

/* 响应式设计 */
@media (max-width: 375px) {
    .container {
        max-width: 100%;
    }
    
    .header {
        padding: 15px;
    }
    
    .today-stats {
        margin: 5px;
        padding: 15px;
    }
    
    .quick-add {
        padding: 0 15px;
    }
    
    .records-section {
        margin: 15px;
    }
}

/* 加载动画 */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 成功/错误消息 */
.message {
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
}

.message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* 时间选择器样式 */
.time-picker {
    display: flex;
    gap: 10px;
    align-items: center;
}

.time-picker select {
    flex: 1;
    padding: 8px 12px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    font-size: 16px;
}

/* 类型选择按钮 */
.type-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.type-btn {
    flex: 1;
    min-width: 80px;
    padding: 10px 16px;
    border: 2px solid #e0e0e0;
    background: white;
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.type-btn.active {
    border-color: #667eea;
    background: #667eea;
    color: white;
}

.type-btn:hover {
    border-color: #667eea;
}

/* 尿布记录图片样式 */
.diaper-thumbnail {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    flex-shrink: 0;
    margin-left: 8px;
}

.diaper-thumbnail:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.diaper-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

/* 资料修改表单样式 */
.profile-avatar {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    margin-bottom: 15px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.avatar-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-edit-section {
    background: white;
    border-radius: 15px;
    padding: 20px;
    margin: 20px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.profile-edit-section h3 {
    color: #333;
    margin-bottom: 20px;
    font-size: 18px;
    font-weight: 600;
}

.profile-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.form-group label {
    font-weight: 500;
    color: #555;
    font-size: 14px;
}

.form-group input[type="text"],
.form-group input[type="date"],
.form-group input[type="file"] {
    padding: 12px;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

.form-group input[type="text"]:focus,
.form-group input[type="date"]:focus {
    outline: none;
    border-color: #ff9a9e;
    box-shadow: 0 0 0 3px rgba(255, 154, 158, 0.1);
}

.form-group small {
    color: #888;
    font-size: 12px;
}

.btn-save {
    background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 100%);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    margin-top: 10px;
}

.btn-save:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(255, 154, 158, 0.3);
}

/* 记录项样式 */
.record-item {
    background: white;
    border-radius: 12px;
    padding: 12px;
    margin-bottom: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    border-left: 4px solid #3498db;
    transition: all 0.3s ease;
}

/* 记录备注样式 - 单独一行显示 */
.record-notes {
    display: block;
    width: 100%;
    margin-top: 4px;
    padding-top: 4px;
    font-size: 13px;
    color: #666;
    font-style: italic;
    line-height: 1.2;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

/* 喂养量样式 - 单独一行显示 */
.record-amount {
    display: block;
    width: 100%;
    margin-top: 4px;
    font-size: 14px;
    color: #4a90e2;
    font-weight: 600;
    line-height: 1.2;
}

/* 尿布类型样式 - 单独一行显示 */
.record-diaper-type {
    display: block;
    width: 100%;
    margin-top: 4px;
    font-size: 14px;
    color: #00cec9;
    font-weight: 600;
    line-height: 1.2;
}

/* 体温样式 - 单独一行显示 */
.record-temperature {
    display: block;
    width: 100%;
    margin-top: 4px;
    font-size: 14px;
    color: #e74c3c;
    font-weight: 600;
    line-height: 1.2;
}

/* 体温状态样式 - 单独一行显示 */
.record-status {
    display: block;
    width: 100%;
    margin-top: 4px;
    font-size: 14px;
    color: #f39c12;
    font-weight: 600;
    line-height: 1.2;
}

/* 用药记录样式 - 单独一行显示 */
.record-medication {
    display: block;
    width: 100%;
    margin-top: 4px;
    font-size: 14px;
    color: #9b59b6;
    font-weight: 600;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.record-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.record-date {
    font-size: 14px;
    color: #7f8c8d;
    margin-bottom: 8px;
    font-weight: 500;
}

.record-details {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.record-value {
    background: #f8f9fa;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 14px;
    color: #2c3e50;
    font-weight: 500;
}

.record-value:first-child {
    background: #e3f2fd;
    color: #1976d2;
}

.record-value:nth-child(2) {
    background: #f3e5f5;
    color: #7b1fa2;
}

.record-value:nth-child(3) {
    background: #e8f5e8;
    color: #388e3c;
}

.message {
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 15px;
    font-size: 14px;
}

.message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* 图片模态框样式 */
.image-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.image-modal-content {
    position: relative;
    margin: auto;
    padding: 20px;
    width: 90%;
    max-width: 500px;
    top: 50%;
    transform: translateY(-50%);
    text-align: center;
}

.image-modal-content img {
    max-width: 100%;
    max-height: 80vh;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.image-modal-close {
    position: absolute;
    top: 10px;
    right: 25px;
    color: white;
    font-size: 35px;
    font-weight: bold;
    cursor: pointer;
    z-index: 1001;
}

.image-modal-close:hover {
    opacity: 0.7;
}

/* 添加功能菜单模态框样式 */
.add-menu-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    justify-content: center;
    align-items: center;
}

.add-menu-content {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    width: 90%;
    max-width: 380px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    animation: menuSlideIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

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

.add-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px 15px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.add-menu-header h3 {
    margin: 0;
    color: #2d3436;
    font-size: 18px;
    font-weight: 600;
}

.add-menu-close {
    font-size: 24px;
    font-weight: bold;
    color: #636e72;
    cursor: pointer;
    line-height: 1;
    transition: color 0.3s ease;
}

.add-menu-close:hover {
    color: #2d3436;
}

.add-menu-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    padding: 20px 25px 25px;
}

.menu-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 15px 10px;
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.menu-item:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.menu-item:active {
    transform: translateY(0);
}

.menu-icon {
    font-size: 28px;
    margin-bottom: 8px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.menu-text {
    font-size: 12px;
    color: #2d3436;
    font-weight: 500;
    text-align: center;
    line-height: 1.2;
}

/* 记录链接样式 */
.record-link {
    text-decoration: none !important;
    color: inherit;
    display: block;
}

/* 日历页面图例点样式 */
.legend-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
    margin-right: 8px;
}

.feeding-dot {
    background-color: #ff9a9e;
}

.diaper-dot {
    background-color: #a8edea;
}

.sleep-dot {
    background-color: #d299c2;
}

.temperature-dot {
    background-color: #e74c3c;
}

.medication-dot {
    background-color: #9b59b6;
}

/* 疫苗记录样式 */
.vaccine-type {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: bold;
    margin-top: 5px;
}

.type-required {
    background-color: #ff4757;
    color: white;
}

.type-optional {
    background-color: #3742fa;
    color: white;
}

.alternative-info {
    font-size: 12px;
    color: #666;
    background-color: #f8f9fa;
    padding: 4px 8px;
    border-radius: 8px;
    margin: 4px 0;
    border-left: 3px solid #17a2b8;
}

/* 移动端适配 */
@media (max-width: 480px) {
    .add-menu-content {
        width: 95%;
        max-width: none;
    }
    
    .add-menu-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
        padding: 15px 20px 20px;
    }
    
    .menu-item {
        padding: 12px 8px;
    }
    
    .menu-icon {
        font-size: 24px;
        margin-bottom: 6px;
    }
    
    .menu-text {
        font-size: 11px;
    }
}