:root {
    --primary-color: #10a37f;
    --primary-hover: #0d8c6d;
    --secondary-color: #6e6e80;
    --background: #f7f7f8;
    --surface: #ffffff;
    --border: #e5e5e5;
    --text-primary: #2d2d2d;
    --text-secondary: #6e6e80;
    --danger: #ef4444;
    --success: #10a37f;
    --warning: #f59e0b;
    --sidebar-width: 260px;
    --border-radius: 8px;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 15px rgba(0,0,0,0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    background: var(--background);
    color: var(--text-primary);
    line-height: 1.6;
}

.page {
    display: none;
}

.page.active {
    display: block;
}

/* 认证页面 */
.auth-container {
    max-width: 440px;
    margin: 80px auto;
    background: var(--surface);
    padding: 48px;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
}

.auth-header {
    text-align: center;
    margin-bottom: 32px;
}

.auth-header h1 {
    font-size: 28px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.auth-subtitle {
    color: var(--text-secondary);
    font-size: 14px;
}

.auth-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
    border-bottom: 1px solid var(--border);
}

.tab-btn {
    flex: 1;
    padding: 12px;
    border: none;
    background: transparent;
    cursor: pointer;
    font-size: 15px;
    font-weight: 500;
    color: var(--text-secondary);
    border-bottom: 2px solid transparent;
    transition: all 0.2s;
}

.tab-btn.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

.auth-form {
    display: none;
}

.auth-form.active {
    display: block;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border);
    border-radius: var(--border-radius);
    font-size: 14px;
    transition: all 0.2s;
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(16, 163, 127, 0.1);
}

.form-group textarea {
    min-height: 100px;
    resize: vertical;
}

.btn-primary {
    width: 100%;
    padding: 12px 24px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: var(--border-radius);
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-primary:hover {
    background: var(--primary-hover);
}

.btn-secondary {
    padding: 8px 16px;
    background: var(--surface);
    color: var(--text-primary);
    border: 1px solid var(--border);
    border-radius: var(--border-radius);
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-secondary:hover {
    background: var(--background);
}

.message {
    margin-top: 16px;
    padding: 12px;
    border-radius: var(--border-radius);
    font-size: 14px;
    text-align: center;
}

.message.error {
    background: #fef2f2;
    color: var(--danger);
    border: 1px solid #fecaca;
}

.message.success {
    background: #f0fdf4;
    color: var(--success);
    border: 1px solid #bbf7d0;
}

/* 主应用布局 */
.app-layout {
    display: flex;
    height: 100vh;
}

/* 侧边栏 */
.sidebar {
    width: var(--sidebar-width);
    background: var(--surface);
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
}

.sidebar-header {
    padding: 24px 20px;
    border-bottom: 1px solid var(--border);
}

.sidebar-header h2 {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
}

.sidebar-nav {
    flex: 1;
    padding: 16px 12px;
    overflow-y: auto;
}

.nav-btn {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    margin-bottom: 4px;
    border: none;
    background: transparent;
    text-align: left;
    cursor: pointer;
    border-radius: var(--border-radius);
    font-size: 14px;
    color: var(--text-primary);
    transition: all 0.2s;
}

.nav-btn:hover {
    background: var(--background);
}

.nav-btn.active {
    background: #f0fdf4;
    color: var(--primary-color);
}

.nav-icon {
    font-size: 18px;
}

.nav-text {
    font-weight: 500;
}

.sidebar-footer {
    padding: 16px;
    border-top: 1px solid var(--border);
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

.user-details {
    flex: 1;
    min-width: 0;
}

.user-name {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-email {
    font-size: 12px;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.btn-logout {
    width: 100%;
    padding: 8px;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: var(--border-radius);
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-logout:hover {
    background: var(--background);
}

/* 主内容区 */
.main-content {
    flex: 1;
    overflow-y: auto;
    padding: 32px 48px;
}

.view {
    display: none;
}

.view.active {
    display: block;
}

.view-header {
    margin-bottom: 32px;
}

.view-header h1 {
    font-size: 32px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.view-subtitle {
    color: var(--text-secondary);
    font-size: 15px;
}

/* 统计卡片 */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin-bottom: 32px;
}

.stat-card {
    background: var(--surface);
    padding: 24px;
    border-radius: var(--border-radius);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 16px;
}

.stat-icon {
    font-size: 32px;
}

.stat-content {
    flex: 1;
}

.stat-label {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 4px;
}

.stat-value {
    font-size: 28px;
    font-weight: 600;
    color: var(--text-primary);
}

.stat-unit {
    font-size: 13px;
    color: var(--text-secondary);
}

/* 仪表盘 */
.dashboard-sections {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.dashboard-section {
    background: var(--surface);
    padding: 24px;
    border-radius: var(--border-radius);
    border: 1px solid var(--border);
}

.dashboard-section h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 16px;
}

.checkin-widget {
    text-align: center;
    padding: 20px;
}

.checkin-widget p {
    margin-bottom: 16px;
    color: var(--text-secondary);
}

.activity-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.activity-item {
    padding: 12px;
    background: var(--background);
    border-radius: var(--border-radius);
    font-size: 14px;
}

/* 习惯追踪 */
.habits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.habit-card {
    background: var(--surface);
    padding: 20px;
    border-radius: var(--border-radius);
    border: 1px solid var(--border);
}

.habit-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    gap: 12px;
    min-width: 0;
}

.habit-name {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
    min-width: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.habit-description {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.habit-progress {
    margin-bottom: 12px;
}

.habit-progress-bar {
    height: 8px;
    background: var(--background);
    border-radius: 4px;
    overflow: hidden;
}

.habit-progress-fill {
    height: 100%;
    background: var(--primary-color);
    transition: width 0.3s;
}

.habit-actions {
    display: flex;
    gap: 8px;
    margin-top: 12px;
    justify-content: flex-end;
}

/* 目标管理 */
.goals-filter {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
}

.filter-btn {
    padding: 8px 16px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--border-radius);
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
}

.filter-btn.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.goals-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.goal-card {
    background: var(--surface);
    padding: 24px;
    border-radius: var(--border-radius);
    border: 1px solid var(--border);
}

.goal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    gap: 12px;
    min-width: 0;
}

.goal-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
    min-width: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.goal-category {
    padding: 4px 12px;
    background: var(--background);
    border-radius: 12px;
    font-size: 12px;
    color: var(--text-secondary);
    white-space: nowrap;
    flex-shrink: 0;
}

.goal-description {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.goal-progress {
    margin-bottom: 12px;
}

.goal-progress-text {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.goal-progress-bar {
    height: 10px;
    background: var(--background);
    border-radius: 5px;
    overflow: hidden;
}

.goal-progress-fill {
    height: 100%;
    background: var(--primary-color);
    transition: width 0.3s;
}

.goal-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: var(--text-secondary);
}

/* 待办事项 */
.todo-input-section {
    display: flex;
    gap: 12px;
    margin-bottom: 32px;
}

.todo-input-field {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid var(--border);
    border-radius: var(--border-radius);
    font-size: 14px;
}

.todos-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.todos-section h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.todo-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.todo-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--border-radius);
    transition: all 0.2s;
}

.todo-item:hover {
    box-shadow: var(--shadow-sm);
}

.todo-checkbox {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.todo-text {
    flex: 1;
    font-size: 14px;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.todo-item.completed .todo-text {
    text-decoration: line-through;
    color: var(--text-secondary);
}

.todo-delete {
    padding: 4px 12px;
    background: transparent;
    color: var(--danger);
    border: none;
    border-radius: 4px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
}

.todo-delete:hover {
    background: #fef2f2;
}

/* 时间记录 */
.time-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 32px;
}

.time-stat-card {
    background: var(--surface);
    padding: 20px;
    border-radius: var(--border-radius);
    border: 1px solid var(--border);
    text-align: center;
}

.time-stat-label {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.time-stat-value {
    font-size: 24px;
    font-weight: 600;
    color: var(--text-primary);
}

.time-logs-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.time-log-item {
    background: var(--surface);
    padding: 16px;
    border-radius: var(--border-radius);
    border: 1px solid var(--border);
}

.time-log-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.time-log-activity {
    font-size: 15px;
    font-weight: 500;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
}

.time-log-duration {
    font-size: 14px;
    color: var(--primary-color);
    font-weight: 500;
}

.time-log-details {
    font-size: 13px;
    color: var(--text-secondary);
}

/* 笔记 */
.notes-layout {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 24px;
    height: calc(100vh - 200px);
}

.notes-sidebar {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--border-radius);
    overflow: hidden;
}

.notes-search {
    padding: 16px;
    border-bottom: 1px solid var(--border);
}

.notes-search input {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid var(--border);
    border-radius: var(--border-radius);
    font-size: 14px;
}

.notes-list {
    overflow-y: auto;
    height: calc(100% - 60px);
}

.note-item {
    padding: 16px;
    border-bottom: 1px solid var(--border);
    cursor: pointer;
    transition: all 0.2s;
}

.note-item:hover {
    background: var(--background);
}

.note-item.active {
    background: var(--background);
}

.note-item-title {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.note-item-preview {
    font-size: 13px;
    color: var(--text-secondary);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.notes-editor {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--border-radius);
    padding: 24px;
    overflow-y: auto;
}

.note-editor-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: var(--text-secondary);
}

/* 心情日记 */
.mood-input-section {
    background: var(--surface);
    padding: 24px;
    border-radius: var(--border-radius);
    border: 1px solid var(--border);
    margin-bottom: 32px;
}

.mood-selector {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.mood-option {
    flex: 1;
    min-width: 100px;
    padding: 16px;
    background: var(--background);
    border: 2px solid transparent;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.mood-option:hover {
    border-color: var(--border);
}

.mood-option.selected {
    border-color: var(--primary-color);
    background: #f0fdf4;
}

.mood-emoji {
    font-size: 32px;
}

.mood-label {
    font-size: 13px;
    color: var(--text-primary);
}

.mood-textarea {
    width: 100%;
    min-height: 120px;
    padding: 12px 16px;
    border: 1px solid var(--border);
    border-radius: var(--border-radius);
    font-size: 14px;
    font-family: inherit;
    margin-bottom: 16px;
    resize: vertical;
}

.mood-history {
    margin-top: 32px;
}

.mood-history h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 16px;
}

.mood-history-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.mood-entry {
    background: var(--surface);
    padding: 16px;
    border-radius: var(--border-radius);
    border: 1px solid var(--border);
}

.mood-entry-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    gap: 12px;
}

.mood-entry-type {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
    white-space: nowrap;
}

.mood-entry-date {
    font-size: 13px;
    color: var(--text-secondary);
    white-space: nowrap;
}

.mood-entry-note {
    font-size: 14px;
    color: var(--text-primary);
    line-height: 1.6;
}

/* 日历 */
.calendar-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.calendar-controls h2 {
    font-size: 20px;
    font-weight: 600;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 8px;
}

.calendar-day {
    aspect-ratio: 1;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
}

.calendar-day:hover {
    background: var(--background);
}

.calendar-day.today {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.calendar-day.has-event {
    background: #f0fdf4;
    border-color: var(--primary-color);
}

.calendar-weekday {
    font-weight: 600;
    color: var(--text-secondary);
    text-align: center;
    padding: 12px;
}

/* AI 助手 */
.chat-container {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--border-radius);
    height: calc(100vh - 250px);
    display: flex;
    flex-direction: column;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 24px;
}

.chat-welcome {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-secondary);
}

.chat-welcome h3 {
    font-size: 20px;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.chat-welcome ul {
    text-align: left;
    max-width: 400px;
    margin: 16px auto;
    list-style-position: inside;
}

.chat-welcome li {
    margin-bottom: 8px;
}

.chat-message {
    margin-bottom: 16px;
    padding: 12px 16px;
    border-radius: var(--border-radius);
    max-width: 80%;
    font-size: 14px;
    line-height: 1.6;
}

.chat-message.user {
    background: var(--primary-color);
    color: white;
    margin-left: auto;
}

.chat-message.ai {
    background: var(--background);
    color: var(--text-primary);
}

.chat-input-container {
    padding: 16px;
    border-top: 1px solid var(--border);
    display: flex;
    gap: 12px;
}

.chat-input-field {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid var(--border);
    border-radius: var(--border-radius);
    font-size: 14px;
}

/* 模态框 */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: var(--surface);
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    font-size: 20px;
    font-weight: 600;
}

.modal-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--text-secondary);
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
}

.modal-close:hover {
    background: var(--background);
}

.modal-body {
    padding: 24px;
}

.modal-footer {
    padding: 16px 24px;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

.modal-footer .btn-primary,
.modal-footer .btn-secondary {
    width: auto;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .sidebar {
        position: fixed;
        left: -100%;
        top: 0;
        bottom: 0;
        z-index: 100;
        transition: left 0.3s;
    }
    
    .sidebar.active {
        left: 0;
    }
    
    .main-content {
        padding: 20px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .notes-layout {
        grid-template-columns: 1fr;
    }
    
    .todos-container {
        grid-template-columns: 1fr;
    }
}

/* Settings page */
.settings-container {
    max-width: 800px;
}

.settings-section {
    background: var(--surface);
    padding: 24px;
    border-radius: var(--border-radius);
    border: 1px solid var(--border);
    margin-bottom: 24px;
}

.settings-section h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.calendar-subscription-input {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.calendar-subscription-input input {
    flex: 1;
    min-width: 200px;
    padding: 10px 14px;
    border: 1px solid var(--border);
    border-radius: var(--border-radius);
    font-size: 14px;
}

.subscriptions-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.subscription-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: var(--background);
    border-radius: var(--border-radius);
    border: 1px solid var(--border);
}

.subscription-info {
    flex: 1;
}

.subscription-name {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.subscription-url {
    font-size: 12px;
    color: var(--text-secondary);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.subscription-actions {
    display: flex;
    gap: 8px;
}

.subscription-sync {
    padding: 6px 12px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 13px;
    cursor: pointer;
}

.subscription-delete {
    padding: 6px 12px;
    background: transparent;
    color: var(--danger);
    border: 1px solid var(--danger);
    border-radius: 4px;
    font-size: 13px;
    cursor: pointer;
}

.view-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
    gap: 16px;
    min-height: 48px;
}

.view-header h1 {
    font-size: 32px;
    font-weight: 600;
    color: var(--text-primary);
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.view-header > div {
    flex-shrink: 0;
    display: flex;
    gap: 12px;
}

.view-header button {
    flex-shrink: 0;
    white-space: nowrap;
}

/* Remove emoji styles */
.stat-icon,
.nav-icon,
.mood-emoji {
    display: none;
}

.nav-btn {
    justify-content: flex-start;
}

.mood-option {
    justify-content: center;
}

/* 按钮文字不换行 */
button {
    white-space: nowrap;
}

.btn-primary,
.btn-secondary,
.btn-logout,
.nav-btn,
.tab-btn,
.filter-btn,
.mood-option {
    white-space: nowrap;
}

/* 日历事件样式 */
.calendar-day {
    position: relative;
    padding: 8px;
    flex-direction: column;
    align-items: flex-start;
    min-height: 80px;
}

.calendar-day-number {
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 4px;
    padding: 2px 4px;
}

.calendar-events {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-top: 4px;
}

.calendar-event {
    font-size: 11px;
    padding: 3px 6px;
    background: var(--primary-color);
    color: white;
    border-radius: 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    cursor: pointer;
    transition: all 0.2s;
    font-weight: 500;
    box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.calendar-event:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.15);
}

/* 节假日特殊样式 */
.calendar-day.has-event .calendar-day-number {
    font-weight: 600;
}

/* 头像样式优化 */
.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 16px;
    overflow: hidden;
}

.user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 订阅列表样式优化 */
.subscription-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: var(--background);
    border-radius: var(--border-radius);
    border: 1px solid var(--border);
    gap: 12px;
}

.subscription-actions button {
    white-space: nowrap;
}

/* 目标卡片按钮容器 */
.goal-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: var(--text-secondary);
    gap: 12px;
    flex-wrap: wrap;
}

.goal-footer > span {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.goal-footer > div {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
    margin-left: auto;
}

/* 时间记录头部优化 */
.time-log-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.time-log-header > div:last-child {
    flex-shrink: 0;
}

/* 心情记录头部优化 */
.mood-entry-header > div:last-child {
    flex-shrink: 0;
}
