/* ========== 大厅页面样式 ========== */

.lobby-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255,255,255,0.2);
    padding: 15px 20px;
    border-radius: 15px;
    margin-bottom: 30px;
}

.user-info {
    color: #fff;
}

.user-info #user-nickname {
    font-size: 1.2rem;
    font-weight: bold;
}

.user-info .stats {
    margin-left: 15px;
    opacity: 0.9;
}

.lobby-actions {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.lobby-actions button {
    flex: 1;
}

.room-section {
    background: #fff;
    border-radius: 20px;
    padding: 25px;
    margin-bottom: 20px;
}

.room-section h3 {
    margin-bottom: 15px;
    color: #667eea;
}

.room-list {
    max-height: 300px;
    overflow-y: auto;
}

.room-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    border-bottom: 1px solid #eee;
}

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

.room-item-info {
    flex: 1;
}

.room-item-id {
    font-weight: bold;
    color: #667eea;
}

.room-item-details {
    font-size: 0.9rem;
    color: #666;
    margin-top: 5px;
}

.room-item button {
    padding: 8px 20px;
    width: auto;
    font-size: 0.9rem;
}

.join-room {
    display: flex;
    gap: 10px;
}

.join-room input {
    flex: 1;
    padding: 15px;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    text-align: center;
    letter-spacing: 5px;
}

.join-room button {
    width: auto;
    padding: 15px 30px;
}

/* ========== 响应式 ========== */
@media (max-width: 600px) {
    .lobby-actions {
        flex-direction: column;
    }
    
    .user-info .stats {
        display: block;
        margin-left: 0;
        margin-top: 5px;
        font-size: 0.9rem;
    }
}
