:root {
    /* 主题颜色 - 现代简约风格 */
    --primary-color: #4a6fa5;
    --secondary-color: #5e81ac;
    --accent-color: #88c0d0;
    --light-color: #ffffff;
    --dark-color: #333333;
    
    /* 背景颜色 */
    --bg-light: #f9f9f9;
    --bg-medium: #eceff4;
    --bg-dark: #333333;
    
    /* 文本颜色 */
    --text-primary: #333333;
    --text-secondary: #6e6e6e;
    --text-light: #ffffff;
    
    /* 字体 */
    --font-body: 'Noto Sans SC', sans-serif;
    
    /* 间距 */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    
    /* 圆角 */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-full: 9999px;
    
    /* 阴影 */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.08);
    
    /* 动画 */
    --transition-fast: 0.2s ease;
    --transition-medium: 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    background-color: #252525;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.app-container {
    width: 375px;
    height: 812px;
    background-color: var(--bg-light);
    border-radius: 40px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

/* 状态栏 */
.status-bar {
    height: 44px;
    background-color: var(--bg-light);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    font-size: 14px;
    color: var(--text-primary);
}

.status-bar-icons {
    display: flex;
    gap: 5px;
}

/* 主界面 */
.main-screen {
    height: calc(100% - 44px - 83px);
    overflow-y: auto;
    padding: 20px;
}

/* 顶部导航 */
.top-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-md);
}

.user-profile {
    display: flex;
    align-items: center;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
    object-fit: cover;
    margin-right: 10px;
}

.welcome-text {
    display: flex;
    flex-direction: column;
}

.greeting {
    font-size: 14px;
    color: var(--text-secondary);
}

.username {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
}

.nav-icons {
    position: relative;
}

.notification-icon {
    font-size: 24px;
    color: var(--primary-color);
}

.notification-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    width: 18px;
    height: 18px;
    background-color: var(--accent-color);
    color: var(--text-light);
    border-radius: var(--radius-full);
    font-size: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* 心学能量环 */
.energy-dashboard {
    background-color: white;
    border-radius: var(--radius-md);
    padding: var(--spacing-md);
    margin-bottom: var(--spacing-md);
    box-shadow: var(--shadow-sm);
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-md);
}

.dashboard-header h2 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
}

.view-details {
    font-size: 14px;
    color: var(--primary-color);
    cursor: pointer;
}

.energy-metrics {
    display: flex;
    justify-content: space-around;
}

.metric-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.metric-name {
    margin-top: 8px;
    font-size: 14px;
    color: var(--text-secondary);
}

/* 今日暗示 */
.today-suggestion {
    margin-bottom: var(--spacing-md);
}

.suggestion-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-sm);
}

.suggestion-header h2 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
}

.suggestion-date {
    font-size: 14px;
    color: var(--text-secondary);
}

.suggestion-card {
    background-color: white;
    border-radius: var(--radius-md);
    padding: var(--spacing-md);
    box-shadow: var(--shadow-sm);
}

.suggestion-text {
    font-size: 20px;
    line-height: 1.5;
    color: var(--text-primary);
    margin-bottom: var(--spacing-xs);
}

.suggestion-source {
    font-size: 14px;
    color: var(--text-secondary);
    text-align: right;
    margin-bottom: var(--spacing-md);
}

.card-actions {
    display: flex;
    justify-content: flex-end;
    gap: var(--spacing-sm);
}

.action-btn {
    background: none;
    border: none;
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 14px;
    color: var(--primary-color);
    cursor: pointer;
    transition: color var(--transition-fast);
}

.action-btn:hover {
    color: var(--accent-color);
}

/* 快捷功能 */
.quick-features {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-md);
}

.feature-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.feature-icon {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-md);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 24px;
    color: white;
    box-shadow: var(--shadow-sm);
}

.journal-icon {
    background-color: #4a6fa5;
}

.suggestion-icon {
    background-color: #5e81ac;
}

.conflict-icon {
    background-color: #81a1c1;
}

.community-icon {
    background-color: #88c0d0;
}

.feature-name {
    font-size: 12px;
    color: var(--text-primary);
}

/* 最近暗示记录 */
.recent-records {
    background-color: white;
    border-radius: var(--radius-md);
    padding: var(--spacing-md);
    box-shadow: var(--shadow-sm);
}

.records-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-md);
}

.records-header h2 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
}

.view-all {
    font-size: 14px;
    color: var(--primary-color);
    cursor: pointer;
}

.records-list {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

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

.record-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    background-color: var(--bg-medium);
    display: flex;
    justify-content: center;
    align-items: center;
    margin-right: var(--spacing-sm);
    color: var(--primary-color);
}

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

.record-text {
    font-size: 16px;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.record-scenario {
    font-size: 12px;
    color: var(--text-secondary);
}

.record-time {
    font-size: 12px;
    color: var(--text-secondary);
}

/* 底部导航栏 */
.bottom-nav {
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 83px;
    background-color: white;
    display: flex;
    justify-content: space-around;
    align-items: center;
    border-top: 1px solid var(--bg-medium);
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    cursor: pointer;
}

.nav-item i {
    font-size: 20px;
    color: var(--text-secondary);
}

.nav-item span {
    font-size: 12px;
    color: var(--text-secondary);
}

.nav-item.active i,
.nav-item.active span {
    color: var(--primary-color);
}

.center-btn {
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    border-radius: var(--radius-full);
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: var(--shadow-sm);
}

.center-btn i {
    font-size: 20px;
    color: white !important;
}

/* 滚动条样式 */
.main-screen::-webkit-scrollbar {
    width: 4px;
}

.main-screen::-webkit-scrollbar-track {
    background: var(--bg-light);
}

.main-screen::-webkit-scrollbar-thumb {
    background-color: var(--primary-color);
    border-radius: var(--radius-full);
}

