.user-page {
    padding-top: 70px;
    min-height: 100vh;
}

/* 登录/注册区域 */
.login-section {
    padding: 60px 0;
    max-width: 480px;
    margin: 0 auto;
}

.auth-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 32px;
    background: var(--white);
    padding: 4px;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.auth-tab {
    flex: 1;
    padding: 12px;
    border: none;
    background: transparent;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    color: var(--text-light);
}

.auth-tab.active {
    background: var(--primary);
    color: var(--white);
}

.auth-form {
    background: var(--white);
    padding: 32px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.auth-form h2 {
    text-align: center;
    margin-bottom: 24px;
    font-size: 24px;
}

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

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--text);
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e8e0d8;
    border-radius: 12px;
    font-size: 15px;
    transition: var(--transition);
    background: var(--bg);
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary);
}

/* 用户头部 */
.user-header {
    background: linear-gradient(135deg, #f5e6d3 0%, #e8d5c0 100%);
    padding: 40px 0;
}

.user-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.user-avatar {
    width: 60px;
    height: 60px;
    background: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.user-info h2 {
    font-size: 20px;
    margin-bottom: 4px;
}

.user-info p {
    font-size: 13px;
    color: var(--secondary);
}

/* 统计卡片 */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    padding: 24px 0;
}

.stat-card {
    background: var(--white);
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    box-shadow: var(--shadow);
}

.stat-num {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 4px;
}

.stat-label {
    font-size: 12px;
    color: var(--text-light);
}

/* 历史记录 */
.history-section,
.favorites-section,
.mood-section {
    margin: 32px 0;
}

.history-section h3,
.favorites-section h3,
.mood-section h3 {
    font-size: 18px;
    margin-bottom: 16px;
}

.history-list {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.history-item {
    display: flex;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid #f0ebe5;
}

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

.history-type {
    font-weight: 600;
    color: var(--text);
}

.history-date {
    font-size: 13px;
    color: var(--text-light);
}

.empty-text {
    text-align: center;
    padding: 40px;
    color: var(--text-light);
}

/* 心情图表 */
.mood-chart {
    background: var(--white);
    padding: 20px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.trend-svg {
    width: 100%;
    height: 180px;
}

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

    .user-header .container {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }

    .auth-form {
        padding: 24px;
    }
}
