/* ========== 飞书登录相关样式 ========== */

/* 登录页面 */
.login-required {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 20px;
}

.login-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    padding: 40px;
    text-align: center;
    max-width: 400px;
    width: 100%;
}

.login-card .logo {
    font-size: 48px;
    margin-bottom: 20px;
}

.login-card h2 {
    font-size: 24px;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
}

.login-card p {
    color: #666;
    margin-bottom: 30px;
    line-height: 1.6;
}

/* 页面头部布局更新 */
.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.header-main {
    text-align: left;
}

/* 用户信息显示 */
.user-info {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 16px;
    background: var(--background-secondary);
    border-radius: var(--radius);
    border: 1px solid var(--border-color);
}

.user-avatar img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.user-details {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.user-name {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 14px;
}

.user-email {
    font-size: 12px;
    color: var(--text-secondary);
}

.user-actions {
    margin-left: 8px;
}

.btn-small {
    padding: 4px 12px;
    font-size: 12px;
}

/* 聊天页面头部更新 */
.chat-header-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.chat-header-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.chat-user-info {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 8px;
    background: var(--background-secondary);
    border-radius: 20px;
    border: 1px solid var(--border-color);
}

.chat-user-avatar img {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
}

.chat-user-name {
    font-size: 12px;
    color: var(--text-secondary);
    max-width: 100px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* 响应式设计更新 */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 16px;
        align-items: center;
    }
    
    .header-main {
        text-align: center;
    }
    
    .chat-header-right {
        flex-direction: column;
        gap: 8px;
    }
    
    .user-info {
        flex-wrap: wrap;
        justify-content: center;
    }
}
