* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ====================
   毛玻璃效果开关
   ==================== */

/* 开关样式 */
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 26px;
    margin: 0 10px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .3s;
    border-radius: 26px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .3s;
    border-radius: 50%;
}

.toggle-switch input:checked + .toggle-slider {
    background-color: #4CAF50;
}

.toggle-switch input:checked + .toggle-slider:before {
    transform: translateX(24px);
}

/* 外观设置行 */
.appearance-setting-row {
    display: flex;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid rgba(200, 200, 200, 0.3);
}

.appearance-label {
    flex: 1;
    font-size: 14px;
    color: #333;
}

.appearance-value {
    font-size: 13px;
    color: #666;
    min-width: 40px;
    text-align: right;
}

/* ====================
   功能模块显示设置
   ==================== */

.module-visibility-settings {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

.module-visibility-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 15px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.module-visibility-item:hover {
    background: rgba(255, 255, 255, 0.7);
    transform: translateX(3px);
}

.module-visibility-label {
    font-size: 14px;
    color: #333;
    font-weight: 500;
}

.module-visibility-save-btn {
    width: 100%;
    margin-top: 15px;
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 600;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    position: relative;
    overflow: hidden;
}

.module-visibility-save-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.5);
}

.module-visibility-save-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(102, 126, 234, 0.4);
}

.module-visibility-save-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;
}

.module-visibility-save-btn:hover::before {
    left: 100%;
}

/* 隐藏的标签样式 */
.tab.hidden {
    display: none !important;
}

/* 禁用毛玻璃效果 */
body.no-glass .container,
body.no-glass header,
body.no-glass .medicine-card,
body.no-glass .add-btn,
body.no-glass .tab,
body.no-glass .settings-section,
body.no-glass input,
body.no-glass select,
body.no-glass textarea,
body.no-glass .countdown-display,
body.no-glass .stat-card,
body.no-glass .today-records-section,
body.no-glass .today-photos-section,
body.no-glass .measurements-section,
body.no-glass .water-progress-card,
body.no-glass .water-quick-btn,
body.no-glass .mood-summary-card,
body.no-glass .beauty-section,
body.no-glass .beauty-card,
body.no-glass .inventory-item,
body.no-glass .photo-upload-area,
body.no-glass .compare-modal-content,
body.no-glass .share-header,
body.no-glass .share-stat-card,
body.no-glass .share-timeline {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    background: rgba(255, 255, 255, 0.5) !important;
}

/* 弹窗始终保持毛玻璃效果 */
body.no-glass .modal-content,
body.no-glass .medicine-modal-content {
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    background: rgba(255, 255, 255, 0.8) !important;
}

/* 关闭按钮在毛玻璃禁用时的样式 */
body.no-glass .modal-close-btn {
    background: rgba(0, 0, 0, 0.1) !important;
}

body.no-glass .modal-close-btn:hover {
    background: rgba(0, 0, 0, 0.15) !important;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-image: url('1.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    height: 100vh;
    padding: 20px;
    overflow: hidden;
}

.main-wrapper {
    display: flex;
    gap: 20px;
    max-width: 1100px;
    margin: 0 auto;
    align-items: flex-start;
    height: calc(100vh - 40px);
}

.container {
    flex: 1;
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(200, 200, 200, 0.5);
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    max-height: calc(100vh - 40px);
}

.container.side-panel {
    max-width: 500px;
}

/* 倒计时区域（在左侧卡片内） */
.countdown-section {
    padding: 0;
}

.countdown-title {
    font-size: 1.1rem;
    color: #333;
    margin-bottom: 15px;
    text-align: center;
}

.countdown-grid {
    display: flex;
    gap: 15px;
}

.countdown-grid .countdown-card {
    flex: 1;
    background: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(200, 200, 200, 0.5);
    border-radius: 15px;
    padding: 15px;
}

header {
    background: rgba(255, 255, 255, 0.55);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(200, 200, 200, 0.4);
    color: #333;
    padding: 25px 20px;
    text-align: center;
}

header h1 {
    font-size: 24px;
    font-weight: 600;
}

.today-date {
    margin-top: 8px;
    opacity: 0.9;
    font-size: 14px;
}

/* 正倒计时样式 */
.day-counter {
    margin-top: 12px;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: #555;
    transition: all 0.3s ease;
}

.day-counter:hover {
    background: rgba(255, 255, 255, 0.6);
    transform: translateY(-1px);
}

.day-counter-icon {
    font-size: 16px;
}

.day-counter-text {
    font-weight: 500;
}

.day-counter-number {
    font-size: 18px;
    font-weight: 700;
    color: #4CAF50;
    min-width: 20px;
    text-align: center;
}

.day-counter-edit {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 12px;
    padding: 2px 4px;
    margin-left: 4px;
    opacity: 0.6;
    transition: opacity 0.2s;
}

.day-counter-edit:hover {
    opacity: 1;
}

/* 正倒计时弹窗样式 */
.day-counter-setting {
    margin: 20px 0;
}

.day-counter-setting label {
    display: block;
    font-size: 14px;
    color: #666;
    margin-bottom: 10px;
}

.day-counter-date-input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid rgba(200, 200, 200, 0.5);
    border-radius: 10px;
    font-size: 15px;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    outline: none;
    transition: all 0.2s;
}

.day-counter-date-input:focus {
    border-color: #4CAF50;
    background: rgba(255, 255, 255, 0.8);
}

.day-counter-hint {
    font-size: 12px;
    color: #999;
    margin-top: 8px;
}

.day-counter-preview {
    padding: 15px;
    background: rgba(76, 175, 80, 0.1);
    border-radius: 10px;
    text-align: center;
    font-size: 14px;
    color: #555;
}

.day-counter-preview-text {
    font-weight: 600;
    color: #4CAF50;
}

/* 正倒计时弹窗表单样式 */
.day-counter-form {
    margin: 15px 0;
}

.day-counter-form-row {
    margin-bottom: 18px;
}

.day-counter-form-row label {
    display: block;
    font-size: 14px;
    color: #666;
    margin-bottom: 10px;
    font-weight: 500;
}

.day-counter-icon-options {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.icon-option {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    background: rgba(255, 255, 255, 0.5);
    border: 2px solid rgba(200, 200, 200, 0.3);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s;
}

.icon-option:hover {
    background: rgba(255, 255, 255, 0.8);
    transform: scale(1.1);
}

.icon-option.selected {
    background: rgba(76, 175, 80, 0.2);
    border-color: #4CAF50;
    transform: scale(1.1);
}

.day-counter-text-input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid rgba(200, 200, 200, 0.5);
    border-radius: 10px;
    font-size: 15px;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    outline: none;
    transition: all 0.2s;
}

.day-counter-text-input:focus {
    border-color: #4CAF50;
    background: rgba(255, 255, 255, 0.8);
}

/* 设置页面区块样式 */
.settings-section {
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    margin-bottom: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
    padding: 0;
}

.settings-section:hover {
    background: rgba(255, 255, 255, 0.5);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

/* 设置页面折叠样式 */
.settings-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    padding: 16px 20px;
    background: rgba(255, 255, 255, 0.3);
    transition: all 0.2s;
}

.settings-section-header:hover {
    background: rgba(255, 255, 255, 0.5);
}

.settings-section-header h4 {
    margin: 0;
    font-size: 15px;
    font-weight: 600;
    color: #444;
    display: flex;
    align-items: center;
    gap: 8px;
}

.settings-toggle-icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: #888;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.settings-section-header:hover .settings-toggle-icon {
    background: rgba(255, 255, 255, 0.9);
    color: #666;
}

.settings-section-header.collapsed .settings-toggle-icon {
    transform: rotate(-90deg);
}

.settings-section-content {
    overflow: hidden;
    transition: max-height 0.3s ease, opacity 0.3s ease, padding 0.3s ease;
    max-height: 2000px;
    opacity: 1;
    padding: 20px;
}

.settings-section-content.collapsed {
    max-height: 0;
    opacity: 0;
    padding: 0 20px;
}

/* 设置页面正倒计时样式 */
.day-counter-setting-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.6);
}

.day-counter-current {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    flex-wrap: wrap;
}

.day-counter-label {
    color: #777;
    font-weight: 500;
}

.day-counter-value {
    font-weight: 600;
    color: #4CAF50;
    background: rgba(76, 175, 80, 0.15);
    padding: 8px 14px;
    border-radius: 20px;
    font-size: 14px;
    border: 1px solid rgba(76, 175, 80, 0.2);
}

.day-counter-settings-btn {
    padding: 10px 18px;
    font-size: 13px;
    border-radius: 10px;
    font-weight: 500;
    box-shadow: 0 2px 8px rgba(76, 175, 80, 0.3);
    transition: all 0.2s;
}

.day-counter-settings-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.4);
}

.settings-section-desc {
    color: #777;
    font-size: 13px;
    margin-bottom: 18px;
    line-height: 1.5;
}

/* Tabs */
.tabs {
    display: flex;
    border-bottom: 1px solid rgba(200, 200, 200, 0.4);
}

.tab {
    flex: 1;
    padding: 15px;
    border: none;
    background: none;
    font-size: 14px;
    color: #666;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
}

.tab.active {
    color: #333;
    font-weight: 600;
}

.tab.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 40%;
    height: 3px;
    background: linear-gradient(90deg, transparent 0%, rgba(120, 120, 120, 0.6) 20%, rgba(80, 80, 80, 0.8) 50%, rgba(120, 120, 120, 0.6) 80%, transparent 100%);
    border-radius: 3px 3px 0 0;
    box-shadow: 0 -2px 8px rgba(255, 255, 255, 0.4);
}

/* Tab Content */
.tab-content {
    display: none;
    padding: 15px;
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
}

.tab-content.active {
    display: block;
}

/* 左侧卡片的内容区域默认隐藏，通过active类显示 */
.container:not(.side-panel) .tab-content {
    display: none;
}

.container:not(.side-panel) .tab-content.active {
    display: block;
}

/* ========== 主页样式 ========== */
.home-section {
    padding: 10px 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.home-section .smart-card {
    margin-bottom: 0;
}

/* 手机端主页改为单列布局 */
@media (max-width: 768px) {
    .home-section {
        grid-template-columns: 1fr;
        gap: 10px;
        padding: 8px 0;
    }
    
    .home-section .smart-card {
        grid-column: span 1;
    }
}

.smart-card {
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 16px;
    padding: 12px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    min-width: 0;
}

.smart-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
    background: rgba(255, 255, 255, 0.6);
}

.smart-card:active {
    transform: translateY(0);
}

/* 药物打卡卡片 */
.smart-card-medicine {
    border-left: 4px solid #4CAF50;
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.1) 0%, rgba(255, 255, 255, 0.6) 100%);
}

.smart-card-medicine:hover {
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.15) 0%, rgba(255, 255, 255, 0.7) 100%);
    box-shadow: 0 6px 20px rgba(76, 175, 80, 0.15);
}

.smart-card-medicine .smart-card-icon {
    background: linear-gradient(135deg, #4CAF50 0%, #81C784 100%);
    box-shadow: 0 2px 8px rgba(76, 175, 80, 0.3);
}

.smart-card-medicine .smart-title-main {
    color: #2E7D32;
}

/* 喝水打卡卡片 */
.smart-card-water {
    border-left: 4px solid #2196F3;
    background: linear-gradient(135deg, rgba(33, 150, 243, 0.1) 0%, rgba(255, 255, 255, 0.6) 100%);
}

.smart-card-water:hover {
    background: linear-gradient(135deg, rgba(33, 150, 243, 0.15) 0%, rgba(255, 255, 255, 0.7) 100%);
    box-shadow: 0 6px 20px rgba(33, 150, 243, 0.15);
}

.smart-card-water .smart-card-icon {
    background: linear-gradient(135deg, #2196F3 0%, #64B5F6 100%);
    box-shadow: 0 2px 8px rgba(33, 150, 243, 0.3);
}

.smart-card-water .smart-title-main {
    color: #1565C0;
}

.smart-progress-ring.water-ring {
    background: conic-gradient(
        #2196F3 calc(var(--progress) * 3.6deg),
        rgba(0, 0, 0, 0.08) calc(var(--progress) * 3.6deg)
    );
}

.smart-progress-ring.water-ring .smart-progress-text {
    color: #2196F3;
}

.smart-water-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.smart-water-btn {
    padding: 8px 16px;
    border: 1px solid rgba(33, 150, 243, 0.3);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.7);
    color: #2196F3;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.smart-water-btn:hover {
    background: #2196F3;
    color: white;
    transform: scale(1.05);
}

.smart-water-btn:active {
    transform: scale(0.95);
}

/* 心情打卡卡片 */
.smart-card-mood {
    border-left: 4px solid #FF9800;
    background: linear-gradient(135deg, rgba(255, 152, 0, 0.1) 0%, rgba(255, 255, 255, 0.6) 100%);
}

.smart-card-mood:hover {
    background: linear-gradient(135deg, rgba(255, 152, 0, 0.15) 0%, rgba(255, 255, 255, 0.7) 100%);
    box-shadow: 0 6px 20px rgba(255, 152, 0, 0.15);
}

.smart-card-mood .smart-card-icon {
    background: linear-gradient(135deg, #FF9800 0%, #FFB74D 100%);
    box-shadow: 0 2px 8px rgba(255, 152, 0, 0.3);
}

.smart-card-mood .smart-title-main {
    color: #E65100;
}

/* 待办卡片 */
.smart-card-todo {
    border-left: 4px solid #9C27B0;
    background: linear-gradient(135deg, rgba(156, 39, 176, 0.1) 0%, rgba(255, 255, 255, 0.6) 100%);
}

.smart-card-todo:hover {
    background: linear-gradient(135deg, rgba(156, 39, 176, 0.15) 0%, rgba(255, 255, 255, 0.7) 100%);
    box-shadow: 0 6px 20px rgba(156, 39, 176, 0.15);
}

.smart-card-todo .smart-card-icon {
    background: linear-gradient(135deg, #9C27B0 0%, #CE93D8 100%);
    box-shadow: 0 2px 8px rgba(156, 39, 176, 0.3);
}

.smart-card-todo .smart-title-main {
    color: #7B1FA2;
}

.smart-todo-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.smart-todo-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 10px;
    font-size: 13px;
}

.smart-todo-priority {
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 11px;
    color: white;
    font-weight: 500;
    flex-shrink: 0;
}

.smart-todo-text {
    color: #333;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.smart-more-todo {
    text-align: center;
    font-size: 12px;
    color: #888;
    padding: 4px 0;
}

/* 倒计时卡片 */
.smart-card-countdown {
    border-left: 4px solid #607D8B;
    background: linear-gradient(135deg, rgba(96, 125, 139, 0.08) 0%, rgba(255, 255, 255, 0.5) 100%);
}

.smart-card-countdown:hover {
    background: linear-gradient(135deg, rgba(96, 125, 139, 0.12) 0%, rgba(255, 255, 255, 0.6) 100%);
}

.smart-countdown-close {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: none;
    background: rgba(244, 67, 54, 0.1);
    color: #f44336;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.smart-countdown-close:hover {
    background: #f44336;
    color: white;
    transform: scale(1.1);
}

.smart-countdown-display {
    display: flex;
    justify-content: center;
    padding: 10px 0;
}

.smart-countdown-ring {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: conic-gradient(
        #607D8B calc(var(--progress) * 3.6deg),
        rgba(0, 0, 0, 0.08) calc(var(--progress) * 3.6deg)
    );
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.smart-countdown-ring::before {
    content: '';
    position: absolute;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
}

.smart-countdown-time-large {
    position: relative;
    font-size: 24px;
    font-weight: 700;
    color: #607D8B;
    font-family: 'Courier New', monospace;
    letter-spacing: 2px;
}

.smart-countdown-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.smart-countdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 12px;
    font-size: 14px;
}

.smart-countdown-icon {
    font-size: 18px;
}

.smart-countdown-name {
    flex: 1;
    color: #333;
    font-weight: 500;
}

.smart-countdown-time {
    color: #f44336;
    font-weight: 600;
    font-size: 13px;
    font-family: monospace;
}

/* 完成卡片 */
.smart-card-done {
    border-left: 4px solid #4CAF50;
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.08) 0%, rgba(255, 255, 255, 0.5) 100%);
    cursor: default;
}

/* 时间卡片 */
.smart-card-time {
    border-left: 4px solid #FF9800;
    background: linear-gradient(135deg, rgba(255, 152, 0, 0.12) 0%, rgba(255, 255, 255, 0.6) 100%);
    cursor: default;
    min-width: 0;
    padding: 10px;
    grid-column: span 2;
}

/* 手机端时间卡片改为单列 */
@media (max-width: 768px) {
    .smart-card-time {
        grid-column: span 2;
    }
    
    .smart-time-hours,
    .smart-time-minutes {
        font-size: 48px;
    }
    
    .smart-time-separator {
        font-size: 40px;
    }
    
    .smart-time-seconds {
        font-size: 24px;
    }
}

.smart-card-time:hover {
    transform: none;
    box-shadow: 0 4px 20px rgba(255, 152, 0, 0.15);
}

.smart-card-time .smart-card-header {
    margin-bottom: 6px;
    gap: 6px;
}

.smart-card-time .smart-card-icon {
    width: 32px;
    height: 32px;
    font-size: 16px;
    border-radius: 8px;
    background: linear-gradient(135deg, #FF9800 0%, #FFB74D 100%);
    box-shadow: 0 2px 8px rgba(255, 152, 0, 0.3);
}

.smart-card-time .smart-title-main {
    font-size: 13px;
    font-weight: 600;
    color: #E65100;
}

.smart-card-time .smart-title-sub {
    font-size: 11px;
    color: #888;
}

.smart-time-display {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 4px;
    padding: 16px 8px;
    font-family: 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 16px;
    margin-top: 8px;
}

.smart-time-hours,
.smart-time-minutes {
    font-size: 72px;
    font-weight: 700;
    color: #333;
    line-height: 1;
    font-variant-numeric: tabular-nums;
    letter-spacing: -2px;
}

.smart-time-separator {
    font-size: 60px;
    font-weight: 300;
    color: #FF9800;
    animation: blink 1s infinite;
    line-height: 1;
    margin: 0 4px;
}

.smart-time-seconds {
    font-size: 32px;
    font-weight: 600;
    color: #FF9800;
    margin-left: 6px;
    line-height: 1;
    font-variant-numeric: tabular-nums;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

.smart-card-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.smart-card-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    background: rgba(255, 255, 255, 0.8);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    flex-shrink: 0;
}

.smart-card-icon.done-icon {
    background: linear-gradient(135deg, #9C27B0 0%, #E1BEE7 100%);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.smart-card-title {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
    overflow: hidden;
}

.smart-title-main {
    font-size: 15px;
    font-weight: 600;
    color: #333;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.smart-title-main.done {
    color: #9C27B0;
}

.smart-title-sub {
    font-size: 11px;
    color: #666;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.smart-card-progress {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.smart-progress-ring {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: conic-gradient(
        #4CAF50 calc(var(--progress) * 3.6deg),
        rgba(0, 0, 0, 0.08) calc(var(--progress) * 3.6deg)
    );
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.smart-progress-ring::before {
    content: '';
    position: absolute;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
}

.smart-progress-text {
    position: relative;
    font-size: 10px;
    font-weight: 600;
    color: #4CAF50;
}

.smart-card-body {
    margin-bottom: 10px;
}

.smart-hint {
    font-size: 13px;
    color: #555;
    margin-bottom: 10px;
    line-height: 1.5;
}

.smart-hint strong {
    color: #E53935;
    font-weight: 600;
}

.smart-hint.done-text {
    color: #9C27B0;
    font-size: 14px;
    text-align: center;
    margin-bottom: 0;
}

.smart-medicine-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.smart-medicine-item {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid var(--medicine-color, #ddd);
    color: var(--medicine-color, #666);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.smart-more {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    color: #888;
    background: rgba(0, 0, 0, 0.04);
}

.smart-slot-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.smart-slot-badge {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(255, 152, 0, 0.3);
    color: #666;
    display: flex;
    align-items: center;
    gap: 4px;
}

.smart-slot-badge.current {
    background: rgba(255, 152, 0, 0.15);
    border-color: #FF9800;
    color: #FF9800;
    font-weight: 500;
}

.smart-slot-badge.passed {
    background: rgba(0, 0, 0, 0.04);
    border-color: rgba(0, 0, 0, 0.1);
    color: #999;
}

.smart-card-footer {
    display: flex;
    justify-content: flex-end;
    padding-top: 10px;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.smart-action {
    font-size: 13px;
    color: #666;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: all 0.2s;
}

.smart-card:hover .smart-action {
    color: #333;
    transform: translateX(4px);
}

/* Medicine Grid */
.medicine-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-bottom: 12px;
}

/* ========== 药物卡片优化样式 ========== */
.medicine-card {
    background: rgba(255, 255, 255, 0.45);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 16px;
    padding: 14px 12px 10px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    min-height: 120px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.medicine-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.6), transparent);
    opacity: 0;
    transition: opacity 0.3s;
}

.medicine-card:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
    background: rgba(255, 255, 255, 0.55);
}

.medicine-card:hover::before {
    opacity: 1;
}

.medicine-card.checked {
    border-color: rgba(76, 175, 80, 0.5);
    background: rgba(232, 245, 233, 0.6);
}

.medicine-card.partial {
    border-color: rgba(255, 152, 0, 0.5);
    background: rgba(255, 243, 224, 0.6);
}

/* 过期警告状态 */
.medicine-card.expiry-warning {
    border-color: rgba(255, 152, 0, 0.7);
    box-shadow: 0 0 0 2px rgba(255, 152, 0, 0.2);
}

.medicine-card.expiry-danger {
    border-color: rgba(244, 67, 54, 0.7);
    box-shadow: 0 0 0 2px rgba(244, 67, 54, 0.2);
}

/* 圆形进度指示器 */
.medicine-card .check-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: conic-gradient(#ddd 0deg, #ddd 360deg);
    margin: 0 auto 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    position: relative;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.1);
}

.medicine-card .check-icon::before {
    content: '';
    position: absolute;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(4px);
}

.medicine-card .check-icon-content {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.medicine-card.checked .check-icon {
    background: conic-gradient(var(--medicine-color, #4CAF50) 0deg, var(--medicine-color, #4CAF50) 360deg);
    transform: scale(1.05);
    animation: checkPulse 0.5s ease;
}

.medicine-card.partial .check-icon {
    background: conic-gradient(#FF9800 var(--progress-deg, 180deg), #e0e0e0 var(--progress-deg, 180deg));
}

@keyframes checkPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.15); }
    100% { transform: scale(1.05); }
}

/* 药物图标 */
.medicine-card .drug-emoji {
    font-size: 24px;
    margin-bottom: 2px;
    filter: drop-shadow(0 2px 2px rgba(0,0,0,0.1));
}

.medicine-card .name {
    font-size: 15px;
    font-weight: 600;
    color: #333;
    margin-bottom: 2px;
    line-height: 1.3;
}

.medicine-card .sub-info {
    font-size: 10px;
    color: #888;
    margin-bottom: 6px;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

/* 删除按钮 - 改为常驻但淡化 */
.medicine-card .delete-btn {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: none;
    background: rgba(0,0,0,0.06);
    color: #999;
    font-size: 12px;
    cursor: pointer;
    opacity: 0.5;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.medicine-card .delete-btn:hover {
    background: #ff5252;
    color: white;
    opacity: 1;
    transform: scale(1.1);
}

/* 库存信息区域 */
.medicine-card .inventory-section {
    margin-top: auto;
    width: 100%;
    padding-top: 6px;
}

.medicine-card .inventory-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    flex-wrap: wrap;
}

.medicine-card .inventory-info {
    font-size: 11px;
    color: #666;
    padding: 4px 10px;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    transition: all 0.2s;
    cursor: pointer;
}

.medicine-card .inventory-info:hover {
    background: rgba(255, 255, 255, 0.7);
    transform: scale(1.02);
}

.medicine-card .inventory-info.low {
    color: #f44336;
    background: rgba(244, 67, 54, 0.1);
}

.medicine-card .inventory-info.warning {
    color: #FF9800;
    background: rgba(255, 152, 0, 0.1);
}

/* 详情切换按钮 */
.medicine-card .detail-toggle {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: none;
    background: rgba(0, 0, 0, 0.06);
    cursor: pointer;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.5;
    transition: all 0.2s;
    padding: 0;
}

.medicine-card .detail-toggle:hover {
    opacity: 1;
    background: rgba(33, 150, 243, 0.15);
    transform: scale(1.1);
}

/* 详情项样式 */
.medicine-card .detail-item,
.medicine-card .boxes-toggle,
.medicine-card .total-days {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    white-space: nowrap;
    font-size: 10px;
    color: #888;
}

/* 库存快速操作 - 内联显示 */
.medicine-card .inventory-actions-inline {
    display: none;
    align-items: center;
    gap: 3px;
}

.medicine-card.inventory-editing .inventory-actions-inline {
    display: flex;
}

.medicine-card.inventory-editing .inventory-info {
    display: none;
}

.medicine-card .inventory-btn {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: none;
    background: rgba(76, 175, 80, 0.15);
    color: #4CAF50;
    font-size: 11px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    line-height: 1;
}

.medicine-card .inventory-btn.minus {
    background: rgba(244, 67, 54, 0.15);
    color: #f44336;
}

.medicine-card .inventory-btn:hover {
    transform: scale(1.15);
    background: rgba(76, 175, 80, 0.25);
}

.medicine-card .inventory-btn.minus:hover {
    background: rgba(244, 67, 54, 0.25);
}

/* 盒数信息 - 可折叠 */
.medicine-card .boxes-info {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.medicine-card.boxes-expanded .boxes-info {
    max-height: 150px;
}

.medicine-card .boxes-toggle,
.medicine-card .total-days {
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 2px;
}

.medicine-card .boxes-toggle:hover,
.medicine-card .total-days:hover {
    color: #666;
}

.medicine-card .boxes-info .box-detail {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2px 4px;
    border-radius: 4px;
    margin: 1px 0;
}

.medicine-card .boxes-info .box-detail.active {
    color: #4CAF50;
    background: rgba(76, 175, 80, 0.08);
    font-weight: 500;
}

.medicine-card .boxes-info .box-detail.low {
    color: #f44336;
}

/* 服用时间提示 */
.medicine-card .dose-hint {
    color: #2196F3;
}

/* 打卡计数 */
.check-count {
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
    color: #333;
}

.medicine-card.checked .check-count {
    color: white;
}

/* Add Button */
.add-btn {
    width: 100%;
    padding: 12px;
    border: 2px dashed rgba(200, 200, 200, 0.8);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: #666;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
}

.add-btn:hover {
    border-color: rgba(150, 150, 150, 0.8);
    color: #333;
    background: rgba(255, 255, 255, 0.5);
}

/* 操作按钮行 */
.action-buttons-row {
    display: flex;
    gap: 10px;
    margin-bottom: 12px;
}

.action-buttons-row .add-btn {
    flex: 1;
}

.action-buttons-row .body-data-btn {
    border-color: rgba(156, 39, 176, 0.5);
    color: #7B1FA2;
}

.action-buttons-row .body-data-btn:hover {
    border-color: rgba(156, 39, 176, 0.8);
    background: rgba(156, 39, 176, 0.1);
}

/* Calendar */
.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    gap: 10px;
}

.calendar-header span {
    font-size: 16px;
    font-weight: 600;
}

.calendar-title {
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid rgba(200, 200, 200, 0.5);
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s;
}

.nav-btn:hover {
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(200, 200, 200, 0.5);
    color: #333;
}

.nav-btn.today-btn {
    width: auto;
    padding: 0 12px;
    border-radius: 18px;
    font-size: 13px;
    font-weight: 500;
    background: rgba(76, 175, 80, 0.2);
    border: 1px solid rgba(76, 175, 80, 0.4);
    color: #2e7d32;
}

.nav-btn.today-btn:hover {
    background: rgba(76, 175, 80, 0.3);
    border: 1px solid rgba(76, 175, 80, 0.6);
    color: #1b5e20;
}

.filter-bar {
    margin-bottom: 15px;
}

.filter-bar select {
    width: 100%;
    padding: 10px;
    border: 1px solid rgba(200, 200, 200, 0.5);
    border-radius: 8px;
    font-size: 14px;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.calendar {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 5px;
}

.calendar .weekday {
    text-align: center;
    font-size: 12px;
    color: rgba(80, 80, 80, 0.9);
    font-weight: 600;
    padding: 10px 0;
}

.calendar .day {
    aspect-ratio: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding-top: 8px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    background: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border: 1px solid rgba(200, 200, 200, 0.3);
    overflow: hidden;
}

.calendar .day:hover {
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(150, 150, 150, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.calendar .day.other-month {
    color: #ccc;
    background: rgba(255, 255, 255, 0.15);
}

/* 今日高亮 - 呼吸灯效果 */
.calendar .day.today {
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid #4CAF50;
    color: #2E7D32;
    font-weight: 600;
    animation: todayPulse 2s ease-in-out infinite;
}

/* 选中日期样式 */
.calendar .day.selected {
    background: linear-gradient(135deg, rgba(56, 142, 60, 0.9), rgba(76, 175, 80, 0.9));
    border: 2px solid #388e3c;
    color: white;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(56, 142, 60, 0.4);
    transform: scale(1.05);
}

.calendar .day.selected:hover {
    background: linear-gradient(135deg, rgba(56, 142, 60, 1), rgba(76, 175, 80, 1));
    transform: scale(1.08);
}

@keyframes todayPulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(76, 175, 80, 0.4);
    }
    50% {
        box-shadow: 0 0 0 4px rgba(76, 175, 80, 0.1);
    }
}

/* 完成度进度条 */
.calendar .day .progress-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: rgba(200, 200, 200, 0.3);
    border-radius: 0 0 12px 12px;
    overflow: hidden;
}

.calendar .day .progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #4CAF50, #81C784);
    border-radius: 0 0 12px 12px;
    transition: width 0.3s ease;
}

.calendar .day .progress-fill.complete {
    background: linear-gradient(90deg, #2E7D32, #4CAF50);
}

/* 角落徽章系统 */
.calendar .day .day-badges {
    position: absolute;
    top: 2px;
    right: 2px;
    display: flex;
    flex-direction: column;
    gap: 1px;
    align-items: flex-end;
}

.calendar .day .day-badge {
    font-size: 9px;
    width: 14px;
    height: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* 药物覆盖标记 - 橙色显示 */
.calendar .day .day-badge.medicine-coverage {
    background: #FF9800;
    color: white;
    font-size: 8px;
    font-weight: bold;
    box-shadow: 0 1px 3px rgba(255, 152, 0, 0.4);
}

.calendar .day .day-badge.more {
    font-size: 8px;
    background: rgba(200, 200, 200, 0.8);
    color: #666;
}

/* 完成标记 */
.calendar .day .completion-check {
    position: absolute;
    bottom: 6px;
    right: 6px;
    width: 16px;
    height: 16px;
    background: #4CAF50;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* 旧样式兼容 - 隐藏 */
.calendar .day .dots,
.calendar .day .day-marks {
    display: none;
}

.day-detail {
    margin-top: 20px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(200, 200, 200, 0.5);
    border-radius: 10px;
    display: none;
}

.day-detail.show {
    display: block;
    animation: dayDetailSlideDown 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes dayDetailSlideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.day-detail h4 {
    margin-bottom: 10px;
    color: #333;
}

.day-detail ul {
    list-style: none;
}

.day-detail li {
    padding: 8px 0;
    border-bottom: 1px solid rgba(200, 200, 200, 0.4);
    display: flex;
    align-items: center;
    gap: 10px;
}

.day-detail li:last-child {
    border-bottom: none;
}

.day-detail li {
    flex-wrap: wrap;
}

.day-detail .medicine-name {
    flex: 1;
}

.day-detail .dose-times {
    width: 100%;
    margin-top: 6px;
    margin-left: 20px;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.day-detail .dose-time {
    font-size: 11px;
    color: #666;
    background: rgba(255, 255, 255, 0.6);
    padding: 2px 8px;
    border-radius: 10px;
    border: 1px solid rgba(200, 200, 200, 0.4);
}

.day-detail .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

/* Stats */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-bottom: 20px;
}

.stat-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(200, 200, 200, 0.5);
    color: #333;
    padding: 20px 15px;
    border-radius: 15px;
    text-align: center;
}

.stat-value {
    font-size: 28px;
    font-weight: 700;
}

.stat-label {
    font-size: 12px;
    opacity: 0.9;
    margin-top: 5px;
}

.stats-detail {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(200, 200, 200, 0.5);
    border-radius: 15px;
    padding: 15px;
}

.stats-detail h4 {
    margin-bottom: 15px;
    color: #333;
}

.medicine-stat {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid rgba(200, 200, 200, 0.4);
}

.medicine-stat:last-child {
    border-bottom: none;
}

.medicine-stat .info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.medicine-stat .color-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.medicine-stat .count {
    font-weight: 600;
    color: #333;
}

/* 服药状况统计 */
.medicine-status-stats {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(200, 200, 200, 0.5);
    border-radius: 15px;
    padding: 15px;
    margin-bottom: 20px;
}

.medicine-status-stats h4 {
    margin-bottom: 15px;
    color: #333;
    font-size: 14px;
}

.status-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.status-stat-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(200, 200, 200, 0.4);
    border-radius: 12px;
    padding: 15px 10px;
    text-align: center;
    transition: all 0.2s;
}

.status-stat-card.good {
    border-color: rgba(76, 175, 80, 0.4);
    background: rgba(76, 175, 80, 0.1);
}

.status-stat-card.normal {
    border-color: rgba(255, 152, 0, 0.4);
    background: rgba(255, 152, 0, 0.1);
}

.status-stat-card.bad {
    border-color: rgba(244, 67, 54, 0.4);
    background: rgba(244, 67, 54, 0.1);
}

.status-stat-card.excellent {
    border-color: rgba(156, 39, 176, 0.4);
    background: rgba(156, 39, 176, 0.1);
}

.status-stat-card.terrible {
    border-color: rgba(96, 125, 139, 0.4);
    background: rgba(96, 125, 139, 0.15);
}

.status-stat-card.total {
    border-color: rgba(33, 150, 243, 0.4);
    background: rgba(33, 150, 243, 0.1);
}

.status-stat-value {
    font-size: 24px;
    font-weight: 700;
    color: #333;
    margin-bottom: 5px;
}

.status-stat-card.good .status-stat-value {
    color: #4CAF50;
}

.status-stat-card.normal .status-stat-value {
    color: #FF9800;
}

.status-stat-card.bad .status-stat-value {
    color: #f44336;
}

.status-stat-card.excellent .status-stat-value {
    color: #9C27B0;
}

.status-stat-card.terrible .status-stat-value {
    color: #607D8B;
}

.status-stat-card.total .status-stat-value {
    color: #2196F3;
}

.status-stat-label {
    font-size: 12px;
    color: #666;
}

/* Modal */
.modal {
    display: flex;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0);
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 40px;
    box-sizing: border-box;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease, background 0.3s ease;
}

.modal.show {
    opacity: 1;
    visibility: visible;
    background: rgba(0,0,0,0.5);
}

.modal-content {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(200, 200, 200, 0.5);
    padding: 25px;
    border-radius: 20px;
    width: 90%;
    max-width: 450px;
    min-width: 320px;
    transform: scale(0.9) translateY(20px);
    opacity: 0;
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), 
                opacity 0.3s ease;
}

.modal.show .modal-content {
    transform: scale(1) translateY(0);
    opacity: 1;
}

/* 弹窗内容元素入场动画 */
.modal-content > * {
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.modal.show .modal-content > * {
    opacity: 1;
    transform: translateY(0);
}

/* 依次延迟出现 */
.modal.show .modal-content > *:nth-child(1) { transition-delay: 0.05s; }
.modal.show .modal-content > *:nth-child(2) { transition-delay: 0.1s; }
.modal.show .modal-content > *:nth-child(3) { transition-delay: 0.15s; }
.modal.show .modal-content > *:nth-child(4) { transition-delay: 0.2s; }
.modal.show .modal-content > *:nth-child(5) { transition-delay: 0.25s; }
.modal.show .modal-content > *:nth-child(6) { transition-delay: 0.3s; }

.modal-content h3 {
    margin-bottom: 20px;
    text-align: center;
}

/* 带关闭按钮的标题栏 */
.modal-header-with-close {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    position: relative;
}

.modal-header-with-close h3 {
    margin: 0;
    flex: 1;
    text-align: center;
}

.modal-close-btn {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    border: none;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 50%;
    font-size: 24px;
    line-height: 1;
    color: #666;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    padding: 0;
}

.modal-close-btn:hover {
    background: rgba(0, 0, 0, 0.1);
    color: #333;
    transform: translateY(-50%) scale(1.1);
}

.modal-close-btn:active {
    transform: translateY(-50%) scale(0.95);
}

.modal-content input {
    width: 100%;
    padding: 12px;
    border: 1px solid rgba(200, 200, 200, 0.5);
    border-radius: 10px;
    font-size: 16px;
    margin-bottom: 20px;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.color-picker {
    margin-bottom: 20px;
}

.color-picker label {
    display: block;
    margin-bottom: 10px;
    font-size: 14px;
    color: #666;
}

.colors {
    display: flex;
    gap: 10px;
}

.color {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    transition: transform 0.2s;
    border: 3px solid transparent;
}

.color:hover {
    transform: scale(1.1);
}

.color.selected {
    border-color: #333;
}

/* 添加药物弹窗 - 扩展样式 */
.medicine-modal-content {
    max-width: 400px;
    max-height: 85vh;
    overflow-y: auto;
}

.medicine-modal-content::-webkit-scrollbar {
    width: 6px;
}

.medicine-modal-content::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.05);
    border-radius: 3px;
}

.medicine-modal-content::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 3px;
}

/* 药品类型选择 */
.medicine-type-section {
    margin-bottom: 18px;
    padding: 18px;
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(200, 200, 200, 0.3);
    border-radius: 14px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.medicine-type-section > label {
    display: block;
    margin-bottom: 14px;
    font-size: 14px;
    font-weight: 500;
    color: #555;
}

.medicine-types {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.medicine-type {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.7);
    border: 2px solid transparent;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.2s;
}

.medicine-type:hover {
    background: rgba(255, 255, 255, 0.8);
    transform: scale(1.05);
}

.medicine-type.selected {
    border-color: #4CAF50;
    background: rgba(76, 175, 80, 0.15);
}

/* 服用指导 */
.taking-guide-section {
    margin-bottom: 18px;
    padding: 18px;
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(200, 200, 200, 0.3);
    border-radius: 14px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.taking-guide-section > label {
    display: block;
    margin-bottom: 14px;
    font-size: 14px;
    font-weight: 500;
    color: #555;
}

.taking-guide-options {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.guide-option {
    padding: 10px 18px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(200, 200, 200, 0.3);
    font-size: 13px;
    font-weight: 500;
    color: #555;
    cursor: pointer;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
    transition: all 0.2s ease;
    transition: all 0.2s;
}

.guide-option:hover {
    background: rgba(255, 255, 255, 0.8);
}

.guide-option.selected {
    background: rgba(76, 175, 80, 0.2);
    border-color: #4CAF50;
    color: #2e7d32;
    font-weight: 500;
}

/* 服用时间设置 */
.schedule-section {
    margin-bottom: 15px;
    padding: 18px;
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(200, 200, 200, 0.3);
    border-radius: 14px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.schedule-section > label {
    display: block;
    margin-bottom: 14px;
    font-size: 14px;
    font-weight: 500;
    color: #555;
}

.schedule-times {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.schedule-time-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.schedule-label {
    font-size: 13px;
    color: #888;
    min-width: 50px;
}

.schedule-time-input {
    flex: 1;
    padding: 12px 14px;
    border: 1px solid rgba(200, 200, 200, 0.4);
    border-radius: 10px;
    font-size: 15px;
    font-weight: 500;
    background: rgba(255, 255, 255, 0.7);
    color: #333;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.05);
    transition: all 0.2s ease;
}

.schedule-time-input:hover {
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(150, 150, 150, 0.5);
}

.schedule-time-input:focus {
    outline: none;
    background: #fff;
    border-color: #4CAF50;
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.15);
}

/* 日期设置 */
.date-settings {
    margin-bottom: 15px;
    padding: 18px;
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(200, 200, 200, 0.3);
    border-radius: 14px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.date-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.date-row:last-child {
    margin-bottom: 0;
}

.date-row > label {
    font-size: 14px;
    color: #666;
}

.date-input {
    padding: 10px 12px;
    border: 1px solid rgba(200, 200, 200, 0.5);
    border-radius: 8px;
    font-size: 14px;
    background: rgba(255, 255, 255, 0.6);
    color: #333;
}

.duration-input {
    display: flex;
    align-items: center;
    gap: 8px;
}

.duration-input input {
    width: 80px;
    padding: 10px;
    border: 1px solid rgba(200, 200, 200, 0.5);
    border-radius: 8px;
    font-size: 14px;
    background: rgba(255, 255, 255, 0.6);
    text-align: center;
}

.duration-unit {
    font-size: 14px;
    color: #666;
}

/* 提醒设置 */
.reminder-section {
    margin-bottom: 15px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.4);
    border: 1px solid rgba(200, 200, 200, 0.4);
    border-radius: 12px;
}

.reminder-toggle-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.reminder-toggle-row > label {
    font-size: 14px;
    color: #666;
}

/* Switch 开关样式 */
.switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 26px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(200, 200, 200, 0.5);
    transition: .3s;
    border-radius: 26px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .3s;
    border-radius: 50%;
}

.switch input:checked + .slider {
    background-color: #4CAF50;
}

.switch input:checked + .slider:before {
    transform: translateX(24px);
}

.modal-actions {
    display: flex;
    gap: 10px;
}

.modal-actions button {
    flex: 1;
    padding: 12px;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    overflow: hidden;
}

.modal-actions button:active {
    transform: scale(0.95);
}

.btn-primary {
    background: rgba(255, 255, 255, 0.8);
    color: #333;
    border: 1px solid rgba(200, 200, 200, 0.5);
}

.btn-primary:hover {
    background: rgba(255, 255, 255, 1);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.btn-primary:active {
    transform: scale(0.95) translateY(0);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(200, 200, 200, 0.5);
    color: #666;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.btn-secondary:active {
    transform: scale(0.95) translateY(0);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

/* Countdown */
.countdown-card {
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: 0 8px 32px rgba(31, 38, 135, 0.15);
}

.countdown-display {
    text-align: center;
    padding: 30px 20px;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 15px;
    margin-bottom: 20px;
    border: 1px solid rgba(200, 200, 200, 0.5);
    position: relative;
}

/* 倒计时圆环容器 */
.countdown-ring-container {
    position: relative;
    width: 200px;
    height: 200px;
    margin: 0 auto 15px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* SVG 圆环 */
.countdown-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.countdown-ring-bg {
    fill: none;
    stroke: rgba(200, 200, 200, 0.3);
    stroke-width: 6;
}

.countdown-ring-progress {
    fill: none;
    stroke: #667eea;
    stroke-width: 6;
    stroke-linecap: round;
    stroke-dasharray: 464.96;
    stroke-dashoffset: 0;
    transition: stroke-dashoffset 1s linear;
}

/* 倒计时警告状态 - 圆环变橙色 */
.countdown-display.warning .countdown-ring-progress {
    stroke: #ff9800;
}

/* 倒计时结束状态 - 圆环变红色 */
.countdown-display.finished .countdown-ring-progress {
    stroke: #f44336;
}

/* 圆环中心内容 */
.countdown-ring-content {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 10px;
}

/* 倒计时时间文字 */
.countdown-ring-content .countdown-time {
    font-size: 32px;
    font-weight: 600;
    color: #333;
    margin-bottom: 4px;
    letter-spacing: 2px;
    white-space: nowrap;
}

/* 倒计时标签文字 */
.countdown-ring-content .countdown-label {
    font-size: 12px;
    color: #666;
}

/* 全屏按钮 */
.fullscreen-btn {
    position: absolute;
    bottom: 10px;
    right: 10px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid rgba(200, 200, 200, 0.5);
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    cursor: pointer;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    color: #666;
}

.fullscreen-btn:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: scale(1.1);
    color: #333;
}

/* 全屏模式覆盖层 */
.countdown-fullscreen-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: #000;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: none;
}

.countdown-fullscreen-overlay .fs-time {
    font-size: 15vw;
    font-weight: 700;
    color: #fff;
    font-family: 'Courier New', monospace;
    letter-spacing: 0.5vw;
    user-select: none;
    white-space: nowrap;
}

/* 退出提示：鼠标移动时短暂出现 */
.countdown-fullscreen-overlay .fs-exit-hint {
    position: fixed;
    bottom: 30px;
    right: 30px;
    color: rgba(255,255,255,0.15);
    font-size: 13px;
    opacity: 0;
    transition: opacity 0.4s;
    pointer-events: none;
    user-select: none;
}

.countdown-fullscreen-overlay:hover .fs-exit-hint {
    opacity: 1;
}

.countdown-time {
    font-size: 48px;
    font-weight: 700;
    color: #333;
    font-family: 'Courier New', monospace;
    letter-spacing: 4px;
}

.countdown-label {
    color: #666;
    font-size: 14px;
    margin-top: 10px;
}

.countdown-settings {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.setting-row {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.setting-row.time-inputs {
    flex-direction: row;
    gap: 15px;
}

.time-input-group {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.time-input-group input {
    text-align: center;
    font-size: 18px;
    font-weight: 600;
}

.setting-row label {
    font-size: 14px;
    color: #555;
    font-weight: 500;
}

.setting-row input,
.setting-row select {
    padding: 12px 15px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    font-size: 15px;
    background: rgba(255, 255, 255, 0.7);
    transition: all 0.3s;
}

.setting-row input:focus,
.setting-row select:focus {
    outline: none;
    border-color: rgba(150, 150, 150, 0.8);
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 0 0 3px rgba(200, 200, 200, 0.3);
}

.countdown-settings button {
    padding: 14px;
    border: none;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

#startCountdown {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(200, 200, 200, 0.5);
    color: #333;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

#startCountdown:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

#startCountdown:disabled {
    background: rgba(200, 200, 200, 0.5);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

#resetCountdown {
    background: rgba(240, 240, 240, 0.8);
    color: #666;
}

#resetCountdown:hover {
    background: rgba(224, 224, 224, 0.9);
}

.next-dose-info {
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 15px;
    padding: 20px;
    display: none;
}

.next-dose-info.show {
    display: block;
}

.next-dose-info h4 {
    color: #333;
    margin-bottom: 15px;
    font-size: 16px;
}

.next-dose-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.next-dose-item:last-child {
    border-bottom: none;
}

.next-dose-item .color-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    flex-shrink: 0;
}

.next-dose-item .medicine-name {
    flex: 1;
    font-weight: 500;
    color: #333;
}

.next-dose-item .dose-time {
    color: #333;
    font-weight: 600;
    font-size: 14px;
}

.countdown-display.warning {
    background: rgba(255, 243, 224, 0.9);
    border: 1px solid rgba(255, 152, 0, 0.5);
    animation: pulse 1s infinite;
}

.countdown-display.finished {
    background: rgba(232, 245, 233, 0.9);
    border: 1px solid rgba(76, 175, 80, 0.5);
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.02); }
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: rgba(120, 120, 120, 0.85);
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px dashed rgba(200, 200, 200, 0.5);
    border-radius: 15px;
}

.empty-state p:first-child {
    font-size: 15px;
    font-weight: 500;
    color: rgba(100, 100, 100, 0.9);
    margin-bottom: 10px;
}

.empty-state p:last-child {
    font-size: 13px;
    color: rgba(150, 150, 150, 0.8);
}

/* 每日次数步进器 */
.times-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding: 0 2px;
}

/* 库存管理区域 - 仅在添加药物表单内 */
#addMedicineForm .inventory-section,
#editMedicineForm .inventory-section {
    background: rgba(255, 255, 255, 0.4);
    border: 1px solid rgba(200, 200, 200, 0.4);
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 20px;
}

#addMedicineForm .inventory-section .inventory-row,
#editMedicineForm .inventory-section .inventory-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

#addMedicineForm .inventory-section .inventory-row:last-child,
#editMedicineForm .inventory-section .inventory-row:last-child {
    margin-bottom: 0;
}

#addMedicineForm .inventory-section .inventory-row > label,
#editMedicineForm .inventory-section .inventory-row > label {
    font-size: 14px;
    color: #666;
    flex-shrink: 0;
}

#addMedicineForm .inventory-input-group,
#editMedicineForm .inventory-input-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

#addMedicineForm .inventory-input-group input,
#editMedicineForm .inventory-input-group input {
    width: 80px;
    text-align: center;
    margin-bottom: 0 !important;
    padding: 10px !important;
}

#addMedicineForm .inventory-unit,
#editMedicineForm .inventory-unit {
    font-size: 13px;
    color: #999;
}

#addMedicineForm .inventory-section .inventory-row input[type="date"],
#editMedicineForm .inventory-section .inventory-row input[type="date"] {
    width: 150px;
    margin-bottom: 0 !important;
    padding: 10px !important;
    font-size: 14px;
}

/* 库存编辑弹窗 */
.inventory-edit-modal .modal-content {
    max-width: 300px;
}

/* 库存管理面板 - 在独立Tab中 */
.inventory-section-panel {
    padding: 0;
    background: transparent;
    border: none;
    border-radius: 0;
    position: relative;
}

/* 移除与日历的分隔线（不再在日历下方） */
.inventory-section-panel::before {
    display: none;
}

.inventory-section-panel h4 {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 14px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(200, 200, 200, 0.35);
    display: flex;
    align-items: center;
    gap: 8px;
    letter-spacing: 0.3px;
}

.inventory-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-height: none;
    overflow-y: visible;
}

.inventory-list::-webkit-scrollbar {
    width: 4px;
}

.inventory-list::-webkit-scrollbar-thumb {
    background: rgba(200, 200, 200, 0.5);
    border-radius: 4px;
}

.inventory-item {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 14px 14px;
    background: rgba(255, 255, 255, 0.65);
    border: 1px solid rgba(200, 200, 200, 0.4);
    border-radius: 14px;
    transition: all 0.2s;
}

.inventory-item:hover {
    background: rgba(255, 255, 255, 0.88);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.1);
}

.inventory-color-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
    box-shadow: 0 0 0 2px rgba(255,255,255,0.7);
}

.inventory-info-main {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.inventory-name {
    font-size: 15px;
    font-weight: 600;
    color: #2c2c2c;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.inventory-detail {
    font-size: 12px;
    color: #999;
}

/* 上栏：左侧信息 + 右侧编辑按钮 */
.inventory-top-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

/* 下栏：圆环区域 */
.inventory-circles {
    display: flex;
    gap: 16px;
    align-items: center;
    justify-content: flex-end;
}

/* 单个圆环包装 */
.circle-wrapper {
    position: relative;
    width: 62px;
    height: 62px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.circle-wrapper.expiry {
    width: 56px;
    height: 56px;
}

/* SVG 圆环 */
.circle-svg {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

/* 圆环背景 */
.circle-bg {
    fill: none;
    stroke: rgba(200, 200, 200, 0.25);
    stroke-width: 4;
}

/* 圆环进度 */
.circle-progress {
    fill: none;
    stroke-width: 4;
    stroke-linecap: round;
    transition: stroke-dashoffset 0.5s ease;
}

/* 圆环文字 */
.circle-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1px;
}

.circle-days {
    font-size: 15px;
    font-weight: 700;
    color: #2c2c2c;
    line-height: 1;
}

.circle-wrapper.expiry .circle-days {
    font-size: 11px;
    font-weight: 600;
}

.circle-label {
    font-size: 9px;
    color: #aaa;
    line-height: 1;
}

/* 圆环颜色状态 */
.circle-progress.low {
    filter: drop-shadow(0 0 3px rgba(244, 67, 54, 0.5));
}

.circle-progress.warning {
    filter: drop-shadow(0 0 3px rgba(255, 152, 0, 0.5));
}

.circle-progress.expired {
    filter: drop-shadow(0 0 3px rgba(244, 67, 54, 0.5));
}

/* 圆环标签 */
.circle-badge {
    position: absolute;
    bottom: -3px;
    font-size: 8px;
    padding: 1px 5px;
    border-radius: 5px;
    background: rgba(100, 100, 100, 0.65);
    color: white;
    white-space: nowrap;
    letter-spacing: 0.2px;
}

.circle-badge.stock {
    background: rgba(76, 175, 80, 0.75);
}

.circle-badge.expiry {
    background: rgba(33, 150, 243, 0.75);
}

/* 库存状态行（备用） */
.inventory-status {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
    text-align: right;
}

.inventory-actions {
    display: flex;
    gap: 6px;
}

.inventory-btn {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    border: 1px solid rgba(200, 200, 200, 0.5);
    background: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.inventory-btn:hover {
    background: rgba(255, 255, 255, 1);
    transform: scale(1.1);
}

.inventory-btn.inventory-delete-btn:hover {
    background: #ff5252;
    color: white;
    border-color: #ff5252;
}

.inventory-empty {
    text-align: center;
    padding: 20px;
    color: #999;
    font-size: 13px;
}

.inventory-edit-inputs {
    margin-bottom: 20px;
}

.inventory-edit-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 15px;
}

.inventory-edit-row label {
    font-size: 14px;
    color: #555;
}

.inventory-edit-row input {
    width: 120px;
    margin-bottom: 0 !important;
    text-align: center;
}

.times-row > label {
    font-size: 14px;
    color: #666;
}

.times-stepper {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(200, 200, 200, 0.5);
    border-radius: 10px;
    padding: 6px 14px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.stepper-btn {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    border: 1px solid rgba(200, 200, 200, 0.6);
    background: rgba(255, 255, 255, 0.8);
    cursor: pointer;
    font-size: 18px;
    font-weight: 600;
    color: #555;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    line-height: 1;
    padding: 0;
}

.stepper-btn:hover {
    background: rgba(255, 255, 255, 1);
    color: #333;
    border-color: rgba(150, 150, 150, 0.6);
}

#timesDisplay {
    font-size: 18px;
    font-weight: 700;
    color: #333;
    min-width: 20px;
    text-align: center;
}

.times-unit {
    font-size: 13px;
    color: #999;
}

/* 多盒管理样式 */
.boxes-section {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid rgba(200, 200, 200, 0.3);
}

.boxes-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.boxes-header label {
    font-size: 14px;
    color: #666;
}

.btn-add-box {
    padding: 6px 12px;
    border-radius: 8px;
    border: 1px solid rgba(76, 175, 80, 0.5);
    background: rgba(76, 175, 80, 0.1);
    color: #4CAF50;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-add-box:hover {
    background: rgba(76, 175, 80, 0.2);
}

.boxes-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 12px;
}

.box-item {
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(200, 200, 200, 0.4);
    border-radius: 10px;
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.box-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.box-item-title {
    font-size: 13px;
    font-weight: 600;
    color: #555;
}

.box-item-remove {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: none;
    background: rgba(244, 67, 54, 0.1);
    color: #f44336;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.box-item-remove:hover {
    background: rgba(244, 67, 54, 0.2);
}

.box-item-inputs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.box-item-inputs input {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid rgba(200, 200, 200, 0.5);
    border-radius: 8px;
    font-size: 14px;
    background: rgba(255, 255, 255, 0.6);
    margin-bottom: 0 !important;
}

.boxes-summary {
    text-align: center;
    padding: 10px;
    background: rgba(76, 175, 80, 0.08);
    border-radius: 8px;
    font-size: 13px;
    color: #666;
}

.boxes-summary strong {
    color: #4CAF50;
    font-size: 15px;
}



/* ========== 身体记录模块 ========== */

/* 今日照片区域 */
.today-photos-section {
    padding: 12px 15px 15px;
    border-top: 1px solid rgba(200, 200, 200, 0.4);
    background: rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    margin-top: 15px;
}

.today-photos-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0 8px;
}

.today-photos-header h3 {
    font-size: 1rem;
    color: #333;
    font-weight: 600;
}

.add-photo-btn {
    padding: 6px 14px;
    border-radius: 20px;
    border: 1px solid rgba(200, 200, 200, 0.5);
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    font-size: 13px;
    color: #555;
    cursor: pointer;
    transition: all 0.2s;
}

.add-photo-btn:hover {
    background: rgba(255, 255, 255, 0.95);
    color: #333;
}

.today-photos-grid {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    min-height: 0;
}

.today-photo-thumb {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    object-fit: cover;
    border: 1px solid rgba(200, 200, 200, 0.4);
    cursor: pointer;
    transition: all 0.2s;
    display: block;
}

.today-photo-thumb:hover {
    transform: scale(1.06);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* 照片上传弹窗 */
.photo-upload-area {
    width: 100%;
    height: 160px;
    border: 2px dashed rgba(200, 200, 200, 0.6);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    margin-bottom: 15px;
    overflow: hidden;
    position: relative;
    background: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: all 0.2s;
}

.photo-upload-area:hover {
    border-color: rgba(150, 150, 150, 0.7);
    background: rgba(255, 255, 255, 0.45);
}

.upload-placeholder {
    text-align: center;
    color: #aaa;
    pointer-events: none;
}

.upload-placeholder span {
    font-size: 36px;
    display: block;
    margin-bottom: 8px;
}

.upload-placeholder p {
    font-size: 13px;
}

.photo-modal-select {
    width: 100%;
    padding: 12px;
    border: 1px solid rgba(200, 200, 200, 0.5);
    border-radius: 10px;
    font-size: 15px;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    margin-bottom: 15px;
    outline: none;
}

.photo-modal-note {
    width: 100%;
    padding: 12px;
    border: 1px solid rgba(200, 200, 200, 0.5);
    border-radius: 10px;
    font-size: 14px;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    margin-bottom: 20px;
    resize: none;
    height: 70px;
    font-family: inherit;
    outline: none;
    transition: border-color 0.2s;
}

.photo-modal-note:focus {
    border-color: rgba(150, 150, 150, 0.8);
}

/* 对比工具栏 */
.records-toolbar {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.btn-compare {
    flex: 1;
    padding: 10px;
    border-radius: 10px;
    border: 1px solid rgba(200, 200, 200, 0.5);
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    font-size: 13px;
    color: #555;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-compare:hover {
    background: rgba(255, 255, 255, 0.9);
}

.btn-compare.compare-active {
    background: rgba(76, 175, 80, 0.12);
    border-color: rgba(76, 175, 80, 0.6);
    color: #388E3C;
}

.btn-do-compare {
    background: rgba(76, 175, 80, 0.15);
    border-color: rgba(76, 175, 80, 0.5);
    color: #388E3C;
    font-weight: 600;
}

/* 时间轴 */
.photo-timeline {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-height: 420px;
    overflow-y: auto;
    padding-right: 2px;
}

.photo-timeline::-webkit-scrollbar {
    width: 4px;
}

.photo-timeline::-webkit-scrollbar-thumb {
    background: rgba(200, 200, 200, 0.5);
    border-radius: 4px;
}

.timeline-group {
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(200, 200, 200, 0.4);
    border-radius: 12px;
    overflow: hidden;
}

.timeline-date {
    padding: 9px 14px;
    font-size: 13px;
    font-weight: 600;
    color: #555;
    border-bottom: 1px solid rgba(200, 200, 200, 0.3);
    background: rgba(255, 255, 255, 0.3);
    display: flex;
    align-items: center;
    gap: 8px;
}

.timeline-photos {
    display: flex;
    gap: 10px;
    padding: 12px;
    flex-wrap: wrap;
}

.timeline-photo-item {
    position: relative;
    cursor: pointer;
    flex-shrink: 0;
}

.timeline-photo-item img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
    border: 2px solid transparent;
    transition: all 0.2s;
    display: block;
}

.timeline-photo-item img:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.timeline-photo-item.selected-for-compare img {
    border-color: #4CAF50;
    box-shadow: 0 0 0 2px rgba(76, 175, 80, 0.4);
}

.photo-body-tag {
    position: absolute;
    bottom: 5px;
    left: 4px;
    background: rgba(0, 0, 0, 0.55);
    color: white;
    font-size: 9px;
    padding: 2px 5px;
    border-radius: 4px;
    backdrop-filter: blur(4px);
    pointer-events: none;
}

.photo-delete-btn {
    position: absolute;
    top: 3px;
    right: 3px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: none;
    background: rgba(220, 50, 50, 0.75);
    color: white;
    font-size: 11px;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    padding: 0;
}

.timeline-photo-item:hover .photo-delete-btn {
    opacity: 1;
}

.timeline-empty {
    text-align: center;
    padding: 30px 20px;
    color: #bbb;
    font-size: 14px;
}

/* 手机端照片时间线优化 */
@media (max-width: 768px) {
    .timeline-photos {
        gap: 8px;
        padding: 10px;
    }
    
    .timeline-photo-item img {
        width: 70px;
        height: 70px;
        border-radius: 6px;
    }
    
    .photo-body-tag {
        font-size: 8px;
        padding: 1px 4px;
        bottom: 4px;
        left: 3px;
    }
    
    .photo-delete-btn {
        width: 20px;
        height: 20px;
        font-size: 12px;
        opacity: 1;
        top: 2px;
        right: 2px;
    }
    
    .timeline-date {
        font-size: 13px;
        padding: 8px 10px;
    }
}

/* 对比弹窗 - 全屏样式 */
.compare-modal-content {
    max-width: 95vw;
    width: 95vw;
    height: 90vh;
    display: flex;
    flex-direction: column;
    padding: 20px;
}

.compare-modal-content h3 {
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.compare-container {
    display: flex;
    gap: 20px;
    align-items: center;
    justify-content: center;
    flex: 1;
    margin-bottom: 15px;
    min-height: 0;
}

.compare-side {
    flex: 1;
    text-align: center;
    height: 100%;
    display: flex;
    flex-direction: column;
    max-width: 45%;
}

.compare-side img {
    width: 100%;
    height: calc(100% - 40px);
    object-fit: contain;
    border-radius: 12px;
    border: 1px solid rgba(200, 200, 200, 0.5);
    background: rgba(0, 0, 0, 0.05);
    cursor: pointer;
    transition: transform 0.3s;
}

.compare-side img:hover {
    transform: scale(1.02);
}

.compare-label {
    font-size: 14px;
    color: #555;
    margin-bottom: 10px;
    font-weight: 600;
    padding: 8px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 8px;
}

.compare-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 700;
    color: #888;
    flex-shrink: 0;
    padding: 0 10px;
}

/* 手机端照片对比优化 - 上下布局 */
@media (max-width: 768px) {
    .compare-modal-content {
        width: 100vw;
        height: 100vh;
        max-width: 100vw;
        padding: 15px;
        border-radius: 0;
    }
    
    .compare-container {
        flex-direction: column;
        gap: 10px;
        justify-content: flex-start;
        overflow-y: auto;
    }
    
    .compare-side {
        max-width: 100%;
        width: 100%;
        height: auto;
        min-height: 40vh;
    }
    
    .compare-side img {
        height: calc(40vh - 50px);
        min-height: 200px;
        border-radius: 8px;
    }
    
    .compare-label {
        font-size: 12px;
        padding: 6px 10px;
        margin-bottom: 8px;
    }
    
    .compare-divider {
        font-size: 14px;
        padding: 5px 0;
        transform: rotate(90deg);
    }
}

/* 图片全屏查看 */
.photo-fullscreen-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.95);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: zoom-out;
}

.photo-fullscreen-overlay img {
    max-width: 95vw;
    max-height: 95vh;
    object-fit: contain;
}

.photo-fullscreen-note {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.9);
    font-size: 16px;
    background: rgba(0, 0, 0, 0.7);
    padding: 10px 20px;
    border-radius: 20px;
    backdrop-filter: blur(8px);
}

/* 全屏照片查看 */
.photo-fullscreen-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.95);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.photo-fullscreen-overlay.show {
    opacity: 1;
}

.photo-viewer-container {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.photo-viewer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 25px;
    background: linear-gradient(to bottom, rgba(0,0,0,0.6), transparent);
}

.photo-viewer-counter {
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    font-weight: 500;
}

.photo-viewer-close {
    background: rgba(255, 255, 255, 0.15);
    border: none;
    color: white;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.photo-viewer-close:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: scale(1.1);
}

.photo-viewer-content {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 0 60px;
}

.photo-viewer-image-wrapper {
    position: relative;
    max-width: 100%;
    max-height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: grab;
    overflow: hidden;
}

.photo-viewer-image-wrapper:active {
    cursor: grabbing;
}

.photo-viewer-image-wrapper img {
    max-width: 85vw;
    max-height: 75vh;
    object-fit: contain;
    border-radius: 8px;
    transition: transform 0.1s ease-out;
    user-select: none;
    -webkit-user-drag: none;
}

.photo-viewer-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.15);
    border: none;
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 28px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.photo-viewer-nav:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-50%) scale(1.1);
}

.photo-viewer-prev {
    left: 15px;
}

.photo-viewer-next {
    right: 15px;
}

.photo-viewer-footer {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 15px;
    padding: 20px;
    background: linear-gradient(to top, rgba(0,0,0,0.6), transparent);
}

.photo-viewer-info {
    display: flex;
    align-items: center;
    gap: 20px;
    color: white;
    font-size: 14px;
}

.photo-viewer-body-part {
    background: rgba(255, 255, 255, 0.15);
    padding: 6px 14px;
    border-radius: 20px;
    font-weight: 500;
}

.photo-viewer-date {
    color: rgba(255, 255, 255, 0.8);
    font-size: 13px;
}

.photo-viewer-controls-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
}

.photo-viewer-zoom-controls {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.1);
    padding: 8px 16px;
    border-radius: 25px;
}

.photo-viewer-zoom-btn {
    background: rgba(255, 255, 255, 0.15);
    border: none;
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.photo-viewer-zoom-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.photo-viewer-zoom-level {
    color: white;
    font-size: 14px;
    min-width: 50px;
    text-align: center;
    font-weight: 500;
}

.photo-viewer-actions {
    display: flex;
    gap: 12px;
}

.photo-viewer-action-btn {
    background: rgba(255, 255, 255, 0.15);
    border: none;
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 6px;
}

.photo-viewer-action-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.photo-fullscreen-note {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    background: rgba(0, 0, 0, 0.6);
    padding: 10px 20px;
    border-radius: 20px;
    backdrop-filter: blur(8px);
    white-space: nowrap;
    max-width: 80%;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 图片加载动画 */
.photo-viewer-image-wrapper img {
    animation: photoFadeIn 0.3s ease;
}

@keyframes photoFadeIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* 日历📷标记 */
.day-marks {
    display: flex;
    gap: 2px;
    margin-top: 1px;
    justify-content: center;
}

.photo-mark, .measurement-mark {
    font-size: 8px;
    line-height: 1;
}

/* 日期详情中的身体数据 */
.detail-measurement {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(200, 200, 200, 0.3);
}

.detail-measurement-title {
    font-size: 12px;
    color: #888;
    margin-bottom: 8px;
}

.detail-measurement-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}

.detail-m-item {
    background: rgba(255, 255, 255, 0.5);
    border-radius: 8px;
    padding: 8px 10px;
    text-align: center;
}

.detail-m-label {
    display: block;
    font-size: 11px;
    color: #999;
    margin-bottom: 2px;
}

.detail-m-value {
    font-size: 14px;
    font-weight: 600;
    color: #333;
}

/* ========== 体重三围模块 ========== */

/* 今日数据展示 */
.measurements-section {
    padding: 12px 15px 15px;
    border-top: 1px solid rgba(200, 200, 200, 0.4);
    background: rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    margin-top: 15px;
}

.measurements-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0 8px;
}

.measurements-header h3 {
    font-size: 1rem;
    color: #333;
    font-weight: 600;
}

.measurements-display {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}

.measurement-item {
    background: rgba(255, 255, 255, 0.45);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(200, 200, 200, 0.4);
    border-radius: 10px;
    padding: 10px 8px;
    text-align: center;
    transition: all 0.2s;
}

.measurement-item:hover {
    background: rgba(255, 255, 255, 0.6);
}

.measurement-label {
    display: block;
    font-size: 11px;
    color: #888;
    margin-bottom: 4px;
}

.measurement-value {
    font-size: 18px;
    font-weight: 700;
    color: #333;
    display: inline-block;
}

.measurement-value.has-data {
    color: #4CAF50;
}

.measurement-value.last-record {
    color: #FF9800;
    position: relative;
}

.measurement-value.last-record::after {
    content: '*';
    font-size: 12px;
    color: #FF9800;
    margin-left: 2px;
    vertical-align: super;
}

.measurement-unit {
    font-size: 11px;
    color: #aaa;
    margin-left: 2px;
}

/* 输入弹窗 */
.measurement-inputs {
    margin-bottom: 20px;
}

.measurement-input-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}

.measurement-input-row:last-child {
    margin-bottom: 0;
}

.measurement-input-row label {
    width: 80px;
    font-size: 14px;
    color: #555;
    font-weight: 500;
}

.measurement-input-row input {
    flex: 1;
    padding: 12px 14px;
    border: 1px solid rgba(200, 200, 200, 0.5);
    border-radius: 10px;
    font-size: 16px;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    outline: none;
    transition: border-color 0.2s;
}

.measurement-input-row input:focus {
    border-color: rgba(150, 150, 150, 0.8);
}

.measurement-input-row input::placeholder {
    color: #bbb;
}

/* 图表区域 */
.measurements-chart-section {
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 16px;
    transition: all 0.3s ease;
}

.measurements-chart-section:hover {
    background: rgba(255, 255, 255, 0.5);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.measurements-chart-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 15px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(200, 200, 200, 0.3);
}

.measurements-chart-header select {
    padding: 8px 12px;
    border: 1px solid rgba(200, 200, 200, 0.5);
    border-radius: 8px;
    font-size: 13px;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    outline: none;
}

.measurements-chart-title {
    font-size: 14px;
    color: #666;
    font-weight: 600;
}

.measurements-chart {
    height: 160px;
    position: relative;
}

/* 身体数据历史记录 */
.measurements-history-section {
    background: rgba(255, 255, 255, 0.35);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(200, 200, 200, 0.4);
    border-radius: 12px;
    padding: 14px;
    margin-bottom: 16px;
}

.measurements-history-header {
    margin-bottom: 12px;
}

.measurements-history-header h3 {
    font-size: 14px;
    color: #555;
    font-weight: 600;
}

.measurements-history-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 300px;
    overflow-y: auto;
    padding-right: 2px;
}

.measurements-history-list::-webkit-scrollbar {
    width: 4px;
}

.measurements-history-list::-webkit-scrollbar-thumb {
    background: rgba(200, 200, 200, 0.5);
    border-radius: 4px;
}

.measurement-history-item {
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(200, 200, 200, 0.3);
    border-radius: 10px;
    padding: 12px;
    transition: all 0.2s;
}

.measurement-history-item:hover {
    background: rgba(255, 255, 255, 0.65);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.measurement-history-date {
    font-size: 13px;
    font-weight: 600;
    color: #555;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.measurement-history-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 8px;
}

.measurement-history-value {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border: 1px solid rgba(200, 200, 200, 0.3);
    border-radius: 8px;
    padding: 8px 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.mhv-label {
    font-size: 11px;
    color: #888;
    margin-bottom: 4px;
}

.mhv-value {
    font-size: 15px;
    font-weight: 600;
    color: #333;
}

.mhv-unit {
    font-size: 10px;
    color: #999;
    margin-top: 2px;
}

.measurements-history-empty {
    text-align: center;
    color: #999;
    font-size: 13px;
    padding: 20px;
}

/* 服药状况历史记录 */
.medicine-status-history-section {
    background: rgba(255, 255, 255, 0.35);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(200, 200, 200, 0.4);
    border-radius: 12px;
    padding: 14px;
    margin-bottom: 16px;
}

.medicine-status-history-header {
    margin-bottom: 12px;
}

.medicine-status-history-header h3 {
    font-size: 14px;
    color: #555;
    font-weight: 600;
}

.medicine-status-history-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 300px;
    overflow-y: auto;
    padding-right: 2px;
}

.medicine-status-history-list::-webkit-scrollbar {
    width: 4px;
}

.medicine-status-history-list::-webkit-scrollbar-thumb {
    background: rgba(200, 200, 200, 0.5);
    border-radius: 4px;
}

.medicine-status-history-item {
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(200, 200, 200, 0.3);
    border-radius: 10px;
    padding: 12px;
    transition: all 0.2s;
}

.medicine-status-history-item:hover {
    background: rgba(255, 255, 255, 0.65);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.medicine-status-history-date {
    font-size: 13px;
    font-weight: 600;
    color: #555;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.medicine-status-history-content {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.msh-emoji {
    font-size: 20px;
    flex-shrink: 0;
}

.msh-info {
    flex: 1;
}

.msh-medicine {
    font-size: 13px;
    font-weight: 600;
    color: #333;
    margin-bottom: 4px;
}

.msh-status {
    font-size: 12px;
    color: #666;
    margin-bottom: 4px;
}

.msh-note {
    font-size: 11px;
    color: #888;
    background: rgba(255, 255, 255, 0.5);
    padding: 6px 8px;
    border-radius: 6px;
    margin-top: 6px;
}

.msh-symptoms {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-top: 6px;
}

.msh-symptom-tag {
    font-size: 10px;
    background: rgba(200, 200, 200, 0.3);
    padding: 3px 6px;
    border-radius: 4px;
    color: #666;
}

/* 重大变化事件历史记录 */
.event-history-section {
    background: rgba(255, 255, 255, 0.35);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(200, 200, 200, 0.4);
    border-radius: 12px;
    padding: 14px;
    margin-bottom: 16px;
}

.event-history-header {
    margin-bottom: 12px;
}

.event-history-header h3 {
    font-size: 14px;
    color: #555;
    font-weight: 600;
}

.event-history-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 300px;
    overflow-y: auto;
    padding-right: 2px;
}

.event-history-list::-webkit-scrollbar {
    width: 4px;
}

.event-history-list::-webkit-scrollbar-thumb {
    background: rgba(200, 200, 200, 0.5);
    border-radius: 4px;
}

.event-history-item {
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(200, 200, 200, 0.3);
    border-radius: 10px;
    padding: 12px;
    transition: all 0.2s;
}

.event-history-item:hover {
    background: rgba(255, 255, 255, 0.65);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.event-history-date {
    font-size: 13px;
    font-weight: 600;
    color: #555;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.event-history-content {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.eh-title {
    font-size: 13px;
    font-weight: 600;
    color: #333;
}

.eh-type-badge {
    display: inline-block;
    font-size: 10px;
    padding: 2px 8px;
    border-radius: 10px;
    background: rgba(200, 200, 200, 0.3);
    color: #666;
    margin-left: 8px;
    font-weight: normal;
}

.eh-note {
    font-size: 12px;
    color: #666;
    line-height: 1.5;
}

.medicine-status-history-empty,
.event-history-empty {
    text-align: center;
    color: #999;
    font-size: 13px;
    padding: 20px;
}

/* ==================== 今日事件展示样式 ==================== */
.today-events-section {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid rgba(200, 200, 200, 0.4);
}

.today-events-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.today-events-emoji {
    font-size: 18px;
}

.today-events-title {
    font-size: 14px;
    font-weight: 600;
    color: #333;
}

.today-events-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.today-event-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(200, 200, 200, 0.3);
    border-radius: 12px;
    transition: all 0.2s;
}

.today-event-item:hover {
    background: rgba(255, 255, 255, 0.7);
    transform: translateX(2px);
}

.today-event-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.today-event-content {
    flex: 1;
    min-width: 0;
}

.today-event-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
    flex-wrap: wrap;
}

.today-event-title {
    font-size: 14px;
    font-weight: 600;
    color: #333;
}

.today-event-type {
    font-size: 10px;
    padding: 2px 8px;
    border-radius: 10px;
    font-weight: 500;
}

.today-event-note {
    font-size: 12px;
    color: #666;
    line-height: 1.4;
    margin-top: 4px;
}

.today-event-time {
    font-size: 11px;
    color: #999;
    margin-top: 4px;
}

.today-event-actions {
    display: flex;
    gap: 4px;
    opacity: 0;
    transition: opacity 0.2s;
}

.today-event-item:hover .today-event-actions {
    opacity: 1;
}

.today-event-btn {
    width: 28px;
    height: 28px;
    border: none;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.today-event-btn:hover {
    background: rgba(255, 255, 255, 1);
    transform: scale(1.1);
}

.today-event-btn.delete:hover {
    background: #ffebee;
}

/* ==================== 事件历史记录样式优化 ==================== */
.event-history-item {
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(200, 200, 200, 0.3);
    border-radius: 10px;
    padding: 12px;
    transition: all 0.2s;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.event-history-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
}

.event-history-content {
    flex: 1;
    min-width: 0;
}

.eh-title {
    font-size: 13px;
    font-weight: 600;
    color: #333;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
}

.eh-type-badge {
    font-size: 10px;
    padding: 2px 8px;
    border-radius: 10px;
    font-weight: 500;
}

.eh-note {
    font-size: 12px;
    color: #666;
    line-height: 1.5;
    margin-top: 4px;
}

.eh-time {
    font-size: 11px;
    color: #999;
    margin-top: 4px;
}

.event-history-actions {
    display: flex;
    gap: 4px;
    opacity: 0;
    transition: opacity 0.2s;
}

.event-history-item:hover .event-history-actions {
    opacity: 1;
}

.eh-btn {
    width: 26px;
    height: 26px;
    border: none;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.eh-btn:hover {
    background: rgba(255, 255, 255, 1);
    transform: scale(1.1);
}

.eh-btn.delete:hover {
    background: #ffebee;
}

/* ==================== 日历详情页事件样式 ==================== */
.detail-events {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid rgba(200, 200, 200, 0.3);
}

.detail-events-title {
    font-size: 13px;
    font-weight: 600;
    color: #555;
    margin-bottom: 10px;
}

.detail-events-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.detail-event-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 10px;
    border: 1px solid rgba(200, 200, 200, 0.2);
}

.detail-event-icon {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    flex-shrink: 0;
}

.detail-event-content {
    flex: 1;
}

.detail-event-header {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 2px;
}

.detail-event-title {
    font-size: 13px;
    font-weight: 600;
    color: #333;
}

.detail-event-type {
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 8px;
    font-weight: 500;
}

.detail-event-note {
    font-size: 12px;
    color: #666;
    line-height: 1.4;
    margin-top: 4px;
}

.detail-event-time {
    font-size: 11px;
    color: #999;
    margin-top: 2px;
}

/* ==================== 事件统计样式 ==================== */
.event-stats-section {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(200, 200, 200, 0.3);
}

.event-stats-section h4 {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 12px;
}

.event-stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 15px;
}

.event-stat-card {
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(200, 200, 200, 0.3);
    border-radius: 12px;
    padding: 15px;
    text-align: center;
}

.event-stat-value {
    font-size: 24px;
    font-weight: 700;
    color: #333;
    margin-bottom: 4px;
}

.event-stat-label {
    font-size: 12px;
    color: #666;
}

.event-type-distribution {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.event-type-stat {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.4);
}

.event-type-icon {
    font-size: 16px;
}

.event-type-name {
    flex: 1;
    font-size: 13px;
    color: #333;
}

.event-type-count {
    font-size: 14px;
    font-weight: 600;
    color: #666;
}

/* 设置页面 */
.settings-section h4 {
    font-size: 15px;
    color: #555;
    margin-bottom: 12px;
}

.backup-actions {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
}

.backup-btn {
    flex: 1;
    padding: 12px 16px;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    background: rgba(76, 175, 80, 0.15);
    color: #2E7D32;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(76, 175, 80, 0.3);
}

.backup-btn:hover {
    background: rgba(76, 175, 80, 0.25);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.2);
}

.backup-btn.btn-secondary {
    background: rgba(33, 150, 243, 0.15);
    color: #1976D2;
    border: 1px solid rgba(33, 150, 243, 0.3);
}

.backup-btn.btn-secondary:hover {
    background: rgba(33, 150, 243, 0.25);
    box-shadow: 0 4px 12px rgba(33, 150, 243, 0.2);
}

.backup-info {
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(200, 200, 200, 0.4);
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 16px;
}

.backup-info h5 {
    font-size: 13px;
    color: #555;
    margin-bottom: 10px;
}

.backup-info ul {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

.backup-info li {
    font-size: 12px;
    color: #666;
    padding: 6px 0;
    line-height: 1.6;
    padding-left: 20px;
    position: relative;
}

.backup-info li:before {
    content: "•";
    position: absolute;
    left: 8px;
    color: #4CAF50;
    font-weight: bold;
}

.backup-info li strong {
    color: #333;
}

.storage-info {
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(200, 200, 200, 0.4);
    border-radius: 12px;
    padding: 15px;
}

.storage-info h5 {
    font-size: 13px;
    color: #555;
    margin-bottom: 10px;
}

.storage-detail {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: #666;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 8px;
}

/* 云端同步 */
.cloud-backup-section {
    background: linear-gradient(135deg, rgba(66, 153, 225, 0.1) 0%, rgba(98, 171, 240, 0.1) 100%);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(66, 153, 225, 0.3);
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 16px;
}

.cloud-backup-section h4 {
    font-size: 14px;
    color: #1976D2;
    margin-bottom: 8px;
}

.cloud-backup-section > p {
    font-size: 12px;
    color: #666;
    margin-bottom: 12px !important;
}

.cloud-actions {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.btn-cloud-upload,
.btn-cloud-download,
.btn-cloud-sync {
    flex: 1;
    padding: 10px 14px;
    border: none;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.btn-cloud-upload {
    background: rgba(76, 175, 80, 0.15);
    color: #2E7D32;
    border: 1px solid rgba(76, 175, 80, 0.3);
}

.btn-cloud-upload:hover {
    background: rgba(76, 175, 80, 0.25);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.2);
}

.btn-cloud-download {
    background: rgba(33, 150, 243, 0.15);
    color: #1976D2;
    border: 1px solid rgba(33, 150, 243, 0.3);
}

.btn-cloud-download:hover {
    background: rgba(33, 150, 243, 0.25);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(33, 150, 243, 0.2);
}

.btn-cloud-sync {
    background: rgba(255, 152, 0, 0.15);
    color: #F57C00;
    border: 1px solid rgba(255, 152, 0, 0.3);
}

.btn-cloud-sync:hover {
    background: rgba(255, 152, 0, 0.25);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 152, 0, 0.2);
}

.btn-cloud-sync.sync-enabled {
    background: rgba(76, 175, 80, 0.2);
    color: #388E3C;
    border: 1px solid rgba(76, 175, 80, 0.4);
}

.cloud-status {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(200, 200, 200, 0.4);
    border-radius: 10px;
    padding: 12px;
    margin-bottom: 12px;
}

.status-row {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    font-size: 12px;
    color: #666;
}

.status-row:first-child {
    border-bottom: 1px solid rgba(200, 200, 200, 0.3);
}

.server-config-section {
    text-align: center;
}

.btn-config-server {
    width: 100%;
    padding: 10px;
    background: rgba(158, 158, 158, 0.15);
    color: #616161;
    border: 1px solid rgba(158, 158, 158, 0.3);
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.btn-config-server:hover {
    background: rgba(158, 158, 158, 0.25);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(158, 158, 158, 0.2);
}

/* SVG 图表样式 */
.measurement-chart-svg {
    width: 100%;
    height: 100%;
}

.chart-line {
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.chart-line-weight { stroke: #2196F3; }
.chart-line-bust { stroke: #E91E63; }
.chart-line-waist { stroke: #FF9800; }
.chart-line-hip { stroke: #9C27B0; }

.chart-dot {
    r: 4;
    cursor: pointer;
    transition: r 0.2s;
}

.chart-dot:hover {
    r: 6;
}

/* 图表数据点提示框 */
.chart-tooltip {
    position: fixed;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(200, 200, 200, 0.3);
    border-radius: 10px;
    padding: 10px 14px;
    font-size: 13px;
    color: #333;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s;
    z-index: 1000;
    max-width: 200px;
}

.chart-tooltip.show {
    opacity: 1;
}

.chart-tooltip-date {
    font-weight: 600;
    color: #666;
    margin-bottom: 6px;
    font-size: 12px;
}

.chart-tooltip-item {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 4px 0;
}

.chart-tooltip-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.chart-tooltip-label {
    color: #888;
}

.chart-tooltip-value {
    font-weight: 600;
    color: #333;
}

.chart-dot-weight { fill: #2196F3; }
.chart-dot-bust { fill: #E91E63; }
.chart-dot-waist { fill: #FF9800; }
.chart-dot-hip { fill: #9C27B0; }

.chart-grid-line {
    stroke: rgba(200, 200, 200, 0.3);
    stroke-width: 1;
}

.chart-axis-text {
    font-size: 9px;
    fill: #999;
}

.chart-legend {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-top: 8px;
    flex-wrap: wrap;
}

.chart-legend-item {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    color: #666;
}

.chart-legend-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.chart-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: #bbb;
    font-size: 13px;
}

/* 日期详情中的照片 */
.detail-photos {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid rgba(200, 200, 200, 0.3);
}

.detail-photos img {
    width: 58px;
    height: 58px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    border: 1px solid rgba(200, 200, 200, 0.4);
    transition: transform 0.2s;
}

.detail-photos img:hover {
    transform: scale(1.06);
}

/* ========== 服药状况模块 ========== */

.status-medicine-name {
    text-align: center;
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 20px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 10px;
    border: 1px solid rgba(200, 200, 200, 0.4);
}

.status-section {
    margin-bottom: 20px;
}

.status-label {
    display: block;
    font-size: 14px;
    color: #555;
    margin-bottom: 12px;
    font-weight: 500;
}

.status-options {
    display: flex;
    gap: 10px;
}

.status-btn {
    flex: 1;
    padding: 14px 8px;
    border: 2px solid rgba(200, 200, 200, 0.5);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.status-btn:hover {
    background: rgba(255, 255, 255, 0.8);
    border-color: rgba(150, 150, 150, 0.6);
}

.status-btn.selected {
    border-color: #4CAF50;
    background: rgba(76, 175, 80, 0.15);
}

.status-btn[data-status="bad"].selected {
    border-color: #FF9800;
    background: rgba(255, 152, 0, 0.15);
}

.status-btn[data-status="normal"].selected {
    border-color: #4CAF50;
    background: rgba(76, 175, 80, 0.15);
}

.status-btn[data-status="terrible"].selected {
    border-color: #f44336;
    background: rgba(244, 67, 54, 0.15);
}

.status-note {
    width: 100%;
    padding: 12px;
    border: 1px solid rgba(200, 200, 200, 0.5);
    border-radius: 10px;
    font-size: 14px;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    resize: none;
    height: 80px;
    font-family: inherit;
    outline: none;
}

.status-note:focus {
    border-color: rgba(150, 150, 150, 0.8);
}

/* 快捷症状标签 */
.symptom-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.symptom-tag {
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(200, 200, 200, 0.5);
    border-radius: 20px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
    user-select: none;
}

.symptom-tag:hover {
    background: rgba(255, 255, 255, 0.8);
    border-color: rgba(150, 150, 150, 0.6);
}

.symptom-tag.selected {
    background: rgba(244, 67, 54, 0.15);
    border-color: rgba(244, 67, 54, 0.5);
    color: #d32f2f;
}

/* 今日服药状况展示 */
/* 今日记录区域 */
.today-records-section {
    padding: 15px;
    border-top: 1px solid rgba(200, 200, 200, 0.4);
    margin-top: 15px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 12px;
}

.today-records-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 0 10px;
}

.today-records-header h3 {
    font-size: 15px;
    font-weight: 600;
    color: #333;
    margin: 0;
}

.today-records-content {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.today-records-hint {
    padding: 20px 15px;
    text-align: center;
    color: #888;
    font-size: 13px;
    line-height: 1.8;
    background: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 12px;
    border: 1px dashed rgba(200, 200, 200, 0.5);
}

.today-records-hint p {
    margin: 0;
}

/* 今日记录 - 身体数据展示 */
.today-measurement-item {
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 15px;
    border: 1px solid rgba(200, 200, 200, 0.3);
}

.today-measurement-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(200, 200, 200, 0.3);
}

.today-measurement-emoji {
    font-size: 20px;
}

.today-measurement-title {
    font-size: 14px;
    font-weight: 600;
    color: #333;
}

.today-measurement-values {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.today-measurement-value {
    display: flex;
    align-items: baseline;
    gap: 4px;
    padding: 8px 10px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 8px;
}

.today-measurement-label {
    font-size: 12px;
    color: #666;
    flex: 1;
}

.today-measurement-number {
    font-size: 16px;
    font-weight: 700;
    color: #4CAF50;
}

.today-measurement-unit {
    font-size: 11px;
    color: #999;
}

.add-event-btn {
    padding: 6px 14px;
    font-size: 13px;
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    color: #333;
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.2s;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.add-event-btn:hover {
    background: rgba(255, 255, 255, 0.65);
    border-color: rgba(255, 255, 255, 0.8);
    color: #111;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.event-record-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.event-record-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 12px;
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(200, 200, 200, 0.3);
    border-radius: 10px;
    transition: all 0.2s;
}

.event-record-item:hover {
    background: rgba(255, 255, 255, 0.8);
    border-color: rgba(76, 175, 80, 0.3);
    transform: translateX(2px);
}

.event-record-emoji {
    font-size: 20px;
    flex-shrink: 0;
}

.event-record-info {
    flex: 1;
    min-width: 0;
}

.event-record-title {
    font-size: 13px;
    font-weight: 600;
    color: #2c2c2c;
    margin-bottom: 3px;
}

.event-record-note {
    font-size: 12px;
    color: #888;
    line-height: 1.4;
}

.event-record-empty {
    text-align: center;
    padding: 15px;
    color: #aaa;
    font-size: 13px;
}

.medicine-status-empty {
    text-align: center;
    padding: 15px;
    color: #aaa;
    font-size: 13px;
}

/* 事件弹窗样式 */
.event-modal-select {
    width: 100%;
    padding: 10px 12px;
    margin: 10px 0;
    border: 1px solid rgba(200, 200, 200, 0.5);
    border-radius: 8px;
    font-size: 14px;
    background: rgba(255, 255, 255, 0.9);
    cursor: pointer;
}

.event-modal-note {
    width: 100%;
    padding: 10px 12px;
    margin: 10px 0;
    border: 1px solid rgba(200, 200, 200, 0.5);
    border-radius: 8px;
    font-family: inherit;
    font-size: 14px;
    resize: vertical;
    min-height: 80px;
    background: rgba(255, 255, 255, 0.9);
}

.medicine-status-header h3 {
    font-size: 1rem;
    color: #333;
    font-weight: 600;
}

.medicine-status-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.medicine-status-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.45);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(200, 200, 200, 0.4);
    border-radius: 12px;
}

.medicine-status-emoji {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.medicine-status-emoji.good {
    background: rgba(76, 175, 80, 0.2);
}

.medicine-status-emoji.normal {
    background: rgba(255, 152, 0, 0.2);
}

.medicine-status-emoji.bad {
    background: rgba(244, 67, 54, 0.2);
}

.medicine-status-info {
    flex: 1;
    min-width: 0;
}

.medicine-status-name {
    font-size: 14px;
    font-weight: 500;
    color: #333;
    margin-bottom: 2px;
}

.medicine-status-text {
    font-size: 12px;
    color: #888;
}

.medicine-status-note {
    font-size: 11px;
    color: #999;
    margin-top: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 日历服药状况标记 */
.status-mark {
    font-size: 8px;
    line-height: 1;
}

/* 日历事件标记 */
.event-record-mark {
    font-size: 8px;
    line-height: 1;
}

/* 补打卡按钮 */
.makeup-checkin-btn {
    width: 100%;
    padding: 10px;
    margin-bottom: 12px;
    border: 1px solid rgba(76, 175, 80, 0.5);
    border-radius: 10px;
    background: rgba(76, 175, 80, 0.15);
    color: #388E3C;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.makeup-checkin-btn:hover {
    background: rgba(76, 175, 80, 0.25);
    border-color: rgba(76, 175, 80, 0.7);
}

/* 补打卡弹窗样式 */
.makeup-date-display {
    text-align: center;
    font-size: 15px;
    color: #666;
    margin-bottom: 16px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 10px;
    border: 1px solid rgba(200, 200, 200, 0.4);
}

.makeup-medicine-list {
    max-height: 300px;
    overflow-y: auto;
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.makeup-medicine-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.5);
    border: 2px solid rgba(200, 200, 200, 0.4);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s;
}

.makeup-medicine-item:hover {
    background: rgba(255, 255, 255, 0.7);
    border-color: rgba(150, 150, 150, 0.5);
}

.makeup-medicine-item.selected {
    border-color: #4CAF50;
    background: rgba(76, 175, 80, 0.15);
}

.makeup-medicine-item.completed {
    opacity: 0.6;
    cursor: not-allowed;
    background: rgba(200, 200, 200, 0.3);
}

.makeup-medicine-item.completed .makeup-medicine-status {
    color: #4CAF50;
}

.makeup-medicine-item.partial .makeup-medicine-status {
    color: #FF9800;
}

.makeup-medicine-item.none .makeup-medicine-status {
    color: #999;
}

.makeup-medicine-checkbox {
    width: 22px;
    height: 22px;
    border: 2px solid rgba(200, 200, 200, 0.6);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.2s;
}

.makeup-medicine-item.selected .makeup-medicine-checkbox {
    border-color: #4CAF50;
    background: #4CAF50;
}

.makeup-checkbox-inner {
    width: 10px;
    height: 10px;
    background: white;
    border-radius: 2px;
    opacity: 0;
    transition: opacity 0.2s;
}

.makeup-checkbox-inner.checked {
    opacity: 1;
}

/* 补打卡弹窗样式 */
.makeup-modal-content {
    max-height: 80vh;
    overflow-y: auto;
    max-width: 550px;
    width: 95%;
}

.makeup-section {
    margin-bottom: 20px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.makeup-section h4 {
    font-size: 14px;
    color: #333;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.makeup-event-toggle,
.makeup-weight-toggle,
.makeup-photo-toggle {
    margin-bottom: 10px;
}

/* 补打卡时间选择 */
.makeup-time-selector {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.makeup-time-input {
    padding: 12px 14px;
    border: 1px solid rgba(200, 200, 200, 0.4);
    border-radius: 10px;
    font-size: 16px;
    background: rgba(255, 255, 255, 0.7);
    color: #333;
    width: 100%;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.05);
    transition: all 0.2s ease;
}

.makeup-time-input:hover {
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(150, 150, 150, 0.5);
}

.makeup-time-input:focus {
    outline: none;
    background: #fff;
    border-color: #4CAF50;
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.15);
}

.makeup-time-hint {
    font-size: 12px;
    color: #888;
    margin-top: 4px;
}

.makeup-event-form,
.makeup-weight-form,
.makeup-photo-form {
    animation: slideDown 0.2s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.makeup-event-form input,
.makeup-event-form select,
.makeup-event-form textarea {
    width: 100%;
    padding: 10px 12px;
    margin-bottom: 10px;
    border: 1px solid rgba(0,0,0,0.1);
    border-radius: 8px;
    font-size: 14px;
    background: rgba(255, 255, 255, 0.7);
}

.makeup-event-form textarea {
    min-height: 60px;
    resize: vertical;
}

.makeup-weight-form .weight-input-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.makeup-weight-form input {
    flex: 1;
    padding: 10px 12px;
    border: 1px solid rgba(0,0,0,0.1);
    border-radius: 8px;
    font-size: 14px;
    background: rgba(255, 255, 255, 0.7);
}

.makeup-weight-form .weight-unit {
    font-size: 14px;
    color: #666;
}

.makeup-medicine-info {
    flex: 1;
    min-width: 0;
}

.makeup-medicine-name {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 500;
    color: #333;
    margin-bottom: 4px;
}

.makeup-color-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}

.makeup-medicine-status {
    font-size: 12px;
    color: #888;
}

/* 补打卡次数选择器 */
.makeup-count-selector {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 6px;
}

.makeup-count-selector label {
    font-size: 12px;
    color: #666;
}

.makeup-count-selector select {
    padding: 4px 8px;
    border: 1px solid rgba(200, 200, 200, 0.6);
    border-radius: 6px;
    background: white;
    font-size: 13px;
    color: #333;
    cursor: pointer;
}

.makeup-count-selector select:focus {
    outline: none;
    border-color: #4CAF50;
}

/* 库存不足警告 */
.makeup-stock-warning {
    font-size: 11px;
    color: #f44336;
    margin-top: 4px;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* 详情中的补打卡标记 */
.makeup-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #FF9800;
    color: white;
    font-size: 10px;
    padding: 1px 4px;
    border-radius: 4px;
    margin-left: 4px;
    font-weight: 500;
}

/* 日期详情中的服药状况 */
.detail-medicine-status {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(200, 200, 200, 0.3);
}

.detail-medicine-status-title {
    font-size: 12px;
    color: #888;
    margin-bottom: 10px;
}

.detail-medicine-status-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.detail-medicine-status-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 10px;
}

.detail-medicine-status-emoji {
    font-size: 20px;
}

.detail-medicine-status-info {
    flex: 1;
}

.detail-medicine-status-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2px;
}

.detail-medicine-status-name {
    font-size: 13px;
    font-weight: 500;
    color: #333;
}

.detail-medicine-status-time {
    font-size: 11px;
    color: #999;
    background: rgba(255, 255, 255, 0.5);
    padding: 2px 6px;
    border-radius: 8px;
}

.detail-medicine-status-text {
    font-size: 11px;
    color: #888;
}

.detail-medicine-status-note {
    font-size: 11px;
    color: #666;
    margin-top: 4px;
    word-break: break-word;
}

/* 移动端底部Tab导航 - 默认隐藏 */
.mobile-bottom-tabs {
    display: none;
}

/* 汉堡菜单按钮 - 默认隐藏（仅手机端显示） */
.hamburger-btn {
    display: none;
}

/* 侧边栏导航 - 默认隐藏 */
.sidebar-overlay {
    display: none;
}

.sidebar-nav {
    display: none;
}

/* Responsive */
@media (max-width: 900px) {
    body {
        overflow: auto;
        height: auto;
        min-height: 100vh;
        padding: 0; /* 全屏显示，去除padding */
        padding-bottom: 70px; /* 为底部Tab预留空间 */
    }

    .main-wrapper {
        flex-direction: column;
        align-items: center;
        height: auto;
        padding: 0;
        gap: 0;
    }

    .container {
        width: 100vw;
        max-width: 100vw; /* 全屏宽度 */
        height: 100vh;
        max-height: 100vh;
        min-height: 100vh;
        border-radius: 0; /* 去除圆角 */
        margin: 0;
        overflow-y: auto;
    }

    /* 手机端：默认隐藏右侧卡片 */
    .container.side-panel {
        display: none;
    }

    /* 手机端：当切换到功能面板时显示右侧，隐藏左侧 */
    body.show-side-panel .container:not(.side-panel) {
        display: none;
    }

    body.show-side-panel .container.side-panel {
        display: block;
    }

    /* 手机端：隐藏左侧卡片的顶部Tab导航（改用侧边栏） */
    .container:not(.side-panel) .tabs {
        display: none;
    }

    /* 手机端：隐藏右侧功能面板的Tab导航 */
    .container.side-panel .tabs {
        display: none;
    }

    .tab-content {
        overflow-y: visible;
    }

    .countdown-grid {
        flex-direction: column;
    }

    .countdown-section {
        padding: 15px;
    }

    /* 显示底部Tab导航 */
    .mobile-bottom-tabs {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        border-top: 1px solid rgba(200, 200, 200, 0.4);
        box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
        z-index: 1000;
        padding: 8px 0;
        justify-content: space-around;
    }

    .mobile-tab {
        flex: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: 6px 0;
        border: none;
        background: none;
        cursor: pointer;
        transition: all 0.3s;
        color: #888;
    }

    .mobile-tab-icon {
        font-size: 22px;
        margin-bottom: 2px;
    }

    .mobile-tab-text {
        font-size: 11px;
        font-weight: 500;
    }

    .mobile-tab.active {
        color: #333;
    }

    .mobile-tab.active .mobile-tab-icon {
        transform: scale(1.1);
    }

    /* 汉堡菜单按钮 */
    .hamburger-btn {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        position: absolute;
        top: 15px;
        left: 15px;
        width: 44px;
        height: 44px;
        background: rgba(255, 255, 255, 0.8);
        border: none;
        border-radius: 12px;
        cursor: pointer;
        z-index: 100;
        padding: 10px;
        gap: 5px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    }

    .hamburger-btn span {
        display: block;
        width: 22px;
        height: 2.5px;
        background: #333;
        border-radius: 2px;
        transition: all 0.3s;
    }

    .hamburger-btn.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .hamburger-btn.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger-btn.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }

    /* 侧边栏遮罩层 */
    .sidebar-overlay {
        display: block;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: 1001;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s;
    }

    .sidebar-overlay.active {
        opacity: 1;
        visibility: visible;
    }

    /* 侧边栏导航 */
    .sidebar-nav {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 0;
        left: 0;
        bottom: 0;
        width: 280px;
        max-width: 85vw;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        z-index: 1002;
        transform: translateX(-100%);
        transition: transform 0.3s ease-out;
        box-shadow: 2px 0 20px rgba(0, 0, 0, 0.15);
    }

    .sidebar-nav.active {
        transform: translateX(0);
    }

    .sidebar-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 20px;
        border-bottom: 1px solid rgba(200, 200, 200, 0.3);
        background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    }

    .sidebar-header h3 {
        margin: 0;
        font-size: 18px;
        color: #333;
    }

    .sidebar-close {
        width: 36px;
        height: 36px;
        border: none;
        background: rgba(0, 0, 0, 0.05);
        border-radius: 50%;
        font-size: 18px;
        color: #666;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: all 0.2s;
    }

    .sidebar-close:hover {
        background: rgba(0, 0, 0, 0.1);
    }

    .sidebar-menu {
        flex: 1;
        overflow-y: auto;
        padding: 15px 10px;
    }

    .sidebar-tab {
        display: flex;
        align-items: center;
        width: 100%;
        padding: 15px 20px;
        margin-bottom: 5px;
        border: none;
        background: none;
        border-radius: 12px;
        cursor: pointer;
        transition: all 0.2s;
        color: #555;
        font-size: 16px;
    }

    .sidebar-tab-icon {
        font-size: 22px;
        margin-right: 15px;
        width: 30px;
        text-align: center;
    }

    .sidebar-tab-text {
        font-weight: 500;
    }

    .sidebar-tab:hover {
        background: rgba(0, 0, 0, 0.03);
    }

    .sidebar-tab.active {
        background: linear-gradient(135deg, rgba(102, 126, 234, 0.15) 0%, rgba(118, 75, 162, 0.15) 100%);
        color: #667eea;
    }

    /* 功能区侧边栏（从右侧滑入） */
    .side-sidebar-overlay {
        z-index: 1003;
    }

    .side-sidebar-nav {
        z-index: 1004;
        left: auto;
        right: 0;
        transform: translateX(100%);
        box-shadow: -2px 0 20px rgba(0, 0, 0, 0.15);
    }

    .side-sidebar-nav.active {
        transform: translateX(0);
    }

    /* 功能区汉堡按钮（放在右侧） */
    .hamburger-btn.side-hamburger {
        left: auto;
        right: 15px;
    }

    /* 弹窗全屏显示 */
    .modal-content,
    .medicine-modal-content,
    .beauty-modal-content,
    .makeup-modal-content,
    .inventory-edit-modal .modal-content {
        width: 100vw;
        max-width: 100vw;
        height: 100vh;
        max-height: 100vh;
        border-radius: 0;
        padding: 20px;
        padding-top: 60px; /* 为关闭按钮留出空间 */
        overflow-y: auto;
    }

    /* 弹窗头部固定 */
    .modal-header-with-close {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        padding: 15px 20px;
        z-index: 10;
        border-bottom: 1px solid rgba(200, 200, 200, 0.3);
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .modal-header-with-close h3 {
        margin: 0;
        font-size: 18px;
    }

    /* 弹窗关闭按钮 */
    .modal-close-btn {
        width: 36px;
        height: 36px;
        border: none;
        background: rgba(0, 0, 0, 0.05);
        border-radius: 50%;
        font-size: 24px;
        color: #666;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        line-height: 1;
    }

    /* 普通弹窗标题也需要调整 */
    .modal-content > h3:first-child {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        padding: 15px 20px;
        margin: 0;
        z-index: 10;
        border-bottom: 1px solid rgba(200, 200, 200, 0.3);
        font-size: 18px;
    }

    /* 有标题的弹窗内容需要调整padding */
    .modal-content > h3:first-child + * {
        margin-top: 50px;
    }
}

@media (max-width: 400px) {
    body {
        padding: 0;
        padding-bottom: 70px;
    }

    .container {
        border-radius: 0;
    }

    header {
        padding: 20px 15px;
        padding-left: 60px; /* 为汉堡按钮留出空间 */
    }

    .medicine-grid {
        gap: 10px;
    }

    .medicine-card {
        padding: 15px;
    }

    .stats-grid {
        gap: 10px;
    }

    .stat-card {
        padding: 15px 10px;
    }

    .stat-value {
        font-size: 24px;
    }

    /* Tab 栏小屏幕适配 */
    .tabs {
        flex-wrap: wrap;
        gap: 5px;
    }

    .tab {
        padding: 8px 12px;
        font-size: 13px;
        flex: 1;
        min-width: 60px;
    }
}

/* ==================== 脱毛仪功能样式 ==================== */

/* 脱毛仪Tab内容区 */
.beauty-section {
    padding: 20px 16px;
    border-radius: 16px;
}

.beauty-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 20px;
    text-align: center;
}

/* 今日状态卡片 */
.beauty-today-status {
    margin-bottom: 20px;
}

.beauty-status-card {
    background: rgba(255, 255, 255, 0.7);
    border-radius: 16px;
    padding: 24px;
    margin: 0 16px;
    text-align: center;
    color: #333;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(10px);
}

.beauty-status-icon {
    font-size: 48px;
    margin-bottom: 12px;
}

.beauty-status-text {
    font-size: 18px;
    font-weight: 500;
    margin-bottom: 8px;
}

.beauty-status-date {
    font-size: 14px;
    opacity: 0.9;
}

/* 打卡按钮 */
.beauty-checkin-btn {
    width: calc(100% - 32px);
    padding: 18px 24px;
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 16px;
    color: #333;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    margin: 0 16px 24px;
    backdrop-filter: blur(10px);
}

.beauty-checkin-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
    background: rgba(255, 255, 255, 0.95);
}

.beauty-checkin-btn:active {
    transform: translateY(0);
}

.btn-icon {
    font-size: 24px;
}

/* 今日记录区域 */
.beauty-records-section {
    margin-bottom: 24px;
}

.beauty-records-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.beauty-records-header h4 {
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.beauty-records-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.beauty-record-item {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 16px;
    border-left: 4px solid #f5576c;
}

.beauty-record-time {
    font-size: 13px;
    color: #666;
    margin-bottom: 8px;
}

.beauty-record-details {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 8px;
}

.beauty-record-parts {
    font-weight: 600;
    color: #333;
}

.beauty-record-level {
    background: #ffe4e1;
    color: #d63384;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
}

.beauty-record-feeling {
    background: #e7f3ff;
    color: #0066cc;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
}

.beauty-record-reactions {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
}

.reaction-badge {
    background: #fff3cd;
    color: #856404;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11px;
}

.beauty-record-note {
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px dashed #ddd;
    font-size: 13px;
    color: #666;
}

/* 统计区域 */
.beauty-stats-section {
    margin-bottom: 24px;
}

.beauty-stats-header {
    margin-bottom: 12px;
}

.beauty-stats-header h4 {
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.beauty-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin: 0 16px;
}

.beauty-stat-card {
    background: white;
    border-radius: 12px;
    padding: 16px 8px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    border: 1px solid #f0f0f0;
}

.beauty-stat-value {
    font-size: 28px;
    font-weight: 700;
    color: #f5576c;
    margin-bottom: 4px;
}

.beauty-stat-label {
    font-size: 12px;
    color: #666;
}

/* 最近使用区域 */
.beauty-recent-section {
    margin-bottom: 20px;
}

.beauty-recent-header {
    margin-bottom: 12px;
}

.beauty-recent-header h4 {
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.beauty-recent-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.beauty-recent-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
    border: 1px solid #f0f0f0;
}

.beauty-recent-date {
    font-size: 13px;
    color: #666;
    min-width: 80px;
}

.beauty-recent-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.beauty-recent-info span:first-child {
    font-size: 13px;
    color: #333;
}

.beauty-recent-level {
    font-size: 12px;
    color: #f5576c;
    background: #ffe4e1;
    padding: 2px 6px;
    border-radius: 4px;
    width: fit-content;
}

.beauty-recent-feeling {
    font-size: 20px;
}

.beauty-empty-tip {
    text-align: center;
    padding: 24px;
    color: #999;
    font-size: 14px;
}

/* ==================== 脱毛仪倒计时区域 ==================== */
.beauty-countdown-section {
    background: rgba(255, 255, 255, 0.6);
    border-radius: 16px;
    padding: 20px;
    margin: 0 16px 20px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(10px);
}

.beauty-countdown-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.beauty-countdown-header h4 {
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.beauty-countdown-tip {
    font-size: 12px;
    color: #888;
}

.beauty-countdown-display {
    background: linear-gradient(135deg, rgba(247, 194, 66, 0.15) 0%, rgba(230, 176, 47, 0.15) 100%);
    border-radius: 12px;
    padding: 24px;
    text-align: center;
    margin-bottom: 16px;
    border: 1px solid rgba(247, 194, 66, 0.3);
    position: relative;
}

.beauty-fullscreen-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(255, 255, 255, 0.8);
    border: none;
    border-radius: 8px;
    width: 36px;
    height: 36px;
    cursor: pointer;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.beauty-fullscreen-btn:hover {
    background: rgba(255, 255, 255, 1);
    transform: scale(1.1);
}

/* 全屏模式样式 - 整个区域全屏 */
.beauty-section-fullscreen {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    z-index: 99999 !important;
    background: url('bizhi.png') !important;
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    background-attachment: fixed !important;
    padding: 40px 60px !important;
    overflow-y: auto !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
}

/* 全屏背景遮罩层 */
.beauty-section-fullscreen::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: linear-gradient(180deg, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.5) 100%);
    backdrop-filter: blur(2px);
    z-index: -1;
}

/* 全屏时隐藏其他所有内容 */
body.beauty-fullscreen-active {
    overflow: hidden !important;
}

body.beauty-fullscreen-active .main-wrapper {
    display: none !important;
}

body.beauty-fullscreen-active .beauty-section {
    display: flex !important;
}

.beauty-section-fullscreen .beauty-title {
    color: white !important;
    text-align: center;
    font-size: 28px;
    margin-bottom: 24px;
    font-weight: 600;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    letter-spacing: 2px;
}

.beauty-section-fullscreen .beauty-status-card {
    background: rgba(255, 255, 255, 0.15) !important;
    color: white !important;
    border: 1px solid rgba(255, 255, 255, 0.25) !important;
    border-radius: 20px !important;
    padding: 24px 32px !important;
    max-width: 500px;
    width: 100%;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2) !important;
}

.beauty-section-fullscreen .beauty-status-icon {
    font-size: 42px !important;
    margin-bottom: 8px !important;
    filter: drop-shadow(0 2px 8px rgba(0,0,0,0.2));
}

.beauty-section-fullscreen .beauty-status-text {
    font-size: 18px !important;
    font-weight: 500 !important;
}

.beauty-section-fullscreen .beauty-status-date {
    font-size: 14px !important;
    opacity: 0.8 !important;
    margin-top: 4px !important;
}

.beauty-section-fullscreen .beauty-countdown-section {
    background: rgba(255, 255, 255, 0.12) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    border-radius: 24px !important;
    max-width: 600px;
    width: 100%;
    margin: 0 auto 24px;
    padding: 28px 32px !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15) !important;
}

.beauty-section-fullscreen .beauty-countdown-header h4 {
    font-size: 18px !important;
    color: white !important;
    font-weight: 600 !important;
}

.beauty-section-fullscreen .beauty-countdown-tip {
    font-size: 13px !important;
    color: rgba(255, 255, 255, 0.65) !important;
}

.beauty-section-fullscreen .beauty-countdown-display {
    background: rgba(0, 0, 0, 0.25) !important;
    border: 1px solid rgba(247, 194, 66, 0.3) !important;
    border-radius: 20px !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
}

.beauty-section-fullscreen .beauty-countdown-time {
    font-size: 10vw !important;
    color: #fff !important;
    text-shadow: 0 0 60px rgba(247, 194, 66, 0.8), 0 4px 20px rgba(0,0,0,0.3);
    margin: 16px 0;
    font-weight: 700 !important;
}

.beauty-section-fullscreen .beauty-countdown-time.warning {
    color: #ff9800 !important;
    text-shadow: 0 0 30px rgba(255, 152, 0, 0.5);
}

.beauty-section-fullscreen .beauty-countdown-time.finished {
    color: #4caf50 !important;
    text-shadow: 0 0 30px rgba(76, 175, 80, 0.5);
}

.beauty-section-fullscreen .beauty-countdown-info {
    color: rgba(255, 255, 255, 0.85) !important;
    font-size: 16px !important;
    margin-top: 8px;
    font-weight: 500 !important;
}

.beauty-section-fullscreen .beauty-setting-row label {
    color: rgba(255, 255, 255, 0.9) !important;
    font-size: 14px !important;
    font-weight: 500 !important;
}

.beauty-section-fullscreen .beauty-setting-row select,
.beauty-section-fullscreen .beauty-time-inputs input {
    background: rgba(255, 255, 255, 0.15) !important;
    color: white !important;
    border: 1px solid rgba(255, 255, 255, 0.25) !important;
    border-radius: 12px !important;
    font-size: 14px !important;
    padding: 10px 14px !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
}

.beauty-section-fullscreen .beauty-time-inputs span {
    color: rgba(255, 255, 255, 0.8) !important;
    font-size: 16px !important;
}

.beauty-section-fullscreen .beauty-usage-note {
    background: rgba(247, 194, 66, 0.15) !important;
    border: 1px solid rgba(247, 194, 66, 0.3) !important;
    border-radius: 16px !important;
    padding: 16px 20px !important;
    margin-top: 20px !important;
    backdrop-filter: blur(15px) !important;
    -webkit-backdrop-filter: blur(15px) !important;
}

.beauty-section-fullscreen .beauty-note-title {
    font-size: 14px !important;
    color: #F7C242 !important;
    font-weight: 600 !important;
}

.beauty-section-fullscreen .beauty-note-content {
    font-size: 13px !important;
    line-height: 1.5 !important;
    color: rgba(255, 255, 255, 0.85) !important;
}

.beauty-section-fullscreen .beauty-fullscreen-btn {
    background: rgba(255, 255, 255, 0.15) !important;
    color: white !important;
    width: 44px !important;
    height: 44px !important;
    font-size: 18px !important;
    top: 24px !important;
    right: 24px !important;
    border-radius: 12px !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2) !important;
    transition: all 0.3s ease !important;
}

.beauty-section-fullscreen .beauty-fullscreen-btn:hover {
    background: rgba(255, 255, 255, 0.25) !important;
    transform: scale(1.05) !important;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3) !important;
}

.beauty-section-fullscreen .beauty-checkin-btn {
    background: linear-gradient(135deg, rgba(247, 194, 66, 0.9) 0%, rgba(230, 176, 47, 0.9) 100%) !important;
    color: white !important;
    border: none !important;
    max-width: 500px;
    width: 100%;
    margin: 0 auto 24px;
    display: flex;
    padding: 16px 32px !important;
    font-size: 16px !important;
    border-radius: 16px !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    box-shadow: 0 8px 25px rgba(247, 194, 66, 0.4) !important;
    transition: all 0.3s ease !important;
}

.beauty-section-fullscreen .beauty-checkin-btn .btn-icon {
    font-size: 24px !important;
}

.beauty-section-fullscreen .beauty-checkin-btn .btn-text {
    font-size: 16px !important;
    font-weight: 600 !important;
}

.beauty-section-fullscreen .beauty-checkin-btn:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 12px 35px rgba(247, 194, 66, 0.5) !important;
}

.beauty-section-fullscreen .beauty-stats-section,
.beauty-section-fullscreen .beauty-recent-section,
.beauty-section-fullscreen .beauty-records-section {
    max-width: 600px;
    width: 100%;
    margin: 0 auto 24px;
}

.beauty-section-fullscreen .beauty-stats-header h4,
.beauty-section-fullscreen .beauty-recent-header h4,
.beauty-section-fullscreen .beauty-records-header h4 {
    font-size: 16px !important;
    margin-bottom: 16px !important;
    color: white !important;
    font-weight: 600 !important;
}

.beauty-section-fullscreen .beauty-stat-card {
    background: rgba(255, 255, 255, 0.12) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    border-radius: 16px !important;
    padding: 20px 16px !important;
    backdrop-filter: blur(15px) !important;
    -webkit-backdrop-filter: blur(15px) !important;
    transition: all 0.3s ease !important;
}

.beauty-section-fullscreen .beauty-stat-card:hover {
    background: rgba(255, 255, 255, 0.18) !important;
    transform: translateY(-2px) !important;
}

.beauty-section-fullscreen .beauty-stat-value {
    font-size: 28px !important;
    color: #fff !important;
    font-weight: 700 !important;
    text-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.beauty-section-fullscreen .beauty-stat-label {
    font-size: 12px !important;
    color: rgba(255, 255, 255, 0.7) !important;
    margin-top: 4px !important;
}

.beauty-section-fullscreen .beauty-recent-item {
    background: rgba(255, 255, 255, 0.1) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    border-radius: 14px !important;
    padding: 14px 18px !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    transition: all 0.3s ease !important;
}

.beauty-section-fullscreen .beauty-recent-item:hover {
    background: rgba(255, 255, 255, 0.15) !important;
    border-color: rgba(255, 255, 255, 0.25) !important;
}

.beauty-section-fullscreen .beauty-recent-date {
    font-size: 15px !important;
}

.beauty-section-fullscreen .beauty-recent-info span {
    font-size: 15px !important;
}

.beauty-section-fullscreen .beauty-recent-level {
    font-size: 13px !important;
    padding: 4px 12px !important;
}

.beauty-section-fullscreen .beauty-recent-feeling {
    font-size: 24px !important;
}

.beauty-section-fullscreen .beauty-recent-date,
.beauty-section-fullscreen .beauty-recent-info span {
    color: rgba(255, 255, 255, 0.8) !important;
}

.beauty-section-fullscreen .beauty-record-item {
    background: rgba(255, 255, 255, 0.1) !important;
    border-left: 3px solid #F7C242 !important;
    border-radius: 0 14px 14px 0 !important;
    padding: 14px 18px !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
}

.beauty-section-fullscreen .beauty-record-time {
    font-size: 15px !important;
    color: rgba(255, 255, 255, 0.9) !important;
}

.beauty-section-fullscreen .beauty-record-parts {
    font-size: 15px !important;
    color: rgba(255, 255, 255, 0.9) !important;
}

.beauty-section-fullscreen .beauty-record-level {
    font-size: 13px !important;
    padding: 4px 12px !important;
}

.beauty-section-fullscreen .beauty-record-feeling {
    font-size: 18px !important;
}

/* 全屏时的控制按钮 */
.beauty-fullscreen-controls {
    display: none;
}

.beauty-countdown-fullscreen .beauty-fullscreen-controls {
    display: flex;
    gap: 16px;
    margin-top: 24px;
    justify-content: center;
}

.beauty-fs-btn {
    padding: 14px 32px;
    border: none;
    border-radius: 14px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
}

.beauty-fs-btn.start {
    background: linear-gradient(135deg, #F7C242 0%, #e6b02f 100%);
    color: white;
}

.beauty-fs-btn.pause {
    background: linear-gradient(135deg, #ff9800 0%, #f57c00 100%);
    color: white;
}

.beauty-fs-btn.reset {
    background: rgba(255, 255, 255, 0.15);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.25);
}

.beauty-fs-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.beauty-countdown-time {
    font-size: 48px;
    font-weight: 700;
    color: #667eea;
    font-family: 'Courier New', monospace;
    letter-spacing: 2px;
}

.beauty-countdown-time.warning {
    color: #ff9800;
    animation: pulse 1s infinite;
}

.beauty-countdown-time.finished {
    color: #4caf50;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

.beauty-countdown-info {
    font-size: 14px;
    color: #666;
    margin-top: 8px;
}

.beauty-countdown-settings {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 16px;
}

.beauty-setting-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.beauty-setting-row label {
    font-size: 14px;
    color: #333;
    min-width: 70px;
    font-weight: 500;
}

.beauty-setting-row select {
    flex: 1;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    background: white;
}

.beauty-time-inputs {
    display: flex;
    align-items: center;
    gap: 8px;
}

.beauty-time-inputs input {
    width: 60px;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 6px;
    text-align: center;
    font-size: 16px;
}

.beauty-time-inputs span {
    font-size: 14px;
    color: #666;
}

.beauty-countdown-actions {
    display: flex;
    gap: 10px;
    margin-bottom: 16px;
}

.beauty-countdown-btn {
    flex: 1;
    padding: 12px 16px;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.beauty-countdown-btn.start {
    background: linear-gradient(135deg, #F7C242 0%, #e6b02f 100%);
    color: white;
}

.beauty-countdown-btn.start:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.beauty-countdown-btn.pause {
    background: linear-gradient(135deg, #ff9800 0%, #f57c00 100%);
    color: white;
}

.beauty-countdown-btn.reset {
    background: rgba(0, 0, 0, 0.1);
    color: #666;
}

.beauty-countdown-btn.reset:hover {
    background: rgba(0, 0, 0, 0.15);
}

.beauty-usage-note {
    background: rgba(255, 243, 205, 0.6);
    border-radius: 10px;
    padding: 12px 16px;
    border-left: 3px solid #ffc107;
}

.beauty-note-title {
    font-size: 13px;
    font-weight: 600;
    color: #856404;
    margin-bottom: 4px;
}

.beauty-note-content {
    font-size: 13px;
    color: #856404;
    line-height: 1.5;
}

/* 弹窗样式 */
.beauty-modal-content {
    max-width: 420px;
}

.beauty-modal-date {
    text-align: center;
    color: #666;
    font-size: 14px;
    margin-bottom: 20px;
}

.beauty-section-modal {
    margin-bottom: 20px;
}

.beauty-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
}

/* 使用部位标签 */
.beauty-body-parts {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.body-part-tag {
    padding: 8px 14px;
    background: #f5f5f5;
    border-radius: 20px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 2px solid transparent;
}

.body-part-tag:hover {
    background: #e8e8e8;
}

.body-part-tag.selected {
    background: #ffe4e1;
    border-color: #f5576c;
    color: #d63384;
}

/* 档位选择 */
.beauty-level-options {
    display: flex;
    gap: 8px;
    justify-content: space-between;
}

.beauty-level-btn {
    flex: 1;
    padding: 10px 4px;
    background: #f5f5f5;
    border: 2px solid transparent;
    border-radius: 10px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.2s ease;
}

.beauty-level-btn small {
    font-size: 11px;
    font-weight: 400;
    color: #666;
    display: block;
    margin-top: 2px;
}

.beauty-level-btn:hover {
    background: #e8e8e8;
}

.beauty-level-btn.selected {
    background: #ffe4e1;
    border-color: #f5576c;
    color: #d63384;
}

.beauty-level-btn.selected small {
    color: #d63384;
}

/* 皮肤感受选择 */
.beauty-feeling-options {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.beauty-feeling-btn {
    padding: 10px 16px;
    background: #f5f5f5;
    border: 2px solid transparent;
    border-radius: 10px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s ease;
}

.beauty-feeling-btn:hover {
    background: #e8e8e8;
}

.beauty-feeling-btn.selected {
    background: #e7f3ff;
    border-color: #0066cc;
    color: #0066cc;
}

/* 皮肤反应标签 */
.beauty-reaction-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.reaction-tag {
    padding: 6px 12px;
    background: #f5f5f5;
    border-radius: 16px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 2px solid transparent;
}

.reaction-tag:hover {
    background: #e8e8e8;
}

.reaction-tag.selected {
    background: #fff3cd;
    border-color: #ffc107;
    color: #856404;
}

/* 备注输入框 */
.beauty-note-input {
    width: 100%;
    min-height: 80px;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 10px;
    font-size: 14px;
    resize: vertical;
    font-family: inherit;
}

.beauty-note-input:focus {
    outline: none;
    border-color: #f5576c;
}

/* 成功提示Toast */
.beauty-toast {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(-100px);
    background: rgba(255, 255, 255, 0.9);
    color: #333;
    padding: 14px 28px;
    border-radius: 30px;
    font-size: 15px;
    font-weight: 500;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    z-index: 10000;
    opacity: 0;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(10px);
}

.beauty-toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

/* 日期详情中的脱毛仪记录样式 */
.detail-beauty-records {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.detail-beauty-title {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.detail-beauty-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.detail-beauty-item {
    background: #fff5f7;
    border-radius: 10px;
    padding: 12px;
    border-left: 3px solid #f5576c;
}

.detail-beauty-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.detail-beauty-time {
    font-size: 13px;
    color: #666;
}

.detail-beauty-level {
    background: #ffe4e1;
    color: #d63384;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
}

.detail-beauty-parts {
    font-size: 14px;
    font-weight: 500;
    color: #333;
    margin-bottom: 6px;
}

.detail-beauty-feeling {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #666;
    margin-bottom: 8px;
}

.detail-beauty-emoji {
    font-size: 16px;
}

.detail-beauty-reactions {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 8px;
}

.detail-beauty-reaction {
    background: #fff3cd;
    color: #856404;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11px;
}

.detail-beauty-note {
    font-size: 12px;
    color: #888;
    padding-top: 8px;
    border-top: 1px dashed #ffd1dc;
    margin-top: 4px;
}

/* 日期详情中的喝水记录样式 */
.detail-water-records {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.detail-water-title {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
}

.detail-water-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.detail-water-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #e3f2fd;
    border-radius: 8px;
    padding: 10px 12px;
}

.detail-water-time {
    font-size: 13px;
    color: #666;
}

.detail-water-amount {
    font-size: 14px;
    font-weight: 600;
    color: #2196F3;
}

/* 日期详情中的心情记录样式 */
.detail-mood-records {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.detail-mood-title {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
}

.detail-mood-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.detail-mood-item {
    background: rgba(242, 160, 161, 0.15);
    border-radius: 10px;
    padding: 12px;
    border: 1px solid rgba(242, 160, 161, 0.3);
}

.detail-mood-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.detail-mood-emoji {
    font-size: 20px;
}

.detail-mood-slot {
    font-size: 13px;
    color: #666;
    background: rgba(255, 255, 255, 0.6);
    padding: 2px 8px;
    border-radius: 10px;
}

.detail-mood-score {
    font-size: 14px;
    font-weight: 600;
    color: #F2A0A1;
}

.detail-mood-note {
    font-size: 12px;
    color: #888;
    margin-top: 6px;
    padding-top: 6px;
    border-top: 1px dashed rgba(242, 160, 161, 0.3);
}

/* ==================== 分享功能样式 ==================== */
.share-section {
    padding: 20px;
}

.share-section h4 {
    font-size: 18px;
    margin-bottom: 8px;
    color: #333;
}

.share-desc {
    color: #666;
    font-size: 14px;
    margin-bottom: 20px;
}

.share-options {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 20px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

.share-option {
    padding: 10px 0;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.share-option:last-child {
    border-bottom: none;
}

.switch-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

.switch-label span {
    font-size: 14px;
    color: #333;
}

/* Switch 开关样式 */
.switch {
    position: relative;
    display: inline-block;
    width: 44px;
    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: .3s;
    border-radius: 24px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .3s;
    border-radius: 50%;
}

.switch input:checked + .slider {
    background: linear-gradient(135deg, #4CAF50 0%, #81C784 100%);
}

.switch input:checked + .slider:before {
    transform: translateX(20px);
}

.share-nickname {
    margin-bottom: 20px;
}

.share-nickname label {
    display: block;
    font-size: 14px;
    color: #333;
    margin-bottom: 8px;
}

.share-nickname input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 10px;
    font-size: 14px;
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: all 0.2s;
}

.share-nickname input:focus {
    outline: none;
    border-color: rgba(76, 175, 80, 0.6);
    background: rgba(255, 255, 255, 0.7);
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.1);
}

.btn-generate-share {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #4CAF50 0%, #81C784 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-generate-share:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(76, 175, 80, 0.4);
}

.share-result {
    margin-top: 20px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

.share-link-box {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}

.share-link-box input {
    flex: 1;
    padding: 10px 12px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 8px;
    font-size: 13px;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(4px);
}

.btn-copy {
    padding: 10px 20px;
    background: #4CAF50;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
    white-space: nowrap;
}

.btn-copy:hover {
    background: #45a049;
}

.share-tip {
    font-size: 12px;
    color: #666;
    text-align: center;
}

/* ============================================
   丰富的动画效果 - Animation Effects
   ============================================ */

/* 页面加载动画 */
@keyframes pageLoad {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.container {
    animation: pageLoad 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.container.side-panel {
    animation-delay: 0.1s;
}

/* 渐入动画 - Fade In */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* 从下方滑入 */
@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 从上方滑入 */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 从左侧滑入 */
@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* 从右侧滑入 */
@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* 缩放弹出 */
@keyframes popIn {
    0% {
        opacity: 0;
        transform: scale(0.8);
    }
    70% {
        transform: scale(1.05);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* 弹性弹出 */
@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale(0.3);
    }
    50% {
        transform: scale(1.05);
    }
    70% {
        transform: scale(0.9);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* 摇晃动画 */
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}

/* 脉冲光环 */
@keyframes pulseRing {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

/* 浮动动画 */
@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* 旋转动画 */
@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* 闪光效果 */
@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

/* 心跳动画 */
@keyframes heartbeat {
    0%, 100% {
        transform: scale(1);
    }
    14% {
        transform: scale(1.1);
    }
    28% {
        transform: scale(1);
    }
    42% {
        transform: scale(1.1);
    }
    70% {
        transform: scale(1);
    }
}

/* 弹跳动画 */
@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-15px);
    }
}

/* 摇摆动画 */
@keyframes wobble {
    0%, 100% { transform: rotate(0deg); }
    15% { transform: rotate(-5deg); }
    30% { transform: rotate(3deg); }
    45% { transform: rotate(-3deg); }
    60% { transform: rotate(2deg); }
    75% { transform: rotate(-1deg); }
}

/* 闪烁动画 */
@keyframes twinkle {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.5;
        transform: scale(0.8);
    }
}

/* 渐变背景动画 */
@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* 波纹效果 */
@keyframes ripple {
    0% {
        transform: scale(0);
        opacity: 1;
    }
    100% {
        transform: scale(4);
        opacity: 0;
    }
}

/* 庆祝彩带动画 */
@keyframes confetti {
    0% {
        opacity: 1;
        transform: translateY(0) rotate(0deg);
    }
    100% {
        opacity: 0;
        transform: translateY(-100px) rotate(720deg);
    }
}

/* 数字滚动动画 */
@keyframes countUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 呼吸效果 */
@keyframes breathe {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.02);
        opacity: 0.9;
    }
}

/* ====================
   Tab 切换动画
   ==================== */
.tab-content {
    animation: fadeIn 0.3s ease;
}

.tab-content.active {
    animation: slideUp 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Tab 按钮悬停效果 */
.tab {
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.tab::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, #4CAF50, #81C784);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateX(-50%);
    border-radius: 3px 3px 0 0;
}

.tab:hover::after {
    width: 60%;
}

.tab.active::after {
    width: 80%;
}

.tab:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.4);
}

.tab.active {
    animation: tabActivate 0.3s ease;
}

@keyframes tabActivate {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(0.95);
    }
    100% {
        transform: scale(1);
    }
}

/* ====================
   药物卡片动画
   ==================== */
.medicine-card {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    animation: popIn 0.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.medicine-card:nth-child(1) { animation-delay: 0.05s; }
.medicine-card:nth-child(2) { animation-delay: 0.1s; }
.medicine-card:nth-child(3) { animation-delay: 0.15s; }
.medicine-card:nth-child(4) { animation-delay: 0.2s; }
.medicine-card:nth-child(5) { animation-delay: 0.25s; }
.medicine-card:nth-child(6) { animation-delay: 0.3s; }

.medicine-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
}

.medicine-card:active {
    transform: translateY(-2px) scale(0.98);
}

/* 药物卡片打卡动画 */
.medicine-card.checked {
    animation: cardCheckSuccess 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes cardCheckSuccess {
    0% {
        transform: scale(1);
    }
    25% {
        transform: scale(1.08) rotate(2deg);
    }
    50% {
        transform: scale(1.05) rotate(-1deg);
    }
    75% {
        transform: scale(1.02) rotate(0.5deg);
    }
    100% {
        transform: scale(1);
    }
}

/* 打卡图标动画增强 */
.medicine-card .check-icon {
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.medicine-card:hover .check-icon {
    transform: scale(1.1);
}

.medicine-card.checked .check-icon {
    animation: checkIconSuccess 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes checkIconSuccess {
    0% {
        transform: scale(1) rotate(0deg);
    }
    30% {
        transform: scale(1.3) rotate(-10deg);
    }
    60% {
        transform: scale(1.2) rotate(10deg);
    }
    100% {
        transform: scale(1.05) rotate(0deg);
    }
}

/* 药物图标浮动效果 */
.medicine-card .drug-emoji {
    animation: float 3s ease-in-out infinite;
}

.medicine-card:nth-child(2n) .drug-emoji {
    animation-delay: 0.5s;
}

.medicine-card:nth-child(3n) .drug-emoji {
    animation-delay: 1s;
}

/* ====================
   按钮动画
   ==================== */
.add-btn, .btn-primary, .btn-secondary, .btn-cloud-upload, .btn-cloud-download, .btn-cloud-sync {
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.add-btn::before, .btn-primary::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.add-btn:active::before, .btn-primary:active::before {
    width: 300px;
    height: 300px;
}

.add-btn:hover, .btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(76, 175, 80, 0.4);
}

.add-btn:active, .btn-primary:active {
    transform: translateY(-1px);
}

/* 按钮点击波纹效果 */
.btn-ripple {
    position: relative;
    overflow: hidden;
}

.btn-ripple::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 10px;
    height: 10px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    transform: translate(-50%, -50%) scale(0);
    animation: ripple 0.6s ease-out;
}

/* ====================
   弹窗动画
   ==================== */
.modal {
    animation: fadeIn 0.2s ease;
}

.modal-content {
    animation: modalPopIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes modalPopIn {
    0% {
        opacity: 0;
        transform: scale(0.8) translateY(30px);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* 弹窗关闭动画 */
.modal.closing {
    animation: fadeOut 0.2s ease forwards;
}

.modal.closing .modal-content {
    animation: modalPopOut 0.3s ease forwards;
}

@keyframes fadeOut {
    to {
        opacity: 0;
    }
}

@keyframes modalPopOut {
    to {
        opacity: 0;
        transform: scale(0.9) translateY(20px);
    }
}

/* ====================
   统计卡片动画
   ==================== */
.stat-card, .status-stat-card, .beauty-stat-card {
    animation: slideUp 0.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.stat-card:nth-child(1) { animation-delay: 0.1s; }
.stat-card:nth-child(2) { animation-delay: 0.2s; }
.stat-card:nth-child(3) { animation-delay: 0.3s; }

.status-stat-card:nth-child(1) { animation-delay: 0.1s; }
.status-stat-card:nth-child(2) { animation-delay: 0.15s; }
.status-stat-card:nth-child(3) { animation-delay: 0.2s; }
.status-stat-card:nth-child(4) { animation-delay: 0.25s; }
.status-stat-card:nth-child(5) { animation-delay: 0.3s; }
.status-stat-card:nth-child(6) { animation-delay: 0.35s; }

.stat-card:hover, .status-stat-card:hover, .beauty-stat-card:hover {
    transform: translateY(-5px) scale(1.03);
    box-shadow: 0 12px 30px rgba(0,0,0,0.12);
}

/* 统计数字滚动效果 */
.stat-value, .beauty-stat-value {
    animation: countUp 0.6s ease forwards;
}

/* ====================
   日历动画
   ==================== */
.calendar .day {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    animation: popIn 0.4s ease forwards;
}

.calendar .day:nth-child(7n+1) { animation-delay: 0.02s; }
.calendar .day:nth-child(7n+2) { animation-delay: 0.04s; }
.calendar .day:nth-child(7n+3) { animation-delay: 0.06s; }
.calendar .day:nth-child(7n+4) { animation-delay: 0.08s; }
.calendar .day:nth-child(7n+5) { animation-delay: 0.1s; }
.calendar .day:nth-child(7n+6) { animation-delay: 0.12s; }
.calendar .day:nth-child(7n+7) { animation-delay: 0.14s; }

.calendar .day:hover {
    transform: scale(1.15);
    z-index: 10;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.calendar .day.selected {
    animation: todayPulse 2s infinite;
}

/* ====================
   库存圆环动画
   ==================== */
.inventory-circle {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.inventory-circle:hover {
    transform: scale(1.1);
}

.inventory-circle circle {
    transition: stroke-dashoffset 1s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ====================
   设置区块动画
   ==================== */
.settings-section {
    animation: slideUp 0.4s ease forwards;
    opacity: 0;
}

.settings-section:nth-child(1) { animation-delay: 0.05s; }
.settings-section:nth-child(2) { animation-delay: 0.1s; }
.settings-section:nth-child(3) { animation-delay: 0.15s; }
.settings-section:nth-child(4) { animation-delay: 0.2s; }
.settings-section:nth-child(5) { animation-delay: 0.25s; }

/* ====================
   壁纸设置样式
   ==================== */
.wallpaper-setting-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 8px;
}

.wallpaper-label {
    font-size: 14px;
    color: #666;
}

.wallpaper-value {
    font-size: 14px;
    color: #333;
    font-weight: 500;
}

.wallpaper-options {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.wallpaper-option {
    width: 100px;
    cursor: pointer;
    border-radius: 12px;
    overflow: hidden;
    border: 3px solid transparent;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.5);
    text-align: center;
}

.wallpaper-option:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.wallpaper-option.active {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.2);
}

.wallpaper-option img {
    width: 100%;
    height: 70px;
    object-fit: cover;
    display: block;
}

.wallpaper-option span {
    display: block;
    padding: 5px;
    font-size: 12px;
    color: #666;
}

.wallpaper-upload {
    margin-top: 20px;
    text-align: center;
}

.wallpaper-upload-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    padding: 12px 24px;
    background: linear-gradient(135deg, rgba(135, 102, 51, 0.9) 0%, rgba(160, 120, 60, 0.9) 100%);
    color: white;
    border: none;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 500;
    box-shadow: 0 4px 15px rgba(135, 102, 51, 0.3);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.wallpaper-upload-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 ease;
}

.wallpaper-upload-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(135, 102, 51, 0.4);
}

.wallpaper-upload-btn:hover::before {
    left: 100%;
}

.wallpaper-upload-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(135, 102, 51, 0.3);
}

.settings-section-header {
    transition: all 0.3s ease;
}

.settings-section-header:hover {
    background: rgba(255, 255, 255, 0.5);
    transform: translateX(5px);
}

.settings-toggle-icon {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.settings-section.collapsed .settings-toggle-icon {
    transform: rotate(-90deg);
}

/* ====================
   照片时间轴动画
   ==================== */
.photo-timeline-item {
    animation: slideInLeft 0.5s ease forwards;
    opacity: 0;
}

.photo-timeline-item:nth-child(1) { animation-delay: 0.05s; }
.photo-timeline-item:nth-child(2) { animation-delay: 0.1s; }
.photo-timeline-item:nth-child(3) { animation-delay: 0.15s; }
.photo-timeline-item:nth-child(4) { animation-delay: 0.2s; }
.photo-timeline-item:nth-child(5) { animation-delay: 0.25s; }

.photo-timeline-item:hover {
    transform: translateX(10px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

/* ====================
   输入框动画
   ==================== */
input, select, textarea {
    transition: all 0.3s ease;
}

input:focus, select:focus, textarea:focus {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.15);
}

/* ====================
   开关按钮动画
   ==================== */
.switch .slider {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.switch input:checked + .slider {
    animation: switchOn 0.3s ease;
}

@keyframes switchOn {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

/* ====================
   打卡成功庆祝动画
   ==================== */
.celebration-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
}

.celebration-particle {
    position: absolute;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    animation: confetti 1s ease-out forwards;
}

.celebration-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 48px;
    font-weight: bold;
    color: #4CAF50;
    text-shadow: 0 4px 20px rgba(76, 175, 80, 0.5);
    animation: celebrationText 1.5s ease-out forwards;
    pointer-events: none;
}

@keyframes celebrationText {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.5);
    }
    20% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1.2);
    }
    40% {
        transform: translate(-50%, -50%) scale(1);
    }
    80% {
        opacity: 1;
        transform: translate(-50%, -60%) scale(1);
    }
    100% {
        opacity: 0;
        transform: translate(-50%, -80%) scale(0.8);
    }
}

/* 星星闪烁效果 */
.star-burst {
    position: absolute;
    animation: starBurst 0.8s ease-out forwards;
}

@keyframes starBurst {
    0% {
        opacity: 1;
        transform: scale(0) rotate(0deg);
    }
    50% {
        opacity: 1;
        transform: scale(1.2) rotate(180deg);
    }
    100% {
        opacity: 0;
        transform: scale(0) rotate(360deg);
    }
}

/* ====================
   倒计时动画
   ==================== */
.countdown-display {
    transition: all 0.3s ease;
}

.countdown-display.active {
    animation: breathe 2s ease-in-out infinite;
}

.countdown-time {
    animation: fadeIn 0.3s ease;
}

.countdown-time.warning {
    animation: pulse 0.5s ease-in-out infinite;
    color: #ff9800;
}

.countdown-time.finished {
    animation: heartbeat 1s ease-in-out infinite;
    color: #4CAF50;
}

/* ====================
   标签选择动画
   ==================== */
.symptom-tag, .reaction-tag, .body-part-tag, .guide-option, .medicine-type {
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.symptom-tag:hover, .reaction-tag:hover, .body-part-tag:hover, .guide-option:hover, .medicine-type:hover {
    transform: translateY(-2px) scale(1.05);
}

.symptom-tag.selected, .reaction-tag.selected, .body-part-tag.selected, .guide-option.selected, .medicine-type.selected {
    animation: tagSelect 0.3s ease;
}

@keyframes tagSelect {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.15);
    }
    100% {
        transform: scale(1.05);
    }
}

/* ====================
   头部动画
   ==================== */
header h1 {
    animation: slideDown 0.5s ease forwards;
}

.today-date {
    animation: fadeIn 0.5s ease 0.2s forwards;
    opacity: 0;
}

.day-counter {
    animation: popIn 0.5s ease 0.3s forwards;
    opacity: 0;
}

/* ====================
   列表项动画
   ==================== */
.inventory-item, .beauty-recent-item, .event-history-item, .medicine-status-item {
    animation: slideInRight 0.4s ease forwards;
    opacity: 0;
    transition: all 0.3s ease;
}

.inventory-item:nth-child(1), .beauty-recent-item:nth-child(1), .event-history-item:nth-child(1) { animation-delay: 0.05s; }
.inventory-item:nth-child(2), .beauty-recent-item:nth-child(2), .event-history-item:nth-child(2) { animation-delay: 0.1s; }
.inventory-item:nth-child(3), .beauty-recent-item:nth-child(3), .event-history-item:nth-child(3) { animation-delay: 0.15s; }
.inventory-item:nth-child(4), .beauty-recent-item:nth-child(4), .event-history-item:nth-child(4) { animation-delay: 0.2s; }
.inventory-item:nth-child(5), .beauty-recent-item:nth-child(5), .event-history-item:nth-child(5) { animation-delay: 0.25s; }

.inventory-item:hover, .beauty-recent-item:hover, .event-history-item:hover {
    transform: translateX(5px);
    background: rgba(255, 255, 255, 0.6);
}

/* ====================
   进度环动画
   ==================== */
.progress-ring circle {
    transition: stroke-dashoffset 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ====================
   加载动画
   ==================== */
.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(76, 175, 80, 0.2);
    border-top-color: #4CAF50;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

/* ====================
   通知提示动画
   ==================== */
.toast {
    animation: toastSlideIn 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes toastSlideIn {
    from {
        opacity: 0;
        transform: translateX(100%) scale(0.8);
    }
    to {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

.toast.hiding {
    animation: toastSlideOut 0.3s ease forwards;
}

@keyframes toastSlideOut {
    to {
        opacity: 0;
        transform: translateX(100%) scale(0.8);
    }
}

/* ====================
   图表动画
   ==================== */
.chart-bar {
    animation: chartGrow 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    transform-origin: bottom;
}

@keyframes chartGrow {
    from {
        transform: scaleY(0);
    }
    to {
        transform: scaleY(1);
    }
}

/* ====================
   心情打卡样式
   ==================== */
.mood-section {
    padding: 20px;
}

.mood-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 20px;
    text-align: center;
}

/* 今日心情汇总卡片 */
.mood-today-summary {
    margin-bottom: 24px;
}

.mood-summary-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.8);
    border-radius: 20px;
    padding: 30px 20px;
    text-align: center;
    color: #333;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.mood-summary-label {
    font-size: 14px;
    opacity: 0.9;
    margin-bottom: 8px;
}

.mood-summary-score {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 8px;
}

.mood-summary-emoji {
    font-size: 56px;
    margin-bottom: 8px;
}

.mood-summary-text {
    font-size: 16px;
    font-weight: 500;
}

/* 时段打卡卡片 */
.mood-time-slots {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 24px;
}

.mood-slot-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(200, 200, 200, 0.5);
    border-radius: 16px;
    padding: 16px;
    transition: all 0.3s ease;
}

.mood-slot-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

/* 已打卡状态 */
.mood-slot-card.checked {
    background: rgba(242, 160, 161, 0.15);
    border-color: rgba(242, 160, 161, 0.5);
}

/* 当前时段 - 高亮推荐 */
.mood-slot-card.current {
    background: rgba(242, 160, 161, 0.15);
    border-color: #F2A0A1;
    box-shadow: 0 0 20px rgba(242, 160, 161, 0.2);
    animation: pulse-current 2s ease-in-out infinite;
}

@keyframes pulse-current {
    0%, 100% { box-shadow: 0 0 20px rgba(242, 160, 161, 0.2); }
    50% { box-shadow: 0 0 30px rgba(242, 160, 161, 0.4); }
}

/* 时段已过 - 可补打卡 */
.mood-slot-card.passed {
    background: rgba(255, 152, 0, 0.1);
    border-color: rgba(255, 152, 0, 0.4);
    opacity: 0.9;
}

/* 时段未到 */
.mood-slot-card.future {
    background: rgba(200, 200, 200, 0.3);
    border-color: rgba(200, 200, 200, 0.3);
    opacity: 0.7;
}

.mood-slot-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.mood-slot-icon {
    font-size: 24px;
}

.mood-slot-name {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    flex: 1;
}

.mood-slot-time {
    font-size: 12px;
    color: #666;
    background: rgba(0, 0, 0, 0.05);
    padding: 4px 10px;
    border-radius: 12px;
}

.mood-slot-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.mood-slot-status {
    font-size: 14px;
    color: #999;
}

.mood-slot-status.current {
    color: #F2A0A1;
    font-weight: 600;
}

.mood-slot-status.passed {
    color: #ff9800;
}

.mood-slot-result {
    display: flex;
    align-items: center;
    gap: 8px;
}

.mood-slot-emoji {
    font-size: 28px;
}

.mood-slot-score {
    font-size: 14px;
    color: #666;
    font-weight: 500;
}

.mood-checkin-btn {
    background: linear-gradient(135deg, #F2A0A1 0%, #e89091 100%);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.mood-checkin-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(242, 160, 161, 0.4);
}

.mood-checkin-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* 当前时段按钮 */
.mood-checkin-btn.current {
    background: rgba(255, 255, 255, 0.9);
    color: #F2A0A1;
    border: 2px solid #F2A0A1;
    animation: pulse-btn 1.5s ease-in-out infinite;
}

.mood-checkin-btn.current:hover {
    background: #F2A0A1;
    color: white;
}

@keyframes pulse-btn {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* 补打卡按钮 */
.mood-checkin-btn.makeup {
    background: linear-gradient(135deg, #ff9800 0%, #f57c00 100%);
}

.mood-checkin-btn.makeup:hover {
    box-shadow: 0 4px 12px rgba(255, 152, 0, 0.4);
}

/* 一言区域 */
.mood-quote-section {
    margin-bottom: 24px;
}

.mood-quote-card {
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 16px;
    padding: 20px;
    text-align: center;
    position: relative;
    cursor: pointer;
    overflow: hidden;
    transition: transform 0.2s ease;
}

.mood-quote-card:hover {
    transform: scale(1.02);
}

.mood-quote-card:active {
    transform: scale(0.98);
}

/* 波纹效果 */
.mood-quote-ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(242, 160, 161, 0.3);
    transform: scale(0);
    animation: ripple-effect 0.6s ease-out;
    pointer-events: none;
}

@keyframes ripple-effect {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

.mood-quote-icon {
    font-size: 24px;
    margin-bottom: 10px;
    opacity: 0.7;
}

.mood-quote-text {
    font-size: 14px;
    color: #555;
    line-height: 1.6;
    font-style: italic;
    transition: opacity 0.2s ease;
}

.mood-quote-text::before {
    content: '"';
    font-size: 20px;
    color: #F2A0A1;
    margin-right: 4px;
}

.mood-quote-text::after {
    content: '"';
    font-size: 20px;
    color: #F2A0A1;
    margin-left: 4px;
}

/* 心情图表区域 */
.mood-chart-section {
    background: rgba(255, 255, 255, 0.5);
    border-radius: 16px;
    padding: 20px;
    margin-top: 20px;
}

.mood-chart-header {
    margin-bottom: 16px;
}

.mood-chart-header h4 {
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.mood-chart {
    height: 150px;
    display: flex;
    align-items: flex-end;
    justify-content: space-around;
    gap: 8px;
    padding: 10px 0;
}

.mood-chart-bar {
    flex: 1;
    background: linear-gradient(to top, #F2A0A1, #e89091);
    border-radius: 8px 8px 0 0;
    min-height: 20px;
    max-height: 100%;
    position: relative;
    transition: all 0.3s ease;
    cursor: pointer;
}

.mood-chart-bar:hover {
    opacity: 0.8;
}

.mood-chart-bar-label {
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 11px;
    color: #666;
    white-space: nowrap;
}

.mood-chart-bar-value {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 12px;
    font-weight: 600;
    color: #667eea;
}

/* 心情打卡弹窗样式 */
.mood-modal-content {
    max-width: 400px;
}

.mood-modal-slot {
    text-align: center;
    color: #666;
    font-size: 14px;
    margin-bottom: 20px;
    padding: 10px;
    background: rgba(242, 160, 161, 0.1);
    border-radius: 10px;
}

.mood-score-section {
    margin-bottom: 24px;
}

.mood-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 12px;
}

.mood-score-options {
    display: flex;
    justify-content: space-between;
    gap: 8px;
}

.mood-score-btn {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 12px 8px;
    background: rgba(255, 255, 255, 0.7);
    border: 2px solid transparent;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.mood-score-btn:hover {
    background: rgba(242, 160, 161, 0.1);
    transform: translateY(-2px);
}

.mood-score-btn.selected {
    border-color: #F2A0A1;
    background: rgba(242, 160, 161, 0.15);
}

.mood-score-btn .mood-emoji {
    font-size: 28px;
}

.mood-score-btn .mood-text {
    font-size: 12px;
    color: #666;
}

.mood-note-section {
    margin-bottom: 20px;
}

.mood-note-input {
    width: 100%;
    min-height: 80px;
    padding: 12px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    font-size: 14px;
    resize: vertical;
    background: rgba(255, 255, 255, 0.7);
}

.mood-note-input:focus {
    outline: none;
    border-color: #667eea;
}

/* ====================
   悬浮按钮动画
   ==================== */
.floating-action-btn {
    animation: float 3s ease-in-out infinite;
}

.floating-action-btn:hover {
    animation: none;
    transform: scale(1.1);
}

/* ====================
   喝水打卡样式
   ==================== */
.water-section {
    padding: 0;
}

.water-title {
    font-size: 1.1rem;
    color: #333;
    margin-bottom: 15px;
    text-align: center;
}

/* 进度卡片 */
.water-progress-card {
    background: linear-gradient(135deg, rgba(79, 172, 254, 0.15) 0%, rgba(0, 242, 254, 0.15) 100%);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(79, 172, 254, 0.3);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 20px;
    text-align: center;
}

.water-progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.water-progress-label {
    font-size: 14px;
    color: #555;
    font-weight: 500;
}

.water-progress-value {
    font-size: 14px;
    color: #2196F3;
    font-weight: 600;
}

.water-progress-bar {
    height: 12px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 10px;
}

.water-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #4facfe 0%, #00f2fe 100%);
    border-radius: 6px;
    transition: width 0.5s ease;
}

.water-progress-percent {
    font-size: 24px;
    font-weight: 700;
    color: #2196F3;
}

/* 快捷添加 */
.water-quick-add {
    margin-bottom: 20px;
}

.water-quick-add h4,
.water-custom-add h4,
.water-records-section h4,
.water-stats-section h4,
.water-goal-setting h4 {
    font-size: 14px;
    color: #666;
    margin-bottom: 12px;
    font-weight: 500;
}

.water-quick-buttons {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.water-quick-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 15px 8px;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(200, 200, 200, 0.5);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.water-quick-btn:hover {
    background: rgba(79, 172, 254, 0.2);
    border-color: rgba(79, 172, 254, 0.5);
    transform: translateY(-2px);
}

.water-quick-btn:active {
    transform: scale(0.95);
}

.water-cup-icon {
    font-size: 28px;
    margin-bottom: 6px;
}

.water-amount {
    font-size: 12px;
    color: #666;
    font-weight: 500;
}

/* 自定义添加 */
.water-custom-add {
    margin-bottom: 20px;
}

.water-custom-input-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.water-custom-input-group input {
    flex: 1;
    padding: 12px 15px;
    border: 1px solid rgba(200, 200, 200, 0.5);
    border-radius: 10px;
    font-size: 15px;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    outline: none;
}

.water-custom-input-group input:focus {
    border-color: #4facfe;
    background: rgba(255, 255, 255, 0.8);
}

.water-unit {
    font-size: 14px;
    color: #666;
    font-weight: 500;
}

.water-add-btn {
    padding: 12px 20px;
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.water-add-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(79, 172, 254, 0.4);
}

/* 记录区域 */
.water-records-section {
    margin-bottom: 20px;
}

.water-records-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.water-clear-btn {
    padding: 6px 12px;
    background: rgba(255, 107, 107, 0.1);
    color: #ff6b6b;
    border: 1px solid rgba(255, 107, 107, 0.3);
    border-radius: 6px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.water-clear-btn:hover {
    background: rgba(255, 107, 107, 0.2);
}

.water-records-list {
    max-height: 200px;
    overflow-y: auto;
}

.water-record-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 12px;
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(200, 200, 200, 0.3);
    border-radius: 10px;
    margin-bottom: 8px;
}

.water-record-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.water-record-time {
    font-size: 12px;
    color: #999;
}

.water-record-amount {
    font-size: 14px;
    font-weight: 600;
    color: #2196F3;
}

.water-record-delete {
    padding: 4px 8px;
    background: none;
    border: none;
    color: #999;
    cursor: pointer;
    font-size: 16px;
    transition: color 0.3s ease;
}

.water-record-delete:hover {
    color: #ff6b6b;
}

.water-empty-state {
    text-align: center;
    padding: 30px;
    color: #999;
    font-size: 14px;
}

/* 统计区域 */
.water-stats-section {
    margin-bottom: 20px;
}

.water-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 15px;
}

.water-stat-card {
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(200, 200, 200, 0.3);
    border-radius: 12px;
    padding: 15px 10px;
    text-align: center;
}

.water-stat-value {
    font-size: 20px;
    font-weight: 700;
    color: #2196F3;
    margin-bottom: 4px;
}

.water-stat-label {
    font-size: 11px;
    color: #999;
}

/* 周图表 */
.water-week-chart {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    height: 100px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(200, 200, 200, 0.3);
    border-radius: 12px;
    gap: 6px;
}

.water-chart-bar {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.water-chart-fill {
    width: 100%;
    background: linear-gradient(to top, #4facfe 0%, #00f2fe 100%);
    border-radius: 4px 4px 0 0;
    min-height: 4px;
    transition: height 0.5s ease;
}

.water-chart-fill.goal-reached {
    background: linear-gradient(to top, #00C853 0%, #69F0AE 100%);
}

.water-chart-day {
    font-size: 11px;
    color: #999;
}

.water-chart-value {
    font-size: 10px;
    color: #2196F3;
    font-weight: 500;
}

/* 目标设置 */
.water-goal-setting {
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(200, 200, 200, 0.3);
    border-radius: 12px;
    padding: 15px;
}

.water-goal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.water-goal-edit-btn {
    padding: 4px 12px;
    background: rgba(79, 172, 254, 0.1);
    color: #2196F3;
    border: 1px solid rgba(79, 172, 254, 0.3);
    border-radius: 6px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.water-goal-edit-btn:hover {
    background: rgba(79, 172, 254, 0.2);
}

.water-goal-display {
    font-size: 24px;
    font-weight: 700;
    color: #2196F3;
}

/* 喝水目标弹窗 */
.water-goal-input-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 20px 0;
}

.water-goal-input-row input {
    flex: 1;
    padding: 15px;
    border: 1px solid rgba(200, 200, 200, 0.5);
    border-radius: 10px;
    font-size: 18px;
    text-align: center;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    outline: none;
}

.water-goal-input-row input:focus {
    border-color: #4facfe;
    background: rgba(255, 255, 255, 0.8);
}

.water-goal-unit {
    font-size: 16px;
    color: #666;
    font-weight: 500;
}

.water-goal-hint {
    font-size: 12px;
    color: #999;
    text-align: center;
    margin-bottom: 10px;
}

/* 响应式 */
@media (max-width: 768px) {
    .water-quick-buttons {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .water-stats-grid {
        grid-template-columns: 1fr;
    }
}

/* ====================
   喝水设置样式
   ==================== */
.water-quick-settings {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.water-quick-setting-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 10px;
    border: 1px solid rgba(200, 200, 200, 0.3);
}

.water-quick-label {
    width: 60px;
    font-size: 14px;
    color: #666;
    font-weight: 500;
}

.water-quick-setting-row input {
    flex: 1;
    padding: 10px 12px;
    border: 1px solid rgba(200, 200, 200, 0.5);
    border-radius: 8px;
    font-size: 15px;
    text-align: center;
    background: rgba(255, 255, 255, 0.8);
    outline: none;
    transition: all 0.3s ease;
}

.water-quick-setting-row input:focus {
    border-color: #4facfe;
    background: rgba(255, 255, 255, 1);
}

.water-quick-unit {
    font-size: 14px;
    color: #666;
    font-weight: 500;
    width: 30px;
}

.water-quick-save-btn {
    margin-top: 10px;
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.water-quick-save-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(79, 172, 254, 0.4);
}

/* ====================
   喝水记录历史样式
   ==================== */
.water-history-section {
    margin-bottom: 25px;
}

.water-history-header {
    margin-bottom: 12px;
}

.water-history-header h3 {
    font-size: 15px;
    color: #333;
    font-weight: 600;
}

.water-history-list {
    max-height: 300px;
    overflow-y: auto;
}

.water-history-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(200, 200, 200, 0.3);
    border-radius: 10px;
    margin-bottom: 8px;
    transition: all 0.3s ease;
}

.water-history-item:hover {
    background: rgba(255, 255, 255, 0.7);
    transform: translateX(4px);
}

.water-history-date {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.water-history-day {
    font-size: 14px;
    font-weight: 600;
    color: #333;
}

.water-history-time {
    font-size: 12px;
    color: #999;
}

.water-history-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.water-history-amount {
    font-size: 16px;
    font-weight: 700;
    color: #2196F3;
}

.water-history-total {
    font-size: 12px;
    color: #666;
    background: rgba(33, 150, 243, 0.1);
    padding: 4px 10px;
    border-radius: 12px;
}

.water-history-empty {
    text-align: center;
    padding: 30px;
    color: #999;
    font-size: 14px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 10px;
}

/* ====================
   响应式动画优化
   ==================== */
/* ====================
   PC和平板端弹窗宽度优化
   ==================== */
@media (min-width: 769px) {
    .medicine-modal-content {
        max-width: 520px !important;
        width: 520px !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ====================
   待办清单样式
   ==================== */

.todo-section {
    padding: 15px;
}

.todo-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 20px;
    text-align: center;
}

/* 输入区域 */
.todo-input-area {
    margin-bottom: 20px;
}

.todo-input-group {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.todo-input-group input {
    flex: 1;
    min-width: 150px;
    padding: 12px 15px;
    border: 1px solid rgba(200, 200, 200, 0.4);
    border-radius: 10px;
    font-size: 14px;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.todo-input-group input:focus {
    outline: none;
    border-color: #4CAF50;
    background: rgba(255, 255, 255, 0.8);
}

.todo-input-group select {
    padding: 12px 15px;
    border: 1px solid rgba(200, 200, 200, 0.4);
    border-radius: 10px;
    font-size: 14px;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    cursor: pointer;
    min-width: 100px;
}

.todo-input-group select#todoPriority {
    min-width: 120px;
}

.todo-add-btn {
    padding: 12px 20px;
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.todo-add-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
}

/* 筛选标签 */
.todo-filter-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.todo-filter-btn {
    padding: 8px 16px;
    border: 1px solid rgba(200, 200, 200, 0.4);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.4);
    font-size: 13px;
    color: #666;
    cursor: pointer;
    transition: all 0.3s ease;
}

.todo-filter-btn.active {
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
    color: white;
    border-color: #4CAF50;
}

.todo-filter-btn:hover:not(.active) {
    background: rgba(255, 255, 255, 0.7);
}

/* 待办列表容器 */
.todo-list-container {
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(200, 200, 200, 0.3);
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 20px;
}

.todo-list-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(200, 200, 200, 0.2);
}

.todo-count {
    font-size: 13px;
    color: #666;
}

.todo-clear-completed {
    padding: 6px 12px;
    background: rgba(244, 67, 54, 0.1);
    color: #f44336;
    border: 1px solid rgba(244, 67, 54, 0.3);
    border-radius: 6px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.todo-clear-completed:hover {
    background: rgba(244, 67, 54, 0.2);
}

/* 待办列表 */
.todo-list {
    max-height: 350px;
    overflow-y: auto;
}

.todo-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(200, 200, 200, 0.2);
    border-radius: 10px;
    margin-bottom: 8px;
    transition: all 0.3s ease;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.todo-item:hover {
    background: rgba(255, 255, 255, 0.8);
    transform: translateX(4px);
}

.todo-item.completed {
    opacity: 0.6;
}

.todo-item.completed .todo-text {
    text-decoration: line-through;
    color: #999;
}

.todo-checkbox {
    width: 22px;
    height: 22px;
    border: 2px solid #ddd;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.todo-checkbox:hover {
    border-color: #4CAF50;
}

.todo-checkbox.checked {
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
    border-color: #4CAF50;
}

.todo-checkbox.checked::after {
    content: '✓';
    color: white;
    font-size: 12px;
    font-weight: bold;
}

.todo-content {
    flex: 1;
    min-width: 0;
}

.todo-text {
    font-size: 14px;
    color: #333;
    word-break: break-word;
    line-height: 1.4;
}

.todo-meta {
    display: flex;
    gap: 8px;
    margin-top: 4px;
    flex-wrap: wrap;
}

.todo-category {
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.05);
    color: #666;
}

.todo-category.general { background: rgba(158, 158, 158, 0.15); color: #757575; }
.todo-category.medicine { background: rgba(76, 175, 80, 0.15); color: #4CAF50; }
.todo-category.health { background: rgba(33, 150, 243, 0.15); color: #2196F3; }
.todo-category.work { background: rgba(255, 152, 0, 0.15); color: #FF9800; }
.todo-category.life { background: rgba(156, 39, 176, 0.15); color: #9C27B0; }

/* 优先级样式 */
.todo-priority {
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 10px;
    font-weight: 600;
}

.todo-priority.high {
    background: rgba(244, 67, 54, 0.15);
    color: #f44336;
}

.todo-priority.medium {
    background: rgba(255, 193, 7, 0.15);
    color: #FFC107;
}

.todo-priority.low {
    background: rgba(76, 175, 80, 0.15);
    color: #4CAF50;
}

/* 优先级筛选按钮 */
.todo-filter-btn[data-filter="high"] {
    color: #f44336;
}

.todo-filter-btn[data-filter="high"].active {
    background: linear-gradient(135deg, #f44336 0%, #d32f2f 100%);
    color: white;
}

/* 高优先级待办项样式 */
.todo-item.high-priority {
    border-left: 4px solid #f44336;
}

.todo-item.medium-priority {
    border-left: 4px solid #FFC107;
}

.todo-item.low-priority {
    border-left: 4px solid #4CAF50;
}

.todo-time {
    font-size: 11px;
    color: #999;
}

.todo-delete {
    width: 28px;
    height: 28px;
    border: none;
    background: rgba(244, 67, 54, 0.1);
    color: #f44336;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.todo-delete:hover {
    background: rgba(244, 67, 54, 0.2);
    transform: scale(1.1);
}

/* 空状态 */
.todo-empty {
    text-align: center;
    padding: 40px 20px;
}

.todo-empty-icon {
    font-size: 48px;
    margin-bottom: 12px;
}

.todo-empty-text {
    font-size: 16px;
    color: #666;
    margin-bottom: 6px;
}

.todo-empty-hint {
    font-size: 13px;
    color: #999;
}

/* 统计区域 */
.todo-stats-section {
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(200, 200, 200, 0.3);
    border-radius: 12px;
    padding: 15px;
}

.todo-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.todo-stat-card {
    text-align: center;
    padding: 12px 8px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.todo-stat-card:hover {
    background: rgba(255, 255, 255, 0.7);
    transform: translateY(-2px);
}

.todo-stat-value {
    font-size: 20px;
    font-weight: 700;
    color: #333;
    margin-bottom: 4px;
}

.todo-stat-label {
    font-size: 12px;
    color: #666;
}

/* 禁用毛玻璃效果时的待办清单样式 */
body.no-glass .todo-list-container,
body.no-glass .todo-stats-section {
    background: #f5f5f5;
}

body.no-glass .todo-item {
    background: #fff;
}

body.no-glass .todo-input-group input,
body.no-glass .todo-input-group select {
    background: #fff;
}

/* 响应式 */
@media (max-width: 480px) {
    .todo-input-group {
        flex-direction: column;
    }
    
    .todo-input-group input,
    .todo-input-group select,
    .todo-add-btn {
        width: 100%;
    }
    
    .todo-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ====================
   日历详情页待办记录样式
   ==================== */

.detail-todo-records {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid rgba(200, 200, 200, 0.3);
}

.detail-todo-title {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.detail-todo-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.detail-todo-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    background: rgba(76, 175, 80, 0.08);
    border: 1px solid rgba(76, 175, 80, 0.2);
    border-radius: 8px;
    font-size: 13px;
}

.detail-todo-check {
    width: 18px;
    height: 18px;
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    flex-shrink: 0;
}

.detail-todo-text {
    flex: 1;
    color: #333;
    text-decoration: line-through;
    opacity: 0.8;
}

.detail-todo-category {
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.05);
    color: #666;
    flex-shrink: 0;
}

.detail-todo-category.general { background: rgba(158, 158, 158, 0.15); color: #757575; }
.detail-todo-category.medicine { background: rgba(76, 175, 80, 0.15); color: #4CAF50; }
.detail-todo-category.health { background: rgba(33, 150, 243, 0.15); color: #2196F3; }
.detail-todo-category.work { background: rgba(255, 152, 0, 0.15); color: #FF9800; }
.detail-todo-category.life { background: rgba(156, 39, 176, 0.15); color: #9C27B0; }

.detail-todo-time {
    font-size: 11px;
    color: #999;
    flex-shrink: 0;
}

.detail-todo-priority {
    font-size: 10px;
    padding: 1px 6px;
    border-radius: 8px;
    font-weight: 600;
    flex-shrink: 0;
}

.detail-todo-priority.high {
    background: rgba(244, 67, 54, 0.15);
    color: #f44336;
}

.detail-todo-priority.medium {
    background: rgba(255, 193, 7, 0.15);
    color: #FFC107;
}

.detail-todo-priority.low {
    background: rgba(76, 175, 80, 0.15);
    color: #4CAF50;
}

/* ====================
   日历详情页日记记录样式
   ==================== */

.detail-diary-records {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid rgba(200, 200, 200, 0.3);
}

.detail-diary-title {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.detail-diary-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.detail-diary-item {
    background: rgba(102, 126, 234, 0.08);
    border: 1px solid rgba(102, 126, 234, 0.2);
    border-radius: 10px;
    padding: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.detail-diary-item:hover {
    background: rgba(102, 126, 234, 0.15);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.15);
}

.detail-diary-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}

.detail-diary-mood {
    font-size: 16px;
}

.detail-diary-name {
    flex: 1;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.detail-diary-time {
    font-size: 11px;
    color: #999;
    flex-shrink: 0;
}

.detail-diary-preview {
    font-size: 12px;
    color: #666;
    line-height: 1.5;
    margin-bottom: 8px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.detail-diary-medicine {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    padding: 2px 8px;
    background: rgba(76, 175, 80, 0.1);
    color: #4CAF50;
    border-radius: 10px;
}

/* ====================
   设置页面待办分类设置样式
   ==================== */

.todo-category-settings {
    padding: 10px 0;
}

.todo-category-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
    max-height: 250px;
    overflow-y: auto;
}

.todo-category-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 15px;
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(200, 200, 200, 0.3);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.todo-category-item:hover {
    background: rgba(255, 255, 255, 0.7);
}

.todo-category-item .category-emoji {
    font-size: 22px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(255,255,255,0.8) 0%, rgba(255,255,255,0.4) 100%);
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    border: 1px solid rgba(255,255,255,0.5);
}

.todo-category-item .category-name {
    flex: 1;
    font-size: 14px;
    color: #333;
}

.todo-category-item .category-id {
    font-size: 11px;
    color: #999;
    background: rgba(0, 0, 0, 0.05);
    padding: 2px 8px;
    border-radius: 10px;
}

.todo-category-item .category-delete {
    width: 28px;
    height: 28px;
    border: none;
    background: rgba(244, 67, 54, 0.1);
    color: #f44336;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.todo-category-item .category-delete:hover {
    background: rgba(244, 67, 54, 0.2);
}

.todo-category-item.system {
    opacity: 0.7;
}

.todo-category-item.system .category-delete {
    display: none;
}

.todo-category-add {
    display: flex;
    gap: 12px;
    margin-bottom: 18px;
    flex-wrap: wrap;
    align-items: stretch;
}

.todo-category-add input {
    padding: 12px 16px;
    border: 2px solid rgba(200, 200, 200, 0.3);
    border-radius: 12px;
    font-size: 14px;
    background: rgba(255, 255, 255, 0.7);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.todo-category-add input:focus {
    outline: none;
    border-color: rgba(100, 149, 237, 0.6);
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 4px 16px rgba(100, 149, 237, 0.2);
    transform: translateY(-1px);
}

.todo-category-add input:first-child {
    flex: 1;
    min-width: 140px;
}

.todo-category-add input:nth-child(2) {
    width: 70px;
    text-align: center;
    font-size: 22px;
    padding: 8px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.8) 0%, rgba(245, 245, 245, 0.7) 100%);
    cursor: pointer;
}

.todo-category-add input:nth-child(2):hover {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(240, 240, 240, 0.85) 100%);
    transform: scale(1.05);
}

.todo-category-add #addTodoCategoryBtn {
    padding: 12px 24px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    background: linear-gradient(135deg, rgba(100, 149, 237, 0.9) 0%, rgba(70, 130, 180, 0.9) 100%);
    color: white;
    border: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(100, 149, 237, 0.3);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.todo-category-add #addTodoCategoryBtn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(100, 149, 237, 0.4);
    background: linear-gradient(135deg, rgba(100, 149, 237, 1) 0%, rgba(70, 130, 180, 1) 100%);
}

.todo-category-add #addTodoCategoryBtn:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(100, 149, 237, 0.3);
}

.todo-category-save-btn {
    width: 100%;
    margin-top: 15px;
    padding: 14px 24px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    background: linear-gradient(135deg, rgba(72, 187, 120, 0.9) 0%, rgba(56, 161, 105, 0.9) 100%);
    color: white;
    border: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(72, 187, 120, 0.3);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.todo-category-save-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(72, 187, 120, 0.4);
    background: linear-gradient(135deg, rgba(72, 187, 120, 1) 0%, rgba(56, 161, 105, 1) 100%);
}

.todo-category-save-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(72, 187, 120, 0.3);
}

body.no-glass .todo-category-item {
    background: #fff;
}

body.no-glass .todo-category-item .category-emoji {
    background: linear-gradient(135deg, #f5f5f5 0%, #e8e8e8 100%);
    border: 1px solid #ddd;
}

body.no-glass .todo-category-add input {
    background: #fff;
}

/* ==================== 补打卡照片样式 ==================== */
.makeup-photo-upload {
    width: 100%;
    height: 150px;
    border: 2px dashed rgba(200, 200, 200, 0.6);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    background: rgba(255, 255, 255, 0.5);
    margin-bottom: 12px;
    overflow: hidden;
}

.makeup-photo-upload:hover {
    border-color: rgba(150, 150, 150, 0.8);
    background: rgba(255, 255, 255, 0.7);
}

.makeup-upload-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: #888;
}

.makeup-upload-placeholder span {
    font-size: 32px;
}

.makeup-upload-placeholder p {
    font-size: 14px;
    margin: 0;
}

.makeup-photo-body-part {
    width: 100%;
    padding: 10px 12px;
    margin-bottom: 10px;
    border: 1px solid rgba(0,0,0,0.1);
    border-radius: 8px;
    font-size: 14px;
    background: rgba(255, 255, 255, 0.7);
    cursor: pointer;
}

.makeup-photo-note {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid rgba(0,0,0,0.1);
    border-radius: 8px;
    font-size: 14px;
    background: rgba(255, 255, 255, 0.7);
    min-height: 60px;
    resize: vertical;
    font-family: inherit;
}

.makeup-photo-body-part:focus,
.makeup-photo-note:focus {
    outline: none;
    border-color: #4CAF50;
    background: #fff;
}

/* 关于与反馈区域 */
.about-section {
    text-align: center;
    padding: 20px 10px;
    border-bottom: 1px solid rgba(200, 200, 200, 0.3);
    margin-bottom: 20px;
}

.about-section h5 {
    font-size: 20px;
    color: #333;
    margin-bottom: 8px;
}

.about-version {
    font-size: 13px;
    color: #888;
    margin-bottom: 12px;
}

.about-desc {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 16px;
}

.about-features {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
}

.about-features span {
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

.feedback-section {
    text-align: center;
    padding: 10px;
}

.feedback-btn {
    width: 150px;
    padding: 0;
    border: none;
    transform: rotate(5deg);
    transform-origin: center;
    font-family: "Gochi Hand", cursive;
    text-decoration: none;
    font-size: 15px;
    cursor: pointer;
    padding-bottom: 3px;
    border-radius: 5px;
    box-shadow: 0 2px 0 #494a4b;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    background-color: #5cdb95;
}

.feedback-btn span {
    background: #f1f5f8;
    display: block;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    border: 2px solid #494a4b;
}

.feedback-btn:active {
    transform: translateY(5px);
    padding-bottom: 0px;
    outline: 0;
}

.feedback-desc {
    font-size: 12px;
    color: #888;
    margin: 0;
}

/* ====================
   日记功能样式
   ==================== */

.diary-section {
    padding: 15px;
}

.diary-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
    text-align: center;
}

/* 日历提示 */
.diary-calendar-hint {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 15px;
    background: rgba(102, 126, 234, 0.1);
    border-radius: 10px;
    margin-bottom: 15px;
    font-size: 13px;
    color: #666;
}

.diary-today-btn-inline {
    padding: 4px 12px;
    font-size: 12px;
    border: none;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.diary-today-btn-inline:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

/* 日记列表卡片 */
.diary-list-card {
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(200, 200, 200, 0.3);
    border-radius: 16px;
    padding: 15px;
    margin-bottom: 20px;
}

.diary-list-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(200, 200, 200, 0.3);
}

.diary-list-header h4 {
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.diary-count {
    font-size: 12px;
    color: #888;
    background: rgba(102, 126, 234, 0.1);
    padding: 4px 10px;
    border-radius: 12px;
}

.diary-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 300px;
    overflow-y: auto;
}

.diary-item {
    background: rgba(255, 255, 255, 0.6);
    border-radius: 12px;
    padding: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid rgba(200, 200, 200, 0.2);
}

.diary-item:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.diary-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.diary-item-title {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.diary-item-mood {
    font-size: 16px;
    margin-left: 8px;
}

.diary-item-preview {
    font-size: 13px;
    color: #666;
    line-height: 1.5;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    margin-bottom: 8px;
}

.diary-item-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 11px;
    color: #999;
}

.diary-item-time {
    display: flex;
    align-items: center;
    gap: 4px;
}

.diary-item-medicine {
    background: rgba(76, 175, 80, 0.1);
    color: #4CAF50;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 10px;
}

.diary-empty {
    text-align: center;
    padding: 40px 20px;
}

.diary-empty-icon {
    font-size: 48px;
    margin-bottom: 15px;
    opacity: 0.5;
}

.diary-empty-text {
    font-size: 16px;
    color: #666;
    margin-bottom: 8px;
}

.diary-empty-hint {
    font-size: 13px;
    color: #999;
}

/* 日记统计 */
.diary-stats-section {
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(200, 200, 200, 0.3);
    border-radius: 12px;
    padding: 15px;
}

.diary-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.diary-stat-card {
    text-align: center;
    padding: 12px 8px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.diary-stat-card:hover {
    background: rgba(255, 255, 255, 0.7);
    transform: translateY(-2px);
}

.diary-stat-value {
    font-size: 22px;
    font-weight: 700;
    color: #333;
    margin-bottom: 4px;
}

.diary-stat-label {
    font-size: 12px;
    color: #666;
}

/* 日记弹窗样式 */
.diary-modal-content {
    max-width: 500px;
    max-height: 85vh;
    overflow-y: auto;
}

.diary-modal-date {
    text-align: center;
    font-size: 14px;
    color: #888;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(200, 200, 200, 0.3);
}

.diary-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.diary-form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.diary-label {
    font-size: 14px;
    font-weight: 600;
    color: #333;
}

.diary-title-input {
    padding: 12px 15px;
    border: 1px solid rgba(200, 200, 200, 0.5);
    border-radius: 10px;
    font-size: 14px;
    background: rgba(255, 255, 255, 0.6);
    transition: all 0.3s ease;
}

.diary-title-input:focus {
    outline: none;
    border-color: #667eea;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.diary-content-input {
    padding: 12px 15px;
    border: 1px solid rgba(200, 200, 200, 0.5);
    border-radius: 10px;
    font-size: 14px;
    background: rgba(255, 255, 255, 0.6);
    min-height: 150px;
    resize: vertical;
    font-family: inherit;
    line-height: 1.6;
    transition: all 0.3s ease;
}

.diary-content-input:focus {
    outline: none;
    border-color: #667eea;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* Markdown 工具栏 */
.diary-toolbar {
    display: flex;
    gap: 6px;
    margin-bottom: 10px;
    padding: 8px;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 8px;
    flex-wrap: wrap;
}

.diary-toolbar-btn {
    width: 32px;
    height: 32px;
    border: 1px solid rgba(200, 200, 200, 0.3);
    background: rgba(255, 255, 255, 0.6);
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    color: #666;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.diary-toolbar-btn:hover {
    background: rgba(255, 255, 255, 0.9);
    border-color: #667eea;
    color: #667eea;
    transform: translateY(-1px);
}

.diary-toolbar-btn:active {
    transform: translateY(0);
}

.diary-toolbar-btn.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-color: transparent;
}

/* Markdown 预览区 */
.diary-preview {
    padding: 15px;
    border: 1px solid rgba(200, 200, 200, 0.5);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.8);
    min-height: 150px;
    max-height: 300px;
    overflow-y: auto;
    font-size: 14px;
    line-height: 1.8;
}

.diary-preview h1,
.diary-preview h2,
.diary-preview h3 {
    margin: 16px 0 12px;
    color: #333;
    font-weight: 600;
}

.diary-preview h1 { font-size: 20px; border-bottom: 2px solid rgba(102, 126, 234, 0.3); padding-bottom: 8px; }
.diary-preview h2 { font-size: 18px; border-bottom: 1px solid rgba(102, 126, 234, 0.2); padding-bottom: 6px; }
.diary-preview h3 { font-size: 16px; }

.diary-preview p {
    margin: 10px 0;
    color: #555;
}

.diary-preview ul,
.diary-preview ol {
    margin: 10px 0;
    padding-left: 24px;
}

.diary-preview li {
    margin: 4px 0;
    color: #555;
}

.diary-preview blockquote {
    margin: 12px 0;
    padding: 10px 16px;
    border-left: 4px solid #667eea;
    background: rgba(102, 126, 234, 0.08);
    border-radius: 0 8px 8px 0;
    color: #666;
    font-style: italic;
}

.diary-preview code {
    padding: 2px 6px;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 4px;
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 13px;
    color: #e83e8c;
}

.diary-preview pre {
    margin: 12px 0;
    padding: 12px;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 8px;
    overflow-x: auto;
}

.diary-preview pre code {
    background: none;
    padding: 0;
    color: #333;
}

.diary-preview strong {
    color: #333;
    font-weight: 600;
}

.diary-preview em {
    color: #666;
    font-style: italic;
}

.diary-preview a {
    color: #667eea;
    text-decoration: none;
    border-bottom: 1px solid rgba(102, 126, 234, 0.3);
}

.diary-preview a:hover {
    border-bottom-color: #667eea;
}

.diary-preview hr {
    margin: 16px 0;
    border: none;
    border-top: 1px solid rgba(200, 200, 200, 0.5);
}

.diary-mood-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.diary-mood-tag {
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(200, 200, 200, 0.3);
    border-radius: 20px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.3s ease;
    user-select: none;
}

.diary-mood-tag:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: scale(1.05);
}

.diary-mood-tag.selected {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-color: transparent;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.diary-medicine-select {
    padding: 10px 12px;
    border: 1px solid rgba(200, 200, 200, 0.5);
    border-radius: 10px;
    font-size: 14px;
    background: rgba(255, 255, 255, 0.6);
    cursor: pointer;
}

.diary-medicine-select:focus {
    outline: none;
    border-color: #667eea;
    background: rgba(255, 255, 255, 0.9);
}

/* 日记详情弹窗 */
.diary-detail-content {
    padding: 10px 0;
}

.diary-detail-header {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(200, 200, 200, 0.3);
}

.diary-detail-date {
    font-size: 13px;
    color: #888;
    margin-bottom: 8px;
}

.diary-detail-mood {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    background: rgba(102, 126, 234, 0.1);
    border-radius: 15px;
    font-size: 13px;
    color: #667eea;
}

.diary-detail-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
    line-height: 1.4;
}

.diary-detail-text {
    font-size: 14px;
    color: #555;
    line-height: 1.8;
    white-space: pre-wrap;
    margin-bottom: 15px;
}

.diary-detail-text.markdown-content {
    white-space: normal;
}

.diary-detail-text.markdown-content h1,
.diary-detail-text.markdown-content h2,
.diary-detail-text.markdown-content h3 {
    margin: 16px 0 12px;
    color: #333;
    font-weight: 600;
}

.diary-detail-text.markdown-content h1 { font-size: 20px; }
.diary-detail-text.markdown-content h2 { font-size: 18px; }
.diary-detail-text.markdown-content h3 { font-size: 16px; }

.diary-detail-text.markdown-content p {
    margin: 10px 0;
}

.diary-detail-text.markdown-content ul,
.diary-detail-text.markdown-content ol {
    margin: 10px 0;
    padding-left: 24px;
}

.diary-detail-text.markdown-content li {
    margin: 4px 0;
}

.diary-detail-text.markdown-content blockquote {
    margin: 12px 0;
    padding: 10px 16px;
    border-left: 4px solid #667eea;
    background: rgba(102, 126, 234, 0.08);
    border-radius: 0 8px 8px 0;
    font-style: italic;
}

.diary-detail-text.markdown-content code {
    padding: 2px 6px;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 4px;
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 13px;
    color: #e83e8c;
}

.diary-detail-text.markdown-content pre {
    margin: 12px 0;
    padding: 12px;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 8px;
    overflow-x: auto;
}

.diary-detail-text.markdown-content pre code {
    background: none;
    padding: 0;
    color: #333;
}

.diary-detail-text.markdown-content strong {
    color: #333;
    font-weight: 600;
}

.diary-detail-text.markdown-content a {
    color: #667eea;
    text-decoration: none;
    border-bottom: 1px solid rgba(102, 126, 234, 0.3);
}

.diary-detail-text.markdown-content a:hover {
    border-bottom-color: #667eea;
}

.diary-detail-text.markdown-content hr {
    margin: 16px 0;
    border: none;
    border-top: 1px solid rgba(200, 200, 200, 0.5);
}

.diary-detail-medicine {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: rgba(76, 175, 80, 0.1);
    border-radius: 8px;
    font-size: 12px;
    color: #4CAF50;
}

/* 日记弹窗头部样式 */
.diary-modal-content .modal-header {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    padding-right: 40px;
}

.diary-modal-content .modal-header h3 {
    margin: 0;
    flex: 1;
    text-align: center;
}

.diary-modal-content .modal-header .modal-close-btn {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
}

/* 禁用毛玻璃效果时的日记样式 */
body.no-glass .diary-list-card,
body.no-glass .diary-stats-section {
    background: #f5f5f5;
}

body.no-glass .diary-item {
    background: #fff;
}

body.no-glass .diary-title-input,
body.no-glass .diary-content-input,
body.no-glass .diary-medicine-select {
    background: #fff;
}

/* ====================
   手机端弹窗优化 - 底部滑出式
   ==================== */

@media (max-width: 768px) {
    /* 弹窗遮罩层 */
    .modal {
        padding: 0;
        align-items: flex-end;
        background: rgba(0, 0, 0, 0);
        transition: opacity 0.3s ease, visibility 0.3s ease, background 0.3s ease;
    }
    
    .modal.show {
        background: rgba(0, 0, 0, 0.5);
    }
    
    /* 弹窗内容 - 底部滑出 */
    .modal-content {
        width: 100%;
        max-width: 100%;
        min-width: auto;
        border-radius: 20px 20px 0 0;
        padding: 20px;
        transform: translateY(100%) scale(0.95);
        opacity: 0;
        transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), 
                    opacity 0.3s ease;
        max-height: 85vh;
        overflow-y: auto;
    }
    
    .modal.show .modal-content {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
    
    /* 添加拖拽指示条 */
    .modal-content::before {
        content: '';
        display: block;
        width: 40px;
        height: 4px;
        background: rgba(0, 0, 0, 0.2);
        border-radius: 2px;
        margin: 0 auto 15px;
    }
    
    /* 标题样式优化 */
    .modal-content h3,
    .modal-header-with-close h3 {
        font-size: 18px;
        margin-bottom: 15px;
    }
    
    /* 关闭按钮优化 */
    .modal-close-btn {
        width: 36px;
        height: 36px;
        font-size: 20px;
    }
    
    /* 输入框优化 */
    .modal-content input,
    .modal-content textarea,
    .modal-content select {
        font-size: 16px; /* 防止iOS缩放 */
        padding: 14px;
        margin-bottom: 15px;
    }
    
    /* 按钮区域优化 */
    .modal-actions {
        flex-direction: column-reverse;
        gap: 10px;
        margin-top: 20px;
    }
    
    .modal-actions button {
        width: 100%;
        padding: 14px;
        font-size: 16px;
    }
    
    /* 特殊弹窗适配 */
    .compare-modal-content,
    .medicine-modal-content {
        max-height: 90vh;
        border-radius: 20px 20px 0 0;
    }
    
    /* 照片上传区域优化 */
    .photo-upload-area {
        height: 180px;
    }
    
    /* 颜色选择器优化 */
    .colors {
        justify-content: center;
        gap: 15px;
    }
    
    .color {
        width: 36px;
        height: 36px;
    }
}

/* 超小屏幕额外优化 */
@media (max-width: 480px) {
    .modal-content {
        padding: 15px;
        max-height: 90vh;
    }
    
    .modal-content::before {
        margin-bottom: 10px;
    }
    
    .modal-content h3,
    .modal-header-with-close h3 {
        font-size: 16px;
    }
}

/* ============================================
   新增动画效果 - Enhanced Animations
   ============================================ */

/* 弹性进入动画 */
@keyframes elasticIn {
    0% {
        opacity: 0;
        transform: scale(0) translateY(50px);
    }
    50% {
        transform: scale(1.1) translateY(-10px);
    }
    70% {
        transform: scale(0.95) translateY(5px);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* 翻转进入动画 */
@keyframes flipIn {
    0% {
        opacity: 0;
        transform: perspective(400px) rotateY(90deg);
    }
    100% {
        opacity: 1;
        transform: perspective(400px) rotateY(0deg);
    }
}

/* 弹跳进入动画 */
@keyframes bounceInDown {
    0% {
        opacity: 0;
        transform: translateY(-100px);
    }
    60% {
        opacity: 1;
        transform: translateY(20px);
    }
    80% {
        transform: translateY(-10px);
    }
    100% {
        transform: translateY(0);
    }
}

/* 摇摆进入动画 */
@keyframes swingIn {
    0% {
        opacity: 0;
        transform: rotateX(-100deg);
        transform-origin: top;
    }
    100% {
        opacity: 1;
        transform: rotateX(0deg);
        transform-origin: top;
    }
}

/* 果冻效果 */
@keyframes jelly {
    0%, 100% { transform: scale(1, 1); }
    25% { transform: scale(0.9, 1.1); }
    50% { transform: scale(1.1, 0.9); }
    75% { transform: scale(0.95, 1.05); }
}

/* 橡皮筋效果 */
@keyframes rubberBand {
    0% { transform: scale3d(1, 1, 1); }
    30% { transform: scale3d(1.25, 0.75, 1); }
    40% { transform: scale3d(0.75, 1.25, 1); }
    50% { transform: scale3d(1.15, 0.85, 1); }
    65% { transform: scale3d(0.95, 1.05, 1); }
    75% { transform: scale3d(1.05, 0.95, 1); }
    100% { transform: scale3d(1, 1, 1); }
}

/* 闪烁效果 */
@keyframes flash {
    0%, 50%, 100% { opacity: 1; }
    25%, 75% { opacity: 0; }
}

/* 翻转效果 */
@keyframes flip {
    0% { transform: perspective(400px) rotateY(0); }
    100% { transform: perspective(400px) rotateY(360deg); }
}

/* 倾斜摆动 */
@keyframes tada {
    0% { transform: scale3d(1, 1, 1); }
    10%, 20% { transform: scale3d(0.9, 0.9, 0.9) rotate3d(0, 0, 1, -3deg); }
    30%, 50%, 70%, 90% { transform: scale3d(1.1, 1.1, 1.1) rotate3d(0, 0, 1, 3deg); }
    40%, 60%, 80% { transform: scale3d(1.1, 1.1, 1.1) rotate3d(0, 0, 1, -3deg); }
    100% { transform: scale3d(1, 1, 1); }
}

/* 脉冲缩放 */
@keyframes pulseScale {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(76, 175, 80, 0.7); }
    70% { transform: scale(1.05); box-shadow: 0 0 0 10px rgba(76, 175, 80, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(76, 175, 80, 0); }
}

/* 摇晃警告 */
@keyframes shakeWarning {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-8px); }
    20%, 40%, 60%, 80% { transform: translateX(8px); }
}

/* 浮动气泡效果 */
@keyframes floatBubble {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
        opacity: 0.8;
    }
    50% {
        transform: translateY(-20px) rotate(5deg);
        opacity: 1;
    }
}

/* 螺旋进入 */
@keyframes spiralIn {
    0% {
        opacity: 0;
        transform: rotate(-540deg) scale(0);
    }
    100% {
        opacity: 1;
        transform: rotate(0deg) scale(1);
    }
}

/* 3D翻转卡片 */
@keyframes cardFlip3D {
    0% { transform: perspective(600px) rotateY(0deg); }
    100% { transform: perspective(600px) rotateY(180deg); }
}

/* 波浪效果 */
@keyframes wave {
    0%, 100% { transform: translateY(0); }
    25% { transform: translateY(-5px); }
    50% { transform: translateY(0); }
    75% { transform: translateY(5px); }
}

/* 发光脉冲 */
@keyframes glowPulse {
    0%, 100% {
        box-shadow: 0 0 5px rgba(76, 175, 80, 0.5),
                    0 0 10px rgba(76, 175, 80, 0.3),
                    0 0 15px rgba(76, 175, 80, 0.1);
    }
    50% {
        box-shadow: 0 0 10px rgba(76, 175, 80, 0.8),
                    0 0 20px rgba(76, 175, 80, 0.5),
                    0 0 30px rgba(76, 175, 80, 0.3);
    }
}

/* 霓虹闪烁 */
@keyframes neonFlicker {
    0%, 19%, 21%, 23%, 25%, 54%, 56%, 100% {
        text-shadow: 0 0 5px #fff,
                     0 0 10px #fff,
                     0 0 20px #4CAF50,
                     0 0 40px #4CAF50,
                     0 0 80px #4CAF50;
    }
    20%, 24%, 55% {
        text-shadow: none;
    }
}

/* 粒子爆炸 */
@keyframes particleExplode {
    0% {
        transform: translate(0, 0) scale(1);
        opacity: 1;
    }
    100% {
        transform: translate(var(--tx), var(--ty)) scale(0);
        opacity: 0;
    }
}

/* 磁吸效果 */
@keyframes magnetPull {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

/* 打字机效果 */
@keyframes typing {
    from { width: 0; }
    to { width: 100%; }
}

/* 光标闪烁 */
@keyframes cursorBlink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

/* ====================
   应用新动画到元素
   ==================== */

/* 智能卡片弹性动画 */
.smart-card {
    animation: elasticIn 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55) forwards;
    opacity: 0;
}

.smart-card:nth-child(1) { animation-delay: 0.05s; }
.smart-card:nth-child(2) { animation-delay: 0.1s; }
.smart-card:nth-child(3) { animation-delay: 0.15s; }
.smart-card:nth-child(4) { animation-delay: 0.2s; }
.smart-card:nth-child(5) { animation-delay: 0.25s; }
.smart-card:nth-child(6) { animation-delay: 0.3s; }

/* 智能卡片悬停增强 */
.smart-card:hover {
    animation: jelly 0.5s ease;
}

/* 药物卡片3D翻转效果 */
.medicine-card {
    transform-style: preserve-3d;
    backface-visibility: hidden;
}

.medicine-card:hover {
    animation: rubberBand 0.8s ease;
}

/* 打卡成功庆祝增强 */
.medicine-card.checked {
    animation: tada 0.8s ease, glowPulse 2s ease-in-out infinite;
}

/* 按钮点击波纹增强 */
.add-btn:active, .btn-primary:active, .smart-water-btn:active {
    animation: pulseScale 0.4s ease;
}

/* Tab按钮悬停摆动 */
.tab:hover {
    animation: wobble 0.6s ease;
}

/* 日历日期悬停弹性 */
.calendar .day:hover {
    animation: jelly 0.4s ease;
}

/* 今日日期霓虹效果 */
.calendar .day.today {
    animation: todayPulse 2s ease-in-out infinite, glowPulse 2s ease-in-out infinite;
}

/* 选中日期闪烁 */
.calendar .day.selected {
    animation: flash 0.5s ease 3;
}

/* 输入框聚焦发光 */
input:focus, select:focus, textarea:focus {
    animation: glowPulse 1.5s ease-in-out infinite;
}

/* 开关按钮翻转 */
.toggle-switch input:checked + .toggle-slider {
    animation: flip 0.5s ease;
}

/* 删除按钮摇晃警告 */
.medicine-card .delete-btn:hover {
    animation: shakeWarning 0.5s ease;
}

/* 库存按钮磁吸效果 */
.medicine-card .inventory-btn:hover {
    animation: magnetPull 0.3s ease;
}

/* 导航按钮浮动 */
.nav-btn:hover {
    animation: floatBubble 1s ease-in-out infinite;
}

/* 统计卡片螺旋进入 */
.stat-card, .status-stat-card, .beauty-stat-card {
    animation: spiralIn 0.6s ease forwards;
}

/* 设置区块摆动进入 */
.settings-section {
    animation: swingIn 0.5s ease forwards;
}

/* 照片时间轴翻转进入 */
.photo-timeline-item {
    animation: flipIn 0.5s ease forwards;
}

/* 心情卡片弹性 */
.mood-slot-card:hover {
    animation: jelly 0.4s ease;
}

/* 当前时段脉冲 */
.mood-slot-card.current {
    animation: pulseScale 2s ease-in-out infinite;
}

/* 喝水按钮弹跳 */
.smart-water-btn:hover {
    animation: bounce 0.6s ease;
}

/* 完成图标旋转庆祝 */
.smart-card-icon.done-icon {
    animation: pulse 2s infinite, spin 4s linear infinite;
}

/* 倒计时数字闪烁 */
.smart-countdown-time-large {
    animation: blink 1s infinite;
}

/* 加载动画增强 */
.loading-spinner {
    animation: spin 0.8s linear infinite, glowPulse 1.5s ease-in-out infinite;
}

/* Toast通知弹性进入 */
.toast {
    animation: elasticIn 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* 标签选择弹跳 */
.symptom-tag.selected, .reaction-tag.selected, .body-part-tag.selected {
    animation: bounce 0.5s ease;
}

/* 图标浮动效果 */
.icon-option:hover {
    animation: floatBubble 1s ease-in-out infinite;
}

/* 壁纸选项悬停 */
.wallpaper-option:hover {
    animation: jelly 0.5s ease;
}

/* 模块可见性项目悬停 */
.module-visibility-item:hover {
    animation: slideInRight 0.3s ease;
}

/* 正倒计时编辑按钮 */
.day-counter-edit:hover {
    animation: spin 0.5s ease;
}

/* 保存按钮闪光 */
.module-visibility-save-btn:hover {
    animation: shimmer 1.5s infinite;
    background-size: 200% 100%;
}

/* 汉堡菜单按钮 */
.hamburger-btn:hover span {
    animation: wave 0.5s ease;
}

/* 侧边栏菜单项 */
.sidebar-nav a:hover {
    animation: slideInRight 0.3s ease;
}

/* 图表柱状图生长增强 */
.chart-bar {
    animation: chartGrow 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards,
               glowPulse 2s ease-in-out infinite 0.8s;
}

/* 进度环发光 */
.progress-ring {
    animation: glowPulse 2s ease-in-out infinite;
}

/* 水滴按钮脉冲 */
.water-drop-btn:hover {
    animation: pulseScale 1s ease-in-out infinite;
}

/* 照片上传区域悬停 */
.photo-upload-area:hover {
    animation: jelly 0.5s ease;
}

/* 日记条目悬停 */
.diary-entry:hover {
    animation: slideInRight 0.3s ease;
}

/* 待办事项悬停 */
.todo-item:hover {
    animation: wobble 0.4s ease;
}

/* 提醒项目悬停 */
.reminder-item:hover {
    animation: shake 0.3s ease;
}

/* 身体数据卡片悬停 */
.body-data-card:hover {
    animation: floatBubble 2s ease-in-out infinite;
}

/* 美容项目悬停 */
.beauty-item:hover {
    animation: jelly 0.4s ease;
}

/* 库存项目悬停增强 */
.inventory-item:hover {
    animation: slideInRight 0.3s ease, glowPulse 1s ease-in-out;
}

/* 分享按钮悬停 */
.share-btn:hover {
    animation: tada 0.5s ease;
}

/* 云同步按钮 */
.btn-cloud-sync:hover {
    animation: spin 1s linear;
}

/* ============================================
   更多特殊动画效果 - Special Effects
   ============================================ */

/* 液体流动效果 */
@keyframes liquidFlow {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* 彩虹渐变 */
@keyframes rainbow {
    0% { filter: hue-rotate(0deg); }
    100% { filter: hue-rotate(360deg); }
}

/* 模糊淡入 */
@keyframes blurIn {
    0% {
        opacity: 0;
        filter: blur(20px);
        transform: scale(1.1);
    }
    100% {
        opacity: 1;
        filter: blur(0);
        transform: scale(1);
    }
}

/* 模糊淡出 */
@keyframes blurOut {
    0% {
        opacity: 1;
        filter: blur(0);
        transform: scale(1);
    }
    100% {
        opacity: 0;
        filter: blur(20px);
        transform: scale(0.9);
    }
}

/* 缩放模糊 */
@keyframes scaleBlur {
    0% { transform: scale(1); filter: blur(0); }
    50% { transform: scale(1.05); filter: blur(2px); }
    100% { transform: scale(1); filter: blur(0); }
}

/* 阴影扩散 */
@keyframes shadowSpread {
    0% { box-shadow: 0 0 0 0 rgba(0,0,0,0); }
    50% { box-shadow: 0 10px 40px rgba(0,0,0,0.2); }
    100% { box-shadow: 0 0 0 0 rgba(0,0,0,0); }
}

/* 边框流动 */
@keyframes borderFlow {
    0% { border-color: #4CAF50; }
    33% { border-color: #2196F3; }
    66% { border-color: #FF9800; }
    100% { border-color: #4CAF50; }
}

/* 文字渐变流动 */
@keyframes textGradientFlow {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* 3D倾斜 */
@keyframes tilt3D {
    0%, 100% { transform: perspective(500px) rotateX(0) rotateY(0); }
    25% { transform: perspective(500px) rotateX(5deg) rotateY(5deg); }
    50% { transform: perspective(500px) rotateX(0) rotateY(10deg); }
    75% { transform: perspective(500px) rotateX(-5deg) rotateY(5deg); }
}

/* 弹跳球 */
@keyframes bounceBall {
    0%, 100% {
        transform: translateY(0) scaleY(1);
        animation-timing-function: cubic-bezier(0.8, 0, 1, 1);
    }
    50% {
        transform: translateY(-25px) scaleY(1.1);
        animation-timing-function: cubic-bezier(0, 0, 0.2, 1);
    }
}

/* 摆动 */
@keyframes pendulum {
    0%, 100% { transform: rotate(-10deg); }
    50% { transform: rotate(10deg); }
}

/* 螺旋 */
@keyframes spiral {
    0% { transform: rotate(0deg) scale(1); }
    50% { transform: rotate(180deg) scale(0.5); }
    100% { transform: rotate(360deg) scale(1); }
}

/* 心跳 */
@keyframes heartBeat {
    0% { transform: scale(1); }
    14% { transform: scale(1.3); }
    28% { transform: scale(1); }
    42% { transform: scale(1.3); }
    70% { transform: scale(1); }
}

/* 抖动 */
@keyframes jitter {
    0%, 100% { transform: translate(0, 0); }
    10% { transform: translate(-2px, -2px); }
    20% { transform: translate(2px, 2px); }
    30% { transform: translate(-2px, 2px); }
    40% { transform: translate(2px, -2px); }
    50% { transform: translate(-1px, 1px); }
    60% { transform: translate(1px, -1px); }
    70% { transform: translate(-1px, -1px); }
    80% { transform: translate(1px, 1px); }
    90% { transform: translate(-1px, 0); }
}

/* 渐显滑动 */
@keyframes fadeSlideUp {
    0% {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* 渐隐滑动 */
@keyframes fadeSlideDown {
    0% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
    100% {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }
}

/* 旋转缩放 */
@keyframes rotateScale {
    0% { transform: rotate(0deg) scale(0); opacity: 0; }
    50% { transform: rotate(180deg) scale(1.2); }
    100% { transform: rotate(360deg) scale(1); opacity: 1; }
}

/* 挤压 */
@keyframes squeeze {
    0%, 100% { transform: scale(1, 1); }
    50% { transform: scale(1.1, 0.9); }
}

/* 悬停浮动 */
@keyframes hoverFloat {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    25% { transform: translateY(-5px) rotate(1deg); }
    50% { transform: translateY(-10px) rotate(0deg); }
    75% { transform: translateY(-5px) rotate(-1deg); }
}

/* ====================
   特殊效果应用
   ==================== */

/* 液体按钮效果 */
.liquid-btn {
    background: linear-gradient(90deg, #4CAF50, #2196F3, #FF9800, #4CAF50);
    background-size: 300% 100%;
    animation: liquidFlow 3s ease infinite;
}

/* 彩虹文字 */
.rainbow-text {
    background: linear-gradient(90deg, #ff0000, #ff7f00, #ffff00, #00ff00, #0000ff, #4b0082, #9400d3);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: textGradientFlow 3s linear infinite;
    background-size: 200% auto;
}

/* 霓虹边框 */
.neon-border {
    animation: borderFlow 3s linear infinite;
    border-width: 2px;
    border-style: solid;
}

/* 模糊进入 */
.blur-in {
    animation: blurIn 0.6s ease forwards;
}

/* 模糊退出 */
.blur-out {
    animation: blurOut 0.4s ease forwards;
}

/* 3D卡片效果 */
.card-3d {
    transform-style: preserve-3d;
    transition: transform 0.3s;
}

.card-3d:hover {
    animation: tilt3D 2s ease-in-out infinite;
}

/* 弹跳图标 */
.bounce-icon {
    animation: bounceBall 1s ease-in-out infinite;
}

/* 摆动元素 */
.pendulum {
    animation: pendulum 2s ease-in-out infinite;
    transform-origin: top center;
}

/* 螺旋元素 */
.spiral-element {
    animation: spiral 3s linear infinite;
}

/* 心跳元素 */
.heart-beat {
    animation: heartBeat 1.3s ease-in-out infinite;
}

/* 抖动元素 */
.jitter {
    animation: jitter 0.5s ease-in-out infinite;
}

/* 挤压效果 */
.squeeze-effect {
    animation: squeeze 0.3s ease;
}

/* 悬停浮动 */
.hover-float {
    animation: hoverFloat 3s ease-in-out infinite;
}

/* ====================
   药物卡片特殊效果
   ==================== */

/* 打卡完成的药物卡片 */
.medicine-card.checked {
    animation: cardCheckSuccess 0.6s cubic-bezier(0.4, 0, 0.2, 1),
               glowPulse 2s ease-in-out infinite 0.6s;
}

/* 部分打卡的药物卡片 */
.medicine-card.partial {
    animation: pulse 2s ease-in-out infinite;
}

/* 过期警告 */
.medicine-card.expiry-warning {
    animation: shakeWarning 0.5s ease, borderFlow 2s linear infinite;
}

.medicine-card.expiry-danger {
    animation: shakeWarning 0.5s ease infinite, borderFlow 1s linear infinite;
}

/* ====================
   按钮特殊效果
   ==================== */

/* 主要按钮 */
.btn-primary {
    position: relative;
    overflow: hidden;
}

.btn-primary::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-primary:active::after {
    width: 300px;
    height: 300px;
}

/* 危险按钮 */
.btn-danger:hover {
    animation: shakeWarning 0.3s ease;
}

/* 成功按钮 */
.btn-success:hover {
    animation: heartBeat 0.6s ease;
}

/* ====================
   输入框特殊效果
   ==================== */

/* 输入框聚焦 */
input:focus, select:focus, textarea:focus {
    animation: glowPulse 1.5s ease-in-out infinite;
}

/* 输入框错误 */
input.error, select.error, textarea.error {
    animation: shakeWarning 0.5s ease, borderFlow 1s linear infinite;
    border-color: #f44336;
}

/* ====================
   列表项特殊效果
   ==================== */

/* 列表项悬停 */
.list-item {
    transition: all 0.3s ease;
}

.list-item:hover {
    animation: slideInRight 0.3s ease;
    background: rgba(255, 255, 255, 0.6);
}

/* 列表项删除 */
.list-item.deleting {
    animation: blurOut 0.3s ease forwards;
}

/* 列表项添加 */
.list-item.adding {
    animation: blurIn 0.3s ease forwards;
}

/* ====================
   弹窗特殊效果
   ==================== */

/* 弹窗内容 */
.modal-content {
    animation: modalPopIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* 弹窗关闭 */
.modal.closing .modal-content {
    animation: modalPopOut 0.3s ease forwards;
}

/* 弹窗标题 */
.modal-content h3 {
    animation: slideDown 0.4s ease 0.1s both;
}

/* 弹窗表单 */
.modal-content form > * {
    animation: fadeSlideUp 0.3s ease both;
}

.modal-content form > *:nth-child(1) { animation-delay: 0.1s; }
.modal-content form > *:nth-child(2) { animation-delay: 0.15s; }
.modal-content form > *:nth-child(3) { animation-delay: 0.2s; }
.modal-content form > *:nth-child(4) { animation-delay: 0.25s; }
.modal-content form > *:nth-child(5) { animation-delay: 0.3s; }

/* ====================
   日历特殊效果
   ==================== */

/* 日历日期 */
.calendar .day {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.calendar .day:hover {
    animation: jelly 0.4s ease;
    transform: scale(1.15);
    z-index: 10;
}

/* 今日高亮 */
.calendar .day.today {
    animation: todayPulse 2s ease-in-out infinite, glowPulse 2s ease-in-out infinite;
}

/* 选中日期 */
.calendar .day.selected {
    animation: tada 0.5s ease;
}

/* ====================
   进度条特殊效果
   ==================== */

/* 进度条填充 */
.progress-fill {
    transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    background: linear-gradient(90deg, #4CAF50, #81C784, #4CAF50);
    background-size: 200% 100%;
    animation: liquidFlow 2s linear infinite;
}

/* 进度环 */
.progress-ring circle {
    transition: stroke-dashoffset 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.progress-ring:hover {
    animation: rotateScale 0.6s ease;
}

/* ====================
   图标特殊效果
   ==================== */

/* 图标悬停 */
.icon-hover:hover {
    animation: rubberBand 0.5s ease;
}

/* 图标点击 */
.icon-click:active {
    animation: squeeze 0.2s ease;
}

/* 旋转图标 */
.icon-spin {
    animation: spin 2s linear infinite;
}

/* 脉冲图标 */
.icon-pulse {
    animation: pulse 2s ease-in-out infinite;
}

/* 弹跳图标 */
.icon-bounce {
    animation: bounce 1s ease infinite;
}

/* ====================
   文字特殊效果
   ==================== */

/* 文字阴影 */
.text-shadow {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
    transition: text-shadow 0.3s;
}

.text-shadow:hover {
    text-shadow: 4px 4px 8px rgba(0, 0, 0, 0.3);
}

/* 文字发光 */
.text-glow {
    animation: neonFlicker 1.5s infinite;
}

/* 文字渐变 */
.text-gradient {
    background: linear-gradient(90deg, #4CAF50, #2196F3);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ====================
   图片特殊效果
   ==================== */

/* 图片悬停 */
.img-hover {
    transition: all 0.3s ease;
}

.img-hover:hover {
    transform: scale(1.05);
    filter: brightness(1.1);
}

/* 图片模糊进入 */
.img-blur-in {
    animation: blurIn 0.5s ease;
}

/* ====================
   加载动画
   ==================== */

/* 加载旋转器 */
.loading-spinner {
    animation: spin 0.8s linear infinite, glowPulse 1.5s ease-in-out infinite;
}

/* 加载点 */
.loading-dots {
    display: flex;
    gap: 8px;
}

.loading-dots span {
    width: 12px;
    height: 12px;
    background: #4CAF50;
    border-radius: 50%;
    animation: bounceBall 0.6s ease-in-out infinite;
}

.loading-dots span:nth-child(2) { animation-delay: 0.1s; }
.loading-dots span:nth-child(3) { animation-delay: 0.2s; }

/* ====================
   响应式动画优化
   ==================== */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

@media (max-width: 768px) {
    .smart-card:hover,
    .medicine-card:hover,
    .stat-card:hover {
        animation: none;
    }
    
    .calendar .day:hover {
        animation: none;
    }
}

/* 响应式 */
@media (max-width: 480px) {
    .diary-calendar-card,
    .diary-list-card {
        padding: 12px;
    }
    
    .diary-day-number {
        font-size: 12px;
    }
    
    .diary-stats-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .diary-mood-tags {
        gap: 6px;
    }
    
    .diary-mood-tag {
        padding: 5px 10px;
        font-size: 12px;
    }
}
